com.go.tea.parsetree
Class NullLiteral

java.lang.Object
  |
  +--com.go.tea.parsetree.Node
        |
        +--com.go.tea.parsetree.Expression
              |
              +--com.go.tea.parsetree.Literal
                    |
                    +--com.go.tea.parsetree.NullLiteral
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class NullLiteral
extends Literal

A Literal representing the null Object.

Version:
25 , 9/07/00
Author:
Brian S O'Neill
See Also:
Serialized Form

Inner classes inherited from class com.go.tea.parsetree.Expression
Expression.Conversion
 
Constructor Summary
NullLiteral(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).
 java.lang.Object getValue()
          Most expressions can't generate a value at compile-time, so this method simply returns null.
 
Methods inherited from class com.go.tea.parsetree.Literal
isValueKnown
 
Methods inherited from class com.go.tea.parsetree.Expression
clone, convertTo, convertTo, getConversionChain, getInitialType, getType, 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

NullLiteral

public NullLiteral(SourceInfo info)
Method Detail

accept

public java.lang.Object accept(NodeVisitor visitor)
Description copied from class: Node
Every subclass of Node must override this method with the following: return visitor.visit(this).
Overrides:
accept in class Literal
Following copied from class: com.go.tea.parsetree.Node
Parameters:
visitor - A visitor of this Node
Returns:
Node The Node returned by the visitor
See Also:
NodeVisitor

getValue

public java.lang.Object getValue()
Description copied from class: Expression
Most expressions can't generate a value at compile-time, so this method simply returns null. Call isValueKnown to check if the expression's value is known at compile-time.
Overrides:
getValue in class Expression