Package org.jboss.byteman.agent.adapter
Class NewCheckAdapter.NewCheckMethodAdapter
java.lang.Object
org.objectweb.asm.MethodVisitor
org.jboss.byteman.agent.adapter.RuleMethodAdapter
org.jboss.byteman.agent.adapter.RuleCheckMethodAdapter
org.jboss.byteman.agent.adapter.NewCheckAdapter.NewCheckMethodAdapter
- Enclosing class:
NewCheckAdapter
a method visitor used to add a rule event trigger call to a method
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jboss.byteman.agent.adapter.RuleMethodAdapter
RuleMethodAdapter.LocalVar
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private String
private String[]
(package private) String
private String
private String
private boolean
private boolean
private int
Fields inherited from class org.jboss.byteman.agent.adapter.RuleMethodAdapter
localVarsByName, rule, transformContext
Fields inherited from class org.objectweb.asm.MethodVisitor
api, mv
-
Constructor Summary
ConstructorsConstructorDescriptionNewCheckMethodAdapter
(org.objectweb.asm.MethodVisitor mv, TransformContext transformContext, int access, String name, String descriptor, String signature, String[] exceptions) -
Method Summary
Modifier and TypeMethodDescriptionmethod overridden by AT NEW method check adapter allowing String value for the type name provided in the NEW location spec to be retrieved.private boolean
void
visitMethodInsn
(int opcode, String owner, String name, String descriptor, boolean isInterface) void
visitTypeInsn
(int opcode, String type) Methods inherited from class org.jboss.byteman.agent.adapter.RuleCheckMethodAdapter
checkBindings, getReturnBindingType, isTriggerPoint, setTriggerPoint, visitEnd
Methods inherited from class org.jboss.byteman.agent.adapter.RuleMethodAdapter
getTriggerClassName, lookup, visitLocalVariable
Methods inherited from class org.objectweb.asm.MethodVisitor
getDelegate, visitAnnotableParameterCount, visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMultiANewArrayInsn, visitParameter, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotation, visitVarInsn
-
Field Details
-
access
private int access -
name
-
descriptor
-
signature
-
exceptions
-
visited
private boolean visited -
visitedCount
private int visitedCount -
triggerReady
private boolean triggerReady -
matchedBaseName
String matchedBaseName
-
-
Constructor Details
-
NewCheckMethodAdapter
NewCheckMethodAdapter(org.objectweb.asm.MethodVisitor mv, TransformContext transformContext, int access, String name, String descriptor, String signature, String[] exceptions)
-
-
Method Details
-
visitMethodInsn
public void visitMethodInsn(int opcode, String owner, String name, String descriptor, boolean isInterface) - Overrides:
visitMethodInsn
in classorg.objectweb.asm.MethodVisitor
-
visitTypeInsn
- Overrides:
visitTypeInsn
in classorg.objectweb.asm.MethodVisitor
-
matchType
-
getNewTypeParamDescriptor
Description copied from class:RuleCheckMethodAdapter
method overridden by AT NEW method check adapter allowing String value for the type name provided in the NEW location spec to be retrieved. this default version should never get invoked- Overrides:
getNewTypeParamDescriptor
in classRuleCheckMethodAdapter
- Returns:
- String value for
-