com.ibm.lpex.tpfhlasm
Class TPFDFMacroInstruction
java.lang.Object
com.ibm.lpex.hlasm.Instruction
com.ibm.lpex.hlasm.AssemblerInstruction
com.ibm.lpex.tpfhlasm.TPFMacroInstructions
com.ibm.lpex.tpfhlasm.TPFDFMacroInstruction
- public class TPFDFMacroInstruction
- extends TPFMacroInstructions
TPF DF macro instruction.
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 |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TPFDFMacroInstruction
public TPFDFMacroInstruction(String instrX)
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 evaluatedstart_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
(C) Copyright IBM Corporation 1998, 2005. All Rights Reserved.