| com.pnfsoftware.jeb.core.units.code.java.IJavaCall |
Java AST interface to represent method invocation.
Example: foo(0, 1, "bar")
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract void |
addArgument(IJavaExpression arg)
Append an argument to this method call.
| ||||||||||
| abstract IJavaExpression | getArgument(int index) | ||||||||||
| abstract List<? extends IJavaExpression> |
getArguments()
Retrieve the list of arguments passed to the method.
| ||||||||||
| abstract IJavaMethod |
getMethod()
Get the method element.
| ||||||||||
| abstract void |
insertArgument(int index, IJavaExpression arg)
Insert an argument to the list of arguments.
| ||||||||||
| 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 |
setMethod(IJavaMethod method, boolean superCall)
Set the method to be called.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.pnfsoftware.jeb.core.units.code.java.IJavaElement
| |||||||||||
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.
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 |
|---|---|
| superCall | indicates if the method being called is a super-class method |