Class JavaStaticInitializer

All Implemented Interfaces:
HasDescription, CanBeAnnotated, HasAnnotations<JavaMember>, HasDescriptor, HasModifiers, HasName, HasName.AndFullName, HasOwner<JavaClass>, HasParameterTypes, HasReturnType, HasSourceCodeLocation, HasThrowsClause<JavaCodeUnit>, HasTypeParameters<JavaCodeUnit>

public class JavaStaticInitializer
extends JavaCodeUnit
Represents the static initialization block of a class, e.g. a block like

 class Example {
     private static final String someStaticField;

     static {
         // this is the static initializer, it can for example initialize static fields
         someStaticField = readSomeConfig();