Package eu.bandm.tools.metajava
Class JavaSyntax
java.lang.Object
eu.bandm.tools.metajava.JavaSyntax
Container for fundamental static Format patterns, used by the
metajava source code generators.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Format
static Format
static Format
static Format
static Format
static Format
caseFormat
(Format label, Format body) static Format
caseLabelFormat
(Format label) static Format
directiveStatement
(Format op, Format arg) [ ]; static Format
docComment
(Format... comments) static Format
docComment
(List<? extends Format> comments) static Format
equalsExpression
(Format expr1, Format expr2) == static Format
infixExpression
(Format expr1, Format operator, Format expr2) static Format
list
(boolean compact, Formattable... items) static Format
static Format
newInstance
(Format type) static Format
newInstanceExpression
(Format className, Format... params) static Format
parameterize
(Format head, Format... arguments) static Format
parameterize
(Format head, Iterable<? extends Format> arguments) static Format
static Format
returnStatement
(Format format) return
; static Format
static Format
statementFormat
(Format format) ; static Format
switchStatement
(Format expr, Format[] cases)
-
Field Details
-
commaFormat
-
caseFormat
-
defaultFormat
-
colonFormat
-
switchFormat
-
returnFormat
-
equalsFormat
-
semicolonFormat
-
newFormat
-
openParenFormat
-
closeParenFormat
-
-
Method Details
-
caseFormat
-
caseLabelFormat
-
switchStatement
-
returnStatement
return
; -
equalsExpression
== -
directiveStatement
[ ]; -
infixExpression
-
statementFormat
; -
newInstanceExpression
-
list
-
list
-
apply
-
apply
-
paren
-
body
-
body
-
assign
-
select
-
newInstance
-
parameterize
-
parameterize
-
docComment
-
docComment
-