public class FieldReference extends Reference
opcode| Constructor and Description |
|---|
FieldReference(@Nullable ClassType targetClassType,
Field field,
Instruction target) |
FieldReference(Field field) |
FieldReference(Field field,
Instruction target) |
| Modifier and Type | Method and Description |
|---|---|
<R,C> R |
accept(InsnVisitor<R,C> visitor,
C ctx)
Pass this
Instruction through the supplied InsnVisitor. |
FieldReference |
copy()
Deep copy this instruction.
|
EnumBitSet<InstructionFlag> |
getDirectFlags()
Any direct flags for this
Instruction. |
Field |
getField() |
Instruction |
getTarget() |
@Nullable ClassType |
getTargetClassType() |
AType |
getType() |
void |
setField(Field field) |
getResultType, isReadFrom, isWrittenTo, onDisconnectedaccept, 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, withOffsetspublic FieldReference(Field field)
public FieldReference(Field field, Instruction target)
public FieldReference(@Nullable
@Nullable ClassType targetClassType,
Field field,
Instruction target)
public EnumBitSet<InstructionFlag> getDirectFlags()
InstructionInstruction.
The return value should be cached statically inside the Instruction impl.
getDirectFlags in class ReferenceEnumBitSet 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 FieldReference copy()
InstructionThis many not be supported by all instructions.
Implementors should use copy-constructor syntax.
copy in interface net.covers1624.quack.util.Copyable<Instruction>copy in class Reference@Nullable public @Nullable ClassType getTargetClassType()
public Instruction getTarget()
public Field getField()
public void setField(Field field)