cs132.vapor.ast
Class VLabelRef<T extends VTarget>

java.lang.Object
  extended by cs132.vapor.ast.Node
      extended by cs132.vapor.ast.VOperand
          extended by cs132.vapor.ast.VOperand.Static
              extended by cs132.vapor.ast.VLabelRef<T>
Type Parameters:
T - The type of thing being referenced by the label.

public class VLabelRef<T extends VTarget>
extends VOperand.Static

A label reference. Can be a reference to either a VFunction, a VDataSegment, or a VCodeLabel.


Nested Class Summary
 
Nested classes/interfaces inherited from class cs132.vapor.ast.VOperand
VOperand.Static
 
Field Summary
 String ident
          The text of the label reference.
 
Fields inherited from class cs132.vapor.ast.Node
sourcePos
 
Constructor Summary
VLabelRef(SourcePos sourcePos, String ident)
           
 
Method Summary
 T getTarget()
           
 void setTarget(T target)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ident

public final String ident
The text of the label reference.

Constructor Detail

VLabelRef

public VLabelRef(SourcePos sourcePos,
                 String ident)
Method Detail

setTarget

public void setTarget(T target)

getTarget

public T getTarget()

toString

public String toString()
Overrides:
toString in class Object