|
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.hlasm.InstrColorAssoc
This class is used to extract custom colors from an XML file. The XML file specifies groups of HLASM instructions and colors. An association is created between the colors and the instructions groups.
Constructor Summary | |
---|---|
InstrColorAssoc(String xmlFileName)
Constructor. |
Method Summary | |
---|---|
Vector |
getAllColors()
Retrieve all the colors. |
Vector |
getAllGroups()
Retrieve all the groups. |
char |
getInstructionColor(String instructionName)
This method is used to determine whether a special color code will be used for syntax-highlighting a given instruction. |
String |
toXMLString()
Return a string of the XML document defining the custom colors. |
void |
writeToFile(String xmlFileName)
This method will write the XML string produced by this color association to the given file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InstrColorAssoc(String xmlFileName)
xmlFileName
- XML file with custom color definitionsMethod Detail |
public Vector getAllColors()
public Vector getAllGroups()
public char getInstructionColor(String instructionName)
instructionName
- the HLASM instruction that you want to find the
color for
' '
if no color is setpublic void writeToFile(String xmlFileName)
xmlFileName
- the file name where the XML will be written to; the file
does not need to existpublic String toXMLString()
|
SWT LPEX v3.0.5 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |