public class New extends Statement implements IExpression
This AST element represents the instantiation of a new non-array object.
Note: Currently, new constructs are read-only elements.
NewArray| Modifier and Type | Method and Description |
|---|---|
java.util.List<IExpression> |
getArguments()
Get the constructor arguments.
|
Method |
getMethod()
Get the constructor method used in this new statement.
|
java.lang.String |
getType()
Get the type of object being instantiated.
|
attachTag, getSubElements, isCompound, replaceSubElement, retrieveTagequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitattachTag, getSubElements, replaceSubElement, retrieveTagpublic java.lang.String getType()
Get the type of object being instantiated.
public Method getMethod()
Get the constructor method used in this new statement.
public java.util.List<IExpression> getArguments()
Get the constructor arguments.