cb.petal
Class BooleanLiteral
java.lang.Object
|
+--cb.petal.Literal
|
+--cb.petal.BooleanLiteral
- All Implemented Interfaces:
- java.lang.Cloneable, PetalNode, java.io.Serializable
- public class BooleanLiteral
- extends Literal
Boolean literal which may obviously either be true or false.
- Version:
- $Id: BooleanLiteral.java,v 1.9 2001/07/09 07:48:52 dahm Exp $
- Author:
- M. Dahm
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BooleanLiteral
public BooleanLiteral(boolean value)
getValue
public boolean getValue()
setValue
public void setValue(boolean v)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getLiteralValue
public java.lang.Object getLiteralValue()
- Overrides:
getLiteralValue
in class Literal
- Following copied from class:
cb.petal.Literal
- Returns:
- object corresponding to the usual Java hierarchy, e.g., an Integer for
an IntegerLiteral.
accept
public void accept(Visitor v)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object