com.pnfsoftware.jeb.core.units.code.java.IJavaMethod |
Java AST interface to represent a Java method.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.pnfsoftware.jeb.core.units.code.java.IJavaElement
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract boolean |
deleteStatement(IJavaStatement stm)
Delete a statement by reference.
| ||||||||||
abstract IJavaMethod |
duplicate()
Duplicate this element.
| ||||||||||
abstract void | fromFlatList(List<IJavaStatement> list) | ||||||||||
abstract void | generate(JavaOutputSink out, int genkind) | ||||||||||
abstract void | generate(JavaOutputSink out, boolean bodyOnly) | ||||||||||
abstract int | getAccessFlags() | ||||||||||
abstract List<String> | getAnonymousClassSignatures() | ||||||||||
abstract List<IJavaClass> | getAnonymousClasses() | ||||||||||
abstract IJavaBlock |
getBody()
Get the body of the method.
| ||||||||||
abstract IJavaType |
getClassType()
Get the type of the entity containing this method.
| ||||||||||
abstract IJavaExpression |
getDefaultValue()
Get the default value provided by this method if there is one.
| ||||||||||
abstract IJavaIdentifierManager | getIdentifierManager() | ||||||||||
abstract int | getIndexOfFirstVisibleParameter() | ||||||||||
abstract List<String> | getInnerClassSignatures() | ||||||||||
abstract List<IJavaClass> | getInnerClasses() | ||||||||||
abstract IJavaLabelFactory | getLabelFactory() | ||||||||||
abstract List<IJavaAnnotation> | getMethodAnnotations() | ||||||||||
abstract String |
getName()
Get the original method name.
| ||||||||||
abstract IJavaDefinition | getParameter(int index) | ||||||||||
abstract List<IJavaAnnotation> | getParameterAnnotations(int index) | ||||||||||
abstract int | getParameterCount() | ||||||||||
abstract List<IJavaDefinition> |
getParameters()
Get the parameters of the method.
| ||||||||||
abstract IJavaType |
getReturnType()
Get the return type of the method.
| ||||||||||
abstract String |
getSignature()
Get the original method signature.
| ||||||||||
abstract List<IJavaStatement> |
getStatements()
Walk the tree and get the ordered list of all (non-pseudo) statements that make up the
method.
| ||||||||||
abstract int | getVisibleParameterCount() | ||||||||||
abstract List<IJavaDefinition> | getVisibleParameters() | ||||||||||
abstract boolean | isAbstract() | ||||||||||
abstract boolean | isClassConstructor() | ||||||||||
abstract boolean | isClassInitializer() | ||||||||||
abstract boolean | isConstructor() | ||||||||||
abstract boolean | isEmpty() | ||||||||||
abstract boolean | isInner() | ||||||||||
abstract boolean | isNative() | ||||||||||
abstract boolean | isPrivate() | ||||||||||
abstract boolean | isProtected() | ||||||||||
abstract boolean | isPublic() | ||||||||||
abstract boolean | isSecondParameterOuterClassReference() | ||||||||||
abstract boolean |
isStatic()
Determine whether this method is a static method.
| ||||||||||
abstract boolean | isSynthetic() | ||||||||||
abstract void | markSecondParameterOuterClassReference() | ||||||||||
abstract void | setDefaultValue(IJavaExpression defaultValue) | ||||||||||
abstract void | setIndexOfFirstVisibleParameter(int index) | ||||||||||
abstract List<IJavaStatement> | toFlatList() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.pnfsoftware.jeb.core.units.code.java.IJavaDecompilableElement
| |||||||||||
From interface
com.pnfsoftware.jeb.core.units.code.java.IJavaElement
|
Delete a statement by reference. This method performs a deep search within the entire method. This works because no method should contain the same statement (in the sense, same reference) twice.
stm | the statement to delete |
---|
Duplicate this element.
genkind | 0= regular method; 1= just the body of the method; 2= the method is a lambda |
---|
Get the default value provided by this method if there is one.
Get the original method name. The returned name is a simple name, without parameter, return, or type information.
Get the parameters of the method.
Note: If the method is non-static, the first parameter in the list would be `this`.
Get the return type of the method.
Get the original method signature.
Walk the tree and get the ordered list of all (non-pseudo) statements that make up the method.
Determine whether this method is a static method.