diff --git a/asm/annotation-visitor.go b/asm/annotation-visitor.go
index bbae2fb..139ed0e 100644
--- a/asm/annotation-visitor.go
+++ b/asm/annotation-visitor.go
@@ -4,9 +4,9 @@ package asm
// order: ( visit | visitEnum | visitAnnotation | visitArray )*
// visitEnd.
type AnnotationVisitor interface {
- visit(name string, value interface{})
- visitEnum(name, descriptor, value string)
- visitAnnotation(name, descriptor string) AnnotationVisitor
- visitArray(name string) AnnotationVisitor
- visitEnd()
+ Visit(name string, value interface{})
+ VisitEnum(name, descriptor, value string)
+ VisitAnnotation(name, descriptor string) AnnotationVisitor
+ VisitArray(name string) AnnotationVisitor
+ VisitEnd()
}
diff --git a/asm/label.go b/asm/label.go
index b017700..1545fa9 100644
--- a/asm/label.go
+++ b/asm/label.go
@@ -69,12 +69,12 @@ func (l *Label) addLineNumber(lineNumber int) {
}
func (l Label) accept(methodVisitor MethodVisitor, visitLineNumbers bool) {
- methodVisitor.visitLabel(&l)
+ methodVisitor.VisitLabel(&l)
if visitLineNumbers && l.lineNumber != 0 {
- methodVisitor.visitLineNumber(int(l.lineNumber)&0xFFFF, &l)
+ methodVisitor.VisitLineNumber(int(l.lineNumber)&0xFFFF, &l)
if l.otherLineNumbers != nil {
for i := 1; i <= l.otherLineNumbers[0]; i++ {
- methodVisitor.visitLineNumber(l.otherLineNumbers[i], &l)
+ methodVisitor.VisitLineNumber(l.otherLineNumbers[i], &l)
}
}
}
diff --git a/asm/method-visitor.go b/asm/method-visitor.go
index 271fcd5..2effe17 100644
--- a/asm/method-visitor.go
+++ b/asm/method-visitor.go
@@ -16,36 +16,36 @@ package asm
// visitLocalVariableAnnotation and visitLineNumber methods must be called
// after the labels passed as arguments have been visited.
type MethodVisitor interface {
- visitParameter(name string, access int)
- visitAnnotationDefault() AnnotationVisitor
- visitAnnotation(descriptor string, visible bool) AnnotationVisitor
- visitTypeAnnotation(typeRef int, typePath interface{}, descriptor string, visible bool) AnnotationVisitor //TypePath
- visitAnnotableParameterCount(parameterCount int, visible bool)
- visitParameterAnnotation(parameter int, descriptor string, visible bool) AnnotationVisitor
- visitAttribute(attribute *Attribute)
- visitCode()
- visitFrame(typed, nLocal int, local interface{}, nStack int, stack interface{})
- visitInsn(opcode int)
- visitIntInsn(opcode, operand int)
- visitVarInsn(opcode, vard int)
- visitTypeInsn(opcode, typed int)
- visitFieldInsn(opcode int, owner, name, descriptor string)
- visitMethodInsn(opcode int, owner, name, descriptor string)
- _visitMethodInsn(opcode int, owner, name, descriptor string, isInterface bool)
- visitInvokeDynamicInsn(name, descriptor string, bootstrapMethodHande interface{}, bootstrapMethodArguments ...interface{}) //Handle
- visitJumpInsn(opcode int, label *Label)
- visitLabel(label *Label)
- visitLdcInsn(value interface{})
- visitIincInsn(vard, increment int)
- visitTableSwitchInsn(min, max int, dflt *Label, labels ...*Label)
- visitLookupSwitchInsn(dflt *Label, keys []int, labels []Label)
- visitMultiANewArrayInsn(descriptor string, numDimensions int)
- visitInsnAnnotation(typeRef int, typePath interface{}, descriptor string, visible bool) AnnotationVisitor //TypePath
- visitTryCatchBlock(start, end, handler *Label, typed string)
- visitTryCatchAnnotation(typeRef int, typePath interface{}, descriptor string, visible bool) AnnotationVisitor //TypePath
- visitLocalVariable(name, descriptor, signature string, start, end *Label, index int)
- visitLocalVariableAnnotation(typeRef int, typePath interface{}, start, end *Label, index []int, descriptor string, visible bool) AnnotationVisitor //TypePath
- visitLineNumber(line int, start *Label)
- visitMaxs(maxStack int, maxLocals int)
- visitEnd()
+ VisitParameter(name string, access int)
+ VisitAnnotationDefault() AnnotationVisitor
+ VisitAnnotation(descriptor string, visible bool) AnnotationVisitor
+ VisitTypeAnnotation(typeRef int, typePath interface{}, descriptor string, visible bool) AnnotationVisitor //TypePath
+ VisitAnnotableParameterCount(parameterCount int, visible bool)
+ VisitParameterAnnotation(parameter int, descriptor string, visible bool) AnnotationVisitor
+ VisitAttribute(attribute *Attribute)
+ VisitCode()
+ VisitFrame(typed, nLocal int, local interface{}, nStack int, stack interface{})
+ VisitInsn(opcode int)
+ VisitIntInsn(opcode, operand int)
+ VisitVarInsn(opcode, vard int)
+ VisitTypeInsn(opcode, typed int)
+ VisitFieldInsn(opcode int, owner, name, descriptor string)
+ VisitMethodInsn(opcode int, owner, name, descriptor string)
+ VisitMethodInsnB(opcode int, owner, name, descriptor string, isInterface bool)
+ VisitInvokeDynamicInsn(name, descriptor string, bootstrapMethodHande interface{}, bootstrapMethodArguments ...interface{}) //Handle
+ VisitJumpInsn(opcode int, label *Label)
+ VisitLabel(label *Label)
+ VisitLdcInsn(value interface{})
+ VisitIincInsn(vard, increment int)
+ VisitTableSwitchInsn(min, max int, dflt *Label, labels ...*Label)
+ VisitLookupSwitchInsn(dflt *Label, keys []int, labels []Label)
+ VisitMultiANewArrayInsn(descriptor string, numDimensions int)
+ VisitInsnAnnotation(typeRef int, typePath interface{}, descriptor string, visible bool) AnnotationVisitor //TypePath
+ VisitTryCatchBlock(start, end, handler *Label, typed string)
+ VisitTryCatchAnnotation(typeRef int, typePath interface{}, descriptor string, visible bool) AnnotationVisitor //TypePath
+ VisitLocalVariable(name, descriptor, signature string, start, end *Label, index int)
+ VisitLocalVariableAnnotation(typeRef int, typePath interface{}, start, end *Label, index []int, descriptor string, visible bool) AnnotationVisitor //TypePath
+ VisitLineNumber(line int, start *Label)
+ VisitMaxs(maxStack int, maxLocals int)
+ VisitEnd()
}