public interface

IJavaNew

implements IJavaExpression IJavaStatement
com.pnfsoftware.jeb.core.units.code.java.IJavaNew

Class Overview

Java AST interface to represent the instantiation of a new non-array object.

Example:

 x = new SomeObject(...);
     ^^^^^^^^^^^^^^^^^^^
 

Summary

[Expand]
Inherited Constants
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaElement
Public Methods
abstract IJavaNew duplicate()
Duplicate this element.
abstract List<IJavaExpression> getArguments()
Get the constructor arguments.
abstract IJavaMethod getConstructor()
Get the constructor method used in this new statement.
abstract String getConstructorName()
Get the original constructor simple name.
abstract String getConstructorSignature()
Get the original constructor jvm name (fully qualified canonical name).
abstract IJavaClass getGeneratedAnonymousClass(JavaOutputSink out, int[] aAnonArgStart)
Reserved for internal use.
abstract IJavaMethod getMethod()
This method is deprecated. use getConstructor()
abstract IJavaType getType()
Get the type of object being instantiated.
[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

Public Methods

public abstract IJavaNew duplicate ()

Duplicate this element.

Returns
  • a (possibly) duplicated object of the same type

public abstract List<IJavaExpression> getArguments ()

Get the constructor arguments.

Returns
  • the list of arguments

public abstract IJavaMethod getConstructor ()

Get the constructor method used in this new statement.

Returns
  • the constructor method

public abstract String getConstructorName ()

Get the original constructor simple name.

public abstract String getConstructorSignature ()

Get the original constructor jvm name (fully qualified canonical name).

public abstract IJavaClass getGeneratedAnonymousClass (JavaOutputSink out, int[] aAnonArgStart)

Reserved for internal use.

public abstract IJavaMethod getMethod ()

This method is deprecated.
use getConstructor()

public abstract IJavaType getType ()

Get the type of object being instantiated.

Returns
  • the type string