Package cpw.mods.modlauncher
Class TransformerClassWriter
java.lang.Object
org.objectweb.asm.ClassVisitor
org.objectweb.asm.ClassWriter
cpw.mods.modlauncher.TransformerClassWriter
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClassTransformerprivate final ClassNodeprivate booleanprivate static final org.apache.logging.log4j.LoggerFields inherited from class org.objectweb.asm.ClassWriter
COMPUTE_FRAMES, COMPUTE_MAXSFields inherited from class org.objectweb.asm.ClassVisitor
api, cv -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTransformerClassWriter(int writerFlags, ClassTransformer classTransformer, ClassNode clazzAccessor) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcomputeHierarchy(String className) Computes the hierarchy for a specific class if it has not been computed yetprivate voidcomputeHierarchy(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.static ClassWritercreateClassWriter(int mlFlags, ClassTransformer classTransformer, ClassNode clazzAccessor) 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
-
classTransformer
-
clazzAccessor
-
computedThis
private boolean computedThis
-
-
Constructor Details
-
TransformerClassWriter
private TransformerClassWriter(int writerFlags, ClassTransformer classTransformer, ClassNode clazzAccessor)
-
-
Method Details
-
createClassWriter
public static ClassWriter createClassWriter(int mlFlags, ClassTransformer classTransformer, ClassNode clazzAccessor) -
getCommonSuperClass
- Overrides:
getCommonSuperClassin classClassWriter
-
getSupers
-
isIntf
-
getSuper
-
computeHierarchy
-
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.
-