public interface TypeInitializer extends ByteCodeAppender
Modifier and Type | Interface and Description |
---|---|
static interface |
TypeInitializer.Drain
A drain for writing a type initializer.
|
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.
|
TypeWriter.MethodPool.Record |
wrap(TypeWriter.MethodPool.Record record)
Creates a method pool record that applies this type initializer while preserving the record that was supplied.
|
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.TypeWriter.MethodPool.Record wrap(TypeWriter.MethodPool.Record record)
record
- The record to wrap.Copyright © 2014–2021. All rights reserved.