cgp.runtime
Class BooleanType

java.lang.Object
  |
  +--cgp.runtime.Type
        |
        +--cgp.runtime.BooleanType

public class BooleanType
extends Type


Field Summary
private  boolean value
           
 
Fields inherited from class cgp.runtime.Type
kbStack, scopeStack, type
 
Constructor Summary
BooleanType(boolean b)
           
 
Method Summary
 Type andOp(Type other)
           
 Type eqOp(Type other)
           
 boolean equals(java.lang.Object other)
           
 boolean getValue()
           
 Type neOp(Type other)
           
 Type notOp()
           
 Type orOp(Type other)
           
 java.lang.String toString()
           
 
Methods inherited from class cgp.runtime.Type
addOp, divideOp, geOp, getAttr, getKBStack, getNthOp, getScopeStack, getType, gtOp, invokeMemberFunc, isOp, leOp, ltOp, modulusOp, multiplyOp, negateOp, operationError, setAttr, setKBStack, setNthOp, setScopeStack, setType, subtractOp
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

value

private boolean value
Constructor Detail

BooleanType

public BooleanType(boolean b)
Method Detail

getValue

public boolean getValue()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

eqOp

public Type eqOp(Type other)
Overrides:
eqOp in class Type

neOp

public Type neOp(Type other)
Overrides:
neOp in class Type

orOp

public Type orOp(Type other)
Overrides:
orOp in class Type

andOp

public Type andOp(Type other)
Overrides:
andOp in class Type

notOp

public Type notOp()
Overrides:
notOp in class Type