public interface TypeInitializer extends ByteCodeAppender
Modifier and Type | Interface and Description |
---|---|
static class |
TypeInitializer.None
Canonical implementation of a non-defined type initializer.
|
static class |
TypeInitializer.Simple
A simple, defined type initializer that executes a given
ByteCodeAppender . |
ByteCodeAppender.Compound, ByteCodeAppender.Size
Modifier and Type | Method and Description |
---|---|
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.
|
apply
boolean isDefined()
true
if this type initializer is defined.TypeInitializer expandWith(ByteCodeAppender byteCodeAppender)
byteCodeAppender
- The byte code appender to apply as the type initializer.ByteCodeAppender withReturn()
Copyright © 2014–2016. All rights reserved.