com.pnfsoftware.jeb.core.units.code.java.IJavaCall |
Java AST interface to represent a method invocation. This interface is not used to represent new-object or new-array creation.
Example:
foo(0, 1, "bar")
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | CALLTYPE_LAMBDA | ||||||||||
int | CALLTYPE_REGULAR | ||||||||||
int | CALLTYPE_STATIC | ||||||||||
int | CALLTYPE_SUPER |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.pnfsoftware.jeb.core.units.code.java.IJavaElement
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
addArgument(IJavaExpression arg)
Append an argument to this method call.
| ||||||||||
abstract IJavaCall |
duplicate()
Duplicate this element.
| ||||||||||
abstract IJavaExpression | getArgument(int index) | ||||||||||
abstract int |
getArgumentCount()
Get the number of arguments.
| ||||||||||
abstract List<IJavaExpression> |
getArguments()
Retrieve the list of arguments passed to the method.
| ||||||||||
abstract int | getCallType() | ||||||||||
abstract IJavaMethod |
getMethod()
Get the method element.
| ||||||||||
abstract String | getMethodClass() | ||||||||||
abstract String |
getMethodName()
Get the original method simple name.
| ||||||||||
abstract String |
getMethodSignature()
Get the original method jvm name (fully qualified canonical name).
| ||||||||||
abstract void |
insertArgument(int index, IJavaExpression arg)
Insert an argument to the list of arguments.
| ||||||||||
abstract boolean |
isCustomCall()
This method is deprecated.
will be removed - use
isLambdaCall()
| ||||||||||
abstract boolean | isLambdaCall() | ||||||||||
abstract boolean | isStaticCall() | ||||||||||
abstract boolean |
isSuperCall()
Determine if the call is to a super-class method.
| ||||||||||
abstract IJavaExpression |
removeArgument(int index)
Pull an argument from the list of arguments.
| ||||||||||
abstract void | setArgument(int index, IJavaExpression arg) | ||||||||||
abstract void |
setMethod(IJavaMethod method, int calltype)
Set the method to be called.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.pnfsoftware.jeb.core.units.code.java.IJavaElement
| |||||||||||
From interface
com.pnfsoftware.jeb.core.units.code.java.IJavaExpression
| |||||||||||
From interface
com.pnfsoftware.jeb.core.units.code.java.IJavaStatement
|
Duplicate this element.
Get the number of arguments.
Retrieve the list of arguments passed to the method.
If the method being called is a virtual method, the first argument will be an expression representing the object on which this method is called.
Get the original method simple name.
Get the original method jvm name (fully qualified canonical name).
Insert an argument to the list of arguments.
index | 0-based argument index |
---|---|
arg | mandatory argument to be inserted |
Determine if the call is to a super-class method.
Pull an argument from the list of arguments.
index | 0-based argument index |
---|
Set the method to be called.
method | mandatory method |
---|---|
calltype | one of CALLTYPE_xxx constant
|