uk.ac.man.cs.rainbow.compiler.expressions
Class RecordConst
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
|
+--uk.ac.man.cs.rainbow.compiler.expressions.RecordConst
- All Implemented Interfaces:
- Cloneable, Serializable
- public class RecordConst
- extends Constant
Record-valued constant.
- See Also:
- Serialized Form
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, setParent, typecheck, typecheck, typecheckGreen, typecheckGreen |
RecordConst
public RecordConst(SourcePosition sourcepos,
CompilerType spec,
Constant components)
toString
public String toString()
- Overrides:
toString
in class Expression
typecheckExpr
public Expression typecheckExpr(TCEnv env,
Errors errors,
CompilerType expected,
String context)
- Overrides:
typecheckExpr
in class Expression
rasm
public RASMList rasm(CGEnv env)
- Overrides:
rasm
in class CompilerNode
equals
public boolean equals(Expression e)
- Record constants equal iff their type is equal and their
components are piece-wise equal.