|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.pretty.SpecialTokenData
public class SpecialTokenData
Store the data that understands how to output comments and newlines
Constructor Summary | |
---|---|
SpecialTokenData(JavaDocable jdi,
net.sourceforge.jrefactory.parser.Token token,
PrintData printData)
Creates a special token data object |
|
SpecialTokenData(JavaDocable jdi,
net.sourceforge.jrefactory.parser.Token token,
PrintData printData,
boolean accept)
Creates a special token data object |
|
SpecialTokenData(net.sourceforge.jrefactory.parser.Token token,
PrintData printData)
Creates a special token data object |
|
SpecialTokenData(net.sourceforge.jrefactory.parser.Token token,
PrintData printData,
boolean accept)
Creates a special token data object |
Method Summary | |
---|---|
net.sourceforge.jrefactory.parser.Token |
beginning(net.sourceforge.jrefactory.parser.Token tok)
Got to the beginning |
void |
convertFirstCStyleCommentToSingleLine()
If the first special Token is a C_STYLE_COMMENT, then pretend it is a SINGLE_LINE_COMMENT. |
JavaDocable |
getJDI()
|
PrintData |
getPrintData()
Return the print data |
net.sourceforge.jrefactory.parser.Token |
getSpecialToken()
Return the special token |
java.lang.String |
getTokenImage()
Get the token image |
int |
getTokenType()
Get the token type |
boolean |
isAcceptingReturns()
Return true if new lines should be accepted |
boolean |
isFirst()
Returns true when it is the first |
boolean |
isLast()
Returns true when it is the last |
boolean |
isLastJavadocComment()
Returns true when it is the last JavaDoc comment. |
boolean |
isReformattingComments()
Returns true if comments are being reformatted |
boolean |
isReturnExpected()
Return true if the last return was expected |
void |
next()
Get the next token |
void |
setReturnExpected(boolean way)
Set that the last return was (or not) expected |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpecialTokenData(JavaDocable jdi, net.sourceforge.jrefactory.parser.Token token, PrintData printData)
token
- the special tokenprintData
- the print datapublic SpecialTokenData(net.sourceforge.jrefactory.parser.Token token, PrintData printData)
token
- the special tokenprintData
- the print datapublic SpecialTokenData(net.sourceforge.jrefactory.parser.Token token, PrintData printData, boolean accept)
token
- the special tokenprintData
- the print dataaccept
- whether newlines should be acceptedpublic SpecialTokenData(JavaDocable jdi, net.sourceforge.jrefactory.parser.Token token, PrintData printData, boolean accept)
token
- the special tokenprintData
- the print dataaccept
- whether newlines should be acceptedMethod Detail |
---|
public void setReturnExpected(boolean way)
way
- the way it was expectedpublic boolean isLast()
public boolean isLastJavadocComment()
public void convertFirstCStyleCommentToSingleLine()
public boolean isFirst()
public PrintData getPrintData()
public net.sourceforge.jrefactory.parser.Token getSpecialToken()
public JavaDocable getJDI()
public int getTokenType()
public java.lang.String getTokenImage()
public boolean isReturnExpected()
public boolean isAcceptingReturns()
public boolean isReformattingComments()
public net.sourceforge.jrefactory.parser.Token beginning(net.sourceforge.jrefactory.parser.Token tok)
tok
- Description of Parameter
public void next()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |