|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents a Java new
expression. See sections
15.8 & 15.9 of the Java Language Specification for more information. For
array initializer expressions, see JotInitializer
Method Summary | |
JotExpression |
addArgument(JotMarker marker,
boolean before,
java.lang.String arg)
Adds a JotExpression object that represents an argument to the invoked constructor unless the instantiated object is of array type. |
JotClass |
getAnonymousClass()
If the new object is an instance of an anonymous class, returns the anonymous class' definition. |
JotExpression[] |
getArguments()
Returns an array of JotExpression objects which represents the arguments to the invoked constructor. |
JotType |
getType()
Returns the type of the instantiated object. |
boolean |
isArray()
Returns true if the instantiated object is of array type. |
void |
removeArgument(JotExpression arg)
Removes the specified argument from the constructor. |
void |
setType(java.lang.String type)
Specifies the type of the instantiated object. |
Methods inherited from interface com.borland.jbuilder.jot.JotExpression |
getAssignment, getCondition, getMethodCall, getNew, getOperation, getValue, getVariable, isConstant, isNull |
Methods inherited from interface com.borland.jbuilder.jot.JotMarker |
addUserData, getEndPosition, getStartPosition, getUserData |
Methods inherited from interface com.borland.jbuilder.jot.JotSourceElement |
getIndentLevel, getParent, getText, isModified, setModified, setText |
Method Detail |
public JotType getType()
public void setType(java.lang.String type)
public JotClass getAnonymousClass()
public boolean isArray()
public JotExpression[] getArguments()
public JotExpression addArgument(JotMarker marker, boolean before, java.lang.String arg)
public void removeArgument(JotExpression arg)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |