Package eu.bandm.tools.format.java
Class Formatter
java.lang.Object
eu.bandm.tools.format.java.Formatter
Deprecated.
This class offers public methods and constants for generating
Format
objects for all kinds of
java language constructs.
These data elements are to combine by a user explicitly.-
Field Summary
Modifier and TypeFieldDescriptionstatic final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format[]
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static BiFunction<Format,
Format, Format> Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated.static final Format
Deprecated. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Format
andExpression
(Format cond1, Format cond2) Deprecated.static Format
angledList
(List<Format> elems) Deprecated.static Format
annotationFormat
(Format type) Deprecated.static Format
annotationFormat
(Format type, Format value) Deprecated.static Format
Deprecated.static Format
annotationFormat
(Format type, Map<String, Format> values) Deprecated.static Format
arraySelection
(Format array, Format index) Deprecated.array[index]static Format
assignExpression
(Format item, Format value) Deprecated.- =
static Format
blockFormat
(Format statements) Deprecated.static Format
breakStatement
(Format format) Deprecated.break
; static Format
caseFormat
(Format[] labels, Format body) Deprecated.static Format
caseFormat
(Format label, Format body) Deprecated.static Format
caseLabelFormat
(Format label) Deprecated.static Format
castExpression
(Format type, Format expr) Deprecated.static Format
catchStatement
(Format exception, Format statement) Deprecated.Attention: The result of this method should only be used for the tryStatementstatic Format
classDefinition
(Format modifiers, Format name, Format superclass, Format[] implementing, Format body) Deprecated.static Format
classDefinition
(Format modifiers, Format name, Format typevars, Format superclass, Format[] implementing, Format body) Deprecated.class extends [implements ] { } static Format
classDefinition
(Format modifiers, Format name, Format typevars, Format superclass, List<Format> implementing, Format body) Deprecated.static Format
Deprecated.static Format
conditionalExpression
(Format expr1, Format expr2, Format expr3) Deprecated.static Format
constructorDefinition
(Format modifiers, Format typevars, Format name, Format[] parameters, Format[] exceptions, Format body) Deprecated.( ) [throws ] { } static Format
constructorDefinition
(Format modifiers, Format typevars, Format name, List<Format> parameters, List<Format> exceptions, Format body) Deprecated.static Format
constructorDefinition
(Format modifiers, Format typevars, String name, Format[] parameters, Format[] exceptions, Format body) Deprecated.( ) [throws ] { } static Format
constructorDefinition
(Format modifiers, String name, Format[] parameters, Format[] exceptions, Format body) Deprecated.( ) [throws ] { } static Format
continueStatement
(Format format) Deprecated.continue
; static Format
Deprecated.static Format
declarationFormat
(Format type, Format item) Deprecated.static Format
declarationFormat
(Format modifiers, Format type, Format name, Format initializer) Deprecated.static Format
declarationFormat
(Format modifiers, Format type, String name) Deprecated.[
] static Format
declarationFormat
(Format modifiers, Format type, String name, Format initializer) Deprecated.[
] = static Format
declarationFormat
(Format type, String name) Deprecated.static Format
declarationsFormat
(Format modifiers, Format type, Format[] names, Format[] initializers) Deprecated.static Format
Deprecated.static Format
definitionFormat
(Format header, Format body) Deprecated.{ }
static Format
definitionFormat
(Format header, Format body, boolean braces) Deprecated.static Format
directiveStatement
(Format op, Format arg) Deprecated.[ ]; static Format
docCommentFormat
(Format[] comments) Deprecated.static Format
doubleFormat
(double value) Deprecated.static Format
doWhileStatement
(Format body, Format condition) Deprecated.do { } while (
); static Format
enumConstant
(String name, Format[] params, Format body) Deprecated.static Format
enumConstant
(String name, List<Format> params, Format body) Deprecated.static Format
enumDefinition
(Format modifiers, Format name, Format typevars, Format[] implementing, Format[] constants, Format body) Deprecated.enum [implements ] { [ ;] } static Format
enumDefinition
(Format modifiers, Format name, Format typevars, List<Format> implementing, List<Format> constants, Format body) Deprecated.static Format
equalsExpression
(Format expr1, Format expr2) Deprecated.== static Format
fieldSelection
(Format item, String selector) Deprecated.- .
static Format
finallyStatement
(Format statement) Deprecated.Attention: The result of this method should only be used for the tryStatementstatic Format
floatFormat
(float value) Deprecated.static Format
forStatement
(Format initializer, Format condition, Format iterator, Format body) Deprecated.for (
; ; ) { } static Format
forStatement
(Format initializer, Format condition, Format iterator, Format body, boolean braces) Deprecated.static Format
genericFormat
(Format... types) Deprecated.static Format
genericFormat
(List<Format> types) Deprecated.static Format
ifStatement
(Format condition, Format success) Deprecated.if (
) { } static Format
ifStatement
(Format condition, Format success, Format failure) Deprecated.if (
) { } else { } static Format
infixExpression
(Format expr1, Format operator, Format expr2) Deprecated.static Format
initializationFormat
(Format name, Format initializer) Deprecated.static Format
instanceofExpression
(Format expr, Format className) Deprecated.static Format
intFormat
(int value) Deprecated.static Format
javaDefinition
(Format header, Format body) Deprecated.static Format
labeledStatement
(Format label, Format body) Deprecated.static Format
labeledStatement
(String label, Format body) Deprecated.static Format
longFormat
(long value) Deprecated.static Format
methodDefinition
(Format modifiers, Format typevars, Format returntype, String name, Format[] parameters, Format[] exceptions) Deprecated.( ) [throws ] ; static Format
methodDefinition
(Format modifiers, Format typevars, Format returntype, String name, Format[] parameters, Format[] exceptions, Format body) Deprecated.( ) [throws ] { } static Format
methodDefinition
(Format modifiers, Format typevars, Format returntype, String name, List<Format> parameters, List<Format> exceptions) Deprecated.static Format
methodDefinition
(Format modifiers, Format typevars, Format returntype, String name, List<Format> parameters, List<Format> exceptions, Format body) Deprecated.static Format
methodDefinition
(Format modifiers, Format returntype, String name, Format[] parameters, Format[] exceptions) Deprecated.static Format
methodDefinition
(Format modifiers, Format returntype, String name, Format[] parameters, Format[] exceptions, Format body) Deprecated.static Format
methodInvocation
(Format object, String method, Format... args) Deprecated.- .
( ) static Format
methodInvocation
(String method) Deprecated.static Format
methodInvocation
(String method, Format... args) Deprecated.( ) static Format
modifierFormat
(int modifiers) Deprecated.static Format
modifierFormat
(Format annotations, int modifiers) Deprecated.static Format
newArrayExpression
(Format className, Format[] elems) Deprecated.static Format
newInstanceExpression
(Format className, Format... params) Deprecated.static Format
newInstanceExpression
(String className, Format... params) Deprecated.static Format
notequalsExpression
(Format expr1, Format expr2) Deprecated.!= static Format
onlyifStatement
(Format condition, Format body) Deprecated.static Format
Deprecated.static Format
orExpression
(Format cond1, Format cond2) Deprecated.static Format
packageDecl
(Format annotations, String name) Deprecated.static Format
packageDecl
(String name) Deprecated.static Format
parameterizedType
(Format base, Format... args) Deprecated.static Format
parameterizedType
(Format base, List<Format> args) Deprecated.static Format
parensFormat
(Format format) Deprecated.(
) static Format
returnStatement
(Format format) Deprecated.return
; static Format
Deprecated.static Format
Deprecated.static Format
squareList
(List<Format> elems) Deprecated.static Format
statementFormat
(Format format) Deprecated.; static Format
stringFormat
(String str) Deprecated."
" static Format
switchStatement
(Format expr, Format[] cases) Deprecated.static Format
synchronizedBlockFormat
(Format monitor, Format statements) Deprecated.static Format
tryStatement
(Format statement, Format[] catchBlocks, Format finallyBlock) Deprecated.static Format
typeVariable
(String name) Deprecated.static Format
typeVariable
(String name, Format... bounds) Deprecated.static Format
typeVariable
(String name, List<Format> bounds) Deprecated.static Format
whileHeader
(Format condition) Deprecated.while (
) static Format
whileStatement
(Format condition, Format body) Deprecated.while (
) { } static Format
xorExpression
(Format cond1, Format cond2) Deprecated. - =
-
Field Details
-
emptyFormatList
Deprecated. -
dotFormat
Deprecated. -
commaFormat
Deprecated. -
semicolonFormat
Deprecated. -
questionFormat
Deprecated. -
colonFormat
Deprecated. -
equalFormat
Deprecated. -
openParenFormat
Deprecated. -
closeParenFormat
Deprecated. -
openBraceFormat
Deprecated. -
closeBraceFormat
Deprecated. -
openBracketFormat
Deprecated. -
closeBracketFormat
Deprecated. -
stringDelimFormat
Deprecated. -
openCommentFormat
Deprecated. -
openDocCommentFormat
Deprecated. -
closeCommentFormat
Deprecated. -
arrayFormat
Deprecated. -
notFormat
Deprecated. -
andFormat
Deprecated. -
orFormat
Deprecated. -
xorFormat
Deprecated. -
trueFormat
Deprecated. -
falseFormat
Deprecated. -
nullFormat
Deprecated. -
plusFormat
Deprecated. -
plusplusFormat
Deprecated. -
minusminusFormat
Deprecated. -
notequalsFormat
Deprecated. -
equalsFormat
Deprecated. -
ltFormat
Deprecated. -
gtFormat
Deprecated. -
leqFormat
Deprecated. -
geqFormat
Deprecated. -
instanceofFormat
Deprecated. -
publicFormat
Deprecated. -
protectedFormat
Deprecated. -
privateFormat
Deprecated. -
staticFormat
Deprecated. -
synchronizedFormat
Deprecated. -
transientFormat
Deprecated. -
finalFormat
Deprecated. -
abstractFormat
Deprecated. -
nativeFormat
Deprecated. -
volatileFormat
Deprecated. -
booleanFormat
Deprecated. -
voidFormat
Deprecated. -
byteFormat
Deprecated. -
charFormat
Deprecated. -
shortFormat
Deprecated. -
intFormat
Deprecated. -
floatFormat
Deprecated. -
longFormat
Deprecated. -
doubleFormat
Deprecated. -
classFormat
Deprecated. -
packageFormat
Deprecated. -
enumFormat
Deprecated. -
newFormat
Deprecated. -
ifFormat
Deprecated. -
elseFormat
Deprecated. -
whileFormat
Deprecated. -
forFormat
Deprecated. -
doFormat
Deprecated. -
throwsFormat
Deprecated. -
throwFormat
Deprecated. -
breakFormat
Deprecated. -
continueFormat
Deprecated. -
returnFormat
Deprecated. -
thisFormat
Deprecated. -
superFormat
Deprecated. -
extendsFormat
Deprecated. -
implementsFormat
Deprecated. -
importFormat
Deprecated. -
switchFormat
Deprecated. -
caseFormat
Deprecated. -
defaultFormat
Deprecated. -
tryFormat
Deprecated. -
catchFormat
Deprecated. -
finallyFormat
Deprecated. -
assignFormat
Deprecated. -
plusAssignFormat
Deprecated. -
minusAssignFormat
Deprecated. -
starAssignFormat
Deprecated. -
divAssignFormat
Deprecated. -
modAssignFormat
Deprecated. -
shiftRightAssignFormat
Deprecated. -
bitShiftRightAssignFormat
Deprecated. -
shiftLeftAssignFormat
Deprecated. -
andAssignFormat
Deprecated. -
xorAssignFormat
Deprecated. -
orAssignFormat
Deprecated. -
logicalOrFormat
Deprecated. -
logicalAndFormat
Deprecated. -
bitOrFormat
Deprecated. -
bitXorFormat
Deprecated. -
bitAndFormat
Deprecated. -
shiftLeftFormat
Deprecated. -
shiftRightFormat
Deprecated. -
bitShiftRightFormat
Deprecated. -
minusFormat
Deprecated. -
divFormat
Deprecated. -
modFormat
Deprecated. -
starFormat
Deprecated. -
bitNegFormat
Deprecated. -
atFormat
Deprecated. -
initializationFormat
Deprecated.
-
-
Constructor Details
-
Formatter
public Formatter()Deprecated.
-
-
Method Details
-
roundList
Deprecated. -
angledList
Deprecated. -
squareList
Deprecated. -
curlyList
Deprecated. -
openList
Deprecated. -
modifierFormat
Deprecated. -
modifierFormat
Deprecated. -
genericFormat
Deprecated. -
genericFormat
Deprecated. -
equalsExpression
Deprecated.== -
notequalsExpression
Deprecated.!= -
infixExpression
Deprecated. -
assignExpression
Deprecated.- =
- =
-
stringFormat
Deprecated."
" -
intFormat
Deprecated. -
longFormat
Deprecated. -
doubleFormat
Deprecated. -
floatFormat
Deprecated. -
parensFormat
Deprecated.(
) -
statementFormat
Deprecated.; -
directiveStatement
Deprecated.[ ]; -
returnStatement
Deprecated.return
; -
breakStatement
Deprecated.break
; -
continueStatement
Deprecated.continue
; -
declarationFormat
Deprecated.[
] -
declarationFormat
public static Format declarationFormat(Format modifiers, Format type, String name, Format initializer) Deprecated.[
] = -
declarationFormat
public static Format declarationFormat(Format modifiers, Format type, Format name, Format initializer) Deprecated. -
declarationsFormat
public static Format declarationsFormat(Format modifiers, Format type, Format[] names, Format[] initializers) Deprecated. -
initializationFormat
Deprecated. -
declarationsFormat
public static Format declarationsFormat(Format modifiers, Format type, List<Format> names, List<Format> initializers) Deprecated. -
declarationFormat
Deprecated. -
declarationFormat
Deprecated. -
javaDefinition
Deprecated. -
definitionFormat
Deprecated.{ } -
definitionFormat
Deprecated. -
classDefinition
public static Format classDefinition(Format modifiers, String name, String superclass, String[] interfaces, Format body) Deprecated. -
classDefinition
@Deprecated public static Format classDefinition(Format modifiers, Format name, Format superclass, Format[] implementing, Format body) Deprecated.class extends [implements ] { } -
classDefinition
public static Format classDefinition(Format modifiers, Format name, Format typevars, Format superclass, Format[] implementing, Format body) Deprecated.class extends [implements ] { } -
classDefinition
public static Format classDefinition(Format modifiers, Format name, Format typevars, Format superclass, List<Format> implementing, Format body) Deprecated. -
enumDefinition
public static Format enumDefinition(Format modifiers, Format name, Format typevars, Format[] implementing, Format[] constants, Format body) Deprecated.enum [implements ] { [ ;] } -
enumDefinition
public static Format enumDefinition(Format modifiers, Format name, Format typevars, List<Format> implementing, List<Format> constants, Format body) Deprecated. -
enumConstant
Deprecated. -
enumConstant
Deprecated. -
constructorDefinition
public static Format constructorDefinition(Format modifiers, Format typevars, Format name, Format[] parameters, Format[] exceptions, Format body) Deprecated.( ) [throws ] { } -
constructorDefinition
public static Format constructorDefinition(Format modifiers, Format typevars, Format name, List<Format> parameters, List<Format> exceptions, Format body) Deprecated. -
constructorDefinition
public static Format constructorDefinition(Format modifiers, Format typevars, String name, Format[] parameters, Format[] exceptions, Format body) Deprecated.( ) [throws ] { } -
constructorDefinition
public static Format constructorDefinition(Format modifiers, String name, Format[] parameters, Format[] exceptions, Format body) Deprecated.( ) [throws ] { } -
methodDefinition
@Deprecated public static Format methodDefinition(Format modifiers, Format returntype, String name, Format[] parameters, Format[] exceptions, Format body) Deprecated.( ) [throws ] { } -
methodDefinition
public static Format methodDefinition(Format modifiers, Format typevars, Format returntype, String name, Format[] parameters, Format[] exceptions, Format body) Deprecated.( ) [throws ] { } -
methodDefinition
public static Format methodDefinition(Format modifiers, Format typevars, Format returntype, String name, List<Format> parameters, List<Format> exceptions, Format body) Deprecated. -
methodDefinition
@Deprecated public static Format methodDefinition(Format modifiers, Format returntype, String name, Format[] parameters, Format[] exceptions) Deprecated.( ) [throws ] ; -
methodDefinition
public static Format methodDefinition(Format modifiers, Format typevars, Format returntype, String name, Format[] parameters, Format[] exceptions) Deprecated.( ) [throws ] ; -
methodDefinition
public static Format methodDefinition(Format modifiers, Format typevars, Format returntype, String name, List<Format> parameters, List<Format> exceptions) Deprecated. -
fieldSelection
Deprecated.- .
- .
-
selection
Deprecated. -
arraySelection
Deprecated.array[index]
-
methodInvocation
Deprecated.( ) -
methodInvocation
Deprecated. -
methodInvocation
Deprecated.- .
( ) - .
-
tryStatement
Deprecated. -
catchStatement
Deprecated.Attention: The result of this method should only be used for the tryStatement -
finallyStatement
Deprecated.Attention: The result of this method should only be used for the tryStatement -
conditionalExpression
Deprecated. -
ifStatement
Deprecated.if (
) { } else { } -
ifStatement
Deprecated.if (
) { } -
whileHeader
Deprecated.while (
) -
whileStatement
Deprecated.while (
) { } -
doWhileStatement
Deprecated.do { } while (
); -
forStatement
public static Format forStatement(Format initializer, Format condition, Format iterator, Format body) Deprecated.for (
; ; ) { } -
forStatement
public static Format forStatement(Format initializer, Format condition, Format iterator, Format body, boolean braces) Deprecated. -
synchronizedBlockFormat
Deprecated. -
blockFormat
Deprecated. -
onlyifStatement
Deprecated. -
andExpression
Deprecated. -
orExpression
Deprecated. -
xorExpression
Deprecated. -
docCommentFormat
Deprecated. -
newInstanceExpression
Deprecated. -
newInstanceExpression
Deprecated. -
newArrayExpression
Deprecated. -
castExpression
Deprecated. -
instanceofExpression
Deprecated. -
switchStatement
Deprecated. -
caseLabelFormat
Deprecated. -
caseFormat
Deprecated. -
caseFormat
Deprecated. -
labeledStatement
Deprecated. -
labeledStatement
Deprecated. -
annotationFormat
Deprecated. -
annotationFormat
Deprecated. -
annotationFormat
Deprecated. -
annotationFormat
Deprecated. -
typeVariable
Deprecated. -
typeVariable
Deprecated. -
typeVariable
Deprecated. -
parameterizedType
Deprecated. -
parameterizedType
Deprecated. -
packageDecl
Deprecated. -
packageDecl
Deprecated.
-
FormatClosure
instead, which is parser based and combines all required formats syntax-driven.