Package io.airlift.bytecode
Class Variable
- java.lang.Object
-
- io.airlift.bytecode.expression.BytecodeExpression
-
- io.airlift.bytecode.Variable
-
- All Implemented Interfaces:
BytecodeNode
- Direct Known Subclasses:
Parameter
public class Variable extends BytecodeExpression
-
-
Constructor Summary
Constructors Constructor Description Variable(String name, ParameterizedType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringformatOneLine()BytecodeNodegetBytecode(MethodGenerationContext generationContext)List<BytecodeNode>getChildNodes()StringgetName()BytecodeExpressionincrement()BytecodeExpressionset(BytecodeExpression value)-
Methods inherited from class io.airlift.bytecode.expression.BytecodeExpression
accept, accept, cast, cast, getElement, getElement, getField, getField, getField, getField, getField, getType, instanceOf, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, length, pop, ret, setElement, setElement, setField, setField, setField, toString
-
-
-
-
Constructor Detail
-
Variable
public Variable(String name, ParameterizedType type)
-
-
Method Detail
-
getName
public String getName()
-
set
public BytecodeExpression set(BytecodeExpression value)
-
increment
public BytecodeExpression increment()
-
getBytecode
public BytecodeNode getBytecode(MethodGenerationContext generationContext)
- Specified by:
getBytecodein classBytecodeExpression
-
formatOneLine
protected String formatOneLine()
- Specified by:
formatOneLinein classBytecodeExpression
-
getChildNodes
public List<BytecodeNode> getChildNodes()
-
-