|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.go.tea.parsetree.Node
|
+--com.go.tea.parsetree.Expression
|
+--com.go.tea.parsetree.Literal
A literal is an expression that has a constant value.
| Inner classes inherited from class com.go.tea.parsetree.Expression |
Expression.Conversion |
| Constructor Summary | |
protected |
Literal(SourceInfo info)
|
| Method Summary | |
java.lang.Object |
accept(NodeVisitor visitor)
Every subclass of Node must override this method with the following: return visitor.visit(this). |
boolean |
isValueKnown()
Usually returns true, but some literals may have an unknown value if they are converted to another type. |
| Methods inherited from class com.go.tea.parsetree.Expression |
clone, convertTo, convertTo, getConversionChain, getInitialType, getType, getValue, isExceptionPossible, setInitialType, setType |
| Methods inherited from class com.go.tea.parsetree.Node |
getSourceInfo, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected Literal(SourceInfo info)
| Method Detail |
public java.lang.Object accept(NodeVisitor visitor)
Nodereturn visitor.visit(this).accept in class Expressioncom.go.tea.parsetree.Nodevisitor - A visitor of this NodeNodeVisitorpublic boolean isValueKnown()
isValueKnown in class Expressioncom.go.tea.parsetree.ExpressionLiteral
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||