Package io.airlift.bytecode.instruction
Class VariableInstruction
- java.lang.Object
-
- io.airlift.bytecode.instruction.VariableInstruction
-
- All Implemented Interfaces:
BytecodeNode,InstructionNode
- Direct Known Subclasses:
VariableInstruction.IncrementVariableInstruction,VariableInstruction.LoadVariableInstruction,VariableInstruction.StoreVariableInstruction
public abstract class VariableInstruction extends Object implements InstructionNode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVariableInstruction.IncrementVariableInstructionstatic classVariableInstruction.LoadVariableInstructionstatic classVariableInstruction.StoreVariableInstruction
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(BytecodeNode parent, BytecodeVisitor<T> visitor)List<BytecodeNode>getChildNodes()VariablegetVariable()static InstructionNodeincrementVariable(Variable variable, byte increment)static InstructionNodeloadVariable(Variable variable)static InstructionNodestoreVariable(Variable variable)StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.airlift.bytecode.BytecodeNode
accept
-
-
-
-
Method Detail
-
loadVariable
public static InstructionNode loadVariable(Variable variable)
-
storeVariable
public static InstructionNode storeVariable(Variable variable)
-
incrementVariable
public static InstructionNode incrementVariable(Variable variable, byte increment)
-
getVariable
public Variable getVariable()
-
getChildNodes
public List<BytecodeNode> getChildNodes()
- Specified by:
getChildNodesin interfaceBytecodeNode
-
accept
public <T> T accept(BytecodeNode parent, BytecodeVisitor<T> visitor)
- Specified by:
acceptin interfaceBytecodeNode
-
-