FormatClosure
instead,
which is parser based and combines all required formats syntax-driven.@Deprecated public class Formatter extends Object
Format
objects for all kinds of
java language constructs.
These data elements are to combine by a user explicitly.Modifier and Type | Field and Description |
---|---|
static Format |
abstractFormat
Deprecated.
|
static Format |
andAssignFormat
Deprecated.
|
static Format |
andFormat
Deprecated.
|
static Format |
arrayFormat
Deprecated.
|
static Format |
assignFormat
Deprecated.
|
static Format |
atFormat
Deprecated.
|
static Format |
bitAndFormat
Deprecated.
|
static Format |
bitNegFormat
Deprecated.
|
static Format |
bitOrFormat
Deprecated.
|
static Format |
bitShiftRightAssignFormat
Deprecated.
|
static Format |
bitShiftRightFormat
Deprecated.
|
static Format |
bitXorFormat
Deprecated.
|
static Format |
booleanFormat
Deprecated.
|
static Format |
breakFormat
Deprecated.
|
static Format |
byteFormat
Deprecated.
|
static Format |
caseFormat
Deprecated.
|
static Format |
catchFormat
Deprecated.
|
static Format |
charFormat
Deprecated.
|
static Format |
classFormat
Deprecated.
|
static Format |
closeBraceFormat
Deprecated.
|
static Format |
closeBracketFormat
Deprecated.
|
static Format |
closeCommentFormat
Deprecated.
|
static Format |
closeParenFormat
Deprecated.
|
static Format |
colonFormat
Deprecated.
|
static Format |
commaFormat
Deprecated.
|
static Format |
continueFormat
Deprecated.
|
static Format |
defaultFormat
Deprecated.
|
static Format |
divAssignFormat
Deprecated.
|
static Format |
divFormat
Deprecated.
|
static Format |
doFormat
Deprecated.
|
static Format |
dotFormat
Deprecated.
|
static Format |
doubleFormat
Deprecated.
|
static Format |
elseFormat
Deprecated.
|
static Format[] |
emptyFormatList
Deprecated.
|
static Format |
enumFormat
Deprecated.
|
static Format |
equalFormat
Deprecated.
|
static Format |
equalsFormat
Deprecated.
|
static Format |
extendsFormat
Deprecated.
|
static Format |
falseFormat
Deprecated.
|
static Format |
finalFormat
Deprecated.
|
static Format |
finallyFormat
Deprecated.
|
static Format |
floatFormat
Deprecated.
|
static Format |
forFormat
Deprecated.
|
static Format |
geqFormat
Deprecated.
|
static Format |
gtFormat
Deprecated.
|
static Format |
ifFormat
Deprecated.
|
static Format |
implementsFormat
Deprecated.
|
static Format |
importFormat
Deprecated.
|
static BiFunction<Format,Format,Format> |
initializationFormat
Deprecated.
|
static Format |
instanceofFormat
Deprecated.
|
static Format |
intFormat
Deprecated.
|
static Format |
leqFormat
Deprecated.
|
static Format |
logicalAndFormat
Deprecated.
|
static Format |
logicalOrFormat
Deprecated.
|
static Format |
longFormat
Deprecated.
|
static Format |
ltFormat
Deprecated.
|
static Format |
minusAssignFormat
Deprecated.
|
static Format |
minusFormat
Deprecated.
|
static Format |
minusminusFormat
Deprecated.
|
static Format |
modAssignFormat
Deprecated.
|
static Format |
modFormat
Deprecated.
|
static Format |
nativeFormat
Deprecated.
|
static Format |
newFormat
Deprecated.
|
static Format |
notequalsFormat
Deprecated.
|
static Format |
notFormat
Deprecated.
|
static Format |
nullFormat
Deprecated.
|
static Format |
openBraceFormat
Deprecated.
|
static Format |
openBracketFormat
Deprecated.
|
static Format |
openCommentFormat
Deprecated.
|
static Format |
openDocCommentFormat
Deprecated.
|
static Format |
openParenFormat
Deprecated.
|
static Format |
orAssignFormat
Deprecated.
|
static Format |
orFormat
Deprecated.
|
static Format |
packageFormat
Deprecated.
|
static Format |
plusAssignFormat
Deprecated.
|
static Format |
plusFormat
Deprecated.
|
static Format |
plusplusFormat
Deprecated.
|
static Format |
privateFormat
Deprecated.
|
static Format |
protectedFormat
Deprecated.
|
static Format |
publicFormat
Deprecated.
|
static Format |
questionFormat
Deprecated.
|
static Format |
returnFormat
Deprecated.
|
static Format |
semicolonFormat
Deprecated.
|
static Format |
shiftLeftAssignFormat
Deprecated.
|
static Format |
shiftLeftFormat
Deprecated.
|
static Format |
shiftRightAssignFormat
Deprecated.
|
static Format |
shiftRightFormat
Deprecated.
|
static Format |
shortFormat
Deprecated.
|
static Format |
starAssignFormat
Deprecated.
|
static Format |
starFormat
Deprecated.
|
static Format |
staticFormat
Deprecated.
|
static Format |
stringDelimFormat
Deprecated.
|
static Format |
superFormat
Deprecated.
|
static Format |
switchFormat
Deprecated.
|
static Format |
synchronizedFormat
Deprecated.
|
static Format |
thisFormat
Deprecated.
|
static Format |
throwFormat
Deprecated.
|
static Format |
throwsFormat
Deprecated.
|
static Format |
transientFormat
Deprecated.
|
static Format |
trueFormat
Deprecated.
|
static Format |
tryFormat
Deprecated.
|
static Format |
voidFormat
Deprecated.
|
static Format |
volatileFormat
Deprecated.
|
static Format |
whileFormat
Deprecated.
|
static Format |
xorAssignFormat
Deprecated.
|
static Format |
xorFormat
Deprecated.
|
Constructor and Description |
---|
Formatter()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static 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 |
annotationFormat(Format type,
List<Map.Entry<String,Format>> values)
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 tryStatement
|
static 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.
|
static Format |
classDefinition(Format modifiers,
Format name,
Format typevars,
Format superclass,
List<Format> implementing,
Format body)
Deprecated.
|
static Format |
classDefinition(Format modifiers,
String name,
String superclass,
String[] interfaces,
Format body)
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.
|
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.
|
static Format |
constructorDefinition(Format modifiers,
String name,
Format[] parameters,
Format[] exceptions,
Format body)
Deprecated.
|
static Format |
continueStatement(Format format)
Deprecated.
continue |
static Format |
curlyList(List<Format> elems)
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 |
declarationsFormat(Format modifiers,
Format type,
List<Format> names,
List<Format> initializers)
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.
|
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 tryStatement
|
static 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 ( |
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.
|
static Format |
methodDefinition(Format modifiers,
Format typevars,
Format returntype,
String name,
Format[] parameters,
Format[] exceptions,
Format body)
Deprecated.
|
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(Format annotations,
int modifiers)
Deprecated.
|
static Format |
modifierFormat(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 |
openList(List<Format> elems)
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 |
roundList(List<Format> elems)
Deprecated.
|
static Format |
selection(Format item,
Format selector)
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.
|
public static final Format[] emptyFormatList
public static final Format dotFormat
public static final Format commaFormat
public static final Format semicolonFormat
public static final Format questionFormat
public static final Format colonFormat
public static final Format equalFormat
public static final Format openParenFormat
public static final Format closeParenFormat
public static final Format openBraceFormat
public static final Format closeBraceFormat
public static final Format openBracketFormat
public static final Format closeBracketFormat
public static final Format stringDelimFormat
public static final Format openCommentFormat
public static final Format openDocCommentFormat
public static final Format closeCommentFormat
public static final Format arrayFormat
public static final Format notFormat
public static final Format andFormat
public static final Format orFormat
public static final Format xorFormat
public static final Format trueFormat
public static final Format falseFormat
public static final Format nullFormat
public static final Format plusFormat
public static final Format plusplusFormat
public static final Format minusminusFormat
public static final Format notequalsFormat
public static final Format equalsFormat
public static final Format ltFormat
public static final Format gtFormat
public static final Format leqFormat
public static final Format geqFormat
public static final Format instanceofFormat
public static final Format publicFormat
public static final Format protectedFormat
public static final Format privateFormat
public static final Format staticFormat
public static final Format synchronizedFormat
public static final Format transientFormat
public static final Format finalFormat
public static final Format abstractFormat
public static final Format nativeFormat
public static final Format volatileFormat
public static final Format booleanFormat
public static final Format voidFormat
public static final Format byteFormat
public static final Format charFormat
public static final Format shortFormat
public static final Format intFormat
public static final Format floatFormat
public static final Format longFormat
public static final Format doubleFormat
public static final Format classFormat
public static final Format packageFormat
public static final Format enumFormat
public static final Format newFormat
public static final Format ifFormat
public static final Format elseFormat
public static final Format whileFormat
public static final Format forFormat
public static final Format doFormat
public static final Format throwsFormat
public static final Format throwFormat
public static final Format breakFormat
public static final Format continueFormat
public static final Format returnFormat
public static final Format thisFormat
public static final Format superFormat
public static final Format extendsFormat
public static final Format implementsFormat
public static final Format importFormat
public static final Format switchFormat
public static final Format caseFormat
public static final Format defaultFormat
public static final Format tryFormat
public static final Format catchFormat
public static final Format finallyFormat
public static final Format assignFormat
public static final Format plusAssignFormat
public static final Format minusAssignFormat
public static final Format starAssignFormat
public static final Format divAssignFormat
public static final Format modAssignFormat
public static final Format shiftRightAssignFormat
public static final Format bitShiftRightAssignFormat
public static final Format shiftLeftAssignFormat
public static final Format andAssignFormat
public static final Format xorAssignFormat
public static final Format orAssignFormat
public static final Format logicalOrFormat
public static final Format logicalAndFormat
public static final Format bitOrFormat
public static final Format bitXorFormat
public static final Format bitAndFormat
public static final Format shiftLeftFormat
public static final Format shiftRightFormat
public static final Format bitShiftRightFormat
public static final Format minusFormat
public static final Format divFormat
public static final Format modFormat
public static final Format starFormat
public static final Format bitNegFormat
public static final Format atFormat
public static BiFunction<Format,Format,Format> initializationFormat
public static Format modifierFormat(int modifiers)
public static Format notequalsExpression(Format expr1, Format expr2)
!=
public static Format infixExpression(Format expr1, Format operator, Format expr2)
public static Format intFormat(int value)
public static Format longFormat(long value)
public static Format doubleFormat(double value)
public static Format floatFormat(float value)
public static Format declarationFormat(Format modifiers, Format type, String name)
[ ]
public static Format declarationFormat(Format modifiers, Format type, String name, Format initializer)
[ ] =
public static Format declarationFormat(Format modifiers, Format type, Format name, Format initializer)
public static Format declarationsFormat(Format modifiers, Format type, Format[] names, Format[] initializers)
public static Format initializationFormat(Format name, Format initializer)
public static Format declarationsFormat(Format modifiers, Format type, List<Format> names, List<Format> initializers)
@Deprecated public static Format javaDefinition(Format header, Format body)
public static Format definitionFormat(Format header, Format body, boolean braces)
public static Format classDefinition(Format modifiers, String name, String superclass, String[] interfaces, Format body)
@Deprecated public static Format classDefinition(Format modifiers, Format name, Format superclass, Format[] implementing, Format body)
class
extends
[implements ] {
}
public static Format classDefinition(Format modifiers, Format name, Format typevars, Format superclass, Format[] implementing, Format body)
class
extends
[implements ] {
}
public static Format classDefinition(Format modifiers, Format name, Format typevars, Format superclass, List<Format> implementing, Format body)
public static Format enumDefinition(Format modifiers, Format name, Format typevars, Format[] implementing, Format[] constants, Format body)
enum
[implements ] {
[;]
}
public static Format enumDefinition(Format modifiers, Format name, Format typevars, List<Format> implementing, List<Format> constants, Format body)
public static Format enumConstant(String name, Format[] params, Format body)
public static Format enumConstant(String name, List<Format> params, Format body)
public static Format constructorDefinition(Format modifiers, Format typevars, Format name, Format[] parameters, Format[] exceptions, Format body)
() [throws ] {
}
public static Format constructorDefinition(Format modifiers, Format typevars, Format name, List<Format> parameters, List<Format> exceptions, Format body)
public static Format constructorDefinition(Format modifiers, Format typevars, String name, Format[] parameters, Format[] exceptions, Format body)
() [throws ] {
}
public static Format constructorDefinition(Format modifiers, String name, Format[] parameters, Format[] exceptions, Format body)
() [throws ] {
}
@Deprecated public static Format methodDefinition(Format modifiers, Format returntype, String name, Format[] parameters, Format[] exceptions, Format body)
() [throws ] {
}
public static Format methodDefinition(Format modifiers, Format typevars, Format returntype, String name, Format[] parameters, Format[] exceptions, Format body)
() [throws ] {
}
public static Format methodDefinition(Format modifiers, Format typevars, Format returntype, String name, List<Format> parameters, List<Format> exceptions, Format body)
@Deprecated public static Format methodDefinition(Format modifiers, Format returntype, String name, Format[] parameters, Format[] exceptions)
() [throws ] ;
public static Format methodDefinition(Format modifiers, Format typevars, Format returntype, String name, Format[] parameters, Format[] exceptions)
() [throws ] ;
public static Format methodDefinition(Format modifiers, Format typevars, Format returntype, String name, List<Format> parameters, List<Format> exceptions)
public static Format arraySelection(Format array, Format index)
array[index]
public static Format methodInvocation(String method, Format... args)
()
public static Format methodInvocation(Format object, String method, Format... args)
- .
()
public static Format tryStatement(Format statement, Format[] catchBlocks, Format finallyBlock)
public static Format catchStatement(Format exception, Format statement)
public static Format finallyStatement(Format statement)
public static Format conditionalExpression(Format expr1, Format expr2, Format expr3)
public static Format ifStatement(Format condition, Format success, Format failure)
if () {
} else {
}
public static Format ifStatement(Format condition, Format success)
if () {
}
public static Format whileStatement(Format condition, Format body)
while () {
}
public static Format doWhileStatement(Format body, Format condition)
do {
} while ();
public static Format forStatement(Format initializer, Format condition, Format iterator, Format body)
for (; ; ) {
}
public static Format forStatement(Format initializer, Format condition, Format iterator, Format body, boolean braces)
public static Format synchronizedBlockFormat(Format monitor, Format statements)
@Deprecated public static Format newInstanceExpression(String className, Format... params)
public static Format newInstanceExpression(Format className, Format... params)
public static Format newArrayExpression(Format className, Format[] elems)
public static Format instanceofExpression(Format expr, Format className)
public static Format annotationFormat(Format type, Map<String,Format> values)
public static Format annotationFormat(Format type, List<Map.Entry<String,Format>> values)
public static Format parameterizedType(Format base, List<Format> args)
see also the complete user documentation .