Class BranchUnlessIR
- java.lang.Object
-
- com.googlecode.aviator.code.interpreter.ir.BranchUnlessIR
-
public class BranchUnlessIR extends java.lang.Object implements IR, JumpIR
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Label
label
private int
pc
private static long
serialVersionUID
private SourceInfo
sourceInfo
-
Constructor Summary
Constructors Constructor Description BranchUnlessIR(Label label, SourceInfo sourceInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
eval(InterpretContext context)
Label
getLabel()
int
getPc()
boolean
mayBeCost()
Returns true when the IR execution cost may be expensivevoid
setPc(int pc)
java.lang.String
toString()
-
-
-
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
-
BranchUnlessIR
public BranchUnlessIR(Label label, SourceInfo sourceInfo)
-
-
Method Detail
-
getPc
public int getPc()
-
eval
public void eval(InterpretContext context)
-
mayBeCost
public boolean mayBeCost()
Description copied from interface:IR
Returns true when the IR execution cost may be expensive
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-