public static class Symbol.VarSymbol extends Symbol implements VariableElement
Symbol.ClassSymbol, Symbol.Completer, Symbol.CompletionFailure, Symbol.DelegatedSymbol<T extends Symbol>, Symbol.DynamicMethodSymbol, Symbol.MethodSymbol, Symbol.OperatorSymbol, Symbol.PackageSymbol, Symbol.TypeSymbol, Symbol.TypeVariableSymbol, Symbol.VarSymbol, Symbol.Visitor<R,P>
Modifier and Type | Field and Description |
---|---|
int |
adr
The variable's address.
|
int |
pos
The variable's declaration position.
|
completer, erasure_field, flags_field, kind, metadata, name, owner, type
Constructor and Description |
---|
VarSymbol(long flags,
Name name,
Type type,
Symbol owner)
Construct a variable symbol, given its flags, name, type and owner.
|
Modifier and Type | Method and Description |
---|---|
<R,P> R |
accept(ElementVisitor<R,P> v,
P p) |
<R,P> R |
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).
|
Symbol.VarSymbol |
clone(Symbol newOwner)
Clone this symbol with new owner.
|
Object |
getConstantValue() |
Object |
getConstValue() |
ElementKind |
getKind() |
boolean |
isExceptionParameter() |
boolean |
isResourceVariable() |
void |
setData(Object data) |
void |
setLazyConstValue(Env<AttrContext> env,
Attr attr,
JCTree.JCVariableDecl variable) |
String |
toString()
The Java source which this symbol represents.
|
annotationsPendingCompletion, appendAttributes, appendClassInitTypeAttributes, appendInitTypeAttributes, appendTypeAttributesWithCompletion, appendUniqueTypeAttributes, asType, attribute, baseSymbol, complete, enclClass, erasure, exists, externalType, flags, flatName, getAnnotationMirrors, getClassInitTypeAttributes, getDeclarationAttributes, getEnclosedElements, getEnclosingElement, getInitTypeAttributes, getMetadata, getModifiers, getQualifiedName, getRawAttributes, getRawTypeAttributes, getSimpleName, getTypeParameters, hasAnnotations, hasOuterInstance, hasTypeAnnotations, isAnonymous, isConstructor, isDeprecated, isEnclosedBy, isEnum, isInheritedIn, isInner, isInterface, isLocal, isMemberOf, isPrivate, isStatic, isSubClass, location, location, members, outermostClass, overrides, packge, prependAttributes, resetAnnotations, setAttributes, setDeclarationAttributes, setDeclarationAttributesWithCompletion, setTypeAttributes
getAnnotation, getAnnotationsByType, getAttribute, getInheritedAnnotations
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEnclosingElement, getSimpleName
asType, equals, getAnnotation, getAnnotationMirrors, getEnclosedElements, getModifiers, hashCode
getAnnotationsByType
public int pos
public int adr
public Symbol.VarSymbol clone(Symbol newOwner)
public String toString()
Symbol
public Symbol asMemberOf(Type site, Types types)
Symbol
asMemberOf
in class Symbol
public ElementKind getKind()
public <R,P> R accept(ElementVisitor<R,P> v, P p)
public Object getConstantValue()
getConstantValue
in interface VariableElement
public void setLazyConstValue(Env<AttrContext> env, Attr attr, JCTree.JCVariableDecl variable)
public boolean isExceptionParameter()
public boolean isResourceVariable()
public Object getConstValue()
public void setData(Object data)
public <R,P> R accept(Symbol.Visitor<R,P> v, P p)
Copyright © 2017 earcam. All rights reserved.