public class Cloner
extends java.lang.Object
| Constructor and Description |
|---|
Cloner() |
| Modifier and Type | Method and Description |
|---|---|
static org.objectweb.asm.tree.AnnotationNode |
clone(org.objectweb.asm.tree.AnnotationNode annotationNode)
Clone a
AnnotationNode and all its children. |
static org.objectweb.asm.Attribute |
clone(org.objectweb.asm.Attribute attribute)
Clone a
Attribute. |
static org.objectweb.asm.tree.ClassNode |
clone(org.objectweb.asm.tree.ClassNode classNode)
Clone a
ClassNode and all its children. |
static org.objectweb.asm.tree.FieldNode |
clone(org.objectweb.asm.tree.FieldNode fieldNode)
Clone a
FieldNode and all its children. |
static org.objectweb.asm.tree.InsnList |
clone(org.objectweb.asm.tree.InsnList insnList)
Clone a
InsnList and all its instructions. |
static org.objectweb.asm.tree.MethodNode |
clone(org.objectweb.asm.tree.MethodNode methodNode)
Clone a
MethodNode and all its children. |
static org.objectweb.asm.tree.TypeAnnotationNode |
clone(org.objectweb.asm.tree.TypeAnnotationNode typeAnnotationNode)
Clone a
TypeAnnotationNode and all its children. |
static java.util.Map<org.objectweb.asm.tree.LabelNode,org.objectweb.asm.tree.LabelNode> |
cloneLabels(org.objectweb.asm.tree.InsnList insnList)
Clone all labels in the given instruction list.
|
public static org.objectweb.asm.tree.ClassNode clone(org.objectweb.asm.tree.ClassNode classNode)
ClassNode and all its children.classNode - The class node to clonepublic static org.objectweb.asm.tree.FieldNode clone(org.objectweb.asm.tree.FieldNode fieldNode)
FieldNode and all its children.fieldNode - The field node to clonepublic static org.objectweb.asm.tree.MethodNode clone(org.objectweb.asm.tree.MethodNode methodNode)
MethodNode and all its children.methodNode - The method node to clonepublic static org.objectweb.asm.tree.InsnList clone(org.objectweb.asm.tree.InsnList insnList)
InsnList and all its instructions.insnList - The instruction list to clonepublic static java.util.Map<org.objectweb.asm.tree.LabelNode,org.objectweb.asm.tree.LabelNode> cloneLabels(org.objectweb.asm.tree.InsnList insnList)
insnList - The instruction list to clone the labels frompublic static org.objectweb.asm.tree.AnnotationNode clone(org.objectweb.asm.tree.AnnotationNode annotationNode)
AnnotationNode and all its children.annotationNode - The annotation node to clonepublic static org.objectweb.asm.tree.TypeAnnotationNode clone(org.objectweb.asm.tree.TypeAnnotationNode typeAnnotationNode)
TypeAnnotationNode and all its children.typeAnnotationNode - The type annotation node to clonepublic static org.objectweb.asm.Attribute clone(org.objectweb.asm.Attribute attribute)
Attribute.ModuleHashesAttribute, ModuleResolutionAttribute and ModuleTargetAttribute are supported.attribute - The attribute to clone