|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.1.0) E13403-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.javatools.parser.util.ArrayListHeap
oracle.javatools.parser.java.v1.symbol.JavaSymbol
oracle.javatools.parser.java.v1.symbol.HasModifiers
oracle.javatools.parser.java.v1.symbol.CodeElement
public class CodeElement
A code element: a local class, a variable declaration, an expression, or a statement. It can only be an expression when it is an initialization expression for a 'for' loop. We use the term "code element" in order to follow O'Reilly's Java Reference. This class is essentially a union of the four types. Depending on the type, exactly one of getClassDefinition(), getVariables(), getExpression(), or getStatement() will return non-null.
Field Summary | |
---|---|
static int |
TYPE_EXPRESSION
This code element is an expression. |
static int |
TYPE_LOCAL_CLASS
This code element is a local class. |
static int |
TYPE_STATEMENT
This code element is a statement. |
static int |
TYPE_UNKNOWN
This code element is either uninitialized or has an unknown type. |
static int |
TYPE_VARDECL
This code element is a variable declaration. |
Method Summary | |
---|---|
ClassSymbol |
getClassDefinition()
Returns the class definition for this local class declaration. |
ExpressionSymbol |
getExpression()
Returns the expressions symbol for this initialization of for loop. |
StatementSymbol |
getStatement()
Returns the statement symbol for this statement. |
int |
getType()
Returns the type of this CodeElement. |
VariableSymbol[] |
getVariables()
Returns the variables declared in this local variable declaration. |
Methods inherited from class oracle.javatools.parser.java.v1.symbol.HasModifiers |
---|
getModifiers, setModifiers |
Methods inherited from class oracle.javatools.parser.java.v1.symbol.JavaSymbol |
---|
getCode, getEndOffset, getParent, getStartOffset |
Methods inherited from class oracle.javatools.parser.util.ArrayListHeap |
---|
allocArrayList, freeArrayList |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_UNKNOWN
public static final int TYPE_LOCAL_CLASS
public static final int TYPE_VARDECL
public static final int TYPE_STATEMENT
public static final int TYPE_EXPRESSION
Method Detail |
---|
public int getType()
public ClassSymbol getClassDefinition()
public VariableSymbol[] getVariables()
public StatementSymbol getStatement()
public ExpressionSymbol getExpression()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.1.0) E13403-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |