Class NewArrayCheckAdapter.NewArrayCheckMethodAdapter
java.lang.Object
org.objectweb.asm.MethodVisitor
org.jboss.byteman.agent.adapter.RuleMethodAdapter
org.jboss.byteman.agent.adapter.RuleCheckMethodAdapter
org.jboss.byteman.agent.adapter.NewArrayCheckAdapter.NewArrayCheckMethodAdapter
- Enclosing class:
NewArrayCheckAdapter
a method visitor used to add a rule event trigger call to a method
-
Nested Class Summary
Nested classes/interfaces inherited from class RuleMethodAdapter
RuleMethodAdapter.LocalVar -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate Stringprivate String[](package private) Stringprivate Stringprivate Stringprivate booleanprivate intFields inherited from class RuleMethodAdapter
localVarsByName, rule, transformContextFields inherited from class org.objectweb.asm.MethodVisitor
api, mv -
Constructor Summary
ConstructorsConstructorDescriptionNewArrayCheckMethodAdapter(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 booleanmatchType(int operand) private booleanvoidvisitIntInsn(int opcode, int operand) voidvisitMultiANewArrayInsn(String descriptor, int numDimensions) voidvisitTypeInsn(int opcode, String type) Methods inherited from class RuleCheckMethodAdapter
checkBindings, getReturnBindingType, isTriggerPoint, setTriggerPoint, visitEndMethods inherited from class RuleMethodAdapter
getTargetClassName, getTriggerClassName, lookup, visitLocalVariableMethods inherited from class org.objectweb.asm.MethodVisitor
getDelegate, visitAnnotableParameterCount, visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitInsnAnnotation, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMethodInsn, 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 -
matchedBaseName
String matchedBaseName
-
-
Constructor Details
-
NewArrayCheckMethodAdapter
NewArrayCheckMethodAdapter(org.objectweb.asm.MethodVisitor mv, TransformContext transformContext, int access, String name, String descriptor, String signature, String[] exceptions)
-
-
Method Details
-
visitTypeInsn
- Overrides:
visitTypeInsnin classorg.objectweb.asm.MethodVisitor
-
visitIntInsn
public void visitIntInsn(int opcode, int operand) - Overrides:
visitIntInsnin classorg.objectweb.asm.MethodVisitor
-
visitMultiANewArrayInsn
- Overrides:
visitMultiANewArrayInsnin classorg.objectweb.asm.MethodVisitor
-
matchType
private boolean matchType(int operand) -
matchType
-
getNewTypeParamDescriptor
Description copied from class:RuleCheckMethodAdaptermethod 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:
getNewTypeParamDescriptorin classRuleCheckMethodAdapter- Returns:
- String value for
-