public class JField extends JVariable implements JMember
Modifier and Type | Class and Description |
---|---|
static class |
JField.Disposition
Determines whether the variable is final, volatile, or neither.
|
HasName.Util
HasJsInfo.JsMemberType
Modifier and Type | Field and Description |
---|---|
static JField |
NULL_FIELD |
BY_NAME_COMPARATOR
Constructor and Description |
---|
JField(SourceInfo info,
String name,
JDeclaredType enclosingType,
JType type,
boolean isStatic,
JField.Disposition disposition) |
JField(SourceInfo info,
String name,
JDeclaredType enclosingType,
JType type,
boolean isStatic,
JField.Disposition disposition,
AccessModifier access) |
getConstInitializer, getDeclarationStatement, getInitializer, getName, getSuppressedWarnings, getType, hasInitializer, isFinal, setName, setSuppressedWarnings, setType
getSourceInfo, setSourceInfo, toSource, toString
getSourceInfo
isFinal
getSuppressedWarnings, setSuppressedWarnings
public static final JField NULL_FIELD
public JField(SourceInfo info, String name, JDeclaredType enclosingType, JType type, boolean isStatic, JField.Disposition disposition, AccessModifier access)
public JField(SourceInfo info, String name, JDeclaredType enclosingType, JType type, boolean isStatic, JField.Disposition disposition)
public String getQualifiedName()
getQualifiedName
in interface JMember
public JDeclaredType getEnclosingType()
getEnclosingType
in interface HasEnclosingType
public JValueLiteral getLiteralInitializer()
public JFieldRef makeRef(SourceInfo info)
public void setJsMemberInfo(HasJsInfo.JsMemberType jsMembertype, String namespace, String name, boolean exported)
setJsMemberInfo
in interface HasJsInfo
public void setJsOverlay()
setJsOverlay
in interface HasJsInfo
public HasJsInfo.JsMemberType getJsMemberType()
getJsMemberType
in interface HasJsInfo
public boolean isJsInteropEntryPoint()
isJsInteropEntryPoint
in interface HasJsInfo
public boolean canBeReferencedExternally()
canBeReferencedExternally
in interface HasJsInfo
public boolean canBeImplementedExternally()
canBeImplementedExternally
in interface HasJsInfo
public String getJsNamespace()
getJsNamespace
in interface HasJsName
public String getQualifiedJsName()
getQualifiedJsName
in interface HasJsName
public boolean isAbstract()
isAbstract
in interface CanBeAbstract
public boolean isJsNative()
isJsNative
in interface CanBeJsNative
public boolean isJsOverlay()
isJsOverlay
in interface HasJsInfo
public boolean isJsMethodVarargs()
isJsMethodVarargs
in interface HasJsInfo
public String getSignature()
public boolean isCompileTimeConstant()
public boolean isExternal()
isExternal
in interface JMember
public boolean needsDynamicDispatch()
needsDynamicDispatch
in interface JMember
public boolean isStatic()
isStatic
in interface CanBeStatic
public boolean isSynthetic()
isSynthetic
in interface JMember
public boolean isThisRef()
public boolean isVolatile()
public void setFinal()
setFinal
in interface CanBeSetFinal
setFinal
in class JVariable
public void setInitializer(JDeclarationStatement declStmt)
setInitializer
in interface CanHaveInitializer
public void traverse(JVisitor visitor, Context ctx)
JNode
protected Object writeReplace()
Copyright © 2018. All rights reserved.