oracle.jdeveloper.jot
Interface JotPrimaryExpression
- All Superinterfaces:
- JotElement, JotExpression
- public interface JotPrimaryExpression
- extends JotExpression
A JotPrimaryExpression
represents a primary expression.
Primary expressions are the most basic types of expressions; all expressions
can be resolved to primary expressions and operators.
- Since:
- 5.0
- See Also:
- "Section 15.8 of the Java Language Specification Second Edition"
Fields inherited from interface oracle.jdeveloper.jot.JotExpression |
ANONYMOUS_CLASS_ALLOCATION_EXPRESSION, ARRAY_ALLOCATION_EXPRESSION, ARRAY_DEREFERENCE_EXPRESSION, ARRAY_INITIALIZER_EXPRESSION, ASSIGNMENT_EXPRESSION, CLASS_ALLOCATION_EXPRESSION, INFIX_EXPRESSION, METHOD_CALL_EXPRESSION, NESTED_EXPRESSION, POST_INC_OR_DEC_EXPRESSION, PRE_INC_OR_DEC_EXPRESSION, PRIMARY_EXPRESSION, QUESTION_EXPRESSION, TYPECAST_EXPRESSION, UNARY_EXPRESSION, UNCATEGORIZED_EXPRESSION |
Method Summary |
boolean |
isLiteral()
Whether this primary expression represents a literal. |
void |
setExpressionString(java.lang.String exp)
Sets the new expression String of this expression. |
Methods inherited from interface oracle.jdeveloper.jot.JotExpression |
getAsAnonymousClass, getAsArrayAllocation, getAsArrayDereference, getAsArrayInitializer, getAsAssignment, getAsClassAllocation, getAsInfixExpression, getAsMethodCall, getAsNestedExpression, getAsPostIncrementOrDecrement, getAsPreIncrementOrDecrement, getAsPrimaryExpression, getAsQuestionExpression, getAsTypecast, getAsUnaryExpression, getExpressionString, getExpressionType, getMinimumReferenceName, isParenthesized, renameObjectReference, resolveTypeReference, setParenthesized |
Methods inherited from interface oracle.jdeveloper.jot.JotElement |
getElementName, getElementType, getEndOffset, getID, getJotWorkArea, getParent, getStartOffset, isExistent, isReadOnly, isStructureKnown, setParent |
setExpressionString
public void setExpressionString(java.lang.String exp)
- Sets the new expression String of this expression. The type of the
expression string must be a primary expression.
- Parameters:
exp
- the new expression string
isLiteral
public boolean isLiteral()
- Whether this primary expression represents a literal. A literal
can denote an integer (5), a floating-point number (5.0), a
boolean (false), a character ('x'), a String ("abc"), or
null.
- Returns:
true
if this expression represents a literal.
Copyright ©1997, 2003, Oracle. All rights reserved.