|
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.MemberSymbol
public class MemberSymbol
The MemberSymbol represents a class member
declaration.
Not supported yet: getType, Commentable interface
| Field Summary | |
|---|---|
static int |
CONSTRUCTOR
This member is a MethodSymbol representing a constructor. |
static MemberSymbol[] |
EMPTY_ARRAY
|
static int |
FIELD
This member is a FieldSymbol representing a field. |
static int |
INITIALIZER
This member is a MemberSymbol representing an initializer, static or instance. |
static int |
INNER_CLASS
This member is an InnerClassSymbol representing either an inner class or an inner interface. |
static int |
METHOD
This member is a MethodSymbol representing a method. |
| 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()
Gets the code block associated with this member. |
CatchClause[] |
getCatchClauses()
|
ClassSymbol[] |
getClasses()
|
CommentSymbol |
getComment()
Gets the comment symbol. |
Scope |
getEnclosingScope()
Retrieves the most tightly enclosing scope object. |
NameSymbol[] |
getLabels()
|
ClassSymbol[] |
getLocalClasses()
Gets all local and anonymous classes declared in this member. |
int |
getScopeType()
Returns the type of this scope according to the enumeration. |
VariableSymbol[] |
getVariables()
|
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. |
int |
whatAmI()
|
| Methods inherited from class oracle.javatools.parser.java.v1.symbol.HasModifiers |
|---|
getModifiers, setModifiers |
| 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 |
| Methods inherited from interface oracle.javatools.parser.java.v1.symbol.Scope |
|---|
getModifiers |
| Field Detail |
|---|
public static final MemberSymbol[] EMPTY_ARRAY
public static final int METHOD
public static final int CONSTRUCTOR
public static final int FIELD
public static final int INNER_CLASS
public static final int INITIALIZER
| Method Detail |
|---|
public int whatAmI()
public CodeBlockSymbol getBlock()
public ClassSymbol[] getLocalClasses()
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 CommentSymbol getComment()
Commentable
getComment in interface Commentablepublic void setComment(CommentSymbol comment)
Commentable
setComment in interface Commentable
|
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 | |||||||||