This repository has been archived by the owner on Nov 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
151 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -136,4 +136,5 @@ Others: | |
## 0.9 | ||
|
||
更新内容: | ||
- [important] 表达式搜索 #62 | ||
- [important] 支持拖入Jar文件加载 #61 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83 changes: 73 additions & 10 deletions
83
src/main/java/com/chaitin/jar/analyzer/spel/MethodEL.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,104 @@ | ||
package com.chaitin.jar.analyzer.spel; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
public class MethodEL { | ||
private String classNameContains; | ||
private String nameContains; | ||
private String returnContains; | ||
private String classNameContains; | ||
private Map<Integer, String> paramTypes; | ||
private String nameContains; | ||
private String returnType; | ||
private int paramsNum; | ||
boolean isStatic; | ||
|
||
// -------------------- GETTER/SETTER -------------------- // | ||
public String getClassNameContains() { | ||
return classNameContains; | ||
} | ||
|
||
public void setClassNameContains(String classNameContains) { | ||
this.classNameContains = classNameContains; | ||
} | ||
|
||
public Map<Integer, String> getParamTypes() { | ||
return paramTypes; | ||
} | ||
|
||
public void setParamTypes(Map<Integer, String> paramTypes) { | ||
this.paramTypes = paramTypes; | ||
} | ||
|
||
public String getNameContains() { | ||
return nameContains; | ||
} | ||
|
||
public String getReturnContains() { | ||
return returnContains; | ||
public void setNameContains(String nameContains) { | ||
this.nameContains = nameContains; | ||
} | ||
|
||
public String getReturnType() { | ||
return returnType; | ||
} | ||
|
||
public void setReturnType(String returnType) { | ||
this.returnType = returnType; | ||
} | ||
|
||
public int getParamsNum() { | ||
return paramsNum; | ||
} | ||
|
||
public MethodEL nameContains(String str){ | ||
public void setParamsNum(int paramsNum) { | ||
this.paramsNum = paramsNum; | ||
} | ||
|
||
public boolean isStatic() { | ||
return isStatic; | ||
} | ||
|
||
public void setStatic(boolean aStatic) { | ||
isStatic = aStatic; | ||
} | ||
|
||
public MethodEL (){ | ||
this.paramTypes = new HashMap<>(); | ||
} | ||
|
||
// -------------------- EL -------------------- // | ||
|
||
@SuppressWarnings("unused") | ||
public MethodEL nameContains(String str) { | ||
this.nameContains = str; | ||
return this; | ||
} | ||
public MethodEL classNameContains(String str){ | ||
|
||
@SuppressWarnings("unused") | ||
public MethodEL classNameContains(String str) { | ||
this.classNameContains = str; | ||
return this; | ||
} | ||
public MethodEL returnContains(String str){ | ||
this.returnContains = str; | ||
|
||
@SuppressWarnings("unused") | ||
public MethodEL returnType(String str) { | ||
this.returnType = str; | ||
return this; | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
public MethodEL paramTypeMap(int index, String type) { | ||
this.paramTypes.put(index, type); | ||
return this; | ||
} | ||
public MethodEL paramsNum(int i){ | ||
|
||
@SuppressWarnings("unused") | ||
public MethodEL paramsNum(int i) { | ||
this.paramsNum = i; | ||
return this; | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
public MethodEL isStatic(boolean flag) { | ||
this.isStatic = flag; | ||
return this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters