|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.pretty.PrintData
public class PrintData
This object stores all the data necessary to print the the Java file
Field Summary | |
---|---|
static int |
ALPHABETICAL_ORDER
|
static int |
BLOCK_STYLE_C
Use the C style blocks |
static int |
BLOCK_STYLE_EMACS
Use the EMACS style of blocks (like pascal but 2 spaces) |
static int |
BLOCK_STYLE_PASCAL
Use the PASCAL style blocks |
static int |
C_STYLE_COMMENT
A c style comment |
static int |
CATEGORY_COMMENT
A category comment |
static int |
CLASS
Description of the Field |
static int |
CSC_ALIGN_BLANK
Aligns the C style comments with a * to the right |
static int |
CSC_ALIGN_STAR
Aligns the C style comments with a * to the right |
static int |
CSC_LEAVE_UNTOUCHED
Leaves C Style comments untouched |
static int |
CSC_MAINTAIN_STAR
Maintains spacing in the C style comments, but insists upon a star at the right |
static int |
DFS_ALIGN_EQUALS
Only align on the equals |
static int |
DFS_ALWAYS
ALWAYS use dynamic field spacing |
static int |
DFS_NEVER
Never use dynamic field spacing |
static int |
DFS_NOT_WITH_JAVADOC
Use dynamic field spacing except with javadoc |
static int |
DOUBLE_INDENT
The indent type for an unexpected end of line - double indent |
static int |
EMPTY
Description of the Field |
static int |
ENUM
This is used to mark enumerations (which are really classes behind the scenes) |
static int |
FIELD
Description of the Field |
int |
finalLine
Description of the Field |
static int |
INTERFACE
Description of the Field |
static int |
JAVADOC_COMMENT
A comment with javadoc |
static int |
METHOD
Description of the Field |
static int |
NO_INDENT
There should be no indent |
static int |
PARAM_INDENT
The indent type for an unexpected end of line - line up parameters indent |
static int |
SINGLE_INDENT
The indent type for an unexpected end of line - single indent |
static int |
SINGLE_LINE_COMMENT
A single line comment |
static int |
STANDARD_ORDER
|
Constructor Summary | |
---|---|
PrintData()
Create a print data object |
|
PrintData(java.io.Writer out)
Create a print data object |
Method Summary | |
---|---|
void |
appendComment(java.lang.String string,
int type)
Append a comment to the output |
void |
appendConstant(java.lang.String string)
Append constant to the output |
void |
appendKeyword(java.lang.String string)
Append a keyword to the output |
void |
appendText(java.lang.String string)
Append text to the output |
void |
backspace()
Backspace |
void |
beginBlock()
Start a block |
void |
beginBlock(boolean space)
Start a block |
void |
beginBlock(boolean space,
boolean newlineAfter)
Start a block |
void |
beginClass()
Start a Class |
void |
beginEnum()
Start a Enum |
void |
beginExpression(boolean notEmpty)
Start an expression |
void |
beginField()
Start a Field |
void |
beginInterface()
Start a Interface |
void |
beginMethod()
Start a Method |
void |
classBrace()
Indicates that a class's open brace is about to be formatted. |
void |
close()
Closes the output stream |
boolean |
consumeNewline()
Consume a newline |
void |
decrCaseIndent()
Description of the Method |
void |
decrIndent()
Decrement the indent by the default amount |
void |
endBlock()
End a block |
void |
endBlock(boolean newline,
boolean newlineBefore)
End a block |
void |
endClass()
End a Class |
void |
endEnum()
End a Enum |
void |
endExpression(boolean notEmpty)
End an expression |
void |
endField()
End a Field |
void |
endInterface()
End a Interface |
void |
endMethod()
End a Method |
void |
enterMethodDecl()
Sets the state for being inside a method declaration. |
void |
exitMethodDecl()
Indicates that we've exited a method declaration. |
void |
flush()
Flushes the buffer |
java.lang.StringBuffer |
getBuffer()
|
int |
getCStyleFormatCode()
Gets the CStyleFormatCode attribute of the PrintData object |
int |
getCStyleIndent()
Gets the CStyleIndent attribute of the PrintData object |
boolean |
getCStyleOwnline()
Gets the CStyleOnline attribute of the PrintData object |
java.lang.String |
getCurrentClassName()
Gets the CurrentClassName attribute of the PrintData object |
int |
getDynamicFieldSpaces()
Gets the DynamicFieldSpacing attribute of the PrintData object |
int |
getExtendsIndentation()
|
int |
getFieldNameIndent()
Gets the FieldNameIndent attribute of the PrintData object |
int |
getFieldSpaceCode()
Return the code for field and local variable spacing |
int |
getFinalLine()
Gets the FinalLine attribute of the PrintData object |
int |
getImplementsIndentation()
|
java.lang.String[] |
getImportSortImportant()
Gets the importSortImportant attribute of the PrintData object |
int |
getImportSortNeighbourhood()
Gets the importSortNeighbourhood attribute of the PrintData object |
int |
getIndent()
Get the indent |
java.lang.String |
getIndentString()
Return the indent string |
int |
getJavadocIndent()
Returns the number of spaces between the JavaDoc asterisks and the comment text. |
int |
getJavadocStarCount()
Gets the JavadocStarCount attribute of the PrintData object |
int |
getJavadocWordWrapMaximum()
Gets the JavadocWordWrapMaximum attribute of the PrintData object |
int |
getJavadocWordWrapMinimum()
Gets the JavadocWordWrapMinimum attribute of the PrintData object |
int |
getLineLength()
Get the length of the line |
int |
getLinesAfterPackage()
Gets the linesAfterPackage attribute of the PrintData object |
int |
getLinesBeforeClass()
Gets the linesBeforeClass attribute of the PrintData object |
int |
getMethodBlockStyle()
Returns the method block style |
int |
getModifierOrder()
|
MultipleOrdering |
getOrder()
Gets the Order attribute of the PrintData object |
int |
getOriginalLine()
Gets the OriginalLine attribute of the PrintData object |
Settings |
getSettings()
Gets the Settings attribute of the PrintData object |
int |
getState()
Return the state of the pretty printer |
int |
getSurpriseReturn()
Gets the SurpriseReturn attribute of the PrintData object |
int |
getTaggedJavadocDescription()
|
java.util.Comparator |
getTopOrder(net.sourceforge.jrefactory.ast.ASTCompilationUnit node)
Gets the TopOrder attribute of the PrintData object |
void |
incrCaseIndent()
Description of the Method |
void |
incrIndent()
Increment the indent by the default amount |
protected void |
incrIndent(int incr)
Increment the indent |
void |
indent()
Indent the output |
boolean |
isAllJavadocKept()
Gets the AllJavadocKept attribute of the PrintData object |
boolean |
isAllowSingleLineJavadoc()
Gets the allowSingleLineJavadoc attribute of the PrintData object |
boolean |
isArrayInitializerIndented()
|
boolean |
isBangSpace()
Gets the bangSpace attribute of the PrintData object |
boolean |
isBufferEmpty()
Is the output buffer empty? |
boolean |
isCastSpace()
Gets the CastSpace attribute of the PrintData object |
boolean |
isCatchOnNewLine()
Returns true if the catch statement is on a new line |
boolean |
isCurrentSingle()
Gets the currentSingle attribute of the PrintData object |
boolean |
isDynamicFieldSpacing(boolean javadocPrinted)
Gets the DynamicFieldSpacing attribute of the PrintData object |
boolean |
isElseOnNewLine()
Returns true if the else statement is on a new line |
boolean |
isEmptyBlockOnSingleLine()
Gets the EmptyBlockOnSingleLine attribute of the PrintData object |
boolean |
isFieldNameIndented()
Gets the FieldNameIndented attribute of the PrintData object |
boolean |
isFirstLineOnCommentStart()
Gets the firstLineOnCommentStart attribute of the PrintData object |
boolean |
isForcingBlock()
Gets the ForcingBlock attribute of the PrintData object |
boolean |
isIndentInInitailzer()
Gets the indentInInitailzer attribute of the PrintData object |
boolean |
isInsertSpaceLocalVariables()
Gets the insertSpaceLocalVariables attribute of the PrintData object |
boolean |
isJavadocDescriptionLinedup()
|
boolean |
isJavadocLinedUp()
Returns true if JavaDoc IDs (param, returns, etc.) should be lined up. |
boolean |
isKeepErroneousJavadocTags()
Gets the keepErroneousJavadocTags attribute of the PrintData object |
boolean |
isLineBeforeClassBody()
|
boolean |
isLineBeforeExtends()
|
boolean |
isLineBeforeImplements()
|
boolean |
isLineBeforeMultistatementMethodBody()
|
boolean |
isLineIndented()
Is the output buffer empty? |
boolean |
isMaintainNewlinesAroundImports()
Gets the maintainNewlinesAroundImports attribute of the PrintData object |
boolean |
isNestedClassDocumented()
Gets the NestedClassDocumented attribute of the PrintData object |
boolean |
isReformatComments()
Gets the ReformatComments attribute of the PrintData object |
boolean |
isRemoveExcessBlocks()
Gets the removeExcessBlocks attribute of the PrintData object |
boolean |
isSortTop()
|
boolean |
isSpaceAfterCast()
Gets the SpaceAfterCast attribute of the PrintData object |
boolean |
isSpaceAfterKeyword()
Determines whether there should be a space between a keyword such as 'if' or 'while' and the opening brace that follows it. |
boolean |
isSpaceAfterMethod()
Determines whether there should be a space between a method call and the opening brace that follows it. |
boolean |
isSpaceAroundOperators()
Gets the spaceAroundOperators attribute of the PrintData object |
boolean |
isSpaceBeforeAt()
Determines if there should be a space between the '*' and the '@' in a javadoc comment. |
boolean |
isSpaceInsideCast()
Determines if there is a space inside the cast parens |
boolean |
isStarsAlignedWithSlash()
|
boolean |
isThrowsOnNewline()
Gets the ThrowsOnNewline attribute of the PrintData object |
boolean |
isVariablesAlignWithBlock()
Gets the variablesAlignWithBlock attribute of the PrintData object |
protected LineQueue |
lineQueueFactory(java.io.PrintWriter output)
Creates a line queue object |
void |
methodBrace()
Indicates that a method's open brace is about to be formatted. |
void |
newline()
Add a newline |
void |
popCurrentClassName()
Description of the Method |
void |
popFieldSize()
Description of the Method |
void |
pushCurrentClassName(java.lang.String name)
Description of the Method |
void |
pushFieldSize(FieldSize size)
Description of the Method |
void |
reset()
Description of the Method |
void |
saveCurrentLine()
Description of the Method |
void |
setAbsoluteCommentSpacing(int value)
Sets the AbsoluteCommentSpacing attribute of the PrintData object |
void |
setAlignStarsWithSlash(boolean value)
|
void |
setArrayInitializerIndented(boolean way)
|
void |
setBangSpace(boolean value)
Sets the bangSpace attribute of the PrintData object |
void |
setCaseIndent(int value)
Sets the caseIndent attribute of the PrintData object |
void |
setCastSpace(boolean value)
Sets the CastSpace attribute of the PrintData object |
void |
setClassBlockStyle(int value)
Sets the ClassCStyleBlock attribute of the PrintData object |
void |
setCodeBlockStyle(int value)
Sets the codeBlockStyle attribute of the PrintData object |
void |
setCStyleFormatCode(int value)
Sets the CStyleFormatCode attribute of the PrintData object |
void |
setCStyleIndent(int value)
Sets the CStyleIndent attribute of the PrintData object |
void |
setCStyleOwnline(boolean ownline)
Sets the CStyleOnline attribute of the PrintData object |
void |
setCurrentIsSingle(boolean value)
Sets the currentIsSingle attribute of the PrintData object |
void |
setDocumentNestedClasses(boolean value)
Sets the DocumentNestedClasses attribute of the PrintData object |
void |
setDynamicFieldSpaces(int value)
Sets the DynamicFieldSpacing attribute of the PrintData object |
void |
setDynamicFieldSpacing(int value)
Sets the DynamicFieldSpacing attribute of the PrintData object |
void |
setElseOnNewLine(boolean value)
Sets the elseOnNewLine attribute of the PrintData object |
void |
setEmptyBlockOnSingleLine(boolean value)
Sets the EmptyBlockOnSingleLine attribute of the PrintData object |
void |
setExpressionSpace(boolean value)
Sets the ExpressionSpace attribute of the PrintData object |
void |
setExtendsIndentation(int value)
|
void |
setFinalLine(int value)
Sets the FinalLine attribute of the PrintData object |
void |
setForceBlock(boolean value)
Sets the ForceBlock attribute of the PrintData object |
void |
setImplementsIndentation(int value)
|
void |
setImportSortImportant(java.lang.String[] newImportSortImportant)
Sets the importSortImportant attribute of the PrintData object |
void |
setImportSortNeighbourhood(int newImportSortNeighbourhood)
Sets the importSortNeighbourhood attribute of the PrintData object |
void |
setIncrementalCommentSpacing(int value)
Sets the IncrementalCommentSpacing attribute of the PrintData object |
void |
setIndentInInitializer(boolean value)
Sets the indentInInitializer attribute of the PrintData object |
void |
setInsertSpaceLocalVariables(boolean value)
Sets the insertSpaceLocalVariables attribute of the PrintData object |
void |
setJavadocIndent(int indent)
Sets the number of spaces between the JavaDoc asterisks and the comment text. |
void |
setJavadocWordWrapMaximum(int wrap)
Sets the JavadocWordWrapMaximum attribute of the PrintData object |
void |
setJavadocWordWrapMinimum(int wrap)
Sets the JavadocWordWrapMinimum attribute of the PrintData object |
void |
setKeepErroneousJavadocTags(boolean value)
Sets the keepErroneousJavadocTags attribute of the PrintData object |
void |
setLineBeforeClassBody(boolean value)
|
void |
setLineBeforeExtends(boolean value)
|
void |
setLineBeforeImplements(boolean value)
|
void |
setLineBeforeMultistatementMethodBody(boolean value)
|
void |
setLinesAfterPackage(int value)
Sets the linesAfterPackage attribute of the PrintData object |
void |
setLinesBeforeClass(int value)
Sets the linesBeforeClass attribute of the PrintData object |
void |
setLineupJavadocDescr(boolean way)
|
void |
setLineupJavadocIDs(boolean way)
|
void |
setLineUpParams(boolean value)
|
void |
setMaintainNewlinesAroundImports(boolean value)
Sets the maintainNewlinesAroundImports attribute of the PrintData object |
void |
setMethodBlockStyle(int value)
Sets the methodBlockStyle attribute of the PrintData object |
void |
setModifierOrder(int value)
|
void |
setMultipleOrdering(MultipleOrdering value)
Sets the MultipleOrdering attribute of the PrintData object |
void |
setOriginalLine(int value)
Sets the OriginalLine attribute of the PrintData object |
void |
setOutput(java.io.PrintWriter newOutput)
Set the output writer |
void |
setOwnline(boolean value)
Sets the Ownline attribute of the LineQueue object |
void |
setOwnlineCode(boolean value)
Sets the OwnlineCode attribute of the PrintData object |
void |
setParamIndent()
Records the position of the method's opening parenthesis for use in indenting parameters on subsequent lines. |
void |
setReformatComments(boolean value)
Sets the ReformatComments attribute of the PrintData object |
void |
setRemoveExcessBlocks(boolean value)
Sets the removeExcessBlocks attribute of the PrintData object |
void |
setSharedIncr(boolean value)
Sets the SharedIncr attribute of the PrintData object |
void |
setSingleLineJavadoc(boolean value)
Sets the singleLineJavadoc attribute of the PrintData object |
void |
setSortExtendsStatement(boolean value)
|
void |
setSortImplementsStatement(boolean value)
|
void |
setSortThrowsStatement(boolean value)
|
void |
setSortTop(boolean value)
Sets the sortTop attribute of the PrintData object |
void |
setSpaceAfterKeyword(boolean way)
Sets the spaceAfterKeyword attribute of the PrintData object |
void |
setSpaceAfterMethod(boolean way)
Sets the spaceAfterMethod attribute of the PrintData object |
void |
setSpaceAroundOperators(boolean way)
Sets the spaceAroundOperators attribute of the PrintData object |
void |
setSpaceInsideCast(boolean way)
Sets the spaceInsideCast attribute of the PrintData object |
void |
setState(int newState)
Set the state |
void |
setTaggedJavadocDescription(int value)
|
void |
setVariablesAlignWithBlock(boolean value)
Sets the variablesAlignWithBlock attribute of the PrintData object |
void |
sortExtends(net.sourceforge.jrefactory.ast.ASTNameList node)
|
void |
sortImplements(net.sourceforge.jrefactory.ast.ASTNameList node)
|
void |
sortThrows(net.sourceforge.jrefactory.ast.ASTNameList node)
|
void |
space()
Add a space |
void |
surpriseIndent()
Inserts a surprise indent |
FieldSize |
topFieldSize()
Description of the Method |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int finalLine
public static final int BLOCK_STYLE_C
public static final int BLOCK_STYLE_PASCAL
public static final int BLOCK_STYLE_EMACS
public static int EMPTY
public static int METHOD
public static int FIELD
public static int INTERFACE
public static int CLASS
public static int ENUM
public static int SINGLE_INDENT
public static int DOUBLE_INDENT
public static int PARAM_INDENT
public static int NO_INDENT
public static final int JAVADOC_COMMENT
public static final int C_STYLE_COMMENT
public static final int CATEGORY_COMMENT
public static final int SINGLE_LINE_COMMENT
public static final int DFS_NEVER
public static final int DFS_ALWAYS
public static final int DFS_NOT_WITH_JAVADOC
public static final int DFS_ALIGN_EQUALS
public static final int CSC_LEAVE_UNTOUCHED
public static final int CSC_ALIGN_STAR
public static final int CSC_ALIGN_BLANK
public static final int CSC_MAINTAIN_STAR
public static final int ALPHABETICAL_ORDER
public static final int STANDARD_ORDER
Constructor Detail |
---|
public PrintData()
public PrintData(java.io.Writer out)
out
- the output streamMethod Detail |
---|
public void setSortThrowsStatement(boolean value)
public void setSortExtendsStatement(boolean value)
public void setSortImplementsStatement(boolean value)
public void setAbsoluteCommentSpacing(int value)
value
- The new AbsoluteCommentSpacing valuepublic void setBangSpace(boolean value)
value
- The new bangSpace valuepublic void setCStyleFormatCode(int value)
value
- The new CStyleFormatCode valuepublic void setCStyleIndent(int value)
value
- The new CStyleIndent valuepublic void setCaseIndent(int value)
value
- The new caseIndent valuepublic void setCastSpace(boolean value)
value
- The new CastSpace valuepublic void setClassBlockStyle(int value)
value
- The new ClassCStyleBlock valuepublic void setCodeBlockStyle(int value)
value
- The new codeBlockStyle valuepublic void setCurrentIsSingle(boolean value)
value
- The new currentIsSingle valuepublic void setDocumentNestedClasses(boolean value)
value
- The new DocumentNestedClasses valuepublic void setDynamicFieldSpaces(int value)
value
- The new DynamicFieldSpacing valuepublic void setDynamicFieldSpacing(int value)
value
- The new DynamicFieldSpacing valuepublic void setLineUpParams(boolean value)
public void setElseOnNewLine(boolean value)
value
- The new elseOnNewLine valuepublic void setEmptyBlockOnSingleLine(boolean value)
value
- The new EmptyBlockOnSingleLine valuepublic void setExpressionSpace(boolean value)
value
- The new ExpressionSpace valuepublic void setFinalLine(int value)
value
- The new FinalLine valuepublic void setForceBlock(boolean value)
value
- The new ForceBlock valuepublic void setImportSortImportant(java.lang.String[] newImportSortImportant)
newImportSortImportant
- The new importSortImportant valuepublic void setImportSortNeighbourhood(int newImportSortNeighbourhood)
newImportSortNeighbourhood
- The new importSortNeighbourhood valuepublic void setIncrementalCommentSpacing(int value)
value
- The new IncrementalCommentSpacing valuepublic void setIndentInInitializer(boolean value)
value
- The new indentInInitializer valuepublic void setInsertSpaceLocalVariables(boolean value)
value
- The new insertSpaceLocalVariables valuepublic void setKeepErroneousJavadocTags(boolean value)
value
- The new keepErroneousJavadocTags valuepublic void setLinesAfterPackage(int value)
value
- The new linesAfterPackage valuepublic void setLinesBeforeClass(int value)
value
- The new linesBeforeClass valuepublic void setMaintainNewlinesAroundImports(boolean value)
value
- The new maintainNewlinesAroundImports valuepublic void setMethodBlockStyle(int value)
value
- The new methodBlockStyle valuepublic void setMultipleOrdering(MultipleOrdering value)
value
- The new MultipleOrdering valuepublic void setOriginalLine(int value)
value
- The new OriginalLine valuepublic void setOutput(java.io.PrintWriter newOutput)
newOutput
- the new output writerpublic void setOwnline(boolean value)
value
- The new Ownline valuepublic void setOwnlineCode(boolean value)
value
- The new OwnlineCode valuepublic void setParamIndent()
public void setReformatComments(boolean value)
value
- The new ReformatComments valuepublic void setRemoveExcessBlocks(boolean value)
value
- The new removeExcessBlocks valuepublic void setSharedIncr(boolean value)
value
- The new SharedIncr valuepublic void setSingleLineJavadoc(boolean value)
value
- The new singleLineJavadoc valuepublic void setSortTop(boolean value)
value
- The new sortTop valuepublic void setSpaceAfterMethod(boolean way)
way
- The new spaceAfterMethod valuepublic void setSpaceAfterKeyword(boolean way)
way
- The new spaceAfterKeyword valuepublic void setSpaceAroundOperators(boolean way)
way
- The new spaceAroundOperators valuepublic void setSpaceInsideCast(boolean way)
way
- The new spaceInsideCast valuepublic void setState(int newState)
newState
- Description of Parameterpublic void setVariablesAlignWithBlock(boolean value)
value
- The new variablesAlignWithBlock valuepublic int getCStyleFormatCode()
public int getCStyleIndent()
public boolean getCStyleOwnline()
public void setCStyleOwnline(boolean ownline)
ownline
- The new CStyleOnline valuepublic java.lang.String getCurrentClassName()
public int getDynamicFieldSpaces()
public int getFieldNameIndent()
public int getFieldSpaceCode()
public int getFinalLine()
public java.lang.String[] getImportSortImportant()
public int getImportSortNeighbourhood()
public java.lang.String getIndentString()
public int getJavadocIndent()
public void setJavadocIndent(int indent)
indent
- the number of spaces between the JavaDoc asterisks and the
commentpublic int getJavadocStarCount()
public int getJavadocWordWrapMaximum()
public void setJavadocWordWrapMaximum(int wrap)
wrap
- The JavadocWordWrapMaximum valuepublic int getJavadocWordWrapMinimum()
public void setJavadocWordWrapMinimum(int wrap)
wrap
- The JavadocWordWrapMinimum valuepublic int getLineLength()
public int getLinesAfterPackage()
public int getLinesBeforeClass()
public MultipleOrdering getOrder()
public int getOriginalLine()
public Settings getSettings()
public int getState()
public int getSurpriseReturn()
public boolean isSortTop()
public java.util.Comparator getTopOrder(net.sourceforge.jrefactory.ast.ASTCompilationUnit node)
node
- Description of the Parameter
public void sortThrows(net.sourceforge.jrefactory.ast.ASTNameList node)
public void sortImplements(net.sourceforge.jrefactory.ast.ASTNameList node)
public void sortExtends(net.sourceforge.jrefactory.ast.ASTNameList node)
public boolean isAllJavadocKept()
public boolean isAllowSingleLineJavadoc()
public boolean isFirstLineOnCommentStart()
public boolean isBangSpace()
public boolean isBufferEmpty()
public boolean isCastSpace()
public boolean isCatchOnNewLine()
public boolean isCurrentSingle()
public boolean isDynamicFieldSpacing(boolean javadocPrinted)
javadocPrinted
- Description of Parameter
public boolean isElseOnNewLine()
public boolean isEmptyBlockOnSingleLine()
public boolean isFieldNameIndented()
public boolean isForcingBlock()
public boolean isIndentInInitailzer()
public boolean isInsertSpaceLocalVariables()
public boolean isJavadocLinedUp()
public boolean isKeepErroneousJavadocTags()
public boolean isLineIndented()
public boolean isMaintainNewlinesAroundImports()
public boolean isNestedClassDocumented()
public boolean isReformatComments()
public boolean isRemoveExcessBlocks()
public boolean isSpaceAfterCast()
public boolean isSpaceAfterKeyword()
public boolean isSpaceAfterMethod()
public boolean isSpaceAroundOperators()
public boolean isSpaceBeforeAt()
public boolean isSpaceInsideCast()
public boolean isThrowsOnNewline()
public boolean isVariablesAlignWithBlock()
public void appendComment(java.lang.String string, int type)
string
- the input stringtype
- Description of Parameterpublic void appendConstant(java.lang.String string)
string
- the input stringpublic void appendKeyword(java.lang.String string)
string
- the input stringpublic void appendText(java.lang.String string)
string
- the input stringpublic void backspace()
public void beginBlock()
public void beginBlock(boolean space)
space
- Description of the Parameterpublic void beginBlock(boolean space, boolean newlineAfter)
space
- Description of ParameternewlineAfter
- Description of the Parameterpublic void beginClass()
public void beginExpression(boolean notEmpty)
notEmpty
- Description of Parameterpublic void beginEnum()
public void beginField()
public void beginInterface()
public void beginMethod()
public void classBrace()
public void close()
public boolean consumeNewline()
public void decrCaseIndent()
public void decrIndent()
public void endBlock(boolean newline, boolean newlineBefore)
newline
- Description of ParameternewlineBefore
- Description of the Parameterpublic void endBlock()
public void endClass()
public void endExpression(boolean notEmpty)
notEmpty
- Description of Parameterpublic void endEnum()
public void endField()
public void endInterface()
public void endMethod()
public void enterMethodDecl()
public void exitMethodDecl()
public void flush()
public void incrCaseIndent()
public void incrIndent()
public void indent()
public void surpriseIndent()
printData
- the print datapublic void methodBrace()
public void newline()
public void popCurrentClassName()
public void popFieldSize()
public void pushCurrentClassName(java.lang.String name)
name
- Description of Parameterpublic void pushFieldSize(FieldSize size)
size
- Description of Parameterpublic void reset()
public void saveCurrentLine()
public void space()
public FieldSize topFieldSize()
protected void incrIndent(int incr)
incr
- the amount to increment the indentpublic int getIndent()
protected LineQueue lineQueueFactory(java.io.PrintWriter output)
output
- the output stream
public int getMethodBlockStyle()
public void setLineBeforeClassBody(boolean value)
public boolean isLineBeforeClassBody()
public void setLineBeforeExtends(boolean value)
public boolean isLineBeforeExtends()
public void setExtendsIndentation(int value)
public int getExtendsIndentation()
public void setLineBeforeImplements(boolean value)
public boolean isLineBeforeImplements()
public void setLineBeforeMultistatementMethodBody(boolean value)
public boolean isLineBeforeMultistatementMethodBody()
public void setImplementsIndentation(int value)
public int getImplementsIndentation()
public void setArrayInitializerIndented(boolean way)
public boolean isArrayInitializerIndented()
public void setModifierOrder(int value)
public int getModifierOrder()
public void setAlignStarsWithSlash(boolean value)
public boolean isStarsAlignedWithSlash()
public void setLineupJavadocIDs(boolean way)
public void setLineupJavadocDescr(boolean way)
public boolean isJavadocDescriptionLinedup()
public int getTaggedJavadocDescription()
public void setTaggedJavadocDescription(int value)
public java.lang.StringBuffer getBuffer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |