Interface IInstructionParser
- All Known Implementing Classes:
AbstractNamedParametrizedInstructionParser,DelegatingInstructionParser,FactorySingleAddressParameterInstructionParser,FactorySingleIntegerParameterInstructionParser,FactorySingleParameterInstructionParser,SupplierInstructionParser
public interface IInstructionParser
Parses
instructions encoded in strings.
The encoded instruction is typically a single line of source code.
A single instruction parser may not support all types of raw instructions.- Author:
- Erik Zemčík
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionparseInstruction(String rawInstruction) Parses a singleinstructionencoded in a givenstring.
-
Method Details
-
parseInstruction
Parses a singleinstructionencoded in a givenstring. This method may return an emptyoptional, if the parser does not support the given rawinstruction.- Parameters:
rawInstruction-instructionencoded in astring- Returns:
- parsed
instructionor an emptyoptional - Throws:
IllegalArgumentException- ifrawInstructionisnullor emptyInstructionParseException- ifrawInstructionis not encoded correctly
-