|
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 Scope
public Scope getEnclosingScope()
getEnclosingScope
in interface Scope
public void setEnclosingScope(Scope scope)
setEnclosingScope
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 NameSymbol[] getLabels()
getLabels
in interface Scope
public VariableSymbol[] getVariables()
getVariables
in interface Scope
public ClassSymbol[] getClasses()
getClasses
in interface Scope
public CatchClause[] getCatchClauses()
getCatchClauses
in interface Scope
public int getClassIndex()
public CommentSymbol getComment()
Commentable
getComment
in interface Commentable
public void setComment(CommentSymbol comment)
Commentable
setComment
in interface Commentable
public NameSymbol getName()
Nameable
getName
in interface Nameable
public void setName(NameSymbol name)
Nameable
setName
in interface Nameable
public int getModifiers()
HasModifiers
getModifiers
in interface Scope
getModifiers
in class HasModifiers
public 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 |