|
||||||||||
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.MethodSymbol, Symbol.OperatorSymbol, Symbol.PackageSymbol, Symbol.TypeSymbol, Symbol.VarSymbol |
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, 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. |
|
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 |
---|
asMemberOf, asType, attribute, clone, complete, enclClass, erasure, externalType, flatName, getAnnotation, getModifiers, getSimpleName, getTypeParameters, hasOuterInstance, isConstructor, isEnclosedBy, isInheritedIn, isInner, isInterface, isLocal, isMemberOf, isStatic, isSubClass, location, location, outermostClass, overrides, packge |
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 Symbol
public Name getQualifiedName()
Symbol
getQualifiedName
in interface PackageElement
getQualifiedName
in class Symbol
public boolean isUnnamed()
PackageElement
true
is this is an unnamed package and false
otherwise.
isUnnamed
in interface PackageElement
true
is this is an unnamed package and false
otherwisepublic Scope members()
Symbol
members
in class Symbol
public long flags()
Symbol
flags
in class Symbol
public List<Attribute.Compound> getAnnotationMirrors()
Symbol
getAnnotationMirrors
in interface Element
getAnnotationMirrors
in class Symbol
ElementFilter
public boolean exists()
exists
in class Symbol
public ElementKind getKind()
Element
kind
of this element.
getKind
in interface Element
getKind
in class Symbol.TypeSymbol
public Symbol getEnclosingElement()
Element
null
is returned.
null
is returned.
getEnclosingElement
in interface Element
getEnclosingElement
in class Symbol
null
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 Element
accept
in class Symbol.TypeSymbol
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |