Interface CodeConstant
- All Superinterfaces:
CodeExpression, CodeItem
- All Known Subinterfaces:
CodeLiteral
CodeExpression for a constant value.- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
Field Summary
Fields inherited from interface CodeItem
DEFAULT_INDENT, DEFAULT_NEWLINE -
Method Summary
Methods inherited from interface CodeItem
getLanguage, getSourceCode, write, write, write, write, write, write
-
Method Details
-
getValue
Object getValue()- Returns:
- the literal value. May be
nullfor literals that do not exist in Java (in case of a foreign language).
-
evaluate
- Specified by:
evaluatein interfaceCodeExpression- Returns:
- this expression evaluated as
CodeConstantornullif not a constant expression. - See Also:
-