Class GotoIR
- java.lang.Object
-
- com.googlecode.aviator.code.interpreter.ir.GotoIR
-
public class GotoIR extends java.lang.Object implements IR, JumpIR
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Labellabelprivate intpcprivate static longserialVersionUIDprivate SourceInfosourceInfo
-
Constructor Summary
Constructors Constructor Description GotoIR(Label label, SourceInfo sourceInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voideval(InterpretContext context)LabelgetLabel()intgetPc()booleanmayBeCost()Returns true when the IR execution cost may be expensivevoidsetPc(int pc)java.lang.StringtoString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
pc
private int pc
-
label
private final Label label
-
sourceInfo
private final SourceInfo sourceInfo
-
-
Constructor Detail
-
GotoIR
public GotoIR(Label label, SourceInfo sourceInfo)
-
-
Method Detail
-
getPc
public int getPc()
-
mayBeCost
public boolean mayBeCost()
Description copied from interface:IRReturns true when the IR execution cost may be expensive
-
eval
public void eval(InterpretContext context)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-