public interface

IJavaCall

implements IJavaExpression IStatement
com.pnfsoftware.jeb.core.units.code.java.IJavaCall

Class Overview

Java AST interface to represent method invocation.

Example: foo(0, 1, "bar")

See Also

Summary

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

Public Methods

public abstract void addArgument (IJavaExpression arg)

Append an argument to this method call.

public abstract IJavaExpression getArgument (int index)

public abstract List<? extends IJavaExpression> getArguments ()

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.

Returns
  • the list of arguments, the elements in the list cannot be null

public abstract IJavaMethod getMethod ()

Get the method element.

Returns
  • the method element

public abstract void insertArgument (int index, IJavaExpression arg)

Insert an argument to the list of arguments.

Parameters
index 0-based argument index
arg mandatory argument to be inserted

public abstract boolean isSuperCall ()

Determine if the call is to a super-class method.

Returns
  • true if the method being called is a super-class method

public abstract IJavaExpression removeArgument (int index)

Pull an argument from the list of arguments.

Parameters
index 0-based argument index
Returns
  • the argument object that was pulled out

public abstract void setMethod (IJavaMethod method, boolean superCall)

Set the method to be called.

Parameters
method mandatory method
superCall indicates if the method being called is a super-class method