public interface

IJavaNewArray

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

Class Overview

Java AST interface to represent the instantiation of an array object.

Summary

[Expand]
Inherited Constants
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaElement
Public Methods
abstract IJavaNewArray duplicate()
Duplicate this element.
abstract List<IJavaExpression> getInitialValues()
Get the list of initial values for the array.
abstract List<IJavaExpression> getSizes()
Get the list of dimensions for the array.
abstract IJavaType getType()
Get the type of array being instantiated.
abstract boolean hasInitialValues()
[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 IJavaNewArray duplicate ()

Duplicate this element.

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

public abstract List<IJavaExpression> getInitialValues ()

Get the list of initial values for the array.

Returns
  • the list of initial values, may be null if the array is created by sizes

public abstract List<IJavaExpression> getSizes ()

Get the list of dimensions for the array.

Returns
  • the list of dimensions, may be null if the array is created by providing a list of initial values

public abstract IJavaType getType ()

Get the type of array being instantiated.

Returns
  • the type string

public abstract boolean hasInitialValues ()