public class EnumConstant_c extends Field_c implements EnumConstant
Term.Instancefi, name, target, targetImplicitexceptions, 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, visitChildrenbooleanValue, byteValue, charValue, constantValue, constantValueSet, doubleValue, floatValue, intValue, isConstant, isTypeChecked, lastLang, longValue, printSubExpr, printSubExpr, shortValue, stringValue, type, type, typeexceptionCheck, exceptions, exceptions, exceptions, listChild, reachable, reachable, reachableaddDecls, 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, visitListclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfieldInstance, fieldInstance, id, isTargetImplicit, name, target, target, targetImplicitflags, id, name, varInstanceconstantValue, constantValueSet, isConstant, precedence, printSubExpr, printSubExpr, typedel, del, dump, error, error, ext, ext, ext, ext, isDisambiguated, isTypeChecked, position, position, visit, visitEdgeaddDecls, 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, visitListexceptions, exceptions, reachable, reachablepublic boolean constantValueSet(Lang lang)
ExprOpsisConstant() is valid only if
constantValueSet() is true.constantValueSet in interface ExprOpsconstantValueSet in class Field_cpublic boolean isConstant(Lang lang)
ExprOpsconstantValueSet() is true.isConstant in interface ExprOpsisConstant in class Field_cpublic java.lang.Object constantValue(Lang lang)
ExprOpsisConstant() is true.constantValue in interface ExprOpsconstantValue in class Field_cpublic EnumInstance enumInstance()
enumInstance in interface EnumConstantpublic Node enumInstance(EnumInstance enumInstance)
enumInstance in interface EnumConstant