|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A JotBlockElement
is an element that can be contained within a code block. A JotBlockElement
is one of: a variable declaration; a local class declaratation, or a statement. The type of the element can be determined by calling the getElementType() method.
JotLocalVariableDeclaration
, JotLocalClass
, JotStatement
, "Section 14.2 of the Java Language Specification"Field Summary | |
static int |
LOCAL_CLASS_TYPE The element type value representing a local class declaration. |
static int |
STATEMENT_TYPE The element type value representing a statement. |
static int |
VARIABLE_DECLARATION_TYPE The element type value representing a variable declaration. |
Method Summary | |
JotLocalClass |
getAsLocalClass() Retrieves the JotLocalClass representing this block element if it is a local class declaration. |
JotStatement |
getAsStatement() Retrieves the JotStatement representing this block element if it is a statement. |
JotLocalVariableDeclaration |
getAsVariableDeclaration() Retrieves the JotLocalVariableDeclaration representing this block element if it is a variable declaration. |
int |
getElementType() Retrieves the type of element represented by this JotBlockElement. |
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, getEndOffset, getID, getJotWorkArea, getParent, getStartOffset, isExistent, isReadOnly, isStructureKnown, setParent |
Field Detail |
public static final int VARIABLE_DECLARATION_TYPE
getElementType()
, Constant Field Valuespublic static final int LOCAL_CLASS_TYPE
getElementType()
, Constant Field Valuespublic static final int STATEMENT_TYPE
getElementType()
, Constant Field ValuesMethod Detail |
public int getElementType() throws JotInvalidElementException
getElementType
in interface JotElement
JotInvalidElementException
VARIABLE_DECLARATION_TYPE
, LOCAL_CLASS_TYPE
, STATEMENT_TYPE
public JotLocalVariableDeclaration getAsVariableDeclaration()
JotLocalVariableDeclaration
representing this block element if it is a variable declaration.JotLocalVariableDeclaration
instance if this block element is a variable declaration, or null
otherwise.public JotLocalClass getAsLocalClass()
JotLocalClass
representing this block element if it is a local class declaration.JotLocalClass
instance if this block element is a local class declaration, or null
otherwise.public JotStatement getAsStatement()
JotStatement
representing this block element if it is a statement.JotStatement
instance if this block element is a statement, or null
otherwise.
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.