Package org.jpmml.python
Class FunctionDefParser
- java.lang.Object
-
- org.jpmml.python.FunctionDefParser
-
- All Implemented Interfaces:
PythonParserConstants
public class FunctionDefParser extends Object implements PythonParserConstants
-
-
Field Summary
Fields Modifier and Type Field Description Tokenjj_ntNext token.TokentokenCurrent token.PythonParserTokenManagertoken_sourceGenerated Token Manager.-
Fields inherited from interface org.jpmml.python.PythonParserConstants
AND, ARROW, AS, ASSIGN, COLON, COMMA, COMMENT, DEF, DEFAULT, DIGIT, DIVIDE, DOT, ELIF, ELSE, EOF, EQUAL, EXPONENT, FALSE, FLOAT, GREATER_OR_EQUAL, GREATER_THAN, IF, IMPORT, IN, INT, IS, LBRACKET, LESS_OR_EQUAL, LESS_THAN, LETTER, LPAREN, MINUS, MODULO, MULTILINE_STRING, MULTIPLY, NAME, NEWLINE, NONE, NONZERO_DIGIT, NOT, NOT_EQUAL, OR, PLUS, POWER, RBRACKET, RETURN, RPAREN, SEMICOLON, STRING, TILDE, tokenImage, TRUE, WHITESPACE
-
-
Constructor Summary
Constructors Constructor Description FunctionDefParser()FunctionDefParser(String dsl)Constructor.FunctionDefParser(Provider stream)Constructor.FunctionDefParser(PythonParserTokenManager tm)Constructor with generated Token Manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisable_tracing()Disable tracing.voidenable_tracing()Enable tracing.voidFunctionDef(FunctionDef functionDef)ParseExceptiongenerateParseException()Generate ParseException.TokengetNextToken()Get the next Token.TokengetToken(int index)Get the specific Token.voidParameters(FunctionDef functionDef)FunctionDefparseFunctionDef(String string)voidReInit(String s)voidReInit(Provider stream)Reinitialise.voidReInit(PythonParserTokenManager tm)Reinitialise.booleantrace_enabled()Trace enabled.
-
-
-
Field Detail
-
token_source
public PythonParserTokenManager token_source
Generated Token Manager.
-
token
public Token token
Current token.
-
jj_nt
public Token jj_nt
Next token.
-
-
Constructor Detail
-
FunctionDefParser
public FunctionDefParser()
-
FunctionDefParser
public FunctionDefParser(Provider stream)
Constructor.
-
FunctionDefParser
public FunctionDefParser(String dsl) throws ParseException, TokenMgrException
Constructor.- Throws:
ParseExceptionTokenMgrException
-
FunctionDefParser
public FunctionDefParser(PythonParserTokenManager tm)
Constructor with generated Token Manager.
-
-
Method Detail
-
parseFunctionDef
public FunctionDef parseFunctionDef(String string) throws ParseException
- Throws:
ParseException
-
FunctionDef
public final void FunctionDef(FunctionDef functionDef) throws ParseException
- Throws:
ParseException
-
Parameters
public final void Parameters(FunctionDef functionDef) throws ParseException
- Throws:
ParseException
-
ReInit
public void ReInit(String s)
-
ReInit
public void ReInit(Provider stream)
Reinitialise.
-
ReInit
public void ReInit(PythonParserTokenManager tm)
Reinitialise.
-
getNextToken
public final Token getNextToken()
Get the next Token.
-
getToken
public final Token getToken(int index)
Get the specific Token.
-
generateParseException
public ParseException generateParseException()
Generate ParseException.
-
trace_enabled
public final boolean trace_enabled()
Trace enabled.
-
enable_tracing
public final void enable_tracing()
Enable tracing.
-
disable_tracing
public final void disable_tracing()
Disable tracing.
-
-