|
SWT LPEX v3.0.5 |
|||||||||||
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.hlasm.HLAsmParser
com.ibm.lpex.tpfhlasm.TPFHLAsmParser
HLASM (High Level Assembler) document parser for TPF (IBM Transaction Processing Facility).
Action added by this document parser:
Commands added by this document parser to query and set parser properties:
Field Summary |
---|
Fields inherited from class com.ibm.lpex.hlasm.HLAsmParser |
---|
classAll, classAsmMacroB, classAsmMacroE, classAsmMacroN, classAssemIns, classBackwardLink, classBranch, classCode, classComment, classContinue, classError, classForwardLink, classLabel, classMachineIns, classMacroCall, classOperand, classOperLine, classPendingOp, classQString, classRemark, classSequence, classUnknown, ITYPE_ASSEMBLER, ITYPE_ATTRIBUTES, ITYPE_MACHINE, ITYPE_REGISTERS, ITYPE_SPECIALS, ITYPE_UNDEFINED, ITYPE_USER, loaded_instructions, userMacrosRead, userReader |
Constructor Summary | |
---|---|
TPFHLAsmParser(LpexView lpexView)
Constructor. |
Method Summary | |
---|---|
void |
clearInstructionTable()
Clears all HLASM, TPF, and USER instructions from the list. |
protected void |
createInstruction(int type,
String lineX)
This method is called when the instruction table is created. |
static OrderedInstructionList |
getInstructions()
|
protected BufferedReader |
getInternalTPFMacroFile()
Opens the LPEX-shipped file "tpfhlasm.dat" for reading the TPF macros. |
String |
getParserPropertiesFileName()
Returns the TPF HLASM parser profile. |
protected String |
getPopupItems(int popupLocation)
Retrieve parser's contribution to the popup. |
int |
getPUTLevel()
The PUT level is not a global parser variable - it can be different for each file. |
String |
getPUTLevelString()
|
File |
getReadableTPFMacroFile()
Returns the TPF macros file to use. |
String |
getTPFMacrosFileName()
Returns the fully-qualified name of the TPF macros file. |
protected int |
getTypeOfTag(String tag)
The TPF specific tags are "[TPF]" and "[TPFDF]". |
File |
getUserMacrosFile()
|
String |
getUserMacrosFileName()
Retrieve the fully-qualified name of the user macros file. |
String |
nextInstruction()
First all built-in HLASM instructions are returned, then all built-in TPF instructions are returned, then user-provided macros will be returned. |
protected String |
nextTPFInstruction()
Returns the next TPF instruction-format line. |
protected String |
nextUserInstruction()
Retrieve the next user instruction-format line. |
void |
parseAll()
The TPF version of this method first sets a PUT level to be used for parsing instructions. |
void |
parseElement(int changedElement)
The TPF version of this method first sets a PUT level to be used for parsing instructions. |
void |
setCurrentCodeAssistElement(int element)
|
protected void |
setDefaultPreferences()
Sets the initial parser preference values. |
void |
setPUTLevel(int i_put_level,
boolean update,
boolean re_parse)
Set a new PUT level for the document. |
void |
setPUTLevelString(String s_put_level,
boolean update,
boolean re_parse)
Set a new PUT level for the document. |
void |
setShowingProposals(boolean showing)
|
void |
setStyleAttributes()
Define TPF-specific additional style attributes. |
void |
setTPFMacrosFile(String fileName,
boolean macro_file_updated,
boolean update,
boolean re_parse)
Set the fully-qualified name of the TPF macros file. |
void |
setUserMacrosFile(String fileName,
boolean macro_file_updated,
boolean update,
boolean re_parse)
Set the fully-qualified name of the user macros file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TPFHLAsmParser(LpexView lpexView)
Method Detail |
public void setCurrentCodeAssistElement(int element)
public static OrderedInstructionList getInstructions()
protected String getPopupItems(int popupLocation)
getPopupItems
in class HLAsmParser
public void setStyleAttributes()
's'
(TPF macro instruction).
setStyleAttributes
in class HLAsmParser
public String getUserMacrosFileName()
public File getUserMacrosFile()
public void setUserMacrosFile(String fileName, boolean macro_file_updated, boolean update, boolean re_parse)
fileName
- the fully-qualified name of the user macros filemacro_file_updated
- if the file has been changed and needs to be
reread, set this to true; otherwise, if the name does not
change, the file is not rereadupdate
- when the user macro file changes, the instruction table
should be reloaded for changes to take effect; to perform
this, set this argument to true, otherwise set it to falsere_parse
- after the instruction table has been re-loaded, the file
should be reparsed; set this to true to reparse the file
now, or false to reparse laterpublic void setTPFMacrosFile(String fileName, boolean macro_file_updated, boolean update, boolean re_parse)
fileName
- the fully-qualified name of the user macros filemacro_file_updated
- if the file has been changed and needs to be
reread, set this to true; otherwise, if the name does not
change, the file is not rereadupdate
- when the user macro file changes, the instruction table
should be reloaded for changes to take effect; to perform
this, set this argument to true, otherwise set it to falsere_parse
- after the instruction table has been re-loaded, the file
should be reparsed; set this to true to reparse the file
now, or false to reparse laterprotected int getTypeOfTag(String tag)
getTypeOfTag
in class HLAsmParser
tag
- a tag found in a data file (user or hard coded),
e.g., "[MACHINE]"
null
to indicate no match was foundHLAsmParser.getTypeOfTag(String)
protected void createInstruction(int type, String lineX)
HLAsmParser
createInstruction
in class HLAsmParser
type
- lineX
- HLAsmParser.createInstruction(int, String)
public String nextInstruction()
null
is returned.
nextInstruction
in class HLAsmParser
HLAsmParser.nextInstruction()
protected String nextUserInstruction()
null
.
protected String nextTPFInstruction()
null
.
public File getReadableTPFMacroFile()
null
if not successfully locatedHLAsmParser.getFileLocator()
protected BufferedReader getInternalTPFMacroFile()
com.ibm.lpex.tpfhlasm
package.
Here are the contents of this file.
This method is called when the TPF macros file specified by
the parser property "global.tpf_macro_file" has not been found.
Subclasses may override to return null
if the internal TPF
macros file should not be used.
null
if not availablepublic String getTPFMacrosFileName()
public void clearInstructionTable()
clearInstructionTable
in class HLAsmParser
HLAsmParser.clearInstructionTable()
public void setPUTLevelString(String s_put_level, boolean update, boolean re_parse)
s_put_level
- the put level that should be used from now on for this fileupdate
- changes should be made so that the new put level will take effectre_parse
- the document should be re-parsed; the changes
made to the PUT level will not be seen until a reparse is made;
when setting multiple variables, you may want to defer the
reparse until all properties have been setpublic void setPUTLevel(int i_put_level, boolean update, boolean re_parse)
i_put_level
- the put level that should be used from now on for this fileupdate
- changes should be made so that the new put level will take effectre_parse
- the document should be re-parsed; the changes
made to the PUT level will not be seen until a reparse is made;
when setting multiple variables, you may want to defer the
reparse until all properties have been setpublic int getPUTLevel()
public String getPUTLevelString()
protected void setDefaultPreferences()
setDefaultPreferences
in class HLAsmParser
HLAsmParser.setDefaultPreferences()
public String getParserPropertiesFileName()
getParserPropertiesFileName
in class HLAsmParser
HLAsmParser.getParserPropertiesFileName()
public void parseAll()
parseAll
in class HLAsmParser
public void parseElement(int changedElement)
parseElement
in class HLAsmParser
changedElement
- an element whose committed change triggered the parse,
or the element that precedes / follows a deleted block.
The parser may identify other neighbouring elements that
will have to be reparsed as a unitpublic void setShowingProposals(boolean showing)
|
SWT LPEX v3.0.5 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |