| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| public | DuplicatesPredicate()
Constructs a DuplicatesPredicate that will allow subclass bridge methods to be preferred over superclass non-bridge methods. |
| public | DuplicatesPredicate(List<E> allMethods)
Constructs a DuplicatesPredicate that prefers using superclass non-bridge methods despite a subclass method with the same signature existing (if the subclass is a bridge method). |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| private static ClassLoader |
| rejected | back to summary |
|---|---|
| private final Set<E> rejected | |
| unique | back to summary |
|---|---|
| private final Set<E> unique | |
| DuplicatesPredicate | back to summary |
|---|---|
| public DuplicatesPredicate() Constructs a DuplicatesPredicate that will allow subclass bridge methods to be preferred over superclass non-bridge methods. | |
| DuplicatesPredicate | back to summary |
|---|---|
| public DuplicatesPredicate(List<E> allMethods) Constructs a DuplicatesPredicate that prefers using superclass non-bridge methods despite a subclass method with the same signature existing (if the subclass is a bridge method). | |
| evaluate | back to summary |
|---|---|
| public boolean evaluate(Object arg) Implements org.
| |
| getClassLoader | back to summary |
|---|---|
| private static ClassLoader getClassLoader(Class<T> c) | |
| Modifier and Type | Field and Description |
|---|---|
| private Signature | |
| private Map | |
| private final Set |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public void | visit(int
the class version. The minor version is stored in the 16 most significant bits,
and the major version in the 16 least significant bits. version, int the class's access flags (see access, String Opcodes). This parameter also indicates if
the class is deprecated Opcodes#ACC_DEPRECATED or a record Opcodes#ACC_RECORD.the internal name of the class (see name, String Type#getInternalName()).the signature of this class. May be null if the class is not a
generic one, and does not extend or implement generic classes or interfaces. signature, String the internal of name of the super class (see superName, String[] Type#getInternalName()).
For interfaces, the super class is Object. May be null, but only for the
Object class.the internal names of the class's interfaces (see interfaces)Type#getInternalName()). May be null.Overrides org. Visits the header of the class. |
| public MethodVisitor | visitMethod(int
the method's access flags (see access, String Opcodes). This parameter also indicates if
the method is synthetic and/or deprecated.the method's name. name, String the method's descriptor (see desc, String Type).the method's signature. May be null if the method parameters,
return type and exceptions do not use generic types. signature, String[] the internal names of the method's exception classes (see exceptions)Type#getInternalName()). May be null.Overrides org. Visits a method of the class. |
| currentMethodSig | back to summary |
|---|---|
| private Signature currentMethodSig | |
| methods | back to summary |
|---|---|
| private Map<K, V> methods | |
| rejected | back to summary |
|---|---|
| private final Set<E> rejected | |
| UnnecessaryBridgeFinder | back to summary |
|---|---|
| pack-priv UnnecessaryBridgeFinder(Set<E> rejected) | |
| addSuspectMethod | back to summary |
|---|---|
| pack-priv void addSuspectMethod(Method m) | |
| visit | back to summary |
|---|---|
| public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) Overrides org. Doc from org. Visits the header of the class.
| |
| visitMethod | back to summary |
|---|---|
| public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) Overrides org. Doc from org. Visits a method of the class. This method must return a new
| |