Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.port80.eclipse.llk.editors
Class LLKFormatter  view LLKFormatter download LLKFormatter.java

java.lang.Object
  extended bycom.port80.eclipse.llk.editors.LLKFormatter

public class LLKFormatter
extends java.lang.Object

Formatter for LLK grammar files.


Field Summary
private static java.lang.String CLASSNAME
           
private static boolean DEBUG
           
private  LLKEditorConfiguration fConfig
           
private  org.eclipse.ui.editors.text.TextEditor fEditor
           
private  com.port80.eclipse.llk.editors.parser.ILLKMain fReporter
           
private  org.eclipse.jface.text.source.SourceViewer fViewer
           
private static java.lang.String NAME
           
private static java.lang.String OPTION_SPEC
           
private static java.lang.String PACKAGENAME
           
private static boolean VERBOSE
           
private static int VERSION
           
private static java.lang.String VERSIONNAME
           
 
Constructor Summary
(package private) LLKFormatter(com.port80.eclipse.llk.editors.parser.ILLKMain reporter)
           
  LLKFormatter(LLKEditorConfiguration cf, org.eclipse.jface.text.source.SourceViewer viewer)
           
 
Method Summary
private static int countLines(java.lang.String input)
           
 java.lang.String format()
          Formats the whole document and returns the formatted string.
 java.lang.String format(java.lang.String input, int linewidth, int tabwidth, boolean compact)
           
static void main(java.lang.String[] args)
           
private static char[] readFile(java.lang.String fpath)
           
private static java.lang.String stripCR(java.lang.String s)
           
(package private)  void test()
           
(package private)  void test1a(com.port80.eclipse.llk.editors.parser.LLKFormatterParser parser, char[] source, int iter)
           
private static void usage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

private static final java.lang.String NAME
See Also:
Constant Field Values

PACKAGENAME

private static final java.lang.String PACKAGENAME
See Also:
Constant Field Values

CLASSNAME

private static final java.lang.String CLASSNAME
See Also:
Constant Field Values

VERSIONNAME

private static final java.lang.String VERSIONNAME
See Also:
Constant Field Values

VERSION

private static final int VERSION
See Also:
Constant Field Values

DEBUG

private static final boolean DEBUG
See Also:
Constant Field Values

VERBOSE

private static boolean VERBOSE

fConfig

private LLKEditorConfiguration fConfig

fViewer

private org.eclipse.jface.text.source.SourceViewer fViewer

fEditor

private org.eclipse.ui.editors.text.TextEditor fEditor

fReporter

private com.port80.eclipse.llk.editors.parser.ILLKMain fReporter

OPTION_SPEC

private static final java.lang.String OPTION_SPEC
See Also:
Constant Field Values
Constructor Detail

LLKFormatter

LLKFormatter(com.port80.eclipse.llk.editors.parser.ILLKMain reporter)

LLKFormatter

public LLKFormatter(LLKEditorConfiguration cf,
                    org.eclipse.jface.text.source.SourceViewer viewer)
Method Detail

format

public java.lang.String format()
Formats the whole document and returns the formatted string.


format

public java.lang.String format(java.lang.String input,
                               int linewidth,
                               int tabwidth,
                               boolean compact)

stripCR

private static java.lang.String stripCR(java.lang.String s)

usage

private static void usage()

main

public static void main(java.lang.String[] args)

test

void test()

test1a

void test1a(com.port80.eclipse.llk.editors.parser.LLKFormatterParser parser,
            char[] source,
            int iter)

countLines

private static int countLines(java.lang.String input)

readFile

private static char[] readFile(java.lang.String fpath)
                        throws java.io.FileNotFoundException,
                               java.io.IOException