|
|||||||||
| 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.TypeSymbol
com.sun.tools.javac.code.Symbol.PackageSymbol
public static class Symbol.PackageSymbol
A class for package symbols
| 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 | |
|---|---|
Name |
fullname
|
Scope |
members_field
|
Symbol.ClassSymbol |
package_info
|
| 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.PackageSymbol(Name name,
Symbol owner)
|
|
Symbol.PackageSymbol(Name name,
Type type,
Symbol owner)
|
|
| Method Summary | ||
|---|---|---|
|
accept(ElementVisitor<R,P> v,
P p)
Applies a visitor to this element. |
|
|
accept(Symbol.Visitor<R,P> v,
P p)
|
|
boolean |
exists()
A package "exists" if a type or package that exists has been seen within it. |
|
long |
flags()
An accessor method for the flags of this symbol. |
|
List<Attribute.Compound> |
getAnnotationMirrors()
An accessor method for the attributes of this symbol. |
|
Symbol |
getEnclosingElement()
Returns the innermost element within which this element is, loosely speaking, enclosed. |
|
ElementKind |
getKind()
Returns the kind of this element. |
|
Name |
getQualifiedName()
The fully qualified name of this symbol. |
|
boolean |
isUnnamed()
Returns true is this is an unnamed package and false otherwise. |
|
Scope |
members()
If this is a class or package, its members, otherwise null. |
|
java.lang.String |
toString()
The Java source which this symbol represents. |
|
| Methods inherited from class com.sun.tools.javac.code.Symbol.TypeSymbol |
|---|
formFlatName, formFullName, getBounds, getEnclosedElements, getGenericElement, precedes |
| Methods inherited from class com.sun.tools.javac.code.Symbol |
|---|
addParentLevel, asMemberOf, asType, attribute, clone, complete, enclClass, erasure, externalType, flatName, getAnnotation, getLevel, getModifiers, getSimpleName, getTypeParameters, hasOuterInstance, isConstructor, isEnclosedBy, isInheritedIn, isInner, isInterface, isLocal, isMemberOf, isStatic, isSubClass, location, location, outermostClass, overrides, packge, 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 |
|---|
asType, equals, getAnnotation, getEnclosedElements, getModifiers, getSimpleName, hashCode |
| Field Detail |
|---|
public Scope members_field
public Name fullname
public Symbol.ClassSymbol package_info
| Constructor Detail |
|---|
public Symbol.PackageSymbol(Name name,
Type type,
Symbol owner)
public Symbol.PackageSymbol(Name name,
Symbol owner)
| Method Detail |
|---|
public java.lang.String toString()
Symbol
toString in class Symbolpublic Name getQualifiedName()
Symbol
getQualifiedName in interface PackageElementgetQualifiedName in class Symbolpublic boolean isUnnamed()
PackageElementtrue is this is an unnamed package and false otherwise.
isUnnamed in interface PackageElementtrue is this is an unnamed package and false otherwisepublic Scope members()
Symbol
members in class Symbolpublic long flags()
Symbol
flags in class Symbolpublic List<Attribute.Compound> getAnnotationMirrors()
Symbol
getAnnotationMirrors in interface ElementgetAnnotationMirrors in class SymbolElementFilterpublic boolean exists()
exists in class Symbolpublic ElementKind getKind()
Elementkind of this element.
getKind in interface ElementgetKind in class Symbol.TypeSymbolpublic Symbol getEnclosingElement()
Elementnull is returned.
null is returned.
getEnclosingElement in interface ElementgetEnclosingElement in class Symbolnull if there is noneElements.getPackageOf(javax.lang.model.element.Element)
public <R,P> R accept(ElementVisitor<R,P> v,
P p)
Element
accept in interface Elementaccept in class Symbol.TypeSymbolR - 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.TypeSymbol
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||