public class GeneratedBlock extends GeneratedDeclaration implements GeneratedCode
Constructor and Description |
---|
GeneratedBlock(MetaClass enclosing,
int modifiers) |
Modifier and Type | Method and Description |
---|---|
void |
addStatement(Format statement) |
void |
addStatement(String template,
Formattable... args) |
MetaClass |
getEnclosingClass() |
List<Format> |
getStatements() |
getModifiers, setModifiers
addAnnotation, addAnnotation, addAnnotation, addComment, getAnnotations, getComments, getRawComments, hasMetadata
protected final MetaClass enclosing
public GeneratedBlock(MetaClass enclosing, int modifiers)
public MetaClass getEnclosingClass()
public void addStatement(String template, Formattable... args)
addStatement
in interface GeneratedCode
public void addStatement(Format statement)
addStatement
in interface GeneratedCode
see also the complete user documentation .