# Interface: 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")
 
```

## Static Field: CALLTYPE_LAMBDA
Type: `int`

Constant value: `2`

## Static Field: CALLTYPE_REGULAR
Type: `int`

Constant value: `0`

## Static Field: CALLTYPE_STATIC
Type: `int`

Constant value: `3`

## Static Field: CALLTYPE_SUPER
Type: `int`

Constant value: `1`

## Method: addArgument
- parameter: `arg`, type: `com.pnfsoftware.jeb.core.units.code.java.IJavaExpression`

Description: Append an argument to this method call.
parameter: arg: 

## Method: duplicate
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaCall`


## Method: getArgument
- parameter: `index`, type: `int`
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaExpression`

Description: 
parameter: index: 
return: 

## Method: getArgumentCount
- return type: `int`

Description: Get the number of arguments.
return: the number of arguments

## Method: getArguments
- return type: `java.util.List<com.pnfsoftware.jeb.core.units.code.java.IJavaExpression>`

Description: 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.
return: the list of arguments, the elements in the list cannot be null

## Method: getCallType
- return type: `int`

Description: 
return: 

## Method: getMethod
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaMethod`

Description: Get the method element.
return: the method element

## Method: getMethodClass
- return type: `java.lang.String`

Description: 
return: 

## Method: getMethodName
- return type: `java.lang.String`

Description: Get the original method simple name.
return: 

## Method: getMethodSignature
- return type: `java.lang.String`

Description: Get the original method jvm name \(fully qualified canonical name\).
return: 

## Method: insertArgument
- parameter: `index`, type: `int`
- parameter: `arg`, type: `com.pnfsoftware.jeb.core.units.code.java.IJavaExpression`

Description: Insert an argument to the list of arguments.
parameter: index: 0\-based argument index
parameter: arg: mandatory argument to be inserted

## Method: isLambdaCall
- return type: `boolean`

Description: 
return: 

## Method: isStaticCall
- return type: `boolean`

Description: 
return: 

## Method: isSuperCall
- return type: `boolean`

Description: Determine if the call is to a super\-class method.
return: true if the method being called is a super\-class method

## Method: removeArgument
- parameter: `index`, type: `int`
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaExpression`

Description: Pull an argument from the list of arguments.
parameter: index: 0\-based argument index
return: the argument object that was pulled out

## Method: setArgument
- parameter: `index`, type: `int`
- parameter: `arg`, type: `com.pnfsoftware.jeb.core.units.code.java.IJavaExpression`

Description: 
parameter: index: 
parameter: arg: 

## Method: setMethod
- parameter: `method`, type: `com.pnfsoftware.jeb.core.units.code.java.IJavaMethod`
- parameter: `calltype`, type: `int`

Description: Set the method to be called.
parameter: method: mandatory method
parameter: calltype: one of `CALLTYPE_xxx` constant

