|
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
public class StatementSymbol
A statement can be only one of the following: an expression statement, a block, or a control statement. Blocks and control statements may also have one break/continue label applied.
Field Summary | |
---|---|
protected java.util.ArrayList |
labels
|
static int |
PREFIX_ASSERT
This is an 'assert' expression statement. |
static int |
PREFIX_BREAK
This is a 'break' expression statement. |
static int |
PREFIX_CONTINUE
This is a 'continue' expression statement. |
static int |
PREFIX_RETURN
This is a 'return' expression statement. |
static int |
PREFIX_THROW
This is a 'throw' expression statement. |
static int |
TYPE_BLOCK
This statement is a block. |
static int |
TYPE_CONTROL
This statement is an instance of a ControlStatement. |
static int |
TYPE_EXPRESSION
This statement is an expression statement. |
static int |
TYPE_SQL
This statement is a sql statement for SQLJ sources and is an instance of a SqlStatement. |
static int |
TYPE_SWITCH_CASE
This statement is a case/default label for switch blocks. |
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 | |
---|---|
boolean |
findLabel(java.lang.String name)
Note that only STATEMENT scopes may return true for findLabel. |
ClassSymbol |
findType(java.lang.String name)
If this scope contains local classes or declared member inner classes, check to see if one exists that matches the given name. |
VariableSymbol |
findVariable(java.lang.String name)
If this scope contains local variables, method parameters, or declared member fields, check to see if one exists that matches the given name. |
CodeBlockSymbol |
getBlock()
If this is a block statement, get the block for this statement. |
CatchClause[] |
getCatchClauses()
|
ClassSymbol[] |
getClasses()
|
Scope |
getEnclosingScope()
Retrieves the most tightly enclosing scope object. |
int |
getExprPrefix()
Returns a nonzero value if this is a return, throw, break, or continue expression statement. |
ExpressionSymbol |
getExprSymbol()
Returns the expression for this expression statement. |
NameSymbol[] |
getLabels()
|
int |
getModifiers()
If this is a ClassSymbol or a MemberSymbol, return the modifiers. |
ExpressionSymbol |
getOptionalExpr()
Only valid for the 'assert' expression statement. |
int |
getScopeType()
Returns the type of this scope according to the enumeration. |
int |
getStmtType()
|
VariableSymbol[] |
getVariables()
|
void |
setEnclosingScope(Scope scope)
Sets the enclosing scope to the given Scope object. |
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_EXPRESSION
public static final int TYPE_CONTROL
public static final int TYPE_BLOCK
public static final int TYPE_SWITCH_CASE
public static final int TYPE_SQL
public static final int PREFIX_RETURN
public static final int PREFIX_THROW
public static final int PREFIX_BREAK
public static final int PREFIX_CONTINUE
public static final int PREFIX_ASSERT
protected java.util.ArrayList labels
Method Detail |
---|
public int getStmtType()
public CodeBlockSymbol getBlock()
public ExpressionSymbol getExprSymbol()
public ExpressionSymbol getOptionalExpr()
public int getExprPrefix()
public NameSymbol[] getLabels()
getLabels
in interface Scope
public int getScopeType()
getScopeType
in interface Scope
public Scope getEnclosingScope()
getEnclosingScope
in interface Scope
public void setEnclosingScope(Scope scope)
setEnclosingScope
in interface Scope
public int getModifiers()
getModifiers
in interface Scope
public boolean findLabel(java.lang.String name)
Scope
findLabel
in interface Scope
public VariableSymbol findVariable(java.lang.String name)
findVariable
in interface Scope
public ClassSymbol findType(java.lang.String name)
findType
in interface Scope
public VariableSymbol[] getVariables()
getVariables
in interface Scope
public ClassSymbol[] getClasses()
getClasses
in interface Scope
public CatchClause[] getCatchClauses()
getCatchClauses
in interface Scope
|
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 |