public class CachedClassNode
extends java.lang.Object
ClassNode that may only be a ClassReader,
a ClassNode without any instructions parsed, or a full ClassNode
with frames expanded.
Created by covers1624 on 8/4/21.
| Modifier and Type | Method and Description |
|---|---|
org.objectweb.asm.tree.FieldNode |
findField(java.lang.String name,
java.lang.String desc)
Tries to find a field in this class for the given name and descriptor.
|
org.objectweb.asm.tree.MethodNode |
findFullMethod(java.lang.String name,
java.lang.String desc)
Tries to find a full method node in this class for the given name and descriptor.
|
org.objectweb.asm.tree.MethodNode |
findMethod(java.lang.String name,
java.lang.String desc)
Tries to find a partial method node in this class for the given name and descriptor.
|
int |
getAccess()
The class's access flags as returned by
ClassReader.getAccess(). |
java.lang.String |
getClassName()
Gets the
Type.getInternalName() for this class. |
java.util.List<java.lang.String> |
getInterfaces()
Gets the list of
Type.getInternalName()s for the declared interfaces. |
org.objectweb.asm.tree.ClassNode |
getNode()
Gets the full
ClassNode. |
org.objectweb.asm.tree.ClassNode |
getPartialNode()
Gets a partial
ClassNode without any method instructions being parsed. |
@Nullable java.lang.String |
getSuperName()
Gets the
Type.getInternalName() for the declared superclass. |
public int getAccess()
ClassReader.getAccess().public java.lang.String getClassName()
Type.getInternalName() for this class.@Nullable public @Nullable java.lang.String getSuperName()
Type.getInternalName() for the declared superclass.public java.util.List<java.lang.String> getInterfaces()
Type.getInternalName()s for the declared interfaces.public org.objectweb.asm.tree.ClassNode getPartialNode()
ClassNode without any method instructions being parsed.
This is preferable when the Class is only needed as reference.
This method will return the full expanded ClassNode if this class has had
getNode() called. Callers should not be sensitive to this.
The returned ClassNode is modifiable. Please do not modify it.
ClassNode.public org.objectweb.asm.tree.ClassNode getNode()
ClassNode.
Calling this method will cause the getPartialNode() to be replaced
with the full class node.
The returned ClassNode is modifiable. Please do not modify it.
ClassNode.public org.objectweb.asm.tree.FieldNode findField(java.lang.String name,
java.lang.String desc)
name - The name of the field.desc - The descriptor of the field.FieldNode if it exists. Literal null otherwise.public org.objectweb.asm.tree.MethodNode findMethod(java.lang.String name,
java.lang.String desc)
ClassNode this method
will return a Full MethodNode with expanded frames.name - The name of the method.desc - The descriptor of the method.MethodNode if it exists. Literal null otherwise.public org.objectweb.asm.tree.MethodNode findFullMethod(java.lang.String name,
java.lang.String desc)
MethodNode with expanded frames.name - The name of the method.desc - The descriptor of the method.MethodNode if it exists. Literal null otherwise.