edu.ksu.cis.projects.bogor.ast
Class Literal
java.lang.Object
edu.ksu.cis.projects.bogor.ast.Node
edu.ksu.cis.projects.bogor.ast.Literal
- All Implemented Interfaces:
- Disposable, Serializable, Cloneable
- Direct Known Subclasses:
- BooleanLiteral, DoubleLiteral, FloatLiteral, IntLiteral, LongLiteral, NullLiteral, StringLiteral
public abstract class Literal
- extends Node
The top level class for literal AST.
- Version:
- CVS $Revision: 1.5 $ $Date: 2005/02/06 09:15:30 $
- Author:
- Robby \, Matt Hoosier
- See Also:
- Serialized Form
Method Summary |
abstract Literal |
clone()
This method is already implied by the IASTValue interface, but the Sun
java compiler gets confused about visibility if we don't explicitly
declare it. |
void |
dispose()
Removes reference to parent. |
ILiteralParent |
getParent()
Gets the parent of this object. |
void |
setParent(ILiteralParent newParent)
Sets the parent of this object. |
Literal
public Literal()
setParent
public void setParent(ILiteralParent newParent)
- Sets the parent of this object.
- Parameters:
newParent
- The new parent of this object. Must be non-null.
getParent
public ILiteralParent getParent()
- Gets the parent of this object.
- Returns:
- The parent of this object. Non-null.
clone
public abstract Literal clone()
- This method is already implied by the IASTValue interface, but the Sun
java compiler gets confused about visibility if we don't explicitly
declare it.
- Specified by:
clone
in class Node
- Returns:
- The clone of this object.
dispose
public void dispose()
- Removes reference to parent. Once called, avoid using this object.
- Specified by:
dispose
in interface Disposable
- Overrides:
dispose
in class Node