| java.lang.Object org.acm.seguin.pretty.SpecialTokenData
SpecialTokenData | public class SpecialTokenData (Code) | | Store the data that understands how to output comments and newlines
author: Chris Seguin author: Mike Atkinson |
SpecialTokenData | public SpecialTokenData(JavaDocable jdi, Token token, PrintData printData)(Code) | | Creates a special token data object
Parameters: token - the special token Parameters: printData - the print data |
SpecialTokenData | public SpecialTokenData(Token token, PrintData printData)(Code) | | Creates a special token data object
Parameters: token - the special token Parameters: printData - the print data |
SpecialTokenData | public SpecialTokenData(Token token, PrintData printData, boolean accept)(Code) | | Creates a special token data object
Parameters: token - the special token Parameters: printData - the print data Parameters: accept - whether newlines should be accepted |
SpecialTokenData | public SpecialTokenData(JavaDocable jdi, Token token, PrintData printData, boolean accept)(Code) | | Creates a special token data object
Parameters: token - the special token Parameters: printData - the print data Parameters: accept - whether newlines should be accepted |
beginning | public Token beginning(Token tok)(Code) | | Got to the beginning
Parameters: tok - Description of Parameter Description of the Returned Value |
convertFirstCStyleCommentToSingleLine | public void convertFirstCStyleCommentToSingleLine()(Code) | | If the first special Token is a C_STYLE_COMMENT, then pretend it
is a SINGLE_LINE_COMMENT.
Fixes bug 761890 (at least partly).
since: JRefactory 2.7.03 |
getPrintData | public PrintData getPrintData()(Code) | | Return the print data
the print data object |
getSpecialToken | public Token getSpecialToken()(Code) | | Return the special token
the special token |
getTokenImage | public String getTokenImage()(Code) | | Get the token image
the token image |
getTokenType | public int getTokenType()(Code) | | Get the token type
the token type |
isAcceptingReturns | public boolean isAcceptingReturns()(Code) | | Return true if new lines should be accepted
true if newlines should be accepted |
isFirst | public boolean isFirst()(Code) | | Returns true when it is the first
true if we are at the first |
isLast | public boolean isLast()(Code) | | Returns true when it is the last
true if we are at the last |
isLastJavadocComment | public boolean isLastJavadocComment()(Code) | | Returns true when it is the last JavaDoc comment.
true if we are the last since: JRefactory 2.7.00 |
isReformattingComments | public boolean isReformattingComments()(Code) | | Returns true if comments are being reformatted
true if comments should be reformatted |
isReturnExpected | public boolean isReturnExpected()(Code) | | Return true if the last return was expected
true if last was expected |
next | public void next()(Code) | | Get the next token
|
setReturnExpected | public void setReturnExpected(boolean way)(Code) | | Set that the last return was (or not) expected
Parameters: way - the way it was expected |
|
|