The default implementation returns the result of calling - * {@link #visitChildren} on {@code ctx}.
- */ - @Override public T visitXgValue(XGBoostModelParser.XgValueContext ctx) { - return visitChildren(ctx); - } - - /** - * {@inheritDoc} - * - *The default implementation returns the result of calling - * {@link #visitChildren} on {@code ctx}.
- */ - @Override public T visitXgHeader(XGBoostModelParser.XgHeaderContext ctx) { - return visitChildren(ctx); - } - - /** - * {@inheritDoc} - * - *The default implementation returns the result of calling - * {@link #visitChildren} on {@code ctx}.
- */ - @Override public T visitXgNode(XGBoostModelParser.XgNodeContext ctx) { - return visitChildren(ctx); - } - - /** - * {@inheritDoc} - * - *The default implementation returns the result of calling - * {@link #visitChildren} on {@code ctx}.
- */ - @Override public T visitXgLeaf(XGBoostModelParser.XgLeafContext ctx) { - return visitChildren(ctx); - } - - /** - * {@inheritDoc} - * - *The default implementation returns the result of calling - * {@link #visitChildren} on {@code ctx}.
- */ - @Override public T visitXgTree(XGBoostModelParser.XgTreeContext ctx) { - return visitChildren(ctx); - } - - /** - * {@inheritDoc} - * - *The default implementation returns the result of calling - * {@link #visitChildren} on {@code ctx}.
- */ - @Override public T visitXgModel(XGBoostModelParser.XgModelContext ctx) { - return visitChildren(ctx); - } -} diff --git a/modules/ml-ext/ml/xgboost-model-parser/src/main/java/org/apache/ignite/ml/xgboost/parser/XGBoostModelLexer.java b/modules/ml-ext/ml/xgboost-model-parser/src/main/java/org/apache/ignite/ml/xgboost/parser/XGBoostModelLexer.java deleted file mode 100644 index 974400af0..000000000 --- a/modules/ml-ext/ml/xgboost-model-parser/src/main/java/org/apache/ignite/ml/xgboost/parser/XGBoostModelLexer.java +++ /dev/null @@ -1,264 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.ml.xgboost.parser; - -import org.antlr.v4.runtime.CharStream; -import org.antlr.v4.runtime.Lexer; -import org.antlr.v4.runtime.RuntimeMetaData; -import org.antlr.v4.runtime.Vocabulary; -import org.antlr.v4.runtime.VocabularyImpl; -import org.antlr.v4.runtime.atn.ATN; -import org.antlr.v4.runtime.atn.ATNDeserializer; -import org.antlr.v4.runtime.atn.LexerATNSimulator; -import org.antlr.v4.runtime.atn.PredictionContextCache; -import org.antlr.v4.runtime.dfa.DFA; - -/** - * XGBoost model lexer generated by ANTLR. - */ -@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"}) -public class XGBoostModelLexer extends Lexer { - /** ANTLR version checker. */ - static { - RuntimeMetaData.checkVersion("4.7.1", RuntimeMetaData.VERSION); - } - - /** Decision to DFA. */ - protected static final DFA[] _decisionToDFA; - - /** Shared context cache. */ - protected static final PredictionContextCache _sharedContextCache = new PredictionContextCache(); - - /** */ - public static final int YES = 1; - - /** */ - public static final int NO = 2; - - /** */ - public static final int MISSING = 3; - - /** */ - public static final int EQ = 4; - - /** */ - public static final int COMMA = 5; - - /** */ - public static final int PLUS = 6; - - /** */ - public static final int MINUS = 7; - - /** */ - public static final int DOT = 8; - - /** */ - public static final int EXP = 9; - - /** */ - public static final int BOOSTER = 10; - - /** */ - public static final int LBRACK = 11; - - /** */ - public static final int RBRACK = 12; - - /** */ - public static final int COLON = 13; - - /** */ - public static final int LEAF = 14; - - /** */ - public static final int INT = 15; - - /** */ - public static final int DOUBLE = 16; - - /** */ - public static final int STRING = 17; - - /** */ - public static final int NEWLINE = 18; - - /** */ - public static final int LT = 19; - - /** */ - public static final int WS = 20; - - /** Channel names. */ - public static String[] channelNames = { - "DEFAULT_TOKEN_CHANNEL", "HIDDEN" - }; - - /** Mode names. */ - public static String[] modeNames = { - "DEFAULT_MODE" - }; - - /** Rule names. */ - public static final String[] ruleNames = { - "YES", "NO", "MISSING", "EQ", "COMMA", "PLUS", "MINUS", "DOT", "EXP", - "BOOSTER", "LBRACK", "RBRACK", "COLON", "LEAF", "INT", "DOUBLE", "STRING", - "NEWLINE", "LT", "WS" - }; - - /** Literal names. */ - private static final String[] _LITERAL_NAMES = { - null, "'yes'", "'no'", "'missing'", "'='", "','", "'+'", "'-'", "'.'", - null, "'booster'", "'['", "']'", "':'", "'leaf'", null, null, null, null, - "'<'" - }; - - /** Symbolic names. */ - private static final String[] _SYMBOLIC_NAMES = { - null, "YES", "NO", "MISSING", "EQ", "COMMA", "PLUS", "MINUS", "DOT", "EXP", - "BOOSTER", "LBRACK", "RBRACK", "COLON", "LEAF", "INT", "DOUBLE", "STRING", - "NEWLINE", "LT", "WS" - }; - - /** Vocabulary. */ - public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES); - - /** - * Token names. - * - * @deprecated Use {@link #VOCABULARY} instead. - */ - @Deprecated - public static final String[] tokenNames; - - /** */ - static { - tokenNames = new String[_SYMBOLIC_NAMES.length]; - for (int i = 0; i < tokenNames.length; i++) { - tokenNames[i] = VOCABULARY.getLiteralName(i); - if (tokenNames[i] == null) { - tokenNames[i] = VOCABULARY.getSymbolicName(i); - } - - if (tokenNames[i] == null) { - tokenNames[i] = "