|
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.RootSymbol
public class RootSymbol
The RootSymbol represents the root node for a complete Java source file. From the root, you may retrieve the package, the imports, and all top-level classes and interfaces. For .sqlj parses, you may optionally be able to retrieve a string representing the sql context.
| 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()
|
Scope |
getEnclosingScope()
Retrieves the most tightly enclosing scope object. |
ErrorSymbol[] |
getErrors()
|
ImportSymbol[] |
getImports()
|
NameSymbol[] |
getLabels()
|
int |
getModifiers()
If this is a ClassSymbol or a MemberSymbol, return the modifiers. |
PackageSymbol |
getPackage()
|
int |
getScopeType()
Returns the type of this scope according to the enumeration. |
NameSymbol |
getSqlContext()
|
VariableSymbol[] |
getVariables()
|
boolean |
hasErrors()
|
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 PackageSymbol getPackage()
public ImportSymbol[] getImports()
public ClassSymbol[] getClasses()
getClasses in interface Scopepublic NameSymbol getSqlContext()
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 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 | |||||||||