public class EnumConstant_c extends Field_c implements EnumConstant
Term.Instance
fi, name, target, targetImplicit
exceptions, reachable
Constructor and Description |
---|
EnumConstant_c(Position pos,
Receiver target,
Id name) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
constantValue(Lang lang)
Return the constant value of the expression, if any.
|
boolean |
constantValueSet(Lang lang)
Return true iff the compiler has determined whether this expression has a
constant value.
|
EnumInstance |
enumInstance() |
Node |
enumInstance(EnumInstance enumInstance) |
boolean |
isConstant(Lang lang)
Return whether the expression evaluates to a constant.
|
acceptCFG, buildTypes, checkConsistency, checkConstants, childExpectedType, copy, dump, extRewrite, extRewriteEnter, fieldInstance, fieldInstance, fieldInstance, firstChild, flags, id, id, id, isTargetImplicit, name, name, precedence, prettyPrint, reconstruct, target, target, target, targetImplicit, targetImplicit, throwTypes, toString, typeCheck, varInstance, visitChildren
booleanValue, byteValue, charValue, constantValue, constantValueSet, doubleValue, floatValue, intValue, isConstant, isTypeChecked, lastLang, longValue, printSubExpr, printSubExpr, shortValue, stringValue, type, type, type
exceptionCheck, exceptions, exceptions, exceptions, listChild, reachable, reachable, reachable
addDecls, buildTypesEnter, copy, copy, copyIfNeeded, del, del, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, dump, dump, enterChildScope, enterScope, error, error, error, exceptionCheckEnter, ext, ext, ext, ext, isDisambiguated, lang, position, position, position, prettyPrint, prettyPrint, prettyPrint, prettyPrint, print, printBlock, printSubStmt, translate, typeCheckEnter, typeCheckOverride, visit, visitChild, visitEdge, visitList
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fieldInstance, fieldInstance, id, isTargetImplicit, name, target, target, targetImplicit
flags, id, name, varInstance
constantValue, constantValueSet, isConstant, precedence, printSubExpr, printSubExpr, type
del, del, dump, error, error, ext, ext, ext, ext, isDisambiguated, isTypeChecked, position, position, visit, visitEdge
addDecls, buildTypes, buildTypesEnter, checkConstants, childExpectedType, copy, copy, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, extRewrite, extRewriteEnter, lang, prettyPrint, prettyPrint, prettyPrint, prettyPrint, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, typeCheckOverride, visitChild, visitChildren, visitList
exceptions, exceptions, reachable, reachable
public boolean constantValueSet(Lang lang)
ExprOps
isConstant()
is valid only if
constantValueSet()
is true.constantValueSet
in interface ExprOps
constantValueSet
in class Field_c
public boolean isConstant(Lang lang)
ExprOps
constantValueSet()
is true.isConstant
in interface ExprOps
isConstant
in class Field_c
public java.lang.Object constantValue(Lang lang)
ExprOps
isConstant()
is true.constantValue
in interface ExprOps
constantValue
in class Field_c
public EnumInstance enumInstance()
enumInstance
in interface EnumConstant
public Node enumInstance(EnumInstance enumInstance)
enumInstance
in interface EnumConstant