Class TreeNetParser
java.lang.Object
com.yahoo.searchlib.treenet.parser.TreeNetParser
- All Implemented Interfaces:
TreeNetParserConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionNext token.Current token.Generated Token Manager.Fields inherited from interface com.yahoo.searchlib.treenet.parser.TreeNetParserConstants
ADD, BEGIN, COLON, COMMA, DECIMAL, DEFAULT, DOT, ELSE, EOF, EQ, EXPONENT, FLOAT, GOTO, HEX, IDENTIFIER, IF, IN, INTEGER, LBRACE, LCURLY, LINK, LT, NL, OCTAL, PRED, RBRACE, RCURLY, RESPONSE, RETURN, SEMICOLON, STRING, THEN, TNSCORE, tokenImage -
Constructor Summary
ConstructorsConstructorDescriptionConstructor with generated Token Manager.TreeNetParser(InputStream stream, String encoding) Constructor with InputStream and supplied encodingTreeNetParser(Reader stream) Constructor with InputStream. -
Method Summary
Modifier and TypeMethodDescriptionfinal Conditionfinal ComparisonConditioncontinuousCondition(String left) final voidDisable tracing.final voidEnable tracing.final voideol()final Stringfeature()final Stringfinal Stringfinal Stringfinal Stringfinal Stringfinal DoublefloatVal()Generate ParseException.final Tokenfinal TokengetToken(int index) final Stringfinal voidC++ code outside the model which we can ignorefinal IntegerintVal()final Stringjump()final Stringlabel()final voidnl()voidReinitialisevoidReInit(InputStream stream, String encoding) ReinitialisevoidReinitialisefinal Responseresponse()final SetMembershipConditionsetMembershipCondition(String testValue) final ComparisonConditionfinal Stringfinal Stringstring()final DoubletnScore()final booleanfinal Treetree()final TreeNettreeNet()final Objectvalue()
-
Field Details
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
TreeNetParser
Constructor with InputStream and supplied encoding- Parameters:
stream- input streamencoding- charset to be used. May not benull.
-
TreeNetParser
Constructor with InputStream.- Parameters:
stream- char stream
-
TreeNetParser
Constructor with generated Token Manager.- Parameters:
tm- Token manager to use
-
-
Method Details
-
treeNet
- Throws:
ParseException
-
ignoredCpp
C++ code outside the model which we can ignore- Throws:
ParseException
-
tree
- Throws:
ParseException
-
tnScore
- Throws:
ParseException
-
condition
- Throws:
ParseException
-
continuousCondition
- Throws:
ParseException
-
singleValueCategoricalCondition
- Throws:
ParseException
-
setMembershipCondition
- Throws:
ParseException
-
response
- Throws:
ParseException
-
feature
- Throws:
ParseException
-
featureArguments
- Throws:
ParseException
-
featureArgument
- Throws:
ParseException
-
featureOutputs
- Throws:
ParseException
-
featureOutput
- Throws:
ParseException
-
label
- Throws:
ParseException
-
eol
- Throws:
ParseException
-
nl
- Throws:
ParseException
-
jump
- Throws:
ParseException
-
identifier
- Throws:
ParseException
-
spaceSeparatedIdentifiers
- Throws:
ParseException
-
valueList
- Throws:
ParseException
-
value
- Throws:
ParseException
-
string
- Throws:
ParseException
-
intVal
- Throws:
ParseException
-
floatVal
- Throws:
ParseException
-
floatImage
- Throws:
ParseException
-
ReInit
Reinitialise- Parameters:
stream- input streamencoding- charset to be used. May not benull.
-
ReInit
Reinitialise- Parameters:
stream- char stream
-
ReInit
Reinitialise- Parameters:
tm- Token manager to use
-
getNextToken
- Returns:
- the next Token.
-
getToken
- Parameters:
index- index to be retrieved- Returns:
- the specific Token.
-
generateParseException
Generate ParseException.- Returns:
- new Exception object. Never
null
-
trace_enabled
public final boolean trace_enabled()- Returns:
- Always
false.
-
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-