Class Formatter

java.lang.Object
eu.bandm.tools.format.java.Formatter

@Deprecated public class Formatter extends Object
Deprecated.
Use FormatClosure instead, which is parser based and combines all required formats syntax-driven.
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 Details

    • emptyFormatList

      public static final Format[] emptyFormatList
      Deprecated.
    • dotFormat

      public static final Format dotFormat
      Deprecated.
    • commaFormat

      public static final Format commaFormat
      Deprecated.
    • semicolonFormat

      public static final Format semicolonFormat
      Deprecated.
    • questionFormat

      public static final Format questionFormat
      Deprecated.
    • colonFormat

      public static final Format colonFormat
      Deprecated.
    • equalFormat

      public static final Format equalFormat
      Deprecated.
    • openParenFormat

      public static final Format openParenFormat
      Deprecated.
    • closeParenFormat

      public static final Format closeParenFormat
      Deprecated.
    • openBraceFormat

      public static final Format openBraceFormat
      Deprecated.
    • closeBraceFormat

      public static final Format closeBraceFormat
      Deprecated.
    • openBracketFormat

      public static final Format openBracketFormat
      Deprecated.
    • closeBracketFormat

      public static final Format closeBracketFormat
      Deprecated.
    • stringDelimFormat

      public static final Format stringDelimFormat
      Deprecated.
    • openCommentFormat

      public static final Format openCommentFormat
      Deprecated.
    • openDocCommentFormat

      public static final Format openDocCommentFormat
      Deprecated.
    • closeCommentFormat

      public static final Format closeCommentFormat
      Deprecated.
    • arrayFormat

      public static final Format arrayFormat
      Deprecated.
    • notFormat

      public static final Format notFormat
      Deprecated.
    • andFormat

      public static final Format andFormat
      Deprecated.
    • orFormat

      public static final Format orFormat
      Deprecated.
    • xorFormat

      public static final Format xorFormat
      Deprecated.
    • trueFormat

      public static final Format trueFormat
      Deprecated.
    • falseFormat

      public static final Format falseFormat
      Deprecated.
    • nullFormat

      public static final Format nullFormat
      Deprecated.
    • plusFormat

      public static final Format plusFormat
      Deprecated.
    • plusplusFormat

      public static final Format plusplusFormat
      Deprecated.
    • minusminusFormat

      public static final Format minusminusFormat
      Deprecated.
    • notequalsFormat

      public static final Format notequalsFormat
      Deprecated.
    • equalsFormat

      public static final Format equalsFormat
      Deprecated.
    • ltFormat

      public static final Format ltFormat
      Deprecated.
    • gtFormat

      public static final Format gtFormat
      Deprecated.
    • leqFormat

      public static final Format leqFormat
      Deprecated.
    • geqFormat

      public static final Format geqFormat
      Deprecated.
    • instanceofFormat

      public static final Format instanceofFormat
      Deprecated.
    • publicFormat

      public static final Format publicFormat
      Deprecated.
    • protectedFormat

      public static final Format protectedFormat
      Deprecated.
    • privateFormat

      public static final Format privateFormat
      Deprecated.
    • staticFormat

      public static final Format staticFormat
      Deprecated.
    • synchronizedFormat

      public static final Format synchronizedFormat
      Deprecated.
    • transientFormat

      public static final Format transientFormat
      Deprecated.
    • finalFormat

      public static final Format finalFormat
      Deprecated.
    • abstractFormat

      public static final Format abstractFormat
      Deprecated.
    • nativeFormat

      public static final Format nativeFormat
      Deprecated.
    • volatileFormat

      public static final Format volatileFormat
      Deprecated.
    • booleanFormat

      public static final Format booleanFormat
      Deprecated.
    • voidFormat

      public static final Format voidFormat
      Deprecated.
    • byteFormat

      public static final Format byteFormat
      Deprecated.
    • charFormat

      public static final Format charFormat
      Deprecated.
    • shortFormat

      public static final Format shortFormat
      Deprecated.
    • intFormat

      public static final Format intFormat
      Deprecated.
    • floatFormat

      public static final Format floatFormat
      Deprecated.
    • longFormat

      public static final Format longFormat
      Deprecated.
    • doubleFormat

      public static final Format doubleFormat
      Deprecated.
    • classFormat

      public static final Format classFormat
      Deprecated.
    • packageFormat

      public static final Format packageFormat
      Deprecated.
    • enumFormat

      public static final Format enumFormat
      Deprecated.
    • newFormat

      public static final Format newFormat
      Deprecated.
    • ifFormat

      public static final Format ifFormat
      Deprecated.
    • elseFormat

      public static final Format elseFormat
      Deprecated.
    • whileFormat

      public static final Format whileFormat
      Deprecated.
    • forFormat

      public static final Format forFormat
      Deprecated.
    • doFormat

      public static final Format doFormat
      Deprecated.
    • throwsFormat

      public static final Format throwsFormat
      Deprecated.
    • throwFormat

      public static final Format throwFormat
      Deprecated.
    • breakFormat

      public static final Format breakFormat
      Deprecated.
    • continueFormat

      public static final Format continueFormat
      Deprecated.
    • returnFormat

      public static final Format returnFormat
      Deprecated.
    • thisFormat

      public static final Format thisFormat
      Deprecated.
    • superFormat

      public static final Format superFormat
      Deprecated.
    • extendsFormat

      public static final Format extendsFormat
      Deprecated.
    • implementsFormat

      public static final Format implementsFormat
      Deprecated.
    • importFormat

      public static final Format importFormat
      Deprecated.
    • switchFormat

      public static final Format switchFormat
      Deprecated.
    • caseFormat

      public static final Format caseFormat
      Deprecated.
    • defaultFormat

      public static final Format defaultFormat
      Deprecated.
    • tryFormat

      public static final Format tryFormat
      Deprecated.
    • catchFormat

      public static final Format catchFormat
      Deprecated.
    • finallyFormat

      public static final Format finallyFormat
      Deprecated.
    • assignFormat

      public static final Format assignFormat
      Deprecated.
    • plusAssignFormat

      public static final Format plusAssignFormat
      Deprecated.
    • minusAssignFormat

      public static final Format minusAssignFormat
      Deprecated.
    • starAssignFormat

      public static final Format starAssignFormat
      Deprecated.
    • divAssignFormat

      public static final Format divAssignFormat
      Deprecated.
    • modAssignFormat

      public static final Format modAssignFormat
      Deprecated.
    • shiftRightAssignFormat

      public static final Format shiftRightAssignFormat
      Deprecated.
    • bitShiftRightAssignFormat

      public static final Format bitShiftRightAssignFormat
      Deprecated.
    • shiftLeftAssignFormat

      public static final Format shiftLeftAssignFormat
      Deprecated.
    • andAssignFormat

      public static final Format andAssignFormat
      Deprecated.
    • xorAssignFormat

      public static final Format xorAssignFormat
      Deprecated.
    • orAssignFormat

      public static final Format orAssignFormat
      Deprecated.
    • logicalOrFormat

      public static final Format logicalOrFormat
      Deprecated.
    • logicalAndFormat

      public static final Format logicalAndFormat
      Deprecated.
    • bitOrFormat

      public static final Format bitOrFormat
      Deprecated.
    • bitXorFormat

      public static final Format bitXorFormat
      Deprecated.
    • bitAndFormat

      public static final Format bitAndFormat
      Deprecated.
    • shiftLeftFormat

      public static final Format shiftLeftFormat
      Deprecated.
    • shiftRightFormat

      public static final Format shiftRightFormat
      Deprecated.
    • bitShiftRightFormat

      public static final Format bitShiftRightFormat
      Deprecated.
    • minusFormat

      public static final Format minusFormat
      Deprecated.
    • divFormat

      public static final Format divFormat
      Deprecated.
    • modFormat

      public static final Format modFormat
      Deprecated.
    • starFormat

      public static final Format starFormat
      Deprecated.
    • bitNegFormat

      public static final Format bitNegFormat
      Deprecated.
    • atFormat

      public static final Format atFormat
      Deprecated.
    • initializationFormat

      public static BiFunction<Format,Format,Format> initializationFormat
      Deprecated.
  • Constructor Details

    • Formatter

      public Formatter()
      Deprecated.
  • Method Details

    • roundList

      public static Format roundList(List<Format> elems)
      Deprecated.
    • angledList

      public static Format angledList(List<Format> elems)
      Deprecated.
    • squareList

      public static Format squareList(List<Format> elems)
      Deprecated.
    • curlyList

      public static Format curlyList(List<Format> elems)
      Deprecated.
    • openList

      public static Format openList(List<Format> elems)
      Deprecated.
    • modifierFormat

      public static Format modifierFormat(Format annotations, int modifiers)
      Deprecated.
    • modifierFormat

      public static Format modifierFormat(int modifiers)
      Deprecated.
    • genericFormat

      public static Format genericFormat(Format... types)
      Deprecated.
    • genericFormat

      public static Format genericFormat(List<Format> types)
      Deprecated.
    • equalsExpression

      public static Format equalsExpression(Format expr1, Format expr2)
      Deprecated.
      ==
    • notequalsExpression

      public static Format notequalsExpression(Format expr1, Format expr2)
      Deprecated.
      !=
    • infixExpression

      public static Format infixExpression(Format expr1, Format operator, Format expr2)
      Deprecated.
    • assignExpression

      public static Format assignExpression(Format item, Format value)
      Deprecated.
      =
    • stringFormat

      public static Format stringFormat(String str)
      Deprecated.
      ""
    • intFormat

      public static Format intFormat(int value)
      Deprecated.
    • longFormat

      public static Format longFormat(long value)
      Deprecated.
    • doubleFormat

      public static Format doubleFormat(double value)
      Deprecated.
    • floatFormat

      public static Format floatFormat(float value)
      Deprecated.
    • parensFormat

      public static Format parensFormat(Format format)
      Deprecated.
      ()
    • statementFormat

      public static Format statementFormat(Format format)
      Deprecated.
      ;
    • directiveStatement

      public static Format directiveStatement(Format op, Format arg)
      Deprecated.
      [ ];
    • returnStatement

      public static Format returnStatement(Format format)
      Deprecated.
      return ;
    • breakStatement

      public static Format breakStatement(Format format)
      Deprecated.
      break ;
    • continueStatement

      public static Format continueStatement(Format format)
      Deprecated.
      continue ;
    • declarationFormat

      public static Format declarationFormat(Format modifiers, Format type, String name)
      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

      public static Format initializationFormat(Format name, Format initializer)
      Deprecated.
    • declarationsFormat

      public static Format declarationsFormat(Format modifiers, Format type, List<Format> names, List<Format> initializers)
      Deprecated.
    • declarationFormat

      public static Format declarationFormat(Format type, String name)
      Deprecated.
    • declarationFormat

      public static Format declarationFormat(Format type, Format item)
      Deprecated.
    • javaDefinition

      @Deprecated public static Format javaDefinition(Format header, Format body)
      Deprecated.
      See Also:
    • definitionFormat

      public static Format definitionFormat(Format header, Format body)
      Deprecated.
      { }
    • definitionFormat

      public static Format definitionFormat(Format header, Format body, boolean braces)
      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

      public static Format enumConstant(String name, Format[] params, Format body)
      Deprecated.
    • enumConstant

      public static Format enumConstant(String name, List<Format> params, Format body)
      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

      public static Format fieldSelection(Format item, String selector)
      Deprecated.
      .
    • selection

      public static Format selection(Format item, Format selector)
      Deprecated.
    • arraySelection

      public static Format arraySelection(Format array, Format index)
      Deprecated.
        array[index]
        
    • methodInvocation

      public static Format methodInvocation(String method, Format... args)
      Deprecated.
      ()
    • methodInvocation

      public static Format methodInvocation(String method)
      Deprecated.
    • methodInvocation

      public static Format methodInvocation(Format object, String method, Format... args)
      Deprecated.
      .()
    • tryStatement

      public static Format tryStatement(Format statement, Format[] catchBlocks, Format finallyBlock)
      Deprecated.
    • catchStatement

      public static Format catchStatement(Format exception, Format statement)
      Deprecated.
      Attention: The result of this method should only be used for the tryStatement
    • finallyStatement

      public static Format finallyStatement(Format statement)
      Deprecated.
      Attention: The result of this method should only be used for the tryStatement
    • conditionalExpression

      public static Format conditionalExpression(Format expr1, Format expr2, Format expr3)
      Deprecated.
    • ifStatement

      public static Format ifStatement(Format condition, Format success, Format failure)
      Deprecated.
      if () { } else { }
    • ifStatement

      public static Format ifStatement(Format condition, Format success)
      Deprecated.
      if () { }
    • whileHeader

      public static Format whileHeader(Format condition)
      Deprecated.
      while ()
    • whileStatement

      public static Format whileStatement(Format condition, Format body)
      Deprecated.
      while () { }
    • doWhileStatement

      public static Format doWhileStatement(Format body, Format condition)
      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

      public static Format synchronizedBlockFormat(Format monitor, Format statements)
      Deprecated.
    • blockFormat

      public static Format blockFormat(Format statements)
      Deprecated.
    • onlyifStatement

      public static Format onlyifStatement(Format condition, Format body)
      Deprecated.
    • andExpression

      public static Format andExpression(Format cond1, Format cond2)
      Deprecated.
    • orExpression

      public static Format orExpression(Format cond1, Format cond2)
      Deprecated.
    • xorExpression

      public static Format xorExpression(Format cond1, Format cond2)
      Deprecated.
    • docCommentFormat

      public static Format docCommentFormat(Format[] comments)
      Deprecated.
    • newInstanceExpression

      @Deprecated public static Format newInstanceExpression(String className, Format... params)
      Deprecated.
    • newInstanceExpression

      public static Format newInstanceExpression(Format className, Format... params)
      Deprecated.
    • newArrayExpression

      public static Format newArrayExpression(Format className, Format[] elems)
      Deprecated.
    • castExpression

      public static Format castExpression(Format type, Format expr)
      Deprecated.
    • instanceofExpression

      public static Format instanceofExpression(Format expr, Format className)
      Deprecated.
    • switchStatement

      public static Format switchStatement(Format expr, Format[] cases)
      Deprecated.
    • caseLabelFormat

      public static Format caseLabelFormat(Format label)
      Deprecated.
    • caseFormat

      public static Format caseFormat(Format label, Format body)
      Deprecated.
    • caseFormat

      public static Format caseFormat(Format[] labels, Format body)
      Deprecated.
    • labeledStatement

      public static Format labeledStatement(String label, Format body)
      Deprecated.
    • labeledStatement

      public static Format labeledStatement(Format label, Format body)
      Deprecated.
    • annotationFormat

      public static Format annotationFormat(Format type)
      Deprecated.
    • annotationFormat

      public static Format annotationFormat(Format type, Format value)
      Deprecated.
    • annotationFormat

      public static Format annotationFormat(Format type, Map<String,Format> values)
      Deprecated.
    • annotationFormat

      public static Format annotationFormat(Format type, List<Map.Entry<String,Format>> values)
      Deprecated.
    • typeVariable

      public static Format typeVariable(String name)
      Deprecated.
    • typeVariable

      public static Format typeVariable(String name, Format... bounds)
      Deprecated.
    • typeVariable

      public static Format typeVariable(String name, List<Format> bounds)
      Deprecated.
    • parameterizedType

      public static Format parameterizedType(Format base, Format... args)
      Deprecated.
    • parameterizedType

      public static Format parameterizedType(Format base, List<Format> args)
      Deprecated.
    • packageDecl

      public static Format packageDecl(String name)
      Deprecated.
    • packageDecl

      public static Format packageDecl(Format annotations, String name)
      Deprecated.