Skip navigation links
A B C D E F G H I J L M N O P R S T V W 

A

add(int, int) - Static method in class net.lenni0451.commons.asm.Modifiers
Add a flag to the given modifiers.
addClassMapping(String, String) - Method in class net.lenni0451.commons.asm.mappings.Mappings
Add a class mapping.
org/example/SomeClass -> org/example/NewName
addClassMapping(String, String, boolean) - Method in class net.lenni0451.commons.asm.mappings.Mappings
Add a class mapping.
org/example/SomeClass -> org/example/NewName
addFieldMapping(String, String, String, String) - Method in class net.lenni0451.commons.asm.mappings.Mappings
Add a field mapping.
The descriptor is optional but highly recommended to avoid conflicts.
org/example/SomeClass.fieldName:I -> newFieldName
addFieldMapping(String, String, String, String, boolean) - Method in class net.lenni0451.commons.asm.mappings.Mappings
Add a field mapping.
The descriptor is optional but highly recommended to avoid conflicts.
org/example/SomeClass.fieldName:I -> newFieldName
addMethodMapping(String, String, String, String) - Method in class net.lenni0451.commons.asm.mappings.Mappings
Add a method mapping.
org/example/SomeClass.methodName(I)V -> newMethodName
addMethodMapping(String, String, String, String, boolean) - Method in class net.lenni0451.commons.asm.mappings.Mappings
Add a method mapping.
org/example/SomeClass.methodName(I)V -> newMethodName
addPackageMapping(String, String) - Method in class net.lenni0451.commons.asm.mappings.Mappings
Add a package mapping.
If a package is . it is the default package.
org/example -> org/example2
addPackageMapping(String, String, boolean) - Method in class net.lenni0451.commons.asm.mappings.Mappings
Add a package mapping.
If a package is . it is the default package.
org/example -> org/example2
AnnotationParser - Class in net.lenni0451.commons.asm.annotations.parser
 
AnnotationParser() - Constructor for class net.lenni0451.commons.asm.annotations.parser.AnnotationParser
 
AnnotationUtils - Class in net.lenni0451.commons.asm.annotations
 
AnnotationUtils() - Constructor for class net.lenni0451.commons.asm.annotations.AnnotationUtils
 
argumentTypes(Object) - Static method in class net.lenni0451.commons.asm.Types
Get the argument types of the given object.
Supported types:
- String (Will be parsed as a method descriptor)
- Method
- MethodNode
- MethodInsnNode
ASMClassInfo - Class in net.lenni0451.commons.asm.info.impl.asm
 
ASMClassInfo() - Constructor for class net.lenni0451.commons.asm.info.impl.asm.ASMClassInfo
 
ASMClassInfoProvider - Class in net.lenni0451.commons.asm.info.impl.asm
 
ASMClassInfoProvider(ClassProvider) - Constructor for class net.lenni0451.commons.asm.info.impl.asm.ASMClassInfoProvider
 
ASMFieldInfo - Class in net.lenni0451.commons.asm.info.impl.asm
 
ASMFieldInfo() - Constructor for class net.lenni0451.commons.asm.info.impl.asm.ASMFieldInfo
 
ASMMethodInfo - Class in net.lenni0451.commons.asm.info.impl.asm
 
ASMMethodInfo() - Constructor for class net.lenni0451.commons.asm.info.impl.asm.ASMMethodInfo
 
ASMUtils - Class in net.lenni0451.commons.asm
 
ASMUtils() - Constructor for class net.lenni0451.commons.asm.ASMUtils
 

B

boxPrimitive(Type) - Static method in class net.lenni0451.commons.asm.ASMUtils
Get the instruction to box a primitive type.

C

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.

D

DelegatingClassProvider - Class in net.lenni0451.commons.asm.provider
A class provider that delegates to multiple other class providers.
DelegatingClassProvider(ClassProvider...) - Constructor for class net.lenni0451.commons.asm.provider.DelegatingClassProvider
 
direct(Mappings) - Static method in interface net.lenni0451.commons.asm.mappings.loader.MappingsProvider
Create a provider that returns the given mappings instance directly.
dot(String) - Static method in class net.lenni0451.commons.asm.ASMUtils
Replace all slashes with dots.
doublePush(double) - Static method in class net.lenni0451.commons.asm.ASMUtils
Get the most optimal instruction to push the given double onto the stack.
DummyClassProvider - Class in net.lenni0451.commons.asm.provider
A class provider that returns empty classes for every requested class.
DummyClassProvider() - Constructor for class net.lenni0451.commons.asm.provider.DummyClassProvider
 

E

empty() - Static method in interface net.lenni0451.commons.asm.mappings.loader.MappingsProvider
Create an empty provider that returns an empty mappings instance.
emptyCopy() - Method in class net.lenni0451.commons.asm.mappings.Mappings
 
emptyCopy(Supplier<Map<String, String>>) - Method in class net.lenni0451.commons.asm.mappings.Mappings
Get an empty copy of these mappings with a custom map initializer.
This should be overridden by subclasses to return the correct type.
enableMetaParsing() - Method in class net.lenni0451.commons.asm.mappings.loader.formats.TinyV2MappingsLoader
Enable parsing of metadata for classes, fields, methods and parameters.
Disabled by default.
equals(InsnList, InsnList) - Method in class net.lenni0451.commons.asm.compare.InstructionComparator
Check if two InsnList are equal.
equals(List<? extends AbstractInsnNode>, List<? extends AbstractInsnNode>) - Method in class net.lenni0451.commons.asm.compare.InstructionComparator
Check if two lists of AbstractInsnNode are equal.
equals(AbstractInsnNode[], AbstractInsnNode[]) - Method in class net.lenni0451.commons.asm.compare.InstructionComparator
Compare two arrays of AbstractInsnNode.
equals(AbstractInsnNode, AbstractInsnNode) - Method in class net.lenni0451.commons.asm.compare.InstructionComparator
Compare two AbstractInsnNode.
This method ignores the AbstractInsnNode.getNext() and AbstractInsnNode.getPrevious() instructions.

F

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
Parse a field mapping to a MemberDeclaration.
Format: owner.name[:descriptor] e.g.
fromMethodMapping(String) - Static method in class net.lenni0451.commons.asm.info.MemberDeclaration
Parse a method mapping to a MemberDeclaration.
Format: owner.name(descriptor) e.g.

G

generateVariableName(Type, Predicate<String>) - Static method in class net.lenni0451.commons.asm.ASMUtils
Generate a variable name for a type that does not exist yet.
get() - Method in interface net.lenni0451.commons.asm.provider.ClassProvider.ClassSupplier
Get the bytecode of the class.
getAllClasses() - Method in interface net.lenni0451.commons.asm.provider.ClassProvider
Get a map of all classes that are available in this provider.
Not every implementation has to support this and can throw an UnsupportedOperationException if it is not supported.
The key format is "package/Name".
getAllClasses() - Method in class net.lenni0451.commons.asm.provider.DelegatingClassProvider
 
getAllClasses() - Method in class net.lenni0451.commons.asm.provider.instrumentation.InstrumentationCacheClassProvider
 
getAllClasses() - Method in class net.lenni0451.commons.asm.provider.instrumentation.InstrumentationLoaderClassProvider
 
getAllClasses() - Method in class net.lenni0451.commons.asm.provider.io.PathClassProvider
 
getAllClasses() - Method in class net.lenni0451.commons.asm.provider.LazyClassProvider
 
getAllClasses() - Method in class net.lenni0451.commons.asm.provider.MapClassProvider
 
getClass(String) - Method in interface net.lenni0451.commons.asm.provider.ClassProvider
Get the bytecode of a class by its name.
The name should be in the format of "package/Name".
If the class could not be found, a ClassNotFoundException is thrown.
getClass(String) - Method in class net.lenni0451.commons.asm.provider.DelegatingClassProvider
 
getClass(String) - Method in class net.lenni0451.commons.asm.provider.DummyClassProvider
 
getClass(String) - Method in class net.lenni0451.commons.asm.provider.instrumentation.InstrumentationCacheClassProvider
 
getClass(String) - Method in class net.lenni0451.commons.asm.provider.instrumentation.InstrumentationLoaderClassProvider
 
getClass(String) - Method in class net.lenni0451.commons.asm.provider.io.PathClassProvider
 
getClass(String) - Method in class net.lenni0451.commons.asm.provider.LazyClassProvider
 
getClass(String) - Method in class net.lenni0451.commons.asm.provider.LoaderClassProvider
 
getClass(String) - Method in class net.lenni0451.commons.asm.provider.MapClassProvider
 
getClasses() - Method in class net.lenni0451.commons.asm.provider.MapClassProvider
 
getClassInfoProvider() - Method in class net.lenni0451.commons.asm.info.impl.asm.ASMClassInfo
 
getClassLoader() - Method in class net.lenni0451.commons.asm.provider.LoaderClassProvider
 
getClassMappings() - Method in class net.lenni0451.commons.asm.mappings.Mappings
 
getClassNode() - Method in class net.lenni0451.commons.asm.info.impl.asm.ASMClassInfo
 
getClassNode(String) - Method in interface net.lenni0451.commons.asm.provider.ClassProvider
Get the bytecode of a class by its name and convert it to a ClassNode.
getClassProvider() - Method in class net.lenni0451.commons.asm.info.impl.asm.ASMClassInfoProvider
 
getCommonSuperClass(String, String) - Method in class net.lenni0451.commons.asm.io.InfoClassWriter
 
getCommonSuperClass(String, String) - Method in class net.lenni0451.commons.asm.io.ObjectClassWriter
 
getDescriptor() - Method in interface net.lenni0451.commons.asm.info.FieldInfo
 
getDescriptor() - Method in class net.lenni0451.commons.asm.info.impl.asm.ASMFieldInfo
 
getDescriptor() - Method in class net.lenni0451.commons.asm.info.impl.asm.ASMMethodInfo
 
getDescriptor() - Method in class net.lenni0451.commons.asm.info.impl.jvm.JVMFieldInfo
 
getDescriptor() - Method in class net.lenni0451.commons.asm.info.impl.jvm.JVMMethodInfo
 
getDescriptor() - Method in class net.lenni0451.commons.asm.info.MemberDeclaration
 
getDescriptor() - Method in interface net.lenni0451.commons.asm.info.MethodInfo
 
getField(ClassNode, String, String) - Static method in class net.lenni0451.commons.asm.ASMUtils
Get a field from a class node.
The field is searched by its name and descriptor.
getFieldMappings() - Method in class net.lenni0451.commons.asm.mappings.Mappings
 
getFields() - Method in interface net.lenni0451.commons.asm.info.ClassInfo
 
getFileSystem() - Method in class net.lenni0451.commons.asm.provider.io.FileSystemClassProvider
 
getInterfaceInfos() - Method in interface net.lenni0451.commons.asm.info.ClassInfo
 
getInterfaces() - Method in interface net.lenni0451.commons.asm.info.ClassInfo
 
getInterfaces() - Method in class net.lenni0451.commons.asm.info.impl.asm.ASMClassInfo
 
getInterfaces() - Method in class net.lenni0451.commons.asm.info.impl.jvm.JVMClassInfo
 
getMappings() - Method in class net.lenni0451.commons.asm.mappings.loader.MappingsLoader
Get and load the mappings if they are not loaded yet.
All exceptions that might occur when loading the mappings are rethrown using a RuntimeException.
getMappings() - Method in interface net.lenni0451.commons.asm.mappings.loader.MappingsProvider
 
getMetaMappings() - Method in class net.lenni0451.commons.asm.mappings.loader.formats.TinyV2MappingsLoader
Get the parsed metadata mappings.
Make sure to enable parsing of metadata before calling this method.
This loader will be initialized if this method is called.
getMetaMappings() - Method in interface net.lenni0451.commons.asm.mappings.loader.MappingsProvider
Get the meta mappings for the mappings.
getMethod(ClassNode, String, String) - Static method in class net.lenni0451.commons.asm.ASMUtils
Get a method from a class node.
The method is searched by its name and descriptor.
getMethodMappings() - Method in class net.lenni0451.commons.asm.mappings.Mappings
 
getMethods() - Method in interface net.lenni0451.commons.asm.info.ClassInfo
 
getModifiers() - Method in interface net.lenni0451.commons.asm.info.ClassInfo
 
getModifiers() - Method in interface net.lenni0451.commons.asm.info.FieldInfo
 
getModifiers() - Method in class net.lenni0451.commons.asm.info.impl.asm.ASMClassInfo
 
getModifiers() - Method in class net.lenni0451.commons.asm.info.impl.asm.ASMFieldInfo
 
getModifiers() - Method in class net.lenni0451.commons.asm.info.impl.asm.ASMMethodInfo
 
getModifiers() - Method in class net.lenni0451.commons.asm.info.impl.jvm.JVMClassInfo
 
getModifiers() - Method in class net.lenni0451.commons.asm.info.impl.jvm.JVMFieldInfo
 
getModifiers() - Method in class net.lenni0451.commons.asm.info.impl.jvm.JVMMethodInfo
 
getModifiers() - Method in interface net.lenni0451.commons.asm.info.MethodInfo
 
getName() - Method in interface net.lenni0451.commons.asm.info.ClassInfo
 
getName() - Method in interface net.lenni0451.commons.asm.info.FieldInfo
 
getName() - Method in class net.lenni0451.commons.asm.info.impl.asm.ASMClassInfo
 
getName() - Method in class net.lenni0451.commons.asm.info.impl.asm.ASMFieldInfo
 
getName() - Method in class net.lenni0451.commons.asm.info.impl.asm.ASMMethodInfo
 
getName() - Method in class net.lenni0451.commons.asm.info.impl.jvm.JVMClassInfo
 
getName() - Method in class net.lenni0451.commons.asm.info.impl.jvm.JVMFieldInfo
 
getName() - Method in class net.lenni0451.commons.asm.info.impl.jvm.JVMMethodInfo
 
getName() - Method in class net.lenni0451.commons.asm.info.MemberDeclaration
 
getName() - Method in interface net.lenni0451.commons.asm.info.MethodInfo
 
getOwner() - Method in class net.lenni0451.commons.asm.info.MemberDeclaration
 
getPackageMappings() - Method in class net.lenni0451.commons.asm.mappings.Mappings
 
getPath() - Method in class net.lenni0451.commons.asm.provider.io.PathClassProvider
 
getRecursiveSuperClasses() - Method in interface net.lenni0451.commons.asm.info.ClassInfo
 
getSuperClass() - Method in interface net.lenni0451.commons.asm.info.ClassInfo
 
getSuperClass() - Method in class net.lenni0451.commons.asm.info.impl.asm.ASMClassInfo
 
getSuperClass() - Method in class net.lenni0451.commons.asm.info.impl.jvm.JVMClassInfo
 
getSuperClassInfo() - Method in interface net.lenni0451.commons.asm.info.ClassInfo
 
getValue(String) - Method in interface net.lenni0451.commons.asm.annotations.parser.ParsedAnnotation
Get the raw value of a key.
getValues() - Method in interface net.lenni0451.commons.asm.annotations.parser.ParsedAnnotation
 

H

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.

I

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
Get the internal name of the given object.
See Types.type(Object) for supported 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.

J

JarFileClassProvider - Class in net.lenni0451.commons.asm.provider.io
A class provider that searches for classes in a jar file.
The main implementation is done by FileSystemClassProvider.
JarFileClassProvider(File) - Constructor for class net.lenni0451.commons.asm.provider.io.JarFileClassProvider
 
JVMClassInfo - Class in net.lenni0451.commons.asm.info.impl.jvm
 
JVMClassInfo() - Constructor for class net.lenni0451.commons.asm.info.impl.jvm.JVMClassInfo
 
JVMClassInfoProvider - Class in net.lenni0451.commons.asm.info.impl.jvm
 
JVMClassInfoProvider() - Constructor for class net.lenni0451.commons.asm.info.impl.jvm.JVMClassInfoProvider
 
JVMClassInfoProvider(ClassLoader) - Constructor for class net.lenni0451.commons.asm.info.impl.jvm.JVMClassInfoProvider
 
JVMFieldInfo - Class in net.lenni0451.commons.asm.info.impl.jvm
 
JVMFieldInfo() - Constructor for class net.lenni0451.commons.asm.info.impl.jvm.JVMFieldInfo
 
JVMMethodInfo - Class in net.lenni0451.commons.asm.info.impl.jvm
 
JVMMethodInfo() - Constructor for class net.lenni0451.commons.asm.info.impl.jvm.JVMMethodInfo
 

L

LazyClassProvider - Class in net.lenni0451.commons.asm.provider
A class provider that delegates to another class provider which is only initialized when it is needed.
LazyClassProvider(Supplier<ClassProvider>) - Constructor for class net.lenni0451.commons.asm.provider.LazyClassProvider
 
lazyDelegating(Collection<File>) - Static method in class net.lenni0451.commons.asm.provider.io.JarFileClassProvider
Create a lazy delegating class provider using the given jar files.
The jar files will only be opened when a class is requested which was not found in the previous jar files.
listToMap(List<Object>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
Convert a list of key-value pairs to a map.
The list must be in the format [key, value, key, value, ...].
load(List<String>) - Method in class net.lenni0451.commons.asm.mappings.loader.formats.ProguardMappingsLoader
 
load(List<String>) - Method in class net.lenni0451.commons.asm.mappings.loader.formats.RetroguardMappingsLoader
 
load(List<String>) - Method in class net.lenni0451.commons.asm.mappings.loader.formats.SrgMappingsLoader
 
load(List<String>) - Method in class net.lenni0451.commons.asm.mappings.loader.formats.TinyV1MappingsLoader
 
load(List<String>) - Method in class net.lenni0451.commons.asm.mappings.loader.formats.TinyV2MappingsLoader
 
load(List<String>) - Method in class net.lenni0451.commons.asm.mappings.loader.formats.TsrgV1MappingsLoader
 
load() - Method in class net.lenni0451.commons.asm.mappings.loader.MappingsLoader
Load the mappings from the provided source if not already loaded.
load(List<String>) - Method in class net.lenni0451.commons.asm.mappings.loader.MappingsLoader
Load the mappings from the provided lines.
LoaderClassProvider - Class in net.lenni0451.commons.asm.provider
A class provider that loads classes from a specific class loader.
This provider is unable to find classes which are defined at runtime, since they are not available as resources.
LoaderClassProvider() - Constructor for class net.lenni0451.commons.asm.provider.LoaderClassProvider
 
LoaderClassProvider(ClassLoader) - Constructor for class net.lenni0451.commons.asm.provider.LoaderClassProvider
 
loadMethodArgs(MethodNode) - Static method in class net.lenni0451.commons.asm.ASMUtils
Get the instructions to load the arguments of a method onto the stack.
longPush(long) - Static method in class net.lenni0451.commons.asm.ASMUtils
Get the most optimal instruction to push the given long onto the stack.

M

map(String) - Method in class net.lenni0451.commons.asm.mappings.Mappings
 
mapClassPackage(String) - Method in class net.lenni0451.commons.asm.mappings.Mappings
Map the package of a class name.
MapClassProvider - Class in net.lenni0451.commons.asm.provider
MapClassProvider(Map<String, byte[]>, MapClassProvider.NameFormat) - Constructor for class net.lenni0451.commons.asm.provider.MapClassProvider
 
MapClassProvider.NameFormat - Enum in net.lenni0451.commons.asm.provider
 
mapFieldName(String, String, String) - Method in class net.lenni0451.commons.asm.mappings.Mappings
 
mapInitializer - Variable in class net.lenni0451.commons.asm.mappings.Mappings
 
mapMethodName(String, String, String) - Method in class net.lenni0451.commons.asm.mappings.Mappings
 
mapPackageName(String) - Method in class net.lenni0451.commons.asm.mappings.Mappings
 
Mappings - Class in net.lenni0451.commons.asm.mappings
 
Mappings() - Constructor for class net.lenni0451.commons.asm.mappings.Mappings
 
Mappings(Supplier<Map<String, String>>) - Constructor for class net.lenni0451.commons.asm.mappings.Mappings
 
Mappings(Mappings, Function<Map<String, String>, Map<String, String>>) - Constructor for class net.lenni0451.commons.asm.mappings.Mappings
 
Mappings.ReverseCacheMode - Enum in net.lenni0451.commons.asm.mappings
 
MappingsBridge - Class in net.lenni0451.commons.asm.mappings
 
MappingsBridge() - Constructor for class net.lenni0451.commons.asm.mappings.MappingsBridge
 
MappingsFiller - Class in net.lenni0451.commons.asm.mappings
 
MappingsFiller() - Constructor for class net.lenni0451.commons.asm.mappings.MappingsFiller
 
MappingsLoader - Class in net.lenni0451.commons.asm.mappings.loader
An abstract class for various mappings loaders.
MappingsLoader(InputStream) - Constructor for class net.lenni0451.commons.asm.mappings.loader.MappingsLoader
 
MappingsLoader(File) - Constructor for class net.lenni0451.commons.asm.mappings.loader.MappingsLoader
 
MappingsLoader(Path) - Constructor for class net.lenni0451.commons.asm.mappings.loader.MappingsLoader
 
MappingsProvider - Interface in net.lenni0451.commons.asm.mappings.loader
 
mapToList(Map<String, Object>) - Static method in class net.lenni0451.commons.asm.annotations.AnnotationUtils
Convert a map to a list of key-value pairs.
The list will be in the format [key, value, key, value, ...].
MemberDeclaration - Class in net.lenni0451.commons.asm.info
Represents a member declaration of a class.
MemberDeclaration(String, String, String) - Constructor for class net.lenni0451.commons.asm.info.MemberDeclaration
 
methodDescriptor(Object, Object...) - Static method in class net.lenni0451.commons.asm.Types
Get the descriptor of the given method.
If returnType is a Method or Constructor the descriptor will be generated from the method/constructor.
Otherwise the descriptor will be generated from the given arguments.
See Types.type(Object) for supported types.
MethodInfo - Interface in net.lenni0451.commons.asm.info
 
MethodInliner - Class in net.lenni0451.commons.asm
 
MethodInliner() - Constructor for class net.lenni0451.commons.asm.MethodInliner
 
methodMappings - Variable in class net.lenni0451.commons.asm.mappings.Mappings
Method names are separated by . from the owner.
MethodMetaMapping - Class in net.lenni0451.commons.asm.mappings.meta
Metadata mappings for a method.
Some mappings formats may support additional information like javadoc.
MethodMetaMapping() - Constructor for class net.lenni0451.commons.asm.mappings.meta.MethodMetaMapping
 
Modifiers - Class in net.lenni0451.commons.asm
 
Modifiers() - Constructor for class net.lenni0451.commons.asm.Modifiers
 

N

net.lenni0451.commons.asm - package net.lenni0451.commons.asm
 
net.lenni0451.commons.asm.annotations - package net.lenni0451.commons.asm.annotations
 
net.lenni0451.commons.asm.annotations.parser - package net.lenni0451.commons.asm.annotations.parser
 
net.lenni0451.commons.asm.compare - package net.lenni0451.commons.asm.compare
 
net.lenni0451.commons.asm.info - package net.lenni0451.commons.asm.info
 
net.lenni0451.commons.asm.info.impl - package net.lenni0451.commons.asm.info.impl
 
net.lenni0451.commons.asm.info.impl.asm - package net.lenni0451.commons.asm.info.impl.asm
 
net.lenni0451.commons.asm.info.impl.jvm - package net.lenni0451.commons.asm.info.impl.jvm
 
net.lenni0451.commons.asm.io - package net.lenni0451.commons.asm.io
 
net.lenni0451.commons.asm.mappings - package net.lenni0451.commons.asm.mappings
 
net.lenni0451.commons.asm.mappings.loader - package net.lenni0451.commons.asm.mappings.loader
 
net.lenni0451.commons.asm.mappings.loader.formats - package net.lenni0451.commons.asm.mappings.loader.formats
 
net.lenni0451.commons.asm.mappings.meta - package net.lenni0451.commons.asm.mappings.meta
 
net.lenni0451.commons.asm.provider - package net.lenni0451.commons.asm.provider
 
net.lenni0451.commons.asm.provider.instrumentation - package net.lenni0451.commons.asm.provider.instrumentation
 
net.lenni0451.commons.asm.provider.io - package net.lenni0451.commons.asm.provider.io
 

O

ObjectClassWriter - Class in net.lenni0451.commons.asm.io
A class writer implementation which always returns java/lang/Object as the common super class.
This can cause issues with the stack frame calculation but works surprisingly well in most cases.
ObjectClassWriter(int) - Constructor for class net.lenni0451.commons.asm.io.ObjectClassWriter
 
of(String) - Method in interface net.lenni0451.commons.asm.info.ClassInfoProvider
Get the ClassInfo of a class by its name.
The name is in internal format (e.g.
of(Type) - Method in interface net.lenni0451.commons.asm.info.ClassInfoProvider
Get the ClassInfo of a class by its type.
Throws an exception if the class does not exist.
of(Class<?>) - Method in interface net.lenni0451.commons.asm.info.ClassInfoProvider
Get the ClassInfo of a class.
Throws an exception if the class does not exist.
of(ClassNode) - Method in interface net.lenni0451.commons.asm.info.ClassInfoProvider
Get the ClassInfo of a class node.
Throws an exception if the class does not exist.
of(String) - Method in class net.lenni0451.commons.asm.info.impl.asm.ASMClassInfoProvider
 
of(ClassNode) - Method in class net.lenni0451.commons.asm.info.impl.asm.ASMClassInfoProvider
 
of(String) - Method in class net.lenni0451.commons.asm.info.impl.jvm.JVMClassInfoProvider
 
of(Class<?>) - Method in class net.lenni0451.commons.asm.info.impl.jvm.JVMClassInfoProvider
 

P

packageMappings - Variable in class net.lenni0451.commons.asm.mappings.Mappings
Package names are separated by /.
If a package equals . it is the default package.
org/example -> org/example2
parameterIndices(MethodNode) - Static method in class net.lenni0451.commons.asm.ASMUtils
Calculate the indices of the parameters of a method.
ParameterMetaMapping - Class in net.lenni0451.commons.asm.mappings.meta
Metadata mappings for a parameter.
Some mappings formats may support additional information like javadoc.
ParameterMetaMapping() - Constructor for class net.lenni0451.commons.asm.mappings.meta.ParameterMetaMapping
 
parse(AnnotationNode) - Static method in class net.lenni0451.commons.asm.annotations.parser.AnnotationParser
Parse an annotation from an AnnotationNode.
This will create a proxy instance of the annotation with the values from the annotation node.
parse(ClassLoader, AnnotationNode) - Static method in class net.lenni0451.commons.asm.annotations.parser.AnnotationParser
Parse an annotation from an AnnotationNode.
This will create a proxy instance of the annotation with the values from the annotation node.
parse(Class<T>, AnnotationNode) - Static method in class net.lenni0451.commons.asm.annotations.parser.AnnotationParser
Parse an annotation from an AnnotationNode.
This will create a proxy instance of the annotation with the values from the annotation node.
parse(ClassLoader, Class<T>, AnnotationNode) - Static method in class net.lenni0451.commons.asm.annotations.parser.AnnotationParser
Parse an annotation from an AnnotationNode.
This will create a proxy instance of the annotation with the values from the annotation node.
ParsedAnnotation - Interface in net.lenni0451.commons.asm.annotations.parser
An interface implemented by annotations parsed by the AnnotationParser.
PathClassProvider - Class in net.lenni0451.commons.asm.provider.io
A class provider that searches for classes in a path.
PathClassProvider(Path) - Constructor for class net.lenni0451.commons.asm.provider.io.PathClassProvider
 
precalculate(Mappings, Mappings) - Static method in class net.lenni0451.commons.asm.mappings.MappingsBridge
Precalculate mappings from a source mapping to a target mapping.
This can be used to bridge two different mappings without having to map through the intermediary every time.
ProguardMappingsLoader - Class in net.lenni0451.commons.asm.mappings.loader.formats
A loader for Proguard mappings.
ProguardMappingsLoader(InputStream) - Constructor for class net.lenni0451.commons.asm.mappings.loader.formats.ProguardMappingsLoader
 
ProguardMappingsLoader(File) - Constructor for class net.lenni0451.commons.asm.mappings.loader.formats.ProguardMappingsLoader
 
ProguardMappingsLoader(Path) - Constructor for class net.lenni0451.commons.asm.mappings.loader.formats.ProguardMappingsLoader
 

R

recursiveResolveSuperClasses(ClassInfo, boolean) - Static method in class net.lenni0451.commons.asm.info.impl.ClassInfoResolver
Recursively resolve all super classes and interfaces of the given class info.
remap(ClassNode, Remapper) - Static method in class net.lenni0451.commons.asm.mappings.Remapper
Remap a class node.
remapJarEntries(Map<String, byte[]>, Remapper) - Static method in class net.lenni0451.commons.asm.mappings.Remapper
Remap all classes in a jar file.
Remapper - Class in net.lenni0451.commons.asm.mappings
 
Remapper() - Constructor for class net.lenni0451.commons.asm.mappings.Remapper
 
remove(int, int) - Static method in class net.lenni0451.commons.asm.Modifiers
Remove a flag from the given modifiers.
resolveInterfaces(ClassInfoProvider, ClassInfo) - Static method in class net.lenni0451.commons.asm.info.impl.ClassInfoResolver
Resolve the interfaces of the given class info and return their class info representations.
resolveSuperClass(ClassInfoProvider, ClassInfo) - Static method in class net.lenni0451.commons.asm.info.impl.ClassInfoResolver
Resolve the super class of the given class info and return its class info representation.
RetroguardMappingsLoader - Class in net.lenni0451.commons.asm.mappings.loader.formats
A loader for Retroguard mappings.
Not all Retroguard operations are supported, only the most commonly used ones.
RetroguardMappingsLoader(InputStream) - Constructor for class net.lenni0451.commons.asm.mappings.loader.formats.RetroguardMappingsLoader
 
RetroguardMappingsLoader(File) - Constructor for class net.lenni0451.commons.asm.mappings.loader.formats.RetroguardMappingsLoader
 
RetroguardMappingsLoader(Path) - Constructor for class net.lenni0451.commons.asm.mappings.loader.formats.RetroguardMappingsLoader
 
returnType(Object) - Static method in class net.lenni0451.commons.asm.Types
Get the return type of the given object.
Supported types:
- String (Will be parsed as a method descriptor)
- Method
- MethodNode
- MethodInsnNode
- Type (Will be returned as is)
reverse() - Method in class net.lenni0451.commons.asm.mappings.Mappings
Reverse the mappings using the Mappings.ReverseCacheMode.UPDATE mode.
reverse(Mappings.ReverseCacheMode) - Method in class net.lenni0451.commons.asm.mappings.Mappings
Reverse the mappings using the given mode.
If the reverse mappings are already cached with the given mode, they will be returned.
Reversing the mappings is an expensive operation and should be cached if used multiple times.

S

set(int, int, boolean) - Static method in class net.lenni0451.commons.asm.Modifiers
Set a flag of the given modifiers to the given state.
setAccess(int, int) - Static method in class net.lenni0451.commons.asm.Modifiers
Set the access of the given modifiers.
Opcodes.ACC_PUBLIC, Opcodes.ACC_PROTECTED, Opcodes.ACC_PRIVATE will be removed and the given access will be added.
setClassLoader(ClassLoader) - Method in class net.lenni0451.commons.asm.provider.LoaderClassProvider
 
size() - Method in class net.lenni0451.commons.asm.mappings.Mappings
 
slash(String) - Static method in class net.lenni0451.commons.asm.ASMUtils
Replace all dots with slashes.
SrgMappingsLoader - Class in net.lenni0451.commons.asm.mappings.loader.formats
A loader for SRG and XSRG mappings.
SrgMappingsLoader(InputStream) - Constructor for class net.lenni0451.commons.asm.mappings.loader.formats.SrgMappingsLoader
 
SrgMappingsLoader(File) - Constructor for class net.lenni0451.commons.asm.mappings.loader.formats.SrgMappingsLoader
 
SrgMappingsLoader(Path) - Constructor for class net.lenni0451.commons.asm.mappings.loader.formats.SrgMappingsLoader
 
swap(Type, Type) - Static method in class net.lenni0451.commons.asm.ASMUtils
Get the instructions to swap the first two elements on the stack.

T

then(ClassProvider...) - Method in interface net.lenni0451.commons.asm.provider.ClassProvider
Delegate all missing classes to the given class providers.
The class providers are checked in the order they are given.
See DelegatingClassProvider.getAllClasses() for more information on the behavior of this method.
If no class providers are given, the current class provider is returned.
TinyV1MappingsLoader - Class in net.lenni0451.commons.asm.mappings.loader.formats
A loader for TinyV1 mappings.
TinyV1MappingsLoader(InputStream, String, String) - Constructor for class net.lenni0451.commons.asm.mappings.loader.formats.TinyV1MappingsLoader
 
TinyV1MappingsLoader(File, String, String) - Constructor for class net.lenni0451.commons.asm.mappings.loader.formats.TinyV1MappingsLoader
 
TinyV1MappingsLoader(Path, String, String) - Constructor for class net.lenni0451.commons.asm.mappings.loader.formats.TinyV1MappingsLoader
 
TinyV2MappingsLoader - Class in net.lenni0451.commons.asm.mappings.loader.formats
A loader for TinyV2 mappings.
This loader supports extra metadata for classes, fields, methods and parameters.
TinyV2MappingsLoader(InputStream, String, String) - Constructor for class net.lenni0451.commons.asm.mappings.loader.formats.TinyV2MappingsLoader
 
TinyV2MappingsLoader(File, String, String) - Constructor for class net.lenni0451.commons.asm.mappings.loader.formats.TinyV2MappingsLoader
 
TinyV2MappingsLoader(Path, String, String) - Constructor for class net.lenni0451.commons.asm.mappings.loader.formats.TinyV2MappingsLoader
 
toBytes(ClassNode, ClassInfoProvider) - Static method in class net.lenni0451.commons.asm.io.ClassIO
Write a class to a byte array.
The classInfoProvider is used for stack map frame calculation.
toBytes(ClassNode, int, ClassInfoProvider) - Static method in class net.lenni0451.commons.asm.io.ClassIO
Write a class to a byte array.
The classInfoProvider is used for stack map frame calculation, if enabled.
toNumber(AbstractInsnNode) - Static method in class net.lenni0451.commons.asm.ASMUtils
Get the number the given instruction pushes onto the stack.
toSlash(String) - Method in enum net.lenni0451.commons.asm.provider.MapClassProvider.NameFormat
 
toStacklessBytes(ClassNode) - Static method in class net.lenni0451.commons.asm.io.ClassIO
Write a class to a byte array without computing the stack map frames.
This will use the ClassWriter.COMPUTE_MAXS flag.
toStacklessBytes(ClassNode, int) - Static method in class net.lenni0451.commons.asm.io.ClassIO
Write a class to a byte array without computing the stack map frames.
toString() - Method in class net.lenni0451.commons.asm.mappings.Mappings
 
transform(ClassLoader, String, Class<?>, ProtectionDomain, byte[]) - Method in class net.lenni0451.commons.asm.provider.instrumentation.InstrumentationCacheClassProvider
 
transform(ClassLoader, String, Class<?>, ProtectionDomain, byte[]) - Method in class net.lenni0451.commons.asm.provider.instrumentation.InstrumentationLoaderClassProvider
 
TsrgV1MappingsLoader - Class in net.lenni0451.commons.asm.mappings.loader.formats
 
TsrgV1MappingsLoader(InputStream) - Constructor for class net.lenni0451.commons.asm.mappings.loader.formats.TsrgV1MappingsLoader
 
TsrgV1MappingsLoader(File) - Constructor for class net.lenni0451.commons.asm.mappings.loader.formats.TsrgV1MappingsLoader
 
TsrgV1MappingsLoader(Path) - Constructor for class net.lenni0451.commons.asm.mappings.loader.formats.TsrgV1MappingsLoader
 
type(Object) - Static method in class net.lenni0451.commons.asm.Types
Parse the given object into a Type.
Supported types:
- String (Will be parsed as a type or object type)
- Class
- Field (The type of the field will be used)
- Method
- Constructor
- Type (Will be returned as is)
typeDescriptor(Object) - Static method in class net.lenni0451.commons.asm.Types
Get the descriptor of the given object.
See Types.type(Object) for supported types.
Types - Class in net.lenni0451.commons.asm
 
Types() - Constructor for class net.lenni0451.commons.asm.Types
 

V

valueOf(String) - Static method in enum net.lenni0451.commons.asm.mappings.Mappings.ReverseCacheMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.lenni0451.commons.asm.provider.MapClassProvider.NameFormat
Returns the enum constant of this type with the specified name.
values() - Static method in enum net.lenni0451.commons.asm.mappings.Mappings.ReverseCacheMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.lenni0451.commons.asm.provider.MapClassProvider.NameFormat
Returns an array containing the constants of this enum type, in the order they are declared.

W

withMappings(Mappings) - Method in interface net.lenni0451.commons.asm.mappings.loader.MappingsProvider
Get a provider that returns the given mappings instance.
The meta mappings of the original provider are preserved.
withMetaMappings(List<ClassMetaMapping>) - Method in interface net.lenni0451.commons.asm.mappings.loader.MappingsProvider
Get a provider that returns the given meta mappings.
The mappings of the original provider are preserved.
wrappedInline(ClassNode, MethodNode, String) - Static method in class net.lenni0451.commons.asm.MethodInliner
Inline a method into all methods of a class.
The inlined method does not need to be in the class in which it is inlined, but it will be removed from the class if it is.

All return instructions in the method are replaced with a jump to the end of the inlined method.
The ASM analyzer is used to store the stack in local variables to avoid any stack issues.
All parameters of the inlined method are stored in local variables and then used in the inlined method.
The return type will be loaded onto the stack once the old stack (minus the parameters and owner) is restored.
Because of this, direct modifications of the parameters are not supported (the behavior of the inlined method will not change).

The try-catch blocks, local variables and exceptions of the inlined method are merged with the method in which it is inlined.
It is required to recalculate all stack map frames after inlining a method.
A B C D E F G H I J L M N O P R S T V W