|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.tools.javac.code.Symbol
com.sun.tools.javac.code.Symbol.DelegatedSymbol
public static class Symbol.DelegatedSymbol
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sun.tools.javac.code.Symbol |
|---|
Symbol.ClassSymbol, Symbol.Completer, Symbol.CompletionFailure, Symbol.DelegatedSymbol, Symbol.Level, Symbol.MethodSymbol, Symbol.OperatorSymbol, Symbol.PackageSymbol, Symbol.TypeSymbol, Symbol.VarSymbol, Symbol.Visitor<R,P> |
| Field Summary | |
|---|---|
protected Symbol |
other
|
| Fields inherited from class com.sun.tools.javac.code.Symbol |
|---|
attributes_field, completer, erasure_field, flags_field, kind, level, name, owner, type |
| Constructor Summary | |
|---|---|
Symbol.DelegatedSymbol(Symbol other)
|
|
| Method Summary | ||
|---|---|---|
|
accept(ElementVisitor<R,P> v,
P p)
Applies a visitor to this element. |
|
|
accept(Symbol.Visitor<R,P> v,
P p)
|
|
Symbol |
asMemberOf(Type site,
Types types)
The (variable or method) symbol seen as a member of given class type`site' (this might change the symbol's type). |
|
void |
complete()
Complete the elaboration of this symbol's definition. |
|
Symbol.ClassSymbol |
enclClass()
The closest enclosing class of this symbol's declaration. |
|
Type |
erasure(Types types)
The symbol's erased type. |
|
Type |
externalType(Types types)
The external type of a symbol. |
|
Name |
flatName()
The fully qualified name of this symbol after converting to flat representation. |
|
Name |
getQualifiedName()
The fully qualified name of this symbol. |
|
boolean |
hasOuterInstance()
An inner class has an outer instance if it is not an interface it has an enclosing instance class which might be referenced from the class. |
|
boolean |
isConstructor()
Is this symbol a constructor? |
|
boolean |
isEnclosedBy(Symbol.ClassSymbol clazz)
Is this symbol the same as or enclosed by the given class? |
|
boolean |
isInheritedIn(Symbol clazz,
Types types)
Is this symbol inherited into a given class? PRE: If symbol's owner is a interface, it is already assumed that the interface is a superinterface of given class. |
|
boolean |
isInner()
A class is an inner class if it it has an enclosing instance class. |
|
boolean |
isLocal()
Is this symbol declared (directly or indirectly) local to a method or variable initializer? Also includes fields of inner classes which are in turn local to a method or variable initializer. |
|
boolean |
isMemberOf(Symbol.TypeSymbol clazz,
Types types)
Fully check membership: hierarchy, protection, and hiding. |
|
boolean |
isSubClass(Symbol base,
Types types)
Is this symbol a subclass of `base'? Only defined for ClassSymbols. |
|
Symbol |
location()
A Java source description of the location of this symbol; used for error reporting. |
|
Symbol |
location(Type site,
Types types)
|
|
Scope |
members()
If this is a class or package, its members, otherwise null. |
|
Symbol.ClassSymbol |
outermostClass()
The outermost class which indirectly owns this symbol. |
|
Symbol.PackageSymbol |
packge()
The package which indirectly owns this symbol. |
|
java.lang.String |
toString()
The Java source which this symbol represents. |
|
| Methods inherited from class com.sun.tools.javac.code.Symbol |
|---|
addParentLevel, asType, attribute, clone, exists, flags, getAnnotation, getAnnotationMirrors, getEnclosedElements, getEnclosingElement, getKind, getLevel, getModifiers, getSimpleName, getTypeParameters, isInterface, isStatic, overrides, removeParentLevel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.lang.model.element.Element |
|---|
equals, hashCode |
| Field Detail |
|---|
protected Symbol other
| Constructor Detail |
|---|
public Symbol.DelegatedSymbol(Symbol other)
| Method Detail |
|---|
public java.lang.String toString()
Symbol
toString in class Symbolpublic Symbol location()
Symbol
location in class Symbol
public Symbol location(Type site,
Types types)
location in class Symbolpublic Type erasure(Types types)
Symbol
erasure in class Symbolpublic Type externalType(Types types)
Symbol
externalType in class Symbolpublic boolean isLocal()
Symbol
isLocal in class Symbolpublic boolean isConstructor()
Symbol
isConstructor in class Symbolpublic Name getQualifiedName()
Symbol
getQualifiedName in class Symbolpublic Name flatName()
Symbol
flatName in class Symbolpublic Scope members()
Symbol
members in class Symbolpublic boolean isInner()
Symbol
isInner in class Symbolpublic boolean hasOuterInstance()
Symbol
hasOuterInstance in class SymbolSymbol.isInner()public Symbol.ClassSymbol enclClass()
Symbol
enclClass in class Symbolpublic Symbol.ClassSymbol outermostClass()
Symbol
outermostClass in class Symbolpublic Symbol.PackageSymbol packge()
Symbol
packge in class Symbol
public boolean isSubClass(Symbol base,
Types types)
Symbol
isSubClass in class Symbol
public boolean isMemberOf(Symbol.TypeSymbol clazz,
Types types)
Symbol
isMemberOf in class Symbolpublic boolean isEnclosedBy(Symbol.ClassSymbol clazz)
Symbol
isEnclosedBy in class Symbol
public boolean isInheritedIn(Symbol clazz,
Types types)
Symbol
isInheritedIn in class Symbolclazz - The class for which we want to establish membership.
This must be a subclass of the member's owner.
public Symbol asMemberOf(Type site,
Types types)
Symbol
asMemberOf in class Symbol
public void complete()
throws Symbol.CompletionFailure
Symbol
complete in class SymbolSymbol.CompletionFailure
public <R,P> R accept(ElementVisitor<R,P> v,
P p)
Element
R - the return type of the visitor's methodsP - the type of the additional parameter to the visitor's methodsv - the visitor operating on this elementp - additional parameter to the visitor
public <R,P> R accept(Symbol.Visitor<R,P> v,
P p)
accept in class Symbol
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||