protected static class MemberRemoval.MemberRemovingClassVisitor
extends org.objectweb.asm.ClassVisitor
Modifier and Type | Field and Description |
---|---|
private ElementMatcher.Junction<FieldDescription.InDefinedShape> |
fieldMatcher
The matcher that determines field removal.
|
private java.util.Map<java.lang.String,FieldDescription.InDefinedShape> |
fields
A mapping of field names and descriptors to their description.
|
private ElementMatcher.Junction<MethodDescription> |
methodMatcher
The matcher that determines method removal.
|
private java.util.Map<java.lang.String,MethodDescription> |
methods
A mapping of method names and descriptors to their description.
|
private static org.objectweb.asm.FieldVisitor |
REMOVE_FIELD
Indicates the removal of a field.
|
private static org.objectweb.asm.MethodVisitor |
REMOVE_METHOD
Indicates the removal of a method.
|
Modifier | Constructor and Description |
---|---|
protected |
MemberRemovingClassVisitor(org.objectweb.asm.ClassVisitor classVisitor,
ElementMatcher.Junction<FieldDescription.InDefinedShape> fieldMatcher,
ElementMatcher.Junction<MethodDescription> methodMatcher,
java.util.Map<java.lang.String,FieldDescription.InDefinedShape> fields,
java.util.Map<java.lang.String,MethodDescription> methods)
Creates a new member removing class visitor.
|
Modifier and Type | Method and Description |
---|---|
org.objectweb.asm.FieldVisitor |
visitField(int modifiers,
java.lang.String internalName,
java.lang.String descriptor,
java.lang.String signature,
java.lang.Object value) |
org.objectweb.asm.MethodVisitor |
visitMethod(int modifiers,
java.lang.String internalName,
java.lang.String descriptor,
java.lang.String signature,
java.lang.String[] exception) |
private static final org.objectweb.asm.FieldVisitor REMOVE_FIELD
private static final org.objectweb.asm.MethodVisitor REMOVE_METHOD
private final ElementMatcher.Junction<FieldDescription.InDefinedShape> fieldMatcher
private final ElementMatcher.Junction<MethodDescription> methodMatcher
private final java.util.Map<java.lang.String,FieldDescription.InDefinedShape> fields
private final java.util.Map<java.lang.String,MethodDescription> methods
protected MemberRemovingClassVisitor(org.objectweb.asm.ClassVisitor classVisitor, ElementMatcher.Junction<FieldDescription.InDefinedShape> fieldMatcher, ElementMatcher.Junction<MethodDescription> methodMatcher, java.util.Map<java.lang.String,FieldDescription.InDefinedShape> fields, java.util.Map<java.lang.String,MethodDescription> methods)
classVisitor
- The class visitor to delegate to.fieldMatcher
- The matcher that determines field removal.methodMatcher
- The matcher that determines method removal.fields
- A mapping of field names and descriptors to their description.methods
- A mapping of method names and descriptors to their description.public org.objectweb.asm.FieldVisitor visitField(int modifiers, java.lang.String internalName, java.lang.String descriptor, java.lang.String signature, java.lang.Object value)
visitField
in class org.objectweb.asm.ClassVisitor
public org.objectweb.asm.MethodVisitor visitMethod(int modifiers, java.lang.String internalName, java.lang.String descriptor, java.lang.String signature, java.lang.String[] exception)
visitMethod
in class org.objectweb.asm.ClassVisitor