Class FieldReference
java.lang.Object
net.covers1624.coffeegrinder.bytecode.Instruction
net.covers1624.coffeegrinder.bytecode.insns.Reference
net.covers1624.coffeegrinder.bytecode.insns.FieldReference
- All Implemented Interfaces:
net.covers1624.quack.util.Copyable<Instruction>
Created by covers1624 on 7/12/21.
-
Constructor Summary
ConstructorsConstructorDescriptionFieldReference(@Nullable ClassType targetClassType, Field field, Instruction target) FieldReference(Field field) FieldReference(Field field, Instruction target) -
Method Summary
Modifier and TypeMethodDescription<R,C> R accept(InsnVisitor<R, C> visitor, C ctx) Pass thisInstructionthrough the suppliedInsnVisitor.copy()Deep copy this instruction.Any direct flags for thisInstruction.getField()@Nullable ClassTypegetType()voidMethods inherited from class net.covers1624.coffeegrinder.bytecode.insns.Reference
getResultType, isReadFrom, isWrittenTo, onDisconnectedMethods inherited from class net.covers1624.coffeegrinder.bytecode.Instruction
accept, addRef, ancestorsOfType, computeFlags, 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, releaseRef, remove, replaceWith, setBytecodeOffset, setOffsets, setSourceLine, setTag, toString, toString, withOffsets
-
Constructor Details
-
FieldReference
-
FieldReference
-
FieldReference
public FieldReference(@Nullable @Nullable ClassType targetClassType, Field field, Instruction target)
-
-
Method Details
-
getDirectFlags
Description copied from class:InstructionAny direct flags for thisInstruction.The return value should be cached statically inside the
Instructionimpl.- Overrides:
getDirectFlagsin classReference- Returns:
- An
EnumBitSetrepresenting the flags. - See Also:
-
getType
-
accept
Description copied from class:InstructionPass thisInstructionthrough the suppliedInsnVisitor.- Specified by:
acceptin classInstruction- Parameters:
visitor- TheInsnVisitor.ctx- The context.- Returns:
- The return result from the
InsnVisitor.
-
copy
Description copied from class:InstructionDeep copy this instruction.This many not be supported by all instructions.
Implementors should use copy-constructor syntax.
- Specified by:
copyin interfacenet.covers1624.quack.util.Copyable<Instruction>- Overrides:
copyin classReference- Returns:
- The copied instruction.
-
getTargetClassType
-
getTarget
-
getField
-
setField
-