org.teatrove.tea.parsetree
Class NullLiteral

java.lang.Object
  extended by org.teatrove.tea.parsetree.Node
      extended by org.teatrove.tea.parsetree.Expression
          extended by org.teatrove.tea.parsetree.Literal
              extended by org.teatrove.tea.parsetree.NullLiteral
All Implemented Interfaces:
Serializable, Cloneable

public class NullLiteral
extends Literal

A Literal representing the null Object.

Author:
Brian S O'Neill
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.teatrove.tea.parsetree.Expression
Expression.Conversion
 
Constructor Summary
NullLiteral(SourceInfo info)
           
 
Method Summary
 Object accept(NodeVisitor visitor)
          Every subclass of Node must override this method with the following: return visitor.visit(this).
 Object getValue()
          Most expressions can't generate a value at compile-time, so this method simply returns null.
 
Methods inherited from class org.teatrove.tea.parsetree.Literal
isValueKnown
 
Methods inherited from class org.teatrove.tea.parsetree.Expression
clone, convertTo, convertTo, forceConversion, getConversionChain, getInitialType, getType, isExceptionPossible, setInitialType, setType
 
Methods inherited from class org.teatrove.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 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
Parameters:
visitor - A visitor of this Node
Returns:
Node The Node returned by the visitor
See Also:
NodeVisitor

getValue

public 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


Copyright © 1997-2012 TeaTrove.org. All Rights Reserved.