Jode 1.90-CVS
Build Aug 6, 2004

net.sf.jode.decompiler
Class TabbedPrintWriter

java.lang.Object
  extended bynet.sf.jode.decompiler.TabbedPrintWriter

public class TabbedPrintWriter
extends java.lang.Object


Field Summary
static int BRACE_AT_EOL
           
static int DONT_BREAK
           
static int EXPL_PAREN
           
static int GNU_SPACING
           
static int IMPL_PAREN
           
static int INDENT_BRACES
           
static int NO_PAREN
           
 
Constructor Summary
TabbedPrintWriter(java.io.OutputStream os)
           
TabbedPrintWriter(java.io.OutputStream os, ImportHandler imports)
           
TabbedPrintWriter(java.io.OutputStream os, ImportHandler imports, boolean autoFlush)
           
TabbedPrintWriter(java.io.OutputStream os, ImportHandler imports, boolean autoFlush, int style, int indentSize, int tabWidth, int lineWidth)
           
TabbedPrintWriter(java.io.Writer os)
           
TabbedPrintWriter(java.io.Writer os, ImportHandler imports)
           
TabbedPrintWriter(java.io.Writer os, ImportHandler imports, boolean autoFlush)
           
TabbedPrintWriter(java.io.Writer os, ImportHandler imports, boolean autoFlush, int style, int indentSize, int tabWidth, int lineWidth)
           
 
Method Summary
 void breakOp()
           
 void close()
           
 void closeBrace()
           
 void closeBraceClass()
           
 void closeBraceContinue()
           
 void closeBraceNoIndent()
           
 boolean conflicts(java.lang.String name, Scope inScope, int context)
          Checks if the name in inScope conflicts with an identifier in a higher scope.
 void endOp()
           
 void flush()
           
 void flushLine()
           
 java.lang.String getClassString(ClassInfo clazz, int scopeType)
           
 Scope getScope(java.lang.Object obj, int scopeType)
           
 java.lang.String getTypeString(Type type)
           
protected  java.lang.String makeIndentStr(int indent)
          Convert the numeric indentation to a string.
 void openBrace()
          Print a opening brace with the current indentation style.
 void openBraceClass()
           
 void openBraceNoIndent()
          Print a opening brace with the current indentation style.
 void openBraceNoSpace()
          Print an opening brace with the current indentation style.
 void popScope()
           
 void print(java.lang.String str)
           
 void println()
           
 void println(java.lang.String str)
           
 void printOptionalSpace()
           
 void printType(Type type)
           
 void pushScope(Scope scope)
           
 void restoreOps(java.lang.Object s)
           
 java.lang.Object saveOps()
           
 void startOp(int options, int penalty)
           
 void tab()
           
 void untab()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BRACE_AT_EOL

public static final int BRACE_AT_EOL
See Also:
Constant Field Values

INDENT_BRACES

public static final int INDENT_BRACES
See Also:
Constant Field Values

GNU_SPACING

public static final int GNU_SPACING
See Also:
Constant Field Values

EXPL_PAREN

public static final int EXPL_PAREN
See Also:
Constant Field Values

NO_PAREN

public static final int NO_PAREN
See Also:
Constant Field Values

IMPL_PAREN

public static final int IMPL_PAREN
See Also:
Constant Field Values

DONT_BREAK

public static final int DONT_BREAK
See Also:
Constant Field Values
Constructor Detail

TabbedPrintWriter

public TabbedPrintWriter(java.io.OutputStream os,
                         ImportHandler imports,
                         boolean autoFlush,
                         int style,
                         int indentSize,
                         int tabWidth,
                         int lineWidth)

TabbedPrintWriter

public TabbedPrintWriter(java.io.Writer os,
                         ImportHandler imports,
                         boolean autoFlush,
                         int style,
                         int indentSize,
                         int tabWidth,
                         int lineWidth)

TabbedPrintWriter

public TabbedPrintWriter(java.io.OutputStream os,
                         ImportHandler imports,
                         boolean autoFlush)

TabbedPrintWriter

public TabbedPrintWriter(java.io.Writer os,
                         ImportHandler imports,
                         boolean autoFlush)

TabbedPrintWriter

public TabbedPrintWriter(java.io.OutputStream os,
                         ImportHandler imports)

TabbedPrintWriter

public TabbedPrintWriter(java.io.Writer os,
                         ImportHandler imports)

TabbedPrintWriter

public TabbedPrintWriter(java.io.OutputStream os)

TabbedPrintWriter

public TabbedPrintWriter(java.io.Writer os)
Method Detail

makeIndentStr

protected java.lang.String makeIndentStr(int indent)
Convert the numeric indentation to a string.


tab

public void tab()

untab

public void untab()

startOp

public void startOp(int options,
                    int penalty)

breakOp

public void breakOp()

endOp

public void endOp()

saveOps

public java.lang.Object saveOps()

restoreOps

public void restoreOps(java.lang.Object s)

println

public void println(java.lang.String str)

flushLine

public void flushLine()

println

public void println()

print

public void print(java.lang.String str)

printType

public void printType(Type type)

pushScope

public void pushScope(Scope scope)

popScope

public void popScope()

conflicts

public boolean conflicts(java.lang.String name,
                         Scope inScope,
                         int context)
Checks if the name in inScope conflicts with an identifier in a higher scope.


getScope

public Scope getScope(java.lang.Object obj,
                      int scopeType)

getClassString

public java.lang.String getClassString(ClassInfo clazz,
                                       int scopeType)

getTypeString

public java.lang.String getTypeString(Type type)

printOptionalSpace

public void printOptionalSpace()

openBrace

public void openBrace()
Print a opening brace with the current indentation style. Called at the end of the line of the instance that opens the brace. It doesn't do a tab stop after opening the brace.


openBraceClass

public void openBraceClass()

openBraceNoIndent

public void openBraceNoIndent()
Print a opening brace with the current indentation style. Called at the end the line of a method declaration.


openBraceNoSpace

public void openBraceNoSpace()
Print an opening brace with the current indentation style. Called at the end of the line of the instance that opens the brace. It doesn't do a tab stop after opening the brace.


closeBraceContinue

public void closeBraceContinue()

closeBraceClass

public void closeBraceClass()

closeBrace

public void closeBrace()

closeBraceNoIndent

public void closeBraceNoIndent()

flush

public void flush()

close

public void close()

Jode 1.90-CVS
Build Aug 6, 2004

Copyright © 1998-2004 by Jochen Hoenicke.