|
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.ClassSymbol
public class ClassSymbol
The ClassSymbol represents a class or interface
declaration.
Not supported yet: getComment/setComment
| 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. |
NameSymbol |
getBaseClass()
|
TypeSymbol |
getBaseClassType()
|
NameSymbol[] |
getBaseInterfaces()
|
TypeSymbol[] |
getBaseInterfaceTypes()
|
ClassBodySymbol |
getBody()
|
CatchClause[] |
getCatchClauses()
|
ClassSymbol[] |
getClasses()
|
int |
getClassIndex()
Retrieve the unique identifier for this ClassSymbol for this parse tree. |
CommentSymbol |
getComment()
Gets the comment symbol. |
MethodSymbol[] |
getConstructors()
|
Scope |
getEnclosingScope()
Retrieves the most tightly enclosing scope object. |
FieldSymbol[] |
getFields()
|
MemberSymbol[] |
getInitializers()
|
InnerClassSymbol[] |
getInnerClasses()
|
NameSymbol[] |
getLabels()
|
MemberSymbol[] |
getMembers()
|
MethodSymbol[] |
getMethods()
|
int |
getModifiers()
Gets the modifiers. |
NameSymbol |
getName()
Gets the name symbol. |
int |
getScopeType()
Returns the type of this scope according to the enumeration. |
VariableSymbol[] |
getVariables()
|
boolean |
isClass()
|
boolean |
isDeprecated()
|
boolean |
isHidden()
|
void |
setComment(CommentSymbol comment)
Sets the comment symbol. |
void |
setEnclosingScope(Scope scope)
Sets the enclosing scope to the given Scope object. |
void |
setModifiers(int modifiers)
Sets the modifiers. |
void |
setName(NameSymbol name)
Sets the name symbol. |
| 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 boolean isClass()
public NameSymbol getBaseClass()
public TypeSymbol getBaseClassType()
public ClassBodySymbol getBody()
public NameSymbol[] getBaseInterfaces()
public TypeSymbol[] getBaseInterfaceTypes()
public MemberSymbol[] getMembers()
public MethodSymbol[] getMethods()
public FieldSymbol[] getFields()
public MethodSymbol[] getConstructors()
public InnerClassSymbol[] getInnerClasses()
public MemberSymbol[] getInitializers()
public boolean isDeprecated()
public boolean isHidden()
public int getScopeType()
getScopeType in interface Scopepublic Scope getEnclosingScope()
getEnclosingScope in interface Scopepublic void setEnclosingScope(Scope scope)
setEnclosingScope 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 Scopepublic int getClassIndex()
public CommentSymbol getComment()
Commentable
getComment in interface Commentablepublic void setComment(CommentSymbol comment)
Commentable
setComment in interface Commentablepublic NameSymbol getName()
Nameable
getName in interface Nameablepublic void setName(NameSymbol name)
Nameable
setName in interface Nameablepublic int getModifiers()
HasModifiers
getModifiers in interface ScopegetModifiers in class HasModifierspublic void setModifiers(int modifiers)
HasModifiers
setModifiers in class HasModifiers
|
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 | |||||||||