SWT LPEX
v3.0.5

com.ibm.lpex.hlasm
Class Instruction

java.lang.Object
  extended bycom.ibm.lpex.hlasm.Instruction
Direct Known Subclasses:
AssemblerInstruction, MachineInstruction

public class Instruction
extends Object

Base instruction.


Field Summary
 Instruction _multiLevel
           
 Instruction _next
           
 
Constructor Summary
Instruction()
           
 
Method Summary
 String GetFormat()
           
 String getLastSyntaxError()
          Gets the last_syntax_error.
 char getOpFont(boolean use_special_colors)
          Returns the operation color to be used to color this instruction.
protected  void setLastSyntaxError(String last_syntax_error_id, String subst)
          Sets the last_syntax_error.
 void setOpFont(char o_font)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_next

public Instruction _next

_multiLevel

public Instruction _multiLevel
Constructor Detail

Instruction

public Instruction()
Method Detail

GetFormat

public String GetFormat()

getLastSyntaxError

public String getLastSyntaxError()
Gets the last_syntax_error.


setLastSyntaxError

protected void setLastSyntaxError(String last_syntax_error_id,
                                  String subst)
Sets the last_syntax_error. This method sets the last error that caused this syntax not to be validated. This can be used to issue messages to the user. it allows the message to contain the reason for failure. If an instruction has multi-levels then there will be a reason for failure saved for each syntax. Only if all syntax's fail will error messages be shown.

Parameters:
last_syntax_error_id - the id that should be used to retrieve the appropriate message from the ResourceBundle. The mesages are stored in a ResourceBundle so that they can be changed for each language.
subst - the text that should be substituted into the error message.

getOpFont

public char getOpFont(boolean use_special_colors)
Returns the operation color to be used to color this instruction.

Parameters:
use_special_colors - a flag that determines if the parser is using custom coloring
Returns:
char the style character for the particular font

setOpFont

public void setOpFont(char o_font)

SWT LPEX
v3.0.5

(C) Copyright IBM Corporation 1998, 2005.  All Rights Reserved.