Package org.spongepowered.asm.service
Interface IClassBytecodeProvider
public interface IClassBytecodeProvider
Interface for object which can provide class bytecode
-
Method Summary
Modifier and TypeMethodDescriptionorg.objectweb.asm.tree.ClassNodegetClassNode(String name) Retrieve transformed class as an ASM treeorg.objectweb.asm.tree.ClassNodegetClassNode(String name, boolean runTransformers) Retrieve transformed class as an ASM treeorg.objectweb.asm.tree.ClassNodegetClassNode(String name, boolean runTransformers, int readerFlags) Retrieve transformed class as an ASM tree
-
Method Details
-
getClassNode
org.objectweb.asm.tree.ClassNode getClassNode(String name) throws ClassNotFoundException, IOException Retrieve transformed class as an ASM tree- Parameters:
name- full class name- Returns:
- tree
- Throws:
ClassNotFoundException- if class not foundIOException- propagated
-
getClassNode
org.objectweb.asm.tree.ClassNode getClassNode(String name, boolean runTransformers) throws ClassNotFoundException, IOException Retrieve transformed class as an ASM tree- Parameters:
name- full class namerunTransformers- true to run transformers when loading the class- Returns:
- tree
- Throws:
ClassNotFoundException- if class not foundIOException- propagated
-
getClassNode
org.objectweb.asm.tree.ClassNode getClassNode(String name, boolean runTransformers, int readerFlags) throws ClassNotFoundException, IOException Retrieve transformed class as an ASM tree- Parameters:
name- full class namerunTransformers- true to run transformers when loading the classreaderFlags- Flags to pass in to ClassReader.accept- Returns:
- tree
- Throws:
ClassNotFoundException- if class not foundIOException- propagated
-