Package net.bytebuddy.asm
Class MemberSubstitution.Source.Value
- java.lang.Object
-
- net.bytebuddy.asm.MemberSubstitution.Source.Value
-
- Enclosing class:
- MemberSubstitution.Source
@Enhance protected static class MemberSubstitution.Source.Value extends java.lang.Object
Represents a value that can be loaded from a given offset.
-
-
Field Summary
Fields Modifier and Type Field Description private intoffsetThe offset of the loaded value.private TypeDescription.GenerictypeDescriptionThe type of the loaded value.
-
Constructor Summary
Constructors Modifier Constructor Description protectedValue(TypeDescription.Generic typeDescription, int offset)Creates a value representation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetOffset()Returns the offset of the loaded value.protected TypeDescription.GenericgetTypeDescription()Returns the type of the loaded value.
-
-
-
Field Detail
-
typeDescription
private final TypeDescription.Generic typeDescription
The type of the loaded value.
-
offset
private final int offset
The offset of the loaded value.
-
-
Constructor Detail
-
Value
protected Value(TypeDescription.Generic typeDescription, int offset)
Creates a value representation.- Parameters:
typeDescription- The type of the loaded value.offset- The offset of the loaded value.
-
-
Method Detail
-
getTypeDescription
protected TypeDescription.Generic getTypeDescription()
Returns the type of the loaded value.- Returns:
- The type of the loaded value.
-
getOffset
protected int getOffset()
Returns the offset of the loaded value.- Returns:
- The offset of the loaded value.
-
-