|
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.CodeBlockSymbol
public class CodeBlockSymbol
The CodeBlockSymbol represents code blocks for methods and statements. Each block is comprised of code elements. See CodeElement.
| Field Summary |
|---|
| 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. |
CatchClause[] |
getCatchClauses()
|
ClassSymbol[] |
getClasses()
|
CodeElement[] |
getCodeElements()
|
Scope |
getEnclosingScope()
Retrieves the most tightly enclosing scope object. |
ErrorSymbol[] |
getErrors()
|
NameSymbol[] |
getLabels()
|
int |
getModifiers()
If this is a ClassSymbol or a MemberSymbol, return the modifiers. |
int |
getScopeType()
Returns the type of this scope according to the enumeration. |
VariableSymbol[] |
getVariables()
|
boolean |
hasErrors()
|
boolean |
isFilledIn()
Depending on the type of parse the client requested, CodeBlockSymbols may be unfilled. |
void |
setEnclosingScope(Scope scope)
Sets the enclosing scope to the given Scope object. |
void |
setErrorArray(ErrorSymbol[] errorArray)
|
| 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 |
| Method Detail |
|---|
public CodeElement[] getCodeElements()
public boolean isFilledIn()
public boolean hasErrors()
public ErrorSymbol[] getErrors()
public final void setErrorArray(ErrorSymbol[] errorArray)
public int getScopeType()
getScopeType in interface Scopepublic Scope getEnclosingScope()
getEnclosingScope in interface Scopepublic void setEnclosingScope(Scope scope)
setEnclosingScope in interface Scopepublic int getModifiers()
getModifiers in interface Scopepublic boolean findLabel(java.lang.String name)
Scope
findLabel in interface Scopepublic VariableSymbol findVariable(java.lang.String name)
findVariable in interface Scopepublic ClassSymbol findType(java.lang.String name)
findType in interface Scopepublic NameSymbol[] getLabels()
getLabels in interface Scopepublic VariableSymbol[] getVariables()
getVariables in interface Scopepublic ClassSymbol[] getClasses()
getClasses in interface Scopepublic 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 | |||||||||