comp
Class ValNode
java.lang.Object
|
+--comp.Node
|
+--comp.ExprNode
|
+--comp.ValNode
- class ValNode
- extends ExprNode
Integer literal expression node.
Field Summary |
(package private) java.lang.Integer |
val
|
Constructor Summary |
ValNode(java.lang.Integer i)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
val
java.lang.Integer val
ValNode
public ValNode(java.lang.Integer i)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
codeGen
public java.lang.String codeGen(Scope scope,
RegBank bank)
- Just do an immediate load of my value.
- Specified by:
codeGen
in class Node
asHTML
public void asHTML(java.io.PrintStream out)
- Process this node.
- Specified by:
asHTML
in class Node
getType
public Type getType(Scope s)