|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface provides methods for tools to extract values from assignments, arguments, initializers, and other types of expressions.
An expression might be any of the following (list is not exhaustive):
Method Summary | |
JotAssignment |
getAssignment()
Returns the JotAssignment instance representing this expression. |
JotCondition |
getCondition()
Returns the JotCondition instance representing this expression. |
JotMethodCall |
getMethodCall()
Returns the JotMethodCall instance representing this expression. |
JotNew |
getNew()
Returns the JotNew instance representing this expression. |
JotExpression |
getOperation()
Returns the JotOperation instance representing this expression. |
JotValue |
getValue()
Returns a JotValue instance which contains the value of this expression. |
JotVariable |
getVariable()
Returns the JotVariable instance representing this expression. |
boolean |
isConstant()
Returns true if this expression is constant. |
boolean |
isNull()
Returns true if the text of this expression is null . |
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 JotValue getValue() throws java.lang.IllegalArgumentException
public boolean isConstant()
true
if this expression is constant.public boolean isNull()
true
if the text of this expression is null
.
Note that this method will not evaluate the expression, so it will return
false
even for expressions that evaluate to null
.public JotVariable getVariable()
null
.public JotAssignment getAssignment()
null
.public JotMethodCall getMethodCall()
null
.public JotNew getNew()
null
.public JotCondition getCondition()
null
.public JotExpression getOperation()
null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |