oracle.jdeveloper.jot
Interface JotAllocation
- All Superinterfaces:
- JotElement, JotExpression, JotStatementExpression
- All Known Subinterfaces:
- JotAnonymousClass, JotArrayAllocation, JotClassAllocation
- public interface JotAllocation
- extends JotStatementExpression
The JotAllocation
interface represents an allocation
expression. Allocation expressions are used to allocate new objects.
Examples of allocation expressions include:
new Panel()
new String[5]
new Runnable() { public void run() { ... } }
An allocation expression is a primary expression. An allocation expression
evaluates to a new object
- Since:
- 5.0
- See Also:
- "Section 15.9 of the Java Language Specification Second Edition",
"Section 15.10 of the Java Language Specification Second Edition",
JotClassAllocation
,
JotArrayAllocation
,
JotAnonymousClass
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 |
JotType |
getObjectType()
Retrieves the type of this allocation expression. |
void |
setObjectType(java.lang.String typeName)
Sets the type of this allocation 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 |
getObjectType
public JotType getObjectType()
- Retrieves the type of this allocation expression.
setObjectType
public void setObjectType(java.lang.String typeName)
- Sets the type of this allocation expression.