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 classFieldAccess.AccessDispatcher.FieldGetInstructionA reading field access operation.protected classFieldAccess.AccessDispatcher.FieldPutInstructionA writing field access operation.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAccessDispatcher(FieldDescription.InDefinedShape fieldDescription)Creates a new access dispatcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)inthashCode()StackManipulationread()Creates a getter representation for a given field.StackManipulationwrite()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.DefinedCreates a getter representation for a given field.- Specified by:
readin interfaceFieldAccess.Defined- Returns:
- A stack manipulation representing the retrieval of a field value.
-
write
public StackManipulation write()
Description copied from interface:FieldAccess.DefinedCreates a setter representation for a given field.- Specified by:
writein interfaceFieldAccess.Defined- Returns:
- A stack manipulation representing the setting of a field value.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-