| org.netbeans.modules.cnd.editor.fortran.FFormatSupport
FFormatSupport | public class FFormatSupport extends ExtFormatSupport (Code) | | Fortran indentation services are located here
duped from editor/libsrc/org/netbeans/editor/ext/java/JavaFormatSupport.java
|
Constructor Summary | |
public | FFormatSupport(FormatWriter formatWriter) | public | FFormatSupport(FormatWriter formatWriter, TokenContextPath tokenContextPath) |
FFormatSupport | public FFormatSupport(FormatWriter formatWriter)(Code) | | |
FFormatSupport | public FFormatSupport(FormatWriter formatWriter, TokenContextPath tokenContextPath)(Code) | | |
canModifyWhitespace | public boolean canModifyWhitespace(TokenItem inToken)(Code) | | |
findIndent | public int findIndent(TokenItem token)(Code) | | Find the indentation for the first token on the line.
The given token is also examined in some cases.
|
findInlineSpacing | public int findInlineSpacing(TokenItem token)(Code) | | Determines how many characters the token (after a fixed token)
needs to be indented.
The indentation is hence done with spaces NOT tabs.
|
findLineStartToken | public TokenItem findLineStartToken(TokenItem token)(Code) | | Find the starting token in the line of code, given a particular token
Parameters: token - the starting point token token the token at the start of the line of code |
findMatchingToken | public TokenItem findMatchingToken(TokenItem token, int matchTokenID, int matchEndKeywordID)(Code) | | Find the matching token for the supplied token. This will always
do a backward search.
Parameters: token - - the token that ends the block of code, ie,"endselect", "end", "enddo", etc. Parameters: matchTokenID - - the token numeric ID that you are trying to match,ie, KW_SELECT_ID if you are trying to match the "select" token Parameters: matchEndKeywordID - - the token numeric ID of an "end..." token,ie, KW_ENDSELECT_ID if you are trying to match the "endselect" token corresponding token that begins the block |
getFreeFormat | public boolean getFreeFormat()(Code) | | |
getTokenContextPath | public TokenContextPath getTokenContextPath()(Code) | | |
getTokenIndent | public int getTokenIndent(TokenItem token)(Code) | | Get the indentation for the given token.
Parameters: token - token for which the indent is being searched.The token itself is ignored and the previous tokenis used as a base for the search. |
getWhitespaceTokenContextPath | public TokenContextPath getWhitespaceTokenContextPath()(Code) | | |
getWhitespaceTokenID | public TokenID getWhitespaceTokenID()(Code) | | |
indentLine | public FormatTokenPosition indentLine(FormatTokenPosition pos)(Code) | | |
isComment | public boolean isComment(TokenItem token, int offset)(Code) | | |
isFixedFormatComment | public boolean isFixedFormatComment(TokenItem token)(Code) | | Determine if the given token is a "Fixed Format" Fortran comment.
|
isFixedFormatLabel | public boolean isFixedFormatLabel(TokenItem token)(Code) | | |
isFixedFormatLineContinuation | public boolean isFixedFormatLineContinuation(TokenItem token)(Code) | | |
isFreeFormatComment | public boolean isFreeFormatComment(TokenItem token)(Code) | | Determine if the given token is a "Free Format" Fortran comment.
|
isIfThenStatement | public boolean isIfThenStatement(TokenItem startToken)(Code) | | Determine if this if statement is a single line if statement or
if it is a multiline if statement. A multiline if statement will
always end with the "then" keyword.
Parameters: startToken - the starting token for this line of code true if this is a multiline if statement. |
isPreprocessor | public boolean isPreprocessor(TokenItem token)(Code) | | |
|
|