Class FieldAccess.AccessDispatcher
- java.lang.Object
-
- net.bytebuddy.implementation.bytecode.member.FieldAccess.AccessDispatcher
-
- All Implemented Interfaces:
FieldAccess.Defined
- Enclosing class:
- FieldAccess
protected class FieldAccess.AccessDispatcher extends java.lang.Object implements FieldAccess.Defined
A dispatcher for implementing a non-generic read or write access on a field.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
FieldAccess.AccessDispatcher.FieldGetInstruction
A reading field access operation.protected class
FieldAccess.AccessDispatcher.FieldPutInstruction
A writing field access operation.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AccessDispatcher(FieldDescription.InDefinedShape fieldDescription)
Creates a new access dispatcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
int
hashCode()
StackManipulation
read()
Creates a getter representation for a given field.StackManipulation
write()
Creates a setter representation for a given field.
-
-
-
Constructor Detail
-
AccessDispatcher
protected AccessDispatcher(FieldDescription.InDefinedShape fieldDescription)
Creates a new access dispatcher.- Parameters:
fieldDescription
- A description of the accessed field.
-
-
Method Detail
-
read
public StackManipulation read()
Description copied from interface:FieldAccess.Defined
Creates a getter representation for a given field.- Specified by:
read
in interfaceFieldAccess.Defined
- Returns:
- A stack manipulation representing the retrieval of a field value.
-
write
public StackManipulation write()
Description copied from interface:FieldAccess.Defined
Creates a setter representation for a given field.- Specified by:
write
in interfaceFieldAccess.Defined
- Returns:
- A stack manipulation representing the setting of a field value.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-