Package io.airlift.bytecode
Class BytecodeVisitor<T>
- java.lang.Object
-
- io.airlift.bytecode.BytecodeVisitor<T>
-
- Direct Known Subclasses:
DumpBytecodeVisitor
public class BytecodeVisitor<T> extends Object
-
-
Constructor Summary
Constructors Constructor Description BytecodeVisitor()
-
Method Summary
-
-
-
Method Detail
-
visitClass
public T visitClass(ClassDefinition classDefinition)
-
visitAnnotation
public T visitAnnotation(Object parent, AnnotationDefinition annotationDefinition)
-
visitField
public T visitField(ClassDefinition classDefinition, FieldDefinition fieldDefinition)
-
visitMethod
public T visitMethod(ClassDefinition classDefinition, MethodDefinition methodDefinition)
-
visitNode
public T visitNode(BytecodeNode parent, BytecodeNode node)
-
visitComment
public T visitComment(BytecodeNode parent, Comment node)
-
visitBlock
public T visitBlock(BytecodeNode parent, BytecodeBlock block)
-
visitBytecodeExpression
public T visitBytecodeExpression(BytecodeNode parent, BytecodeExpression expression)
-
visitFlowControl
public T visitFlowControl(BytecodeNode parent, FlowControl flowControl)
-
visitTryCatch
public T visitTryCatch(BytecodeNode parent, TryCatch tryCatch)
-
visitIf
public T visitIf(BytecodeNode parent, IfStatement ifStatement)
-
visitFor
public T visitFor(BytecodeNode parent, ForLoop forLoop)
-
visitWhile
public T visitWhile(BytecodeNode parent, WhileLoop whileLoop)
-
visitDoWhile
public T visitDoWhile(BytecodeNode parent, DoWhileLoop doWhileLoop)
-
visitSwitch
public T visitSwitch(BytecodeNode parent, SwitchStatement switchStatement)
-
visitInstruction
public T visitInstruction(BytecodeNode parent, InstructionNode node)
-
visitLabel
public T visitLabel(BytecodeNode parent, LabelNode labelNode)
-
visitJumpInstruction
public T visitJumpInstruction(BytecodeNode parent, JumpInstruction jumpInstruction)
-
visitConstant
public T visitConstant(BytecodeNode parent, Constant constant)
-
visitBoxedBooleanConstant
public T visitBoxedBooleanConstant(BytecodeNode parent, Constant.BoxedBooleanConstant boxedBooleanConstant)
-
visitBooleanConstant
public T visitBooleanConstant(BytecodeNode parent, Constant.BooleanConstant booleanConstant)
-
visitIntConstant
public T visitIntConstant(BytecodeNode parent, Constant.IntConstant intConstant)
-
visitBoxedIntegerConstant
public T visitBoxedIntegerConstant(BytecodeNode parent, Constant.BoxedIntegerConstant boxedIntegerConstant)
-
visitFloatConstant
public T visitFloatConstant(BytecodeNode parent, Constant.FloatConstant floatConstant)
-
visitBoxedFloatConstant
public T visitBoxedFloatConstant(BytecodeNode parent, Constant.BoxedFloatConstant boxedFloatConstant)
-
visitLongConstant
public T visitLongConstant(BytecodeNode parent, Constant.LongConstant longConstant)
-
visitBoxedLongConstant
public T visitBoxedLongConstant(BytecodeNode parent, Constant.BoxedLongConstant boxedLongConstant)
-
visitDoubleConstant
public T visitDoubleConstant(BytecodeNode parent, Constant.DoubleConstant doubleConstant)
-
visitBoxedDoubleConstant
public T visitBoxedDoubleConstant(BytecodeNode parent, Constant.BoxedDoubleConstant boxedDoubleConstant)
-
visitStringConstant
public T visitStringConstant(BytecodeNode parent, Constant.StringConstant stringConstant)
-
visitClassConstant
public T visitClassConstant(BytecodeNode parent, Constant.ClassConstant classConstant)
-
visitVariableInstruction
public T visitVariableInstruction(BytecodeNode parent, VariableInstruction variableInstruction)
-
visitLoadVariable
public T visitLoadVariable(BytecodeNode parent, VariableInstruction.LoadVariableInstruction loadVariableInstruction)
-
visitStoreVariable
public T visitStoreVariable(BytecodeNode parent, VariableInstruction.StoreVariableInstruction storeVariableInstruction)
-
visitIncrementVariable
public T visitIncrementVariable(BytecodeNode parent, VariableInstruction.IncrementVariableInstruction incrementVariableInstruction)
-
visitFieldInstruction
public T visitFieldInstruction(BytecodeNode parent, FieldInstruction fieldInstruction)
-
visitGetField
public T visitGetField(BytecodeNode parent, FieldInstruction.GetFieldInstruction getFieldInstruction)
-
visitPutField
public T visitPutField(BytecodeNode parent, FieldInstruction.PutFieldInstruction putFieldInstruction)
-
visitInvoke
public T visitInvoke(BytecodeNode parent, InvokeInstruction invokeInstruction)
-
visitInvokeDynamic
public T visitInvokeDynamic(BytecodeNode parent, InvokeInstruction.InvokeDynamicInstruction invokeDynamicInstruction)
-
visitDebug
public T visitDebug(BytecodeNode parent, DebugNode debugNode)
-
visitLineNumber
public T visitLineNumber(BytecodeNode parent, LineNumberNode lineNumberNode)
-
visitLocalVariable
public T visitLocalVariable(BytecodeNode parent, LocalVariableNode localVariableNode)
-
-