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 int
offset
The offset of the loaded value.private TypeDescription.Generic
typeDescription
The type of the loaded value.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Value(TypeDescription.Generic typeDescription, int offset)
Creates a value representation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getOffset()
Returns the offset of the loaded value.protected TypeDescription.Generic
getTypeDescription()
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.
-
-