|
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.StatementSymbol
oracle.javatools.parser.java.v1.symbol.ControlStatement
public class ControlStatement
ControlStatement
represents all control statements and
the catch clause of a try statement (though at parse time, it also
represents other else and finally clauses).
Sometimes the clauses of a control statement are single statements or sometimes they're blocks. Some control statements require blocks, but for the same of keeping the interface simple, this class treats all clauses as statements upon which you can call isBlock() and getBlock().
Note: ForStatements do not have paren expressions. Refer to the ForStatement API for details on how to retrieve the expressions there. API
Field Summary | |
---|---|
static int |
CATCH
The control type for catch clauses. |
static int |
DO
The control type for do statements. |
static int |
FOR
The control type for for statements. |
static int |
IF
The control type for if statements. |
static int |
SWITCH
The control type for switch statements. |
static int |
SYNCHRONIZED
The control type for synchronized statements. |
static int |
TRY
The control type for try statements. |
static int |
WHILE
The control type for while statements. |
Fields inherited from class oracle.javatools.parser.java.v1.symbol.StatementSymbol |
---|
labels, PREFIX_ASSERT, PREFIX_BREAK, PREFIX_CONTINUE, PREFIX_RETURN, PREFIX_THROW, TYPE_BLOCK, TYPE_CONTROL, TYPE_EXPRESSION, TYPE_SQL, TYPE_SWITCH_CASE |
Fields inherited from interface oracle.javatools.parser.java.v1.symbol.Scope |
---|
SCOPE_BLOCK, SCOPE_CATCH, SCOPE_CLASS, SCOPE_MEMBER, SCOPE_METHOD, SCOPE_ROOT, SCOPE_STATEMENT, SCOPE_TRY |
Method Summary | |
---|---|
int |
getControlType()
See the enumeration constants below for what the control types are. |
StatementSymbol |
getEndClause()
If statements have else clauses and Try statements have finally clauses. |
ExpressionSymbol |
getParenExpr()
|
StatementSymbol |
getPrimaryClause()
|
int |
getStmtType()
|
Methods inherited from class oracle.javatools.parser.java.v1.symbol.StatementSymbol |
---|
findLabel, findType, findVariable, getBlock, getCatchClauses, getClasses, getEnclosingScope, getExprPrefix, getExprSymbol, getLabels, getModifiers, getOptionalExpr, getScopeType, getVariables, setEnclosingScope |
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 CATCH
public static final int DO
public static final int IF
public static final int FOR
public static final int SWITCH
public static final int SYNCHRONIZED
public static final int TRY
public static final int WHILE
Method Detail |
---|
public int getControlType()
public ExpressionSymbol getParenExpr()
public StatementSymbol getPrimaryClause()
public StatementSymbol getEndClause()
public int getStmtType()
getStmtType
in class StatementSymbol
|
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 |