Class JavaFormatter

java.lang.Object
eu.bandm.tools.tdom.runtime.BaseVisitor
eu.bandm.tools.metajava.tdom.Visitor
eu.bandm.tools.metajava.format.GeneratedJavaFormatter
eu.bandm.tools.metajava.format.JavaFormatter
All Implemented Interfaces:
PCDataVisitor

public class JavaFormatter extends GeneratedJavaFormatter
  • Field Details

  • Constructor Details

    • JavaFormatter

      public JavaFormatter()
  • Method Details

    • visit

      public void visit(eu.bandm.tools.metajava.tdom.Element_stringLiteral el)
      Overrides:
      visit in class GeneratedJavaFormatter
    • visit

      public void visit(eu.bandm.tools.metajava.tdom.Element_charLiteral el)
      Overrides:
      visit in class GeneratedJavaFormatter
    • quoteJava

      public static String quoteJava(String content)
    • rotateRight

      protected void rotateRight()
    • rotateLeft

      protected void rotateLeft()
    • rotateLeftList

      protected void rotateLeftList()
    • show

      public static String show(Format f, int depth)
    • visit

      public void visit(eu.bandm.tools.metajava.tdom.Element_memberDeclarator el)
      Overrides:
      visit in class GeneratedJavaFormatter
    • visit

      public void visit(eu.bandm.tools.metajava.tdom.Element_methodDeclarator el)
      Overrides:
      visit in class GeneratedJavaFormatter
    • visit

      public void visit(eu.bandm.tools.metajava.tdom.Element_decl el)
      Overrides:
      visit in class GeneratedJavaFormatter
    • visit

      public void visit(eu.bandm.tools.metajava.tdom.Element_newExpr el)
      Overrides:
      visit in class GeneratedJavaFormatter
    • unindent

      protected void unindent(int... path)
    • visit

      public void visit(eu.bandm.tools.metajava.tdom.Element_ifStmt el)
      Overrides:
      visit in class GeneratedJavaFormatter
    • count

      protected int count()
    • count

      protected int count(Format f)
    • visit

      public void visit(eu.bandm.tools.metajava.tdom.Element_file el)
      Overrides:
      visit in class GeneratedJavaFormatter
    • visit

      public void visit(eu.bandm.tools.metajava.tdom.Element_placeholderIndex el)
      Overrides:
      visit in class eu.bandm.tools.metajava.tdom.Visitor
    • visit

      public void visit(eu.bandm.tools.metajava.tdom.Element_placeholderName el)
      Overrides:
      visit in class eu.bandm.tools.metajava.tdom.Visitor
    • visit

      public void visit(eu.bandm.tools.metajava.tdom.Element_meta el)
      Overrides:
      visit in class eu.bandm.tools.metajava.tdom.Visitor