Overview

 
Package  Use  Tree  Serialized  Deprecated  Index  Help 
SWT LPEX
v3.0.0
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD


 

com.ibm.lpex.hlasm
Class AssemblerInstruction

java.lang.Object
  extended bycom.ibm.lpex.hlasm.Instruction
      extended bycom.ibm.lpex.hlasm.AssemblerInstruction

Direct Known Subclasses:
TPFMacroInstructions


public class AssemblerInstruction
extends Instruction

Assembler instruction.


Field Summary
protected  int ALL_GOOD
           
protected  int ALL_KEYWORDS_VALID
           
protected  int ALL_POSITIONALS_VALID
           
protected  String class_type
           
protected  char DEFAULT_STYLE
           
protected  int INVALID_PARAMETER
           
protected  boolean keyword_after_equal_are_cs
           
protected  boolean keyword_before_equal_are_cs
           
protected  int NO_MATCH
           
protected  int NOT_A_KEYWORD
           
protected  boolean positional_are_cs
           
protected  int REQUIRED_OP_MISSING
           
protected  int TOO_MANY_OPERANDS
           
protected  int used_requireds
           
protected  Vector valid_operands
           
 
Fields inherited from class com.ibm.lpex.hlasm.Instruction
_multiLevel, _next
 
Constructor Summary
AssemblerInstruction(String instrX)
          Build an assembler instruction from the instruction format read in.
 
Method Summary
 boolean charactersValid(String s1, String s2)
          Method charactersValid.
 boolean charactersValidIgnoreCase(String s1, String s2)
          Method charactersValid.
protected  int processValidateOperands(String operands)
          Validates the operands of an assembler instruction.
protected  String removeOperandFromString(String operand, String operands)
           
protected  void setCaseLevels(int case_level)
          This method will set values to determine what type checking will be used when processing operands.
protected  void setTypeAttributes()
           
protected  int validatePositional(String operand, int start_position)
           
 
Methods inherited from class com.ibm.lpex.hlasm.Instruction
GetFormat, getLastSyntaxError, getOpFont, setLastSyntaxError, setOpFont
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

 

Field Detail

 

 

used_requireds

protected int used_requireds


 

 

DEFAULT_STYLE

protected char DEFAULT_STYLE


 

 

class_type

protected String class_type


 

 

valid_operands

protected Vector valid_operands


 

 

ALL_KEYWORDS_VALID

protected final int ALL_KEYWORDS_VALID

See Also:
Constant Field Values


 

 

ALL_POSITIONALS_VALID

protected final int ALL_POSITIONALS_VALID

See Also:
Constant Field Values


 

 

ALL_GOOD

protected final int ALL_GOOD

See Also:
Constant Field Values


 

 

NOT_A_KEYWORD

protected final int NOT_A_KEYWORD

See Also:
Constant Field Values


 

 

NO_MATCH

protected final int NO_MATCH

See Also:
Constant Field Values


 

 

INVALID_PARAMETER

protected final int INVALID_PARAMETER

See Also:
Constant Field Values


 

 

TOO_MANY_OPERANDS

protected final int TOO_MANY_OPERANDS

See Also:
Constant Field Values


 

 

REQUIRED_OP_MISSING

protected final int REQUIRED_OP_MISSING

See Also:
Constant Field Values


 

 

keyword_before_equal_are_cs

protected boolean keyword_before_equal_are_cs


 

 

keyword_after_equal_are_cs

protected boolean keyword_after_equal_are_cs


 

 

positional_are_cs

protected boolean positional_are_cs

Constructor Detail

 

 

AssemblerInstruction

public AssemblerInstruction(String instrX)

Build an assembler instruction from the instruction format read in.

Method Detail

 

 

setTypeAttributes

protected void setTypeAttributes()


 

 

setCaseLevels

protected void setCaseLevels(int case_level)

This method will set values to determine what type checking will be used when processing operands. The user is able to set the level of case sensitivity.

Parameters:
case_level - ALL_CASE - Everything is case sensitive except positional operands specified in lower case; DEFAULT_CASE - Upper case positional operands are case sensitive. Text after an equal sign on a keyword is case sensitive. All others are not case sensitive; NO_CASE - Nothing is case sensitive


 

 

processValidateOperands

protected int processValidateOperands(String operands)

Validates the operands of an assembler instruction.


 

 

validatePositional

protected int validatePositional(String operand,
                                 int start_position)


 

 

removeOperandFromString

protected String removeOperandFromString(String operand,
                                         String operands)


 

 

charactersValid

public boolean charactersValid(String s1,
                               String s2)

Method charactersValid.

Parameters:
s1 - - The format string
s2 - - The String to check
Returns:
boolean True - If the check string contains all required characters from the parent string. And characters in the check string were all given in upper case. False - If the check string does not contain all the required characters from the parent string or if lower case characters were found in the check string. Examples: s1 = FUNCtion s2 = FUNCT TRUE s1 = FUNCtion s2 = FUN FALSE s1 = FUNCtion s2 = FUNCt FALSE s1 = function s2 = hello TRUE


 

 

charactersValidIgnoreCase

public boolean charactersValidIgnoreCase(String s1,
                                         String s2)

Method charactersValid.

Parameters:
s1 - - The format string
s2 - - The String to check
Returns:
boolean True - If the check string contains all required characters from the parent string. False - If the check string does not contain all the required characters from the parent string. Examples: s1 = FUNCtion s2 = FUNCT TRUE s1 = FUNCtion s2 = FUN FALSE s1 = FUNCtion s2 = FUNCt TRUE s1 = function s2 = hello TRUE


 

Overview

 
Package  Use  Tree  Serialized  Deprecated  Index  Help 
SWT LPEX
v3.0.0
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD