protected class TypeWriter.Default.ForInlining.RedefinitionClassVisitor.TypeInitializerInjection extends Object implements Implementation.Context.ExtractableView.InjectedCode
Implementation.Context.ExtractableView.InjectedCode.None
Modifier | Constructor and Description |
---|---|
protected |
TypeInitializerInjection(MethodDescription injectorProxyMethod)
Creates a new type initializer injection.
|
Modifier and Type | Method and Description |
---|---|
ByteCodeAppender |
getByteCodeAppender()
Returns a byte code appender for appending the injected code.
|
MethodDescription |
getInjectorProxyMethod()
Returns the proxy method to which the original type initializer code is written to.
|
boolean |
isDefined()
Checks if there is actually code defined to be injected.
|
String |
toString() |
protected TypeInitializerInjection(MethodDescription injectorProxyMethod)
injectorProxyMethod
- The method to which the original type initializer code is to be written to.public ByteCodeAppender getByteCodeAppender()
Implementation.Context.ExtractableView.InjectedCode
getByteCodeAppender
in interface Implementation.Context.ExtractableView.InjectedCode
public boolean isDefined()
Implementation.Context.ExtractableView.InjectedCode
isDefined
in interface Implementation.Context.ExtractableView.InjectedCode
true
if code is to be injected.public MethodDescription getInjectorProxyMethod()
Copyright © 2014–2016. All rights reserved.