uk.ac.man.cs.rainbow.compiler.expressions
Class Constant

java.lang.Object
  |
  +--uk.ac.man.cs.rainbow.compiler.CompilerThing
        |
        +--uk.ac.man.cs.rainbow.compiler.CompilerNode
              |
              +--uk.ac.man.cs.rainbow.compiler.expressions.Expression
                    |
                    +--uk.ac.man.cs.rainbow.compiler.expressions.Constant
All Implemented Interfaces:
Cloneable, Serializable
Direct Known Subclasses:
BoolConst, DummyConstant, EnumConst, IntConst, RecordConst, VectorConst

public abstract class Constant
extends Expression

See Also:
Serialized Form

Fields inherited from class uk.ac.man.cs.rainbow.compiler.CompilerNode
next, sourcepos
 
Constructor Summary
Constant(SourcePosition sourcepos, CompilerType spec)
           
 
Method Summary
 Constant reduce_to_constant(TCEnv env, Errors errors)
           
 
Methods inherited from class uk.ac.man.cs.rainbow.compiler.expressions.Expression
check_nominal, cloneExpression, cloneExpressionNoParent, getSpec, map_accumulate_reduce_to_constant, reduce_to_integer_constant, setSpec, size_allowing_for_repeats, specList, toString, typecheckExpr, typecheckExprList
 
Methods inherited from class uk.ac.man.cs.rainbow.compiler.CompilerNode
append, appendNotParent, dumpNode, dumpTree, getParent, indent, iterator, list_typecheck, list_typecheck, listLength, listToString, noParent, rasm_list, rasm, rasm, setParent, typecheck, typecheck, typecheckGreen, typecheckGreen
 
Methods inherited from class uk.ac.man.cs.rainbow.compiler.CompilerThing
className, crashHere, getSerial
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Constant

public Constant(SourcePosition sourcepos,
                CompilerType spec)
Method Detail

reduce_to_constant

public Constant reduce_to_constant(TCEnv env,
                                   Errors errors)
Overrides:
reduce_to_constant in class Expression