Parser.SyntaxHandlerpublic final class InstructionSequenceBuilder extends Parser.AbstractSyntaxHandler
| Modifier and Type | Method | Description |
|---|---|---|
InstructionSequence |
getInstructionSequence() |
Returns the instruction sequence that has been build from the syntactic elements.
|
static InstructionSequence |
parse(java.lang.CharSequence text) |
Parses the given text into an instruction sequence representing a Type 4 function
that can be executed.
|
static int |
parseInt(java.lang.String token) |
Parses a value of type "int".
|
static float |
parseReal(java.lang.String token) |
Parses a value of type "real".
|
void |
token(java.lang.CharSequence text) |
Called when a token is encountered.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomment, newLine, whitespacepublic InstructionSequence getInstructionSequence()
public static InstructionSequence parse(java.lang.CharSequence text)
text - the Type 4 function textpublic void token(java.lang.CharSequence text)
text - the token textpublic static int parseInt(java.lang.String token)
token - the token to be parsedpublic static float parseReal(java.lang.String token)
token - the token to be parsedCopyright © 2002–2018. All rights reserved.