- castObjectTo(Type) - Static method in class net.lenni0451.commons.asm.ASMUtils
-
Get the instructions to cast an object to a specific type.
Boxed types will be unboxed.
- ClassInfo - Interface in net.lenni0451.commons.asm.info
-
- ClassInfoProvider - Interface in net.lenni0451.commons.asm.info
-
- ClassInfoResolver - Class in net.lenni0451.commons.asm.info.impl
-
- ClassInfoResolver() - Constructor for class net.lenni0451.commons.asm.info.impl.ClassInfoResolver
-
- ClassIO - Class in net.lenni0451.commons.asm.io
-
- ClassIO() - Constructor for class net.lenni0451.commons.asm.io.ClassIO
-
- classMappings - Variable in class net.lenni0451.commons.asm.mappings.Mappings
-
Class names are separated by /.
org/example/SomeClass -> org/example/NewName
- ClassMetaMapping - Class in net.lenni0451.commons.asm.mappings.meta
-
Metadata mappings for a class.
Some mappings formats may support additional information like javadoc.
- ClassMetaMapping() - Constructor for class net.lenni0451.commons.asm.mappings.meta.ClassMetaMapping
-
- ClassProvider - Interface in net.lenni0451.commons.asm.provider
-
A provider for class bytecode.
- ClassProvider.ClassSupplier - Interface in net.lenni0451.commons.asm.provider
-
- clone(ClassNode) - Static method in class net.lenni0451.commons.asm.Cloner
-
Clone a ClassNode and all its children.
- clone(FieldNode) - Static method in class net.lenni0451.commons.asm.Cloner
-
Clone a FieldNode and all its children.
- clone(MethodNode) - Static method in class net.lenni0451.commons.asm.Cloner
-
Clone a MethodNode and all its children.
- clone(InsnList) - Static method in class net.lenni0451.commons.asm.Cloner
-
Clone a InsnList and all its instructions.
- clone(AnnotationNode) - Static method in class net.lenni0451.commons.asm.Cloner
-
Clone a AnnotationNode and all its children.
- clone(TypeAnnotationNode) - Static method in class net.lenni0451.commons.asm.Cloner
-
Clone a TypeAnnotationNode and all its children.
- clone(Attribute) - Static method in class net.lenni0451.commons.asm.Cloner
-
Clone a Attribute.
Only ModuleHashesAttribute, ModuleResolutionAttribute and ModuleTargetAttribute are supported.
All other attributes will be returned as is.
- cloneLabels(InsnList) - Static method in class net.lenni0451.commons.asm.Cloner
-
Clone all labels in the given instruction list.
The returned map contains the original label as key and the cloned label as value.
- Cloner - Class in net.lenni0451.commons.asm
-
- Cloner() - Constructor for class net.lenni0451.commons.asm.Cloner
-
- close() - Method in interface net.lenni0451.commons.asm.provider.ClassProvider
-
Close the class provider and free all resources.
- close() - Method in class net.lenni0451.commons.asm.provider.DelegatingClassProvider
-
- close() - Method in class net.lenni0451.commons.asm.provider.instrumentation.InstrumentationCacheClassProvider
-
- close() - Method in class net.lenni0451.commons.asm.provider.instrumentation.InstrumentationLoaderClassProvider
-
- close() - Method in class net.lenni0451.commons.asm.provider.io.FileSystemClassProvider
-
- close() - Method in class net.lenni0451.commons.asm.provider.LazyClassProvider
-
- copy() - Method in class net.lenni0451.commons.asm.mappings.Mappings
-
- copy(Supplier<Map<String, String>>) - Method in class net.lenni0451.commons.asm.mappings.Mappings
-
Get a copy of these mappings with a custom map initializer.
This should be overridden by subclasses to return the correct type.
- copying(Mappings) - Static method in interface net.lenni0451.commons.asm.mappings.loader.MappingsProvider
-
Create a provider that returns a copy of the given mappings instance.
The initially passed mappings instance is copied when calling this method.
- copyMappings() - Method in interface net.lenni0451.commons.asm.mappings.loader.MappingsProvider
-
- create(ClassLoader) - Static method in interface net.lenni0451.commons.asm.info.ClassInfoProvider
-
- create(ClassProvider) - Static method in interface net.lenni0451.commons.asm.info.ClassInfoProvider
-
- createEmptyClass(String) - Static method in class net.lenni0451.commons.asm.ASMUtils
-
Create a new empty class node.
An empty constructor will be added to the class.
- FieldInfo - Interface in net.lenni0451.commons.asm.info
-
- fieldMappings - Variable in class net.lenni0451.commons.asm.mappings.Mappings
-
Field names are separated by . from the owner and with : from the descriptor.
The descriptor is optional but highly recommended to avoid conflicts.
org/example/SomeClass.fieldName:I -> newFieldName
- FieldMetaMapping - Class in net.lenni0451.commons.asm.mappings.meta
-
Metadata mappings for a field.
Some mappings formats may support additional information like javadoc.
- FieldMetaMapping() - Constructor for class net.lenni0451.commons.asm.mappings.meta.FieldMetaMapping
-
- FileSystemClassProvider - Class in net.lenni0451.commons.asm.provider.io
-
A class provider that uses a
FileSystem to provide classes.
The main implementation is done by
PathClassProvider.
- FileSystemClassProvider(FileSystem, boolean) - Constructor for class net.lenni0451.commons.asm.provider.io.FileSystemClassProvider
-
- fillAllSuperMembers(Mappings, ClassInfoProvider) - Static method in class net.lenni0451.commons.asm.mappings.MappingsFiller
-
Fill all super members of all classes in the mappings.
It will fill the super members for all classes that are mentioned in the mappings.
- fillAllSuperMembers(Mappings, ClassInfoProvider, Set<String>) - Static method in class net.lenni0451.commons.asm.mappings.MappingsFiller
-
Fill all super members of all classes in the mappings.
- fillSuperMembers(ClassInfo, Set<ClassInfo>, Mappings) - Static method in class net.lenni0451.commons.asm.mappings.MappingsFiller
-
Copy the field and method mappings of the super classes to the given class.
This is required for the correct remapping of fields and methods.
When invoking methods of super classes, the method owner of the instruction is the class where the method is invoked on and not the owner of the method itself.
This means during the remapping process the method owner is wrong and the method will not be found in the mappings.
To fix this, the method mappings of the super classes are copied to the class where the method could be invoked on.
- fillSuperMembers(ClassNode, Set<ClassNode>, Mappings) - Static method in class net.lenni0451.commons.asm.mappings.MappingsFiller
-
Copy the field and method mappings of the super classes to the given class.
This is required for the correct remapping of fields and methods.
When invoking methods of super classes, the method owner of the instruction is the class where the method is invoked on and not the owner of the method itself.
This means during the remapping process the method owner is wrong and the method will not be found in the mappings.
To fix this, the method mappings of the super classes are copied to the class where the method could be invoked on.
- findAnnotation(ClassNode, Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find a visible or invisible annotation in a ClassNode.
- findAnnotation(ClassNode, String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find a visible or invisible annotation in a ClassNode.
- findAnnotation(FieldNode, Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find a visible or invisible annotation in a FieldNode.
- findAnnotation(FieldNode, String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find a visible or invisible annotation in a FieldNode.
- findAnnotation(MethodNode, Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find a visible or invisible annotation in a MethodNode.
- findAnnotation(MethodNode, String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find a visible or invisible annotation in a MethodNode.
- findAnnotation(List<AnnotationNode>, Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find an annotation in a list of annotations.
- findAnnotation(List<AnnotationNode>, String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find an annotation in a list of annotations.
- findInvisibleAnnotation(ClassNode, Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find an invisible annotation in a ClassNode.
- findInvisibleAnnotation(ClassNode, String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find an invisible annotation in a ClassNode.
- findInvisibleAnnotation(FieldNode, Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find an invisible annotation in a FieldNode.
- findInvisibleAnnotation(FieldNode, String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find an invisible annotation in a FieldNode.
- findInvisibleAnnotation(MethodNode, Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find an invisible annotation in a MethodNode.
- findInvisibleAnnotation(MethodNode, String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find an invisible annotation in a MethodNode.
- findInvisibleParameterAnnotations(MethodNode, Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find invisible parameter annotations in a MethodNode.
- findInvisibleParameterAnnotations(MethodNode, String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find invisible parameter annotations in a MethodNode.
- findParameterAnnotations(MethodNode, Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find visible or invisible parameter annotations in a MethodNode.
- findParameterAnnotations(MethodNode, String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find visible or invisible parameter annotations in a MethodNode.
- findParameterAnnotations(List<AnnotationNode>[], Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find parameter annotations in a list of annotations.
- findParameterAnnotations(List<AnnotationNode>[], String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find parameter annotations in a list of annotations.
- findVisibleAnnotation(ClassNode, Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find a visible annotation in a ClassNode.
- findVisibleAnnotation(ClassNode, String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find a visible annotation in a ClassNode.
- findVisibleAnnotation(FieldNode, Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find a visible annotation in a FieldNode.
- findVisibleAnnotation(FieldNode, String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find a visible annotation in a FieldNode.
- findVisibleAnnotation(MethodNode, Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find a visible annotation in a MethodNode.
- findVisibleAnnotation(MethodNode, String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find a visible annotation in a MethodNode.
- findVisibleParameterAnnotations(MethodNode, Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find visible parameter annotations in a MethodNode.
- findVisibleParameterAnnotations(MethodNode, String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Find visible parameter annotations in a MethodNode.
- floatPush(float) - Static method in class net.lenni0451.commons.asm.ASMUtils
-
Get the most optimal instruction to push the given float onto the stack.
- forEach(ClassNode, Consumer<AnnotationNode>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Iterate through all annotations in a ClassNode.
- forEach(FieldNode, Consumer<AnnotationNode>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Iterate through all annotations in a FieldNode.
- forEach(MethodNode, Consumer<AnnotationNode>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Iterate through all annotations in a MethodNode.
- forEachInvisible(ClassNode, Consumer<AnnotationNode>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Iterate through all invisible annotations in a ClassNode.
- forEachInvisible(FieldNode, Consumer<AnnotationNode>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Iterate through all invisible annotations in a FieldNode.
- forEachInvisible(MethodNode, Consumer<AnnotationNode>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Iterate through all invisible annotations in a MethodNode.
- forEachVisible(ClassNode, Consumer<AnnotationNode>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Iterate through all visible annotations in a ClassNode.
- forEachVisible(FieldNode, Consumer<AnnotationNode>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Iterate through all visible annotations in a FieldNode.
- forEachVisible(MethodNode, Consumer<AnnotationNode>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Iterate through all visible annotations in a MethodNode.
- format(String) - Method in enum net.lenni0451.commons.asm.provider.MapClassProvider.NameFormat
-
- freeVarIndex(MethodNode) - Static method in class net.lenni0451.commons.asm.ASMUtils
-
Calculate the variable index of the first free variable in a method.
- fromBytes(byte[]) - Static method in class net.lenni0451.commons.asm.io.ClassIO
-
Read a class from a byte array.
This will use the ClassReader.EXPAND_FRAMES flag.
- fromBytes(byte[], int) - Static method in class net.lenni0451.commons.asm.io.ClassIO
-
Read a class from a byte array.
- fromFieldMapping(String) - Static method in class net.lenni0451.commons.asm.info.MemberDeclaration
-
- fromMethodMapping(String) - Static method in class net.lenni0451.commons.asm.info.MemberDeclaration
-
- has(int, int) - Static method in class net.lenni0451.commons.asm.Modifiers
-
Check if the given modifiers have the given flag.
- hasAll(int, int...) - Static method in class net.lenni0451.commons.asm.Modifiers
-
Check if the given modifiers have all of the given flags.
- hasAnnotation(ClassNode, Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if a ClassNode has a visible or invisible annotation.
- hasAnnotation(ClassNode, String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if a ClassNode has a visible or invisible annotation.
- hasAnnotation(FieldNode, Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if a FieldNode has a visible or invisible annotation.
- hasAnnotation(FieldNode, String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if a FieldNode has a visible or invisible annotation.
- hasAnnotation(MethodNode, Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if a MethodNode has a visible or invisible annotation.
- hasAnnotation(MethodNode, String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if a MethodNode has a visible or invisible annotation.
- hasAnnotation(List<AnnotationNode>, Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if a list of annotations has an annotation.
- hasAnnotation(List<AnnotationNode>, String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if a list of annotations has an annotation.
- hasAny(int, int...) - Static method in class net.lenni0451.commons.asm.Modifiers
-
Check if the given modifiers have any of the given flags.
- hasInvisibleAnnotation(ClassNode, Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if a ClassNode has an invisible annotation.
- hasInvisibleAnnotation(ClassNode, String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if a ClassNode has an invisible annotation.
- hasInvisibleAnnotation(FieldNode, Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if a FieldNode has an invisible annotation.
- hasInvisibleAnnotation(FieldNode, String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if a FieldNode has an invisible annotation.
- hasInvisibleAnnotation(MethodNode, Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if a MethodNode has an invisible annotation.
- hasInvisibleAnnotation(MethodNode, String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if a MethodNode has an invisible annotation.
- hasInvisibleParameterAnnotations(MethodNode, Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if a MethodNode has invisible parameter annotations.
- hasInvisibleParameterAnnotations(MethodNode, String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if a MethodNode has invisible parameter annotations.
- hasJavadoc() - Method in class net.lenni0451.commons.asm.mappings.meta.ClassMetaMapping
-
- hasJavadoc() - Method in class net.lenni0451.commons.asm.mappings.meta.FieldMetaMapping
-
- hasJavadoc() - Method in class net.lenni0451.commons.asm.mappings.meta.MethodMetaMapping
-
- hasJavadoc() - Method in class net.lenni0451.commons.asm.mappings.meta.ParameterMetaMapping
-
- hasParameterAnnotations(MethodNode, Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if a MethodNode has visible or invisible parameter annotations.
- hasParameterAnnotations(MethodNode, String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if a MethodNode has visible or invisible parameter annotations.
- hasParameterAnnotations(List<AnnotationNode>[], Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if an array of parameter annotations has an annotation.
- hasParameterAnnotations(List<AnnotationNode>[], String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if an array of parameter annotations has an annotation.
- hasVisibleAnnotation(ClassNode, Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if a ClassNode has a visible annotation.
- hasVisibleAnnotation(ClassNode, String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if a ClassNode has a visible annotation.
- hasVisibleAnnotation(FieldNode, Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if a FieldNode has a visible annotation.
- hasVisibleAnnotation(FieldNode, String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if a FieldNode has a visible annotation.
- hasVisibleAnnotation(MethodNode, Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if a MethodNode has a visible annotation.
- hasVisibleAnnotation(MethodNode, String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if a MethodNode has a visible annotation.
- hasVisibleParameterAnnotations(MethodNode, Class<?>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if a MethodNode has visible parameter annotations.
- hasVisibleParameterAnnotations(MethodNode, String) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
-
Check if a MethodNode has visible parameter annotations.
- InfoClassWriter - Class in net.lenni0451.commons.asm.io
-
A class writer which uses a
ClassInfoProvider to calculate the common super class of two classes.
- InfoClassWriter(int, ClassInfoProvider) - Constructor for class net.lenni0451.commons.asm.io.InfoClassWriter
-
- InstructionComparator - Class in net.lenni0451.commons.asm.compare
-
A comparator for AbstractInsnNode which can be used to compare two instruction lists.
- InstructionComparator() - Constructor for class net.lenni0451.commons.asm.compare.InstructionComparator
-
Creates a new instruction comparator which ignores frames and line numbers.
- InstructionComparator(int...) - Constructor for class net.lenni0451.commons.asm.compare.InstructionComparator
-
- InstrumentationCacheClassProvider - Class in net.lenni0451.commons.asm.provider.instrumentation
-
A class provider that uses an Instrumentation instance to cache all loaded classes.
The caching operation is slow and memory consuming, since the bytecode of all loaded classes is stored in memory.
This provider can't provide classes that have not been loaded yet.
- InstrumentationCacheClassProvider(Instrumentation) - Constructor for class net.lenni0451.commons.asm.provider.instrumentation.InstrumentationCacheClassProvider
-
- InstrumentationLoaderClassProvider - Class in net.lenni0451.commons.asm.provider.instrumentation
-
A class provider that uses an
Instrumentation instance to collect all class loaders to provide classes.
This provider delegates to
LoaderClassProvider instances for each found class loader.
If a class loader has not been used before yet, this provider will not be able to provide classes from it until the class loader is used at least once.
- InstrumentationLoaderClassProvider(Instrumentation) - Constructor for class net.lenni0451.commons.asm.provider.instrumentation.InstrumentationLoaderClassProvider
-
- internalName(Object) - Static method in class net.lenni0451.commons.asm.Types
-
- intPush(int) - Static method in class net.lenni0451.commons.asm.ASMUtils
-
Get the most optimal instruction to push the given integer onto the stack.
- is(String, String, String) - Method in class net.lenni0451.commons.asm.info.MemberDeclaration
-
Check if this member declaration is equal to the given owner, name and descriptor.
- is(FieldInsnNode) - Method in class net.lenni0451.commons.asm.info.MemberDeclaration
-
Check if this member declaration is equal to the given FieldInsnNode.
- is(MethodInsnNode) - Method in class net.lenni0451.commons.asm.info.MemberDeclaration
-
Check if this member declaration is equal to the given MethodInsnNode.
- isEmpty() - Method in class net.lenni0451.commons.asm.mappings.Mappings
-
- isEmpty() - Method in class net.lenni0451.commons.asm.mappings.meta.ClassMetaMapping
-
- isEmpty() - Method in class net.lenni0451.commons.asm.mappings.meta.FieldMetaMapping
-
- isEmpty() - Method in class net.lenni0451.commons.asm.mappings.meta.MethodMetaMapping
-
- isField() - Method in class net.lenni0451.commons.asm.info.MemberDeclaration
-
- isMethod() - Method in class net.lenni0451.commons.asm.info.MemberDeclaration
-
- isolate() - Method in class net.lenni0451.commons.asm.mappings.Mappings
-
Isolate this instance from the reversed one.
This will remove the reverse reference from this instance and the reverse instance.
- isPrimitive(Type) - Static method in class net.lenni0451.commons.asm.Types
-
Check if the given type is a primitive type.
Primitive types are: void, boolean, byte, short, char, int, long, float, double
- isSet(String) - Method in interface net.lenni0451.commons.asm.annotations.parser.ParsedAnnotation
-
Check if the value of a key is set.