Extension SDK 10.1.2


oracle.jdeveloper.jot
Interface JotAllocation

All Superinterfaces:
JotCodeElement, 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

Field Summary

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.JotCodeElement
addPrecedingComment, childrenContainErrors, delete, getContainingJotFile, getLeftWhitespace, getLength, getRightWhitespace, isInError, isSource, setLeftWhitespace, setRightWhitespace

Methods inherited from interface oracle.jdeveloper.jot.JotElement
getChildren, getContainedElements, getElementName, getElementType, getEndOffset, getID, getJotWorkArea, getParent, getStartOffset, isExistent, isReadOnly, isStructureKnown, setParent

Method Detail

getObjectType

public JotType getObjectType()
                      throws JotInvalidElementException
Retrieves the type of this allocation expression.
Throws:
JotInvalidElementException

setObjectType

public void setObjectType(java.lang.String typeName)
                   throws JotInvalidElementException
Sets the type of this allocation expression.
Throws:
JotInvalidElementException

Extension SDK


Copyright © 1997, 2004, Oracle. All rights reserved.