Package cpw.mods.modlauncher
Class TransformerClassWriter
java.lang.Object
org.objectweb.asm.ClassVisitor
org.objectweb.asm.ClassWriter
cpw.mods.modlauncher.TransformerClassWriter
class TransformerClassWriter
extends org.objectweb.asm.ClassWriter
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClassTransformer
private final org.objectweb.asm.tree.ClassNode
private boolean
private static final org.apache.logging.log4j.Logger
Fields inherited from class org.objectweb.asm.ClassWriter
COMPUTE_FRAMES, COMPUTE_MAXS
Fields inherited from class org.objectweb.asm.ClassVisitor
api, cv
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
TransformerClassWriter
(int writerFlags, ClassTransformer classTransformer, org.objectweb.asm.tree.ClassNode clazzAccessor) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
computeHierarchy
(String className) Computes the hierarchy for a specific class if it has not been computed yetprivate void
computeHierarchy
(org.objectweb.asm.tree.ClassNode clazzNode) private void
computeHierarchyFromClass
(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 void
computeHierarchyFromFile
(String className) Computes the hierarchy for a specific class by loading the class from disk and running it through modlauncher.static org.objectweb.asm.ClassWriter
createClassWriter
(int mlFlags, ClassTransformer classTransformer, org.objectweb.asm.tree.ClassNode clazzAccessor) protected String
getCommonSuperClass
(String type1, String type2) private String
private boolean
Methods 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, visitTypeAnnotation
Methods 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
private final org.objectweb.asm.tree.ClassNode clazzAccessor -
computedThis
private boolean computedThis
-
-
Constructor Details
-
TransformerClassWriter
private TransformerClassWriter(int writerFlags, ClassTransformer classTransformer, org.objectweb.asm.tree.ClassNode clazzAccessor)
-
-
Method Details
-
createClassWriter
public static org.objectweb.asm.ClassWriter createClassWriter(int mlFlags, ClassTransformer classTransformer, org.objectweb.asm.tree.ClassNode clazzAccessor) -
getCommonSuperClass
- Overrides:
getCommonSuperClass
in classorg.objectweb.asm.ClassWriter
-
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.
-