SWT LPEX
v3.0.5

com.ibm.lpex.tpfhlasm
Class TPFDFMacroInstruction

java.lang.Object
  extended bycom.ibm.lpex.hlasm.Instruction
      extended bycom.ibm.lpex.hlasm.AssemblerInstruction
          extended bycom.ibm.lpex.tpfhlasm.TPFMacroInstructions
              extended bycom.ibm.lpex.tpfhlasm.TPFDFMacroInstruction

public class TPFDFMacroInstruction
extends TPFMacroInstructions

TPF DF macro instruction.


Field Summary
 
Fields inherited from class com.ibm.lpex.hlasm.AssemblerInstruction
ALL_GOOD, ALL_KEYWORDS_VALID, ALL_POSITIONALS_VALID, class_type, DEFAULT_STYLE, INVALID_PARAMETER, keyword_after_equal_are_cs, keyword_before_equal_are_cs, NO_MATCH, NOT_A_KEYWORD, positional_are_cs, REQUIRED_OP_MISSING, TOO_MANY_OPERANDS, used_requireds, valid_operands
 
Fields inherited from class com.ibm.lpex.hlasm.Instruction
_multiLevel, _next
 
Constructor Summary
TPFDFMacroInstruction(String instrX)
           
 
Method Summary
protected  void setTypeAttributes()
          This method is used to set some default values in the constructor.
protected  int validatePositional(String operand, int start_position)
          When validating position TPFDF macros, the rules are slightly different than when evaluating Assembler and TPF instructions.
 
Methods inherited from class com.ibm.lpex.tpfhlasm.TPFMacroInstructions
getPUTString, processValidateOperands, setCaseLevels, setCurrentPUTLevel
 
Methods inherited from class com.ibm.lpex.hlasm.AssemblerInstruction
charactersValid, charactersValidIgnoreCase, removeOperandFromString
 
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
 

Constructor Detail

TPFDFMacroInstruction

public TPFDFMacroInstruction(String instrX)
Method Detail

setTypeAttributes

protected void setTypeAttributes()
Description copied from class: TPFMacroInstructions
This method is used to set some default values in the constructor. A separate method is used for these since the classes inherit the same constructor, but have different default values.

Overrides:
setTypeAttributes in class TPFMacroInstructions

validatePositional

protected int validatePositional(String operand,
                                 int start_position)
When validating position TPFDF macros, the rules are slightly different than when evaluating Assembler and TPF instructions. In TPFDF macros the upper case positional operands can be in any case. For example, if the data file says MYMAC P1,P2,variable,KEY= if it is an Assembler inst: P2,P1,var,KEY= is NOT valid but if it is a TPFDF instruction, P2,P1,var,KEY= is valid.

Overrides:
validatePositional in class AssemblerInstruction
Parameters:
operand - an operand found in the user given operands that needs to be evaluated
start_position - if the operand is a lower case operand, the position will be used to determine where the operand should occur
Returns:
a position: if the operand was a match for an uppercase positional, start_position is returned; if the operand is a match for a lowercase positional operand, the match index is returned; if no match is found, a negative number is returned

SWT LPEX
v3.0.5

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