public class ClassDecl extends Instruction
| Modifier and Type | Class and Description |
|---|---|
static class |
ClassDecl.RecordComponentDecl |
| Modifier and Type | Field and Description |
|---|---|
@Nullable MethodDecl |
canonicalCtor |
InstructionCollection<Instruction> |
members |
java.util.List<ClassDecl.RecordComponentDecl> |
recordComponents |
opcode| Modifier and Type | Method and Description |
|---|---|
<R,C> R |
accept(InsnVisitor<R,C> visitor,
C ctx)
Pass this
Instruction through the supplied InsnVisitor. |
@Nullable FieldDecl |
findField(Field field) |
@Nullable FieldDecl |
findField(java.lang.String name,
org.objectweb.asm.Type desc) |
@Nullable MethodDecl |
findMethod(Method method) |
@Nullable MethodDecl |
findMethod(java.lang.String name,
org.objectweb.asm.Type desc) |
net.covers1624.quack.collection.FastStream<ClassDecl> |
getClassMembers() |
ClassType |
getClazz() |
EnumBitSet<InstructionFlag> |
getDirectFlags()
Any direct flags for this
Instruction. |
FieldDecl |
getField(java.lang.String name,
org.objectweb.asm.Type desc) |
net.covers1624.quack.collection.FastStream<FieldDecl> |
getFieldMembers() |
MethodDecl |
getMethod(Method method) |
MethodDecl |
getMethod(java.lang.String name,
org.objectweb.asm.Type desc) |
java.util.Map<Method,MethodDecl> |
getMethodLookup() |
net.covers1624.quack.collection.FastStream<MethodDecl> |
getMethodMembers() |
java.util.List<ClassDecl> |
getNestedClasses() |
AType |
getResultType()
Gets the stack type of the value produced by this
Instruction. |
void |
onParsed() |
void |
setClazz(ClassType clazz) |
accept, addRef, ancestorsOfType, computeFlags, copy, descendantsMatching, descendantsOfType, descendantsToList, descendantsToListWhere, descendantsWhere, firstAncestorOfType, getBytecodeOffset, getChildren, getDescendants, getFirstChild, getFirstChildOrNull, getFlags, getLastChild, getLastChildOrNull, getNextSibling, getNextSiblingOrNull, getParent, getParentOrNull, getPrevSibling, getPrevSiblingOrNull, getSourceLine, getTag, hasDirectFlag, hasFlag, insertAfter, insertBefore, invalidateFlags, isConnected, isDescendantOf, onChildModified, onConnected, onDisconnected, releaseRef, remove, replaceWith, setBytecodeOffset, setOffsets, setSourceLine, setTag, toString, toString, withOffsetspublic final InstructionCollection<Instruction> members
public final java.util.List<ClassDecl.RecordComponentDecl> recordComponents
@Nullable public @Nullable MethodDecl canonicalCtor
public ClassDecl(ClassType clazz)
public AType getResultType()
InstructionInstruction.getResultType in class InstructionAType.public EnumBitSet<InstructionFlag> getDirectFlags()
InstructionInstruction.
The return value should be cached statically inside the Instruction impl.
getDirectFlags in class InstructionEnumBitSet representing the flags.Instruction.getFlags()public <R,C> R accept(InsnVisitor<R,C> visitor, C ctx)
InstructionInstruction through the supplied InsnVisitor.accept in class Instructionvisitor - The InsnVisitor.ctx - The context.InsnVisitor.public ClassType getClazz()
public net.covers1624.quack.collection.FastStream<FieldDecl> getFieldMembers()
public net.covers1624.quack.collection.FastStream<MethodDecl> getMethodMembers()
public net.covers1624.quack.collection.FastStream<ClassDecl> getClassMembers()
public void setClazz(ClassType clazz)
@Nullable public @Nullable FieldDecl findField(java.lang.String name, org.objectweb.asm.Type desc)
public FieldDecl getField(java.lang.String name, org.objectweb.asm.Type desc)
public void onParsed()
public java.util.List<ClassDecl> getNestedClasses()
public java.util.Map<Method,MethodDecl> getMethodLookup()
@Nullable public @Nullable MethodDecl findMethod(java.lang.String name, org.objectweb.asm.Type desc)
@Nullable public @Nullable MethodDecl findMethod(Method method)
public MethodDecl getMethod(java.lang.String name, org.objectweb.asm.Type desc)
public MethodDecl getMethod(Method method)