Class FieldAccess.AccessDispatcher
- java.lang.Object
-
- net.bytebuddy.implementation.bytecode.member.FieldAccess.AccessDispatcher
-
- All Implemented Interfaces:
FieldAccess.Defined
- Enclosing class:
- FieldAccess
@Enhance(includeSyntheticFields=true) 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 private class
FieldAccess.AccessDispatcher.AbstractFieldInstruction
An abstract base implementation for accessing a field value.protected class
FieldAccess.AccessDispatcher.FieldGetInstruction
A reading field access operation.protected class
FieldAccess.AccessDispatcher.FieldPutInstruction
A writing field access operation.
-
Field Summary
Fields Modifier and Type Field Description private FieldDescription.InDefinedShape
fieldDescription
A description of the accessed field.
-
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 StackManipulation
read()
Creates a getter representation for a given field.StackManipulation
write()
Creates a setter representation for a given field.
-
-
-
Field Detail
-
fieldDescription
private final FieldDescription.InDefinedShape fieldDescription
A description of the accessed 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()
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()
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.
-
-