Class TransformerClassWriter
java.lang.Object
org.objectweb.asm.ClassVisitor
org.objectweb.asm.ClassWriter
net.neoforged.fml.classloading.transformation.TransformerClassWriter
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.objectweb.asm.tree.ClassNodeprivate booleanprivate static final org.apache.logging.log4j.Loggerprivate final ClassHierarchyRecomputationContextFields inherited from class org.objectweb.asm.ClassWriter
COMPUTE_FRAMES, COMPUTE_MAXSFields inherited from class org.objectweb.asm.ClassVisitor
api, cv -
Constructor Summary
ConstructorsConstructorDescriptionTransformerClassWriter(int writerFlags, org.objectweb.asm.tree.ClassNode clazzAccessor, ClassHierarchyRecomputationContext recomputationContext) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcomputeHierarchy(String className) Computes the hierarchy for a specific class if it has not been computed yetprivate voidcomputeHierarchy(org.objectweb.asm.tree.ClassNode clazzNode) private voidcomputeHierarchyFromClass(String name, Class<?> clazz) Computes the hierarchy for a specific class using the already loaded class object Must be kept in sync with the file counterpartTransformerClassWriter.SuperCollectingVisitor.visit(int, int, String, String, String, String[])private voidcomputeHierarchyFromFile(String className) Computes the hierarchy for a specific class by loading the class from disk and running it through modlauncher.protected StringgetCommonSuperClass(String type1, String type2) private Stringprivate booleanMethods inherited from class org.objectweb.asm.ClassWriter
getClassLoader, hasFlags, newClass, newConst, newConstantDynamic, newField, newHandle, newHandle, newInvokeDynamic, newMethod, newMethodType, newModule, newNameType, newPackage, newUTF8, setFlags, toByteArray, visit, visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitMethod, visitModule, visitNestHost, visitNestMember, visitOuterClass, visitPermittedSubclass, visitRecordComponent, visitSource, visitTypeAnnotationMethods inherited from class org.objectweb.asm.ClassVisitor
getDelegate
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
CLASS_PARENTS
-
CLASS_HIERARCHIES
-
IS_INTERFACE
-
clazzAccessor
private final org.objectweb.asm.tree.ClassNode clazzAccessor -
computedThis
private boolean computedThis -
recomputationContext
-
-
Constructor Details
-
TransformerClassWriter
public TransformerClassWriter(int writerFlags, org.objectweb.asm.tree.ClassNode clazzAccessor, ClassHierarchyRecomputationContext recomputationContext)
-
-
Method Details
-
getCommonSuperClass
- Overrides:
getCommonSuperClassin classClassWriter
-
getSupers
-
isIntf
-
getSuper
-
computeHierarchy
private void computeHierarchy(org.objectweb.asm.tree.ClassNode clazzNode) -
computeHierarchy
Computes the hierarchy for a specific class if it has not been computed yet -
computeHierarchyFromClass
Computes the hierarchy for a specific class using the already loaded class object Must be kept in sync with the file counterpartTransformerClassWriter.SuperCollectingVisitor.visit(int, int, String, String, String, String[]) -
computeHierarchyFromFile
Computes the hierarchy for a specific class by loading the class from disk and running it through modlauncher.
-