public static interface InstrumentedType.TypeInitializer extends ByteCodeAppender
| Modifier and Type | Interface and Description |
|---|---|
static class |
InstrumentedType.TypeInitializer.None
Canonical implementation of a non-defined type initializer.
|
static class |
InstrumentedType.TypeInitializer.Simple
A simple, defined type initializer that executes a given
ByteCodeAppender. |
ByteCodeAppender.Compound, ByteCodeAppender.Size| Modifier and Type | Method and Description |
|---|---|
InstrumentedType.TypeInitializer |
expandWith(ByteCodeAppender byteCodeAppender)
Expands this type initializer with another byte code appender.
|
boolean |
isDefined()
Indicates if this type initializer is defined.
|
ByteCodeAppender |
withReturn()
Returns this type initializer with an ending return statement.
|
applyboolean isDefined()
true if this type initializer is defined.InstrumentedType.TypeInitializer expandWith(ByteCodeAppender byteCodeAppender)
byteCodeAppender - The byte code appender to apply within the type initializer.ByteCodeAppender withReturn()
Copyright © 2014–2015. All rights reserved.