coins.backend.lir
Class LirString

java.lang.Object
  extended bycoins.backend.lir.LirNode
      extended bycoins.backend.lir.LirString

public class LirString
extends LirNode

Represent Immediate String node.


Nested Class Summary
 
Nested classes inherited from class coins.backend.lir.LirNode
LirNode.Scanner
 
Field Summary
 java.lang.String string
           
 
Fields inherited from class coins.backend.lir.LirNode
id, opCode, opt, type
 
Constructor Summary
LirString(int id, java.lang.String s)
           
 
Method Summary
 void accept(LirVisitor v)
          Accept visitor v
 boolean equals(java.lang.Object x)
          Return true if this object equals to x
 int hashCode()
          Return hash value of LirNode.
 LirNode makeCopy(LirFactory fac)
          Return a deep copy of this node
 LirNode replaceOptions(LirFactory fac, ImList newOpt)
          Return a copy of this node without options.
 java.lang.Object toSexp()
          Convert to external LIR format.
 java.lang.String toString()
          Visualize
 
Methods inherited from class coins.backend.lir.LirNode
getTargets, isBranch, isPhysicalRegister, isRegisterOperand, kid, makeShallowCopy, nKids, nSrcs, pickUpDefs, pickUpUses, replaceLabel, setKid, setSrc, src, toStringExp
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

string

public final java.lang.String string
Constructor Detail

LirString

public LirString(int id,
                 java.lang.String s)
Method Detail

makeCopy

public LirNode makeCopy(LirFactory fac)
Description copied from class: LirNode
Return a deep copy of this node

Specified by:
makeCopy in class LirNode

replaceOptions

public LirNode replaceOptions(LirFactory fac,
                              ImList newOpt)
Description copied from class: LirNode
Return a copy of this node without options.

Specified by:
replaceOptions in class LirNode

hashCode

public int hashCode()
Description copied from class: LirNode
Return hash value of LirNode.

Overrides:
hashCode in class LirNode

toSexp

public java.lang.Object toSexp()
Convert to external LIR format.

Overrides:
toSexp in class LirNode

toString

public java.lang.String toString()
Description copied from class: LirNode
Visualize

Overrides:
toString in class LirNode

equals

public boolean equals(java.lang.Object x)
Description copied from class: LirNode
Return true if this object equals to x

Overrides:
equals in class LirNode

accept

public void accept(LirVisitor v)
Description copied from class: LirNode
Accept visitor v

Specified by:
accept in class LirNode