Package net.bytebuddy.implementation
Class Implementation.Context.ExtractableView.AbstractBase
- java.lang.Object
-
- net.bytebuddy.implementation.Implementation.Context.ExtractableView.AbstractBase
-
- All Implemented Interfaces:
Implementation.Context
,Implementation.Context.ExtractableView
,MethodAccessorFactory
- Direct Known Subclasses:
Implementation.Context.Default
,Implementation.Context.Disabled
- Enclosing interface:
- Implementation.Context.ExtractableView
@Enhance public abstract static class Implementation.Context.ExtractableView.AbstractBase extends java.lang.Object implements Implementation.Context.ExtractableView
An abstract base implementation of an extractable view of an implementation context.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.Implementation.Context
Implementation.Context.Default, Implementation.Context.Disabled, Implementation.Context.ExtractableView, Implementation.Context.Factory, Implementation.Context.FrameGeneration
-
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.Implementation.Context.ExtractableView
Implementation.Context.ExtractableView.AbstractBase
-
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.MethodAccessorFactory
MethodAccessorFactory.AccessType, MethodAccessorFactory.Illegal
-
-
Field Summary
Fields Modifier and Type Field Description protected ClassFileVersion
classFileVersion
The class file version of the dynamic type.protected Implementation.Context.FrameGeneration
frameGeneration
Determines the frame generation to be applied.protected TypeDescription
instrumentedType
The instrumented type.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBase(TypeDescription instrumentedType, ClassFileVersion classFileVersion, Implementation.Context.FrameGeneration frameGeneration)
Create a new extractable view.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassFileVersion
getClassFileVersion()
Returns the class file version of the currently creatgetClassFileVersioned dynamic type.Implementation.Context.FrameGeneration
getFrameGeneration()
Returnstrue
if the explicit generation of stack map frames is expected.TypeDescription
getInstrumentedType()
Returns the instrumented type of the current implementation.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.bytebuddy.implementation.Implementation.Context
cache, register
-
Methods inherited from interface net.bytebuddy.implementation.Implementation.Context.ExtractableView
drain, getAuxiliaryTypes, isEnabled
-
Methods inherited from interface net.bytebuddy.implementation.MethodAccessorFactory
registerAccessorFor, registerGetterFor, registerSetterFor
-
-
-
-
Field Detail
-
instrumentedType
protected final TypeDescription instrumentedType
The instrumented type.
-
classFileVersion
protected final ClassFileVersion classFileVersion
The class file version of the dynamic type.
-
frameGeneration
protected final Implementation.Context.FrameGeneration frameGeneration
Determines the frame generation to be applied.
-
-
Constructor Detail
-
AbstractBase
protected AbstractBase(TypeDescription instrumentedType, ClassFileVersion classFileVersion, Implementation.Context.FrameGeneration frameGeneration)
Create a new extractable view.- Parameters:
instrumentedType
- The instrumented type.classFileVersion
- The class file version of the dynamic type.frameGeneration
- Determines the frame generation to be applied.
-
-
Method Detail
-
getInstrumentedType
public TypeDescription getInstrumentedType()
Returns the instrumented type of the current implementation. The instrumented type is exposed with the intend of allowing optimal byte code generation and not for implementing checks or changing the behavior of aStackManipulation
.- Specified by:
getInstrumentedType
in interfaceImplementation.Context
- Returns:
- The instrumented type of the current implementation.
-
getClassFileVersion
public ClassFileVersion getClassFileVersion()
Returns the class file version of the currently creatgetClassFileVersioned dynamic type.- Specified by:
getClassFileVersion
in interfaceImplementation.Context
- Returns:
- The class file version of the currently created dynamic type.
-
getFrameGeneration
public Implementation.Context.FrameGeneration getFrameGeneration()
Returnstrue
if the explicit generation of stack map frames is expected.- Specified by:
getFrameGeneration
in interfaceImplementation.Context
- Returns:
true
if the explicit generation of stack map frames is expected.
-
-