|
LPEX 3.6.7 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.lpex.core.LpexCommonParser
com.ibm.lpex.fortran.FortranParser
com.ibm.lpex.fortran.FortranFixedFormParser
public class FortranFixedFormParser
Document parser for fixed source form Fortran.
It extends the base FortranParser
to use a fixed source form
lexer FixedFormLexer
.
Parser property handled directly by this parser:
Field Summary |
---|
Constructor Summary | |
---|---|
FortranFixedFormParser(LpexView lpexView)
Constructor. |
Method Summary | |
---|---|
protected void |
commentUncommentLines(LpexView lpexView,
boolean comment)
Overridden to handle the fixed source form comments. |
protected int |
contextStartPosition(LpexView v)
Overridden to skip the fixed source form comment indicators "C", "c", "*", and "!". |
String |
getCommentStyleCharacters()
Returns the style characters used for styling comments ("cr$"). |
protected IFortranLexer |
getFortranLexer(LpexCharStream charStream,
FortranLexerStyles lexerStyles,
FortranLexerClasses lexerClasses)
Creates and returns a FixedFormLexer to be used by this parser. |
String |
getProperty(String key)
Extended to return "sample.fixedForm" rather than "sample" for the preview window of the parser styles preference page. |
protected void |
initParser()
Extended to initialize the tabs and the right margin. |
protected void |
propertySet(String key)
Listens to changes to the fixedForm.rightMargin and fixedForm.tabs parser properties in this view. |
protected void |
setStyleAttributes()
Extended to define this parser's extra style attributes. |
Methods inherited from class com.ibm.lpex.fortran.FortranParser |
---|
getLanguage, getPopupItems, getProfile, isTokenDelimiter, parseAll, parseElement |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FortranFixedFormParser(LpexView lpexView)
Method Detail |
---|
protected void initParser()
initParser
in class FortranParser
protected IFortranLexer getFortranLexer(LpexCharStream charStream, FortranLexerStyles lexerStyles, FortranLexerClasses lexerClasses)
getFortranLexer
in class FortranParser
protected void commentUncommentLines(LpexView lpexView, boolean comment)
commentUncommentLines
in class FortranParser
comment
- true
= add line comments, or
false
= remove line comments from the start of the line's textLpexCommonParser.lineComment(java.lang.String, boolean)
protected int contextStartPosition(LpexView v)
contextStartPosition
in class FortranParser
protected void setStyleAttributes()
'r'
(inline comment),
'i'
(ignored).
The debug line indicator ("D" in column 1) and conditional compilation
sentinels ("!$", "C$", "c$", and "*$") are set the 'd'
style character (compiler directive).
setStyleAttributes
in class FortranParser
public String getCommentStyleCharacters()
getCommentStyleCharacters
in class FortranParser
public String getProperty(String key)
getProperty
in interface LpexParser
getProperty
in class LpexCommonParser
key
- property name, for example, "proto.doc" for this parser's expansion
of the keyword "doc" by the proto action, or
"view.proto.doc" for this property as defined in the current view's
instance of the parserLpexCommonParser.getLanguage()
,
LpexCommonParser.getProfile()
,
Parser propertiesprotected void propertySet(String key)
propertySet
in class FortranParser
key
- base name of the parser property that was set, for example "autoIndent"LpexCommonParser.setProperty(String,String)
,
LpexCommonParser.getProperty(java.lang.String)
,
Parser properties
|
LPEX 3.6.7 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |