Package eu.bandm.tools.metajava
Class Formats
java.lang.Object
eu.bandm.tools.metajava.Formats
Container for fundamental static Format patterns, used by the
metajava source code generators.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Format
static final Format
static final Format
static final Format
static final Format
static final Format
static final Format
static final Format
static final Format
static final Format
static final Format
static final Format
static final Format
static final Format
static final Format
static final Format
static final Format
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Format
angledList
(List<Format> elems) static Format
blockFormat
(Format statements) static Format
classDefinition
(Format modifiers, Format name, Format typevars, Format superclass, List<Format> implementing, Format body) class extends [implements ] { } static Format
constructorDefinition
(Format modifiers, Format typevars, Format name, List<Format> parameters, List<Format> exceptions, Format body) ( ) [throws ] { } static Format
declarationFormat
(Format type, Format item) static Format
declarationFormat
(Format modifiers, Format type, Format name, Format initializer) static Format
declarationFormat
(Format modifiers, Format type, String name) [
] static Format
declarationFormat
(Format modifiers, Format type, String name, Format initializer) [
] = static Format
definitionFormat
(Format header, Format body) { }
static Format
definitionFormat
(Format header, Format body, boolean braces) static Format
enumConstant
(String name, List<Format> params, Format body) static Format
enumDefinition
(Format modifiers, Format name, Format typevars, List<Format> implementing, List<Format> constants, Format body) enum [implements ] { [ ;] } static Format
genericFormat
(List<Format> types) static Format
methodDefinition
(Format modifiers, Format typevars, Format returntype, String name, List<Format> parameters, List<Format> exceptions) ( ) [throws ] ; static Format
methodDefinition
(Format modifiers, Format typevars, Format returntype, String name, List<Format> parameters, List<Format> exceptions, Format body) ( ) [throws ] { } static Format
modifierFormat
(int modifiers) static Format
modifierFormat
(Format annotations, int modifiers) static Format
static Format
packageDecl
(Format annotations, String name) static Format
packageDecl
(String name) static Format
static Format
statementFormat
(Format format) ;
-
Field Details
-
semicolonFormat
-
packageFormat
-
openParenFormat
-
closeParenFormat
-
openBraceFormat
-
closeBraceFormat
-
ltFormat
-
gtFormat
-
commaFormat
-
enumFormat
-
implementsFormat
-
classFormat
-
extendsFormat
-
equalFormat
-
throwsFormat
-
importFormat
-
dotFormat
-
-
Constructor Details
-
Formats
public Formats()
-
-
Method Details
-
roundList
-
openList
-
angledList
-
genericFormat
-
statementFormat
; -
modifierFormat
-
modifierFormat
-
packageDecl
-
packageDecl
-
declarationFormat
[
] -
declarationFormat
-
declarationFormat
public static Format declarationFormat(Format modifiers, Format type, String name, Format initializer) [
] = -
declarationFormat
-
classDefinition
public static Format classDefinition(Format modifiers, Format name, Format typevars, Format superclass, List<Format> implementing, Format body) class extends [implements ] { } -
enumDefinition
public static Format enumDefinition(Format modifiers, Format name, Format typevars, List<Format> implementing, List<Format> constants, Format body) enum [implements ] { [ ;] } -
definitionFormat
{ } -
definitionFormat
-
enumConstant
-
blockFormat
-
constructorDefinition
public static Format constructorDefinition(Format modifiers, Format typevars, Format name, List<Format> parameters, List<Format> exceptions, Format body) ( ) [throws ] { } -
methodDefinition
public static Format methodDefinition(Format modifiers, Format typevars, Format returntype, String name, List<Format> parameters, List<Format> exceptions, Format body) ( ) [throws ] { } -
methodDefinition
public static Format methodDefinition(Format modifiers, Format typevars, Format returntype, String name, List<Format> parameters, List<Format> exceptions) ( ) [throws ] ;
-