From 934b8ceb3f8ddcc6acc3ffb4a35b67e3e989ec38 Mon Sep 17 00:00:00 2001 From: Haijian Wang Date: Wed, 27 Feb 2013 15:38:55 +0200 Subject: support arithmetics in the SCSS compiler (#9354) Change-Id: Ieb7834fb12cdba5c0794a26de20b3c8c2d509642 --- .../expression/ArithmeticExpressionEvaluator.java | 139 ++ .../sass/internal/expression/BinaryExpression.java | 46 + .../sass/internal/expression/BinaryOperator.java | 70 + .../sass/internal/expression/Parentheses.java | 21 + .../expression/exception/ArithmeticException.java | 26 + .../exception/IncompatibleUnitsException.java | 29 + .../sass/internal/parser/LexicalUnitImpl.java | 85 +- .../com/vaadin/sass/internal/parser/Parser.java | 1419 ++++++++++-------- .../src/com/vaadin/sass/internal/parser/Parser.jj | 43 +- .../sass/internal/parser/ParserConstants.java | 184 +-- .../sass/internal/parser/ParserTokenManager.java | 1499 ++++++++++---------- .../sass/internal/parser/SCSSLexicalUnit.java | 4 + .../com/vaadin/sass/internal/tree/RuleNode.java | 17 +- .../vaadin/sass/internal/tree/VariableNode.java | 17 +- 14 files changed, 2128 insertions(+), 1471 deletions(-) create mode 100644 theme-compiler/src/com/vaadin/sass/internal/expression/ArithmeticExpressionEvaluator.java create mode 100644 theme-compiler/src/com/vaadin/sass/internal/expression/BinaryExpression.java create mode 100644 theme-compiler/src/com/vaadin/sass/internal/expression/BinaryOperator.java create mode 100644 theme-compiler/src/com/vaadin/sass/internal/expression/Parentheses.java create mode 100644 theme-compiler/src/com/vaadin/sass/internal/expression/exception/ArithmeticException.java create mode 100644 theme-compiler/src/com/vaadin/sass/internal/expression/exception/IncompatibleUnitsException.java (limited to 'theme-compiler/src') diff --git a/theme-compiler/src/com/vaadin/sass/internal/expression/ArithmeticExpressionEvaluator.java b/theme-compiler/src/com/vaadin/sass/internal/expression/ArithmeticExpressionEvaluator.java new file mode 100644 index 0000000000..7dbd8ae1a0 --- /dev/null +++ b/theme-compiler/src/com/vaadin/sass/internal/expression/ArithmeticExpressionEvaluator.java @@ -0,0 +1,139 @@ +/* + * Copyright 2000-2013 Vaadin Ltd. + * + * Licensed 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 com.vaadin.sass.internal.expression; + +import static com.vaadin.sass.internal.parser.SCSSLexicalUnit.SCSS_VARIABLE; + +import java.util.Stack; + +import com.vaadin.sass.internal.expression.exception.ArithmeticException; +import com.vaadin.sass.internal.parser.LexicalUnitImpl; +import com.vaadin.sass.internal.parser.SCSSLexicalUnit; + +public class ArithmeticExpressionEvaluator { + private static ArithmeticExpressionEvaluator instance; + + public static ArithmeticExpressionEvaluator get() { + if (instance == null) { + instance = new ArithmeticExpressionEvaluator(); + } + return instance; + } + + private void createNewOperand(BinaryOperator operator, + Stack operands) { + Object rightOperand = operands.pop(); + operands.push(new BinaryExpression(operands.pop(), operator, + rightOperand)); + } + + public boolean containsArithmeticalOperator(LexicalUnitImpl term) { + LexicalUnitImpl current = term; + while (current != null) { + for (BinaryOperator operator : BinaryOperator.values()) { + /* + * '/' is treated as an arithmetical operator when one of its + * operands is Variable, or there is another binary operator. + * Otherwise, '/' is treated as a CSS operator. + */ + if (current.getLexicalUnitType() == operator.type) { + if (current.getLexicalUnitType() != BinaryOperator.DIV.type) { + return true; + } else { + if (current.getPreviousLexicalUnit() + .getLexicalUnitType() == SCSS_VARIABLE + || current.getNextLexicalUnit() + .getLexicalUnitType() == SCSS_VARIABLE) { + return true; + } + } + } + } + current = current.getNextLexicalUnit(); + } + return false; + } + + private Object createExpression(LexicalUnitImpl term) { + LexicalUnitImpl current = term; + boolean afterOperand = false; + Stack operands = new Stack(); + Stack operators = new Stack(); + inputTermLoop: while (current != null) { + if (afterOperand) { + if (current.getLexicalUnitType() == SCSSLexicalUnit.SCSS_OPERATOR_RIGHT_PAREN) { + Object operator = null; + while (!operators.isEmpty() + && ((operator = operators.pop()) != Parentheses.LEFT)) { + createNewOperand((BinaryOperator) operator, operands); + } + current = current.getNextLexicalUnit(); + continue; + } + afterOperand = false; + for (BinaryOperator operator : BinaryOperator.values()) { + if (current.getLexicalUnitType() == operator.type) { + while (!operators.isEmpty() + && (operators.peek() != Parentheses.LEFT) + && (((BinaryOperator) operators.peek()).precedence >= operator.precedence)) { + createNewOperand((BinaryOperator) operators.pop(), + operands); + } + operators.push(operator); + + current = current.getNextLexicalUnit(); + continue inputTermLoop; + } + } + throw new ArithmeticException(); + } + if (current.getLexicalUnitType() == SCSSLexicalUnit.SCSS_OPERATOR_LEFT_PAREN) { + operators.push(Parentheses.LEFT); + current = current.getNextLexicalUnit(); + continue; + } + afterOperand = true; + + operands.push(current); + current = current.getNextLexicalUnit(); + } + + while (!operators.isEmpty()) { + Object operator = operators.pop(); + if (operator == Parentheses.LEFT) { + throw new ArithmeticException("Unexpected \"(\" found"); + } + createNewOperand((BinaryOperator) operator, operands); + } + Object expression = operands.pop(); + if (!operands.isEmpty()) { + LexicalUnitImpl operand = (LexicalUnitImpl) operands.peek(); + throw new ArithmeticException("Unexpected operand " + + operand.toString() + " found"); + } + return expression; + } + + public LexicalUnitImpl evaluate(LexicalUnitImpl term) { + Object result = ArithmeticExpressionEvaluator.get().createExpression( + term); + if (result instanceof BinaryExpression) { + return ((BinaryExpression) result).eval(); + } + return term; + } +} diff --git a/theme-compiler/src/com/vaadin/sass/internal/expression/BinaryExpression.java b/theme-compiler/src/com/vaadin/sass/internal/expression/BinaryExpression.java new file mode 100644 index 0000000000..bfcdf6f506 --- /dev/null +++ b/theme-compiler/src/com/vaadin/sass/internal/expression/BinaryExpression.java @@ -0,0 +1,46 @@ +/* + * Copyright 2000-2013 Vaadin Ltd. + * + * Licensed 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 com.vaadin.sass.internal.expression; + +import com.vaadin.sass.internal.parser.LexicalUnitImpl; + +public class BinaryExpression { + public Object leftOperand = null; + public BinaryOperator operator = null; + public Object rightOperand = null; + + public BinaryExpression(Object leftOperand, BinaryOperator operator, + Object rightOperand) { + this.leftOperand = leftOperand; + this.operator = operator; + this.rightOperand = rightOperand; + } + + public LexicalUnitImpl eval() { + LexicalUnitImpl leftValue = (leftOperand instanceof BinaryExpression) ? ((BinaryExpression) leftOperand) + .eval() : (LexicalUnitImpl) leftOperand; + LexicalUnitImpl rightValue = (rightOperand instanceof BinaryExpression) ? ((BinaryExpression) rightOperand) + .eval() : (LexicalUnitImpl) rightOperand; + return operator.eval(leftValue, rightValue); + } + + @Override + public String toString() { + return "(" + leftOperand + " " + operator.type + " " + rightOperand + + ")"; + } +} diff --git a/theme-compiler/src/com/vaadin/sass/internal/expression/BinaryOperator.java b/theme-compiler/src/com/vaadin/sass/internal/expression/BinaryOperator.java new file mode 100644 index 0000000000..15d3da797f --- /dev/null +++ b/theme-compiler/src/com/vaadin/sass/internal/expression/BinaryOperator.java @@ -0,0 +1,70 @@ +/* + * Copyright 2000-2013 Vaadin Ltd. + * + * Licensed 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 com.vaadin.sass.internal.expression; + +import org.w3c.css.sac.LexicalUnit; + +import com.vaadin.sass.internal.parser.LexicalUnitImpl; + +public enum BinaryOperator { + ADD(LexicalUnit.SAC_OPERATOR_PLUS, 1) { + @Override + public LexicalUnitImpl eval(LexicalUnitImpl leftValue, + LexicalUnitImpl rightValue) { + return leftValue.add(rightValue); + } + }, + MINUS(LexicalUnit.SAC_OPERATOR_MINUS, 1) { + @Override + public LexicalUnitImpl eval(LexicalUnitImpl leftValue, + LexicalUnitImpl rightValue) { + return leftValue.minus(rightValue); + } + }, + MUL(LexicalUnit.SAC_OPERATOR_MULTIPLY, 2) { + @Override + public LexicalUnitImpl eval(LexicalUnitImpl leftValue, + LexicalUnitImpl rightValue) { + return leftValue.multiply(rightValue); + } + }, + DIV(LexicalUnit.SAC_OPERATOR_SLASH, 2) { + @Override + public LexicalUnitImpl eval(LexicalUnitImpl leftValue, + LexicalUnitImpl rightValue) { + return leftValue.divide(rightValue); + } + }, + MOD(LexicalUnit.SAC_OPERATOR_MOD, 2) { + @Override + public LexicalUnitImpl eval(LexicalUnitImpl leftValue, + LexicalUnitImpl rightValue) { + return leftValue.modulo(rightValue); + } + }; + + public final short type; + public final int precedence; + + BinaryOperator(short type, int precedence) { + this.type = type; + this.precedence = precedence; + } + + public abstract LexicalUnitImpl eval(LexicalUnitImpl leftValue, + LexicalUnitImpl rightValue); +} diff --git a/theme-compiler/src/com/vaadin/sass/internal/expression/Parentheses.java b/theme-compiler/src/com/vaadin/sass/internal/expression/Parentheses.java new file mode 100644 index 0000000000..5df8607aaf --- /dev/null +++ b/theme-compiler/src/com/vaadin/sass/internal/expression/Parentheses.java @@ -0,0 +1,21 @@ +/* + * Copyright 2000-2013 Vaadin Ltd. + * + * Licensed 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 com.vaadin.sass.internal.expression; + +public enum Parentheses { + LEFT, RIGHT +} diff --git a/theme-compiler/src/com/vaadin/sass/internal/expression/exception/ArithmeticException.java b/theme-compiler/src/com/vaadin/sass/internal/expression/exception/ArithmeticException.java new file mode 100644 index 0000000000..13b6f0e936 --- /dev/null +++ b/theme-compiler/src/com/vaadin/sass/internal/expression/exception/ArithmeticException.java @@ -0,0 +1,26 @@ +/* + * Copyright 2000-2013 Vaadin Ltd. + * + * Licensed 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 com.vaadin.sass.internal.expression.exception; + +public class ArithmeticException extends RuntimeException { + public ArithmeticException(String errorMsg) { + super(errorMsg); + } + + public ArithmeticException() { + super("Illegal arithmetic expression"); + } +} diff --git a/theme-compiler/src/com/vaadin/sass/internal/expression/exception/IncompatibleUnitsException.java b/theme-compiler/src/com/vaadin/sass/internal/expression/exception/IncompatibleUnitsException.java new file mode 100644 index 0000000000..bbeb0140f2 --- /dev/null +++ b/theme-compiler/src/com/vaadin/sass/internal/expression/exception/IncompatibleUnitsException.java @@ -0,0 +1,29 @@ +/* + * Copyright 2000-2013 Vaadin Ltd. + * + * Licensed 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 com.vaadin.sass.internal.expression.exception; + +public class IncompatibleUnitsException extends ArithmeticException { + public IncompatibleUnitsException(String errorExpr) { + super(getErrorMsg(errorExpr)); + } + + private static String getErrorMsg(String errorExpr) { + StringBuilder builder = new StringBuilder(); + builder.append("Incompatible units found in: "); + builder.append("'").append(errorExpr).append("'"); + return builder.toString(); + } +} diff --git a/theme-compiler/src/com/vaadin/sass/internal/parser/LexicalUnitImpl.java b/theme-compiler/src/com/vaadin/sass/internal/parser/LexicalUnitImpl.java index 7feeb6628a..498e1a941b 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/parser/LexicalUnitImpl.java +++ b/theme-compiler/src/com/vaadin/sass/internal/parser/LexicalUnitImpl.java @@ -27,6 +27,7 @@ import java.io.Serializable; import org.w3c.css.sac.LexicalUnit; +import com.vaadin.sass.internal.expression.exception.IncompatibleUnitsException; import com.vaadin.sass.internal.util.ColorUtil; import com.vaadin.sass.internal.util.DeepCopy; @@ -68,12 +69,14 @@ public class LexicalUnitImpl implements LexicalUnit, SCSSLexicalUnit, LexicalUnitImpl(int line, int column, LexicalUnitImpl previous, int i) { this(SAC_INTEGER, line, column, previous); this.i = i; + f = i; } LexicalUnitImpl(int line, int column, LexicalUnitImpl previous, short dimension, String sdimension, float f) { this(dimension, line, column, previous); this.f = f; + i = (int) f; this.dimension = dimension; this.sdimension = sdimension; } @@ -137,6 +140,7 @@ public class LexicalUnitImpl implements LexicalUnit, SCSSLexicalUnit, void setIntegerValue(int i) { this.i = i; + f = i; } @Override @@ -146,6 +150,7 @@ public class LexicalUnitImpl implements LexicalUnit, SCSSLexicalUnit, public void setFloatValue(float f) { this.f = f; + i = (int) f; } @Override @@ -364,28 +369,65 @@ public class LexicalUnitImpl implements LexicalUnit, SCSSLexicalUnit, @Override public LexicalUnitImpl divide(LexicalUnitImpl denominator) { - setFloatValue(getFloatValue() / denominator.getIntegerValue()); + if (denominator.getLexicalUnitType() != SAC_INTEGER + && denominator.getLexicalUnitType() != SAC_REAL + && getLexicalUnitType() != denominator.getLexicalUnitType()) { + throw new IncompatibleUnitsException(toString()); + } + setFloatValue(getFloatValue() / denominator.getFloatValue()); + if (getLexicalUnitType() == denominator.getLexicalUnitType()) { + setLexicalUnitType(SAC_REAL); + } + setNextLexicalUnit(denominator.getNextLexicalUnit()); return this; } @Override public LexicalUnitImpl add(LexicalUnitImpl another) { + checkAndSetUnit(another); setFloatValue(getFloatValue() + another.getFloatValue()); return this; } @Override public LexicalUnitImpl minus(LexicalUnitImpl another) { + checkAndSetUnit(another); setFloatValue(getFloatValue() - another.getFloatValue()); return this; } @Override public LexicalUnitImpl multiply(LexicalUnitImpl another) { + checkAndSetUnit(another); setFloatValue(getFloatValue() * another.getIntegerValue()); return this; } + protected void checkAndSetUnit(LexicalUnitImpl another) { + if (getLexicalUnitType() != SAC_INTEGER + && getLexicalUnitType() != SAC_REAL + && another.getLexicalUnitType() != SAC_INTEGER + && another.getLexicalUnitType() != SAC_REAL + && getLexicalUnitType() != another.getLexicalUnitType()) { + throw new IncompatibleUnitsException(toString()); + } + if (another.getLexicalUnitType() != SAC_INTEGER + && another.getLexicalUnitType() != SAC_REAL) { + setLexicalUnitType(another.getLexicalUnitType()); + } + setNextLexicalUnit(another.getNextLexicalUnit()); + } + + @Override + public LexicalUnitImpl modulo(LexicalUnitImpl another) { + if (getLexicalUnitType() != another.getLexicalUnitType()) { + throw new IncompatibleUnitsException(toString()); + } + setIntegerValue(getIntegerValue() % another.getIntegerValue()); + setNextLexicalUnit(another.getNextLexicalUnit()); + return this; + } + public void replaceValue(LexicalUnitImpl another) { // shouldn't modify 'another' directly, should only modify its copy. LexicalUnitImpl deepCopyAnother = (LexicalUnitImpl) DeepCopy @@ -470,16 +512,12 @@ public class LexicalUnitImpl implements LexicalUnit, SCSSLexicalUnit, return new LexicalUnitImpl(line, column, previous, SAC_EX, null, v); } - public static LexicalUnitImpl createPixel(float p) { - return new LexicalUnitImpl(0, 0, null, SAC_PIXEL, null, p); - } - - static LexicalUnitImpl createPX(int line, int column, + public static LexicalUnitImpl createPX(int line, int column, LexicalUnitImpl previous, float v) { return new LexicalUnitImpl(line, column, previous, SAC_PIXEL, null, v); } - static LexicalUnitImpl createCM(int line, int column, + public static LexicalUnitImpl createCM(int line, int column, LexicalUnitImpl previous, float v) { return new LexicalUnitImpl(line, column, previous, SAC_CENTIMETER, null, v); @@ -637,6 +675,39 @@ public class LexicalUnitImpl implements LexicalUnit, SCSSLexicalUnit, return new LexicalUnitImpl(SAC_OPERATOR_SLASH, line, column, previous); } + public static LexicalUnitImpl createAdd(int line, int column, + LexicalUnitImpl previous) { + return new LexicalUnitImpl(SAC_OPERATOR_PLUS, line, column, previous); + } + + public static LexicalUnitImpl createMinus(int line, int column, + LexicalUnitImpl previous) { + return new LexicalUnitImpl(SAC_OPERATOR_MINUS, line, column, previous); + } + + public static LexicalUnitImpl createMultiply(int line, int column, + LexicalUnitImpl previous) { + return new LexicalUnitImpl(SAC_OPERATOR_MULTIPLY, line, column, + previous); + } + + public static LexicalUnitImpl createModulo(int line, int column, + LexicalUnitImpl previous) { + return new LexicalUnitImpl(SAC_OPERATOR_MOD, line, column, previous); + } + + public static LexicalUnitImpl createLeftParenthesis(int line, int column, + LexicalUnitImpl previous) { + return new LexicalUnitImpl(SCSS_OPERATOR_LEFT_PAREN, line, column, + previous); + } + + public static LexicalUnitImpl createRightParenthesis(int line, int column, + LexicalUnitImpl previous) { + return new LexicalUnitImpl(SCSS_OPERATOR_LEFT_PAREN, line, column, + previous); + } + @Override public LexicalUnitImpl clone() { LexicalUnitImpl cloned = new LexicalUnitImpl(type, line, column, prev); diff --git a/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.java b/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.java index 4861a27e75..492b79bbfc 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.java +++ b/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.java @@ -16,34 +16,35 @@ /* Generated By:JavaCC: Do not edit this line. Parser.java */ package com.vaadin.sass.internal.parser; -import java.io.BufferedInputStream; -import java.io.FileInputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.Reader; -import java.net.URL; +import java.io.*; +import java.net.*; import java.util.ArrayList; import java.util.Locale; +import java.util.Map; import java.util.UUID; -import org.w3c.css.sac.CSSException; -import org.w3c.css.sac.CSSParseException; import org.w3c.css.sac.ConditionFactory; +import org.w3c.css.sac.Condition; +import org.w3c.css.sac.SelectorFactory; +import org.w3c.css.sac.SelectorList; +import org.w3c.css.sac.Selector; +import org.w3c.css.sac.SimpleSelector; import org.w3c.css.sac.DocumentHandler; -import org.w3c.css.sac.ErrorHandler; import org.w3c.css.sac.InputSource; -import org.w3c.css.sac.LexicalUnit; +import org.w3c.css.sac.ErrorHandler; +import org.w3c.css.sac.CSSException; +import org.w3c.css.sac.CSSParseException; import org.w3c.css.sac.Locator; -import org.w3c.css.sac.SelectorFactory; -import org.w3c.css.sac.SelectorList; -import org.w3c.flute.parser.selectors.ConditionFactoryImpl; +import org.w3c.css.sac.LexicalUnit; + import org.w3c.flute.parser.selectors.SelectorFactoryImpl; +import org.w3c.flute.parser.selectors.ConditionFactoryImpl; + import org.w3c.flute.util.Encoding; -import com.vaadin.sass.internal.handler.SCSSDocumentHandlerImpl; -import com.vaadin.sass.internal.tree.Node; -import com.vaadin.sass.internal.tree.VariableNode; +import com.vaadin.sass.internal.handler.*; + +import com.vaadin.sass.internal.tree.*; /** * A CSS2 parser @@ -5023,8 +5024,18 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { throws ParseException { Token n; switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case DIV: - n = jj_consume_token(DIV); + case COMMA: + /* + * (comments copied from basic_arithmetics.scss)supports: 1. + * standard arithmetic operations (+, -, *, /, %) 2. / is treated as + * css operator, unless one of its operands is variable or there is + * another binary arithmetic operatorlimits: 1. cannot mix + * arithmetic and css operations, e.g. "margin: 1px + 3px 2px" will + * fail 2. space between add and minus operator and their following + * operand is mandatory. e.g. "1 + 2" is valid, "1+2" is not 3. + * parenthesis is not supported now. + */ + n = jj_consume_token(COMMA); label_156: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: @@ -5038,13 +5049,13 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } { if (true) { - return LexicalUnitImpl.createSlash(n.beginLine, + return LexicalUnitImpl.createComma(n.beginLine, n.beginColumn, prev); } } break; - case COMMA: - n = jj_consume_token(COMMA); + case DIV: + n = jj_consume_token(DIV); label_157: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: @@ -5058,13 +5069,93 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } { if (true) { - return LexicalUnitImpl.createComma(n.beginLine, + return LexicalUnitImpl.createSlash(n.beginLine, + n.beginColumn, prev); + } + } + break; + case ANY: + n = jj_consume_token(ANY); + label_158: while (true) { + switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { + case S: + ; + break; + default: + jj_la1[229] = jj_gen; + break label_158; + } + jj_consume_token(S); + } + { + if (true) { + return LexicalUnitImpl.createMultiply(n.beginLine, + n.beginColumn, prev); + } + } + break; + case MOD: + n = jj_consume_token(MOD); + label_159: while (true) { + switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { + case S: + ; + break; + default: + jj_la1[230] = jj_gen; + break label_159; + } + jj_consume_token(S); + } + { + if (true) { + return LexicalUnitImpl.createModulo(n.beginLine, + n.beginColumn, prev); + } + } + break; + case PLUS: + n = jj_consume_token(PLUS); + label_160: while (true) { + jj_consume_token(S); + switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { + case S: + ; + break; + default: + jj_la1[231] = jj_gen; + break label_160; + } + } + { + if (true) { + return LexicalUnitImpl.createAdd(n.beginLine, + n.beginColumn, prev); + } + } + break; + case MINUS: + n = jj_consume_token(MINUS); + label_161: while (true) { + jj_consume_token(S); + switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { + case S: + ; + break; + default: + jj_la1[232] = jj_gen; + break label_161; + } + } + { + if (true) { + return LexicalUnitImpl.createMinus(n.beginLine, n.beginColumn, prev); } } break; default: - jj_la1[229] = jj_gen; + jj_la1[233] = jj_gen; jj_consume_token(-1); throw new ParseException(); } @@ -5080,19 +5171,15 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { char op; first = term(null); res = first; - label_158: while (true) { + label_162: while (true) { if (jj_2_8(2)) { ; } else { - break label_158; + break label_162; } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case COMMA: - case DIV: + if (jj_2_9(2)) { res = operator(res); - break; - default: - jj_la1[230] = jj_gen; + } else { ; } res = term(res); @@ -5128,7 +5215,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } break; default: - jj_la1[231] = jj_gen; + jj_la1[234] = jj_gen; jj_consume_token(-1); throw new ParseException(); } @@ -5180,7 +5267,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { result = variableTerm(prev); break; default: - jj_la1[232] = jj_gen; + jj_la1[235] = jj_gen; jj_consume_token(-1); throw new ParseException(); } @@ -5244,7 +5331,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { op = unaryOperator(); break; default: - jj_la1[233] = jj_gen; + jj_la1[236] = jj_gen; ; } switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { @@ -5359,7 +5446,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { result = function(op, prev); break; default: - jj_la1[234] = jj_gen; + jj_la1[237] = jj_gen; jj_consume_token(-1); throw new ParseException(); } @@ -5385,7 +5472,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { s += "."; break; default: - jj_la1[235] = jj_gen; + jj_la1[238] = jj_gen; ; } n = jj_consume_token(IDENT); @@ -5423,24 +5510,24 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { result = unicode(prev); break; default: - jj_la1[236] = jj_gen; + jj_la1[239] = jj_gen; jj_consume_token(-1); throw new ParseException(); } break; default: - jj_la1[237] = jj_gen; + jj_la1[240] = jj_gen; jj_consume_token(-1); throw new ParseException(); } - label_159: while (true) { + label_163: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[238] = jj_gen; - break label_159; + jj_la1[241] = jj_gen; + break label_163; } jj_consume_token(S); } @@ -5463,14 +5550,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { Token n; LexicalUnit params = null; n = jj_consume_token(FUNCTION); - label_160: while (true) { + label_164: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[239] = jj_gen; - break label_160; + jj_la1[242] = jj_gen; + break label_164; } jj_consume_token(S); } @@ -5526,7 +5613,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { params = expr(); break; default: - jj_la1[240] = jj_gen; + jj_la1[243] = jj_gen; ; } jj_consume_token(RPARAN); @@ -6063,14 +6150,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { */ final public void _parseRule() throws ParseException { String ret = null; - label_161: while (true) { + label_165: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[241] = jj_gen; - break label_161; + jj_la1[244] = jj_gen; + break label_165; } jj_consume_token(S); } @@ -6105,7 +6192,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { fontFace(); break; default: - jj_la1[242] = jj_gen; + jj_la1[245] = jj_gen; ret = skipStatement(); if ((ret == null) || (ret.length() == 0)) { { @@ -6128,14 +6215,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } final public void _parseImportRule() throws ParseException { - label_162: while (true) { + label_166: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[243] = jj_gen; - break label_162; + jj_la1[246] = jj_gen; + break label_166; } jj_consume_token(S); } @@ -6143,14 +6230,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } final public void _parseMediaRule() throws ParseException { - label_163: while (true) { + label_167: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[244] = jj_gen; - break label_163; + jj_la1[247] = jj_gen; + break label_167; } jj_consume_token(S); } @@ -6158,14 +6245,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } final public void _parseDeclarationBlock() throws ParseException { - label_164: while (true) { + label_168: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[245] = jj_gen; - break label_164; + jj_la1[248] = jj_gen; + break label_168; } jj_consume_token(S); } @@ -6175,27 +6262,27 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { declaration(); break; default: - jj_la1[246] = jj_gen; + jj_la1[249] = jj_gen; ; } - label_165: while (true) { + label_169: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case SEMICOLON: ; break; default: - jj_la1[247] = jj_gen; - break label_165; + jj_la1[250] = jj_gen; + break label_169; } jj_consume_token(SEMICOLON); - label_166: while (true) { + label_170: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[248] = jj_gen; - break label_166; + jj_la1[251] = jj_gen; + break label_170; } jj_consume_token(S); } @@ -6205,7 +6292,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { declaration(); break; default: - jj_la1[249] = jj_gen; + jj_la1[252] = jj_gen; ; } } @@ -6214,14 +6301,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { final public ArrayList _parseSelectors() throws ParseException { ArrayList p = null; try { - label_167: while (true) { + label_171: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[250] = jj_gen; - break label_167; + jj_la1[253] = jj_gen; + break label_171; } jj_consume_token(S); } @@ -6337,7 +6424,19 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } } - private boolean jj_3R_178() { + private boolean jj_2_9(int xla) { + jj_la = xla; + jj_lastpos = jj_scanpos = token; + try { + return !jj_3_9(); + } catch (LookaheadSuccess ls) { + return true; + } finally { + jj_save(8, xla); + } + } + + private boolean jj_3R_182() { if (jj_scan_token(VARIABLE)) { return true; } @@ -6352,47 +6451,66 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_240() { - if (jj_3R_178()) { + private boolean jj_3R_261() { + if (jj_scan_token(PLUS)) { return true; } return false; } - private boolean jj_3R_237() { + private boolean jj_3R_251() { Token xsp; xsp = jj_scanpos; - if (jj_3R_250()) { + if (jj_3R_260()) { jj_scanpos = xsp; - if (jj_3R_251()) { + if (jj_3R_261()) { return true; } } return false; } - private boolean jj_3R_250() { - if (jj_scan_token(IDENT)) { + private boolean jj_3R_260() { + if (jj_scan_token(MINUS)) { return true; } return false; } - private boolean jj_3R_248() { - if (jj_scan_token(URL)) { + private boolean jj_3R_256() { + if (jj_scan_token(UNICODERANGE)) { return true; } return false; } - private boolean jj_3R_194() { + private boolean jj_3R_246() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_257()) { + jj_scanpos = xsp; + if (jj_3R_258()) { + return true; + } + } + return false; + } + + private boolean jj_3R_257() { + if (jj_scan_token(IDENT)) { + return true; + } + return false; + } + + private boolean jj_3R_198() { Token xsp; - if (jj_3R_237()) { + if (jj_3R_246()) { return true; } while (true) { xsp = jj_scanpos; - if (jj_3R_237()) { + if (jj_3R_246()) { jj_scanpos = xsp; break; } @@ -6407,92 +6525,84 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_180() { - if (jj_3R_200()) { + private boolean jj_3_8() { + Token xsp; + xsp = jj_scanpos; + if (jj_3_9()) { + jj_scanpos = xsp; + } + if (jj_3R_180()) { return true; } return false; } - private boolean jj_3R_198() { - if (jj_3R_173()) { + private boolean jj_3R_183() { + if (jj_3R_180()) { return true; } - return false; - } - - private boolean jj_3R_177() { Token xsp; - xsp = jj_scanpos; - if (jj_3R_198()) { - jj_scanpos = xsp; - if (jj_3R_199()) { - return true; + while (true) { + xsp = jj_scanpos; + if (jj_3_8()) { + jj_scanpos = xsp; + break; } } return false; } - private boolean jj_3R_176() { - if (jj_3R_197()) { + private boolean jj_3R_184() { + if (jj_3R_209()) { return true; } return false; } - private boolean jj_3R_254() { - if (jj_scan_token(PLUS)) { + private boolean jj_3R_208() { + if (jj_scan_token(MINUS)) { return true; } - return false; - } - - private boolean jj_3R_244() { Token xsp; - xsp = jj_scanpos; - if (jj_3R_253()) { - jj_scanpos = xsp; - if (jj_3R_254()) { - return true; - } - } - return false; - } - - private boolean jj_3R_253() { - if (jj_scan_token(MINUS)) { + if (jj_scan_token(1)) { return true; } + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { + jj_scanpos = xsp; + break; + } + } return false; } - private boolean jj_3R_249() { - if (jj_scan_token(UNICODERANGE)) { + private boolean jj_3R_207() { + if (jj_scan_token(PLUS)) { return true; } - return false; - } - - private boolean jj_3_8() { Token xsp; - xsp = jj_scanpos; - if (jj_3R_176()) { - jj_scanpos = xsp; - } - if (jj_3R_177()) { + if (jj_scan_token(1)) { return true; } + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { + jj_scanpos = xsp; + break; + } + } return false; } - private boolean jj_3R_179() { - if (jj_3R_177()) { + private boolean jj_3R_206() { + if (jj_scan_token(MOD)) { return true; } Token xsp; while (true) { xsp = jj_scanpos; - if (jj_3_8()) { + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } @@ -6500,14 +6610,44 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_202() { - if (jj_3R_201()) { + private boolean jj_3R_205() { + if (jj_scan_token(ANY)) { return true; } - return false; - } + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { + jj_scanpos = xsp; + break; + } + } + return false; + } - private boolean jj_3R_201() { + private boolean jj_3R_204() { + if (jj_scan_token(DIV)) { + return true; + } + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { + jj_scanpos = xsp; + break; + } + } + return false; + } + + private boolean jj_3R_211() { + if (jj_3R_210()) { + return true; + } + return false; + } + + private boolean jj_3R_210() { Token xsp; xsp = jj_scanpos; if (jj_scan_token(20)) { @@ -6529,8 +6669,8 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_168() { - if (jj_3R_178()) { + private boolean jj_3R_172() { + if (jj_3R_182()) { return true; } if (jj_scan_token(COLON)) { @@ -6544,19 +6684,19 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { break; } } - if (jj_3R_179()) { + if (jj_3R_183()) { return true; } xsp = jj_scanpos; - if (jj_3R_180()) { + if (jj_3R_184()) { jj_scanpos = xsp; } - if (jj_3R_181()) { + if (jj_3R_185()) { return true; } while (true) { xsp = jj_scanpos; - if (jj_3R_181()) { + if (jj_3R_185()) { jj_scanpos = xsp; break; } @@ -6564,19 +6704,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_183() { - if (jj_scan_token(S)) { - return true; - } - Token xsp; - xsp = jj_scanpos; - if (jj_3R_202()) { - jj_scanpos = xsp; - } - return false; - } - - private boolean jj_3R_239() { + private boolean jj_3R_203() { if (jj_scan_token(COMMA)) { return true; } @@ -6591,53 +6719,62 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_182() { - if (jj_3R_201()) { - return true; - } - return false; - } - - private boolean jj_3R_169() { + private boolean jj_3R_181() { Token xsp; xsp = jj_scanpos; - if (jj_3R_182()) { + if (jj_3R_203()) { jj_scanpos = xsp; - if (jj_3R_183()) { - return true; + if (jj_3R_204()) { + jj_scanpos = xsp; + if (jj_3R_205()) { + jj_scanpos = xsp; + if (jj_3R_206()) { + jj_scanpos = xsp; + if (jj_3R_207()) { + jj_scanpos = xsp; + if (jj_3R_208()) { + return true; + } + } + } + } } } return false; } - private boolean jj_3R_197() { + private boolean jj_3R_187() { + if (jj_scan_token(S)) { + return true; + } Token xsp; xsp = jj_scanpos; - if (jj_3R_238()) { + if (jj_3R_211()) { jj_scanpos = xsp; - if (jj_3R_239()) { - return true; - } } return false; } - private boolean jj_3R_238() { - if (jj_scan_token(DIV)) { + private boolean jj_3R_186() { + if (jj_3R_210()) { return true; } + return false; + } + + private boolean jj_3R_173() { Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; + xsp = jj_scanpos; + if (jj_3R_186()) { + jj_scanpos = xsp; + if (jj_3R_187()) { + return true; } } return false; } - private boolean jj_3R_200() { + private boolean jj_3R_209() { if (jj_scan_token(GUARDED_SYM)) { return true; } @@ -6652,7 +6789,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_189() { + private boolean jj_3R_193() { if (jj_scan_token(VARIABLE)) { return true; } @@ -6677,10 +6814,10 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_171() { + private boolean jj_3R_175() { Token xsp; xsp = jj_scanpos; - if (jj_3R_189()) { + if (jj_3R_193()) { jj_scanpos = xsp; } if (jj_scan_token(CONTAINS)) { @@ -6701,21 +6838,21 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_204() { + private boolean jj_3R_213() { if (jj_scan_token(HASH)) { return true; } return false; } - private boolean jj_3R_276() { + private boolean jj_3R_283() { if (jj_scan_token(IDENT)) { return true; } return false; } - private boolean jj_3R_277() { + private boolean jj_3R_284() { if (jj_scan_token(FUNCTION)) { return true; } @@ -6735,26 +6872,26 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_275() { + private boolean jj_3R_282() { if (jj_scan_token(COLON)) { return true; } return false; } - private boolean jj_3R_206() { + private boolean jj_3R_215() { if (jj_scan_token(COLON)) { return true; } Token xsp; xsp = jj_scanpos; - if (jj_3R_275()) { + if (jj_3R_282()) { jj_scanpos = xsp; } xsp = jj_scanpos; - if (jj_3R_276()) { + if (jj_3R_283()) { jj_scanpos = xsp; - if (jj_3R_277()) { + if (jj_3R_284()) { return true; } } @@ -6762,96 +6899,96 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } private boolean jj_3_7() { - if (jj_3R_175()) { + if (jj_3R_179()) { return true; } return false; } - private boolean jj_3R_296() { + private boolean jj_3R_303() { if (jj_scan_token(STRING)) { return true; } return false; } - private boolean jj_3R_294() { + private boolean jj_3R_301() { if (jj_scan_token(STARMATCH)) { return true; } return false; } - private boolean jj_3R_293() { - if (jj_scan_token(DOLLARMATCH)) { + private boolean jj_3R_302() { + if (jj_scan_token(IDENT)) { return true; } return false; } - private boolean jj_3R_295() { - if (jj_scan_token(IDENT)) { + private boolean jj_3R_300() { + if (jj_scan_token(DOLLARMATCH)) { return true; } return false; } - private boolean jj_3R_292() { + private boolean jj_3R_299() { if (jj_scan_token(CARETMATCH)) { return true; } return false; } - private boolean jj_3R_291() { + private boolean jj_3R_298() { if (jj_scan_token(DASHMATCH)) { return true; } return false; } - private boolean jj_3R_290() { + private boolean jj_3R_297() { if (jj_scan_token(INCLUDES)) { return true; } return false; } - private boolean jj_3R_257() { + private boolean jj_3R_264() { if (jj_scan_token(INTERPOLATION)) { return true; } return false; } - private boolean jj_3R_289() { + private boolean jj_3R_296() { if (jj_scan_token(EQ)) { return true; } return false; } - private boolean jj_3R_196() { + private boolean jj_3R_200() { if (jj_scan_token(LBRACE)) { return true; } return false; } - private boolean jj_3R_282() { + private boolean jj_3R_289() { Token xsp; xsp = jj_scanpos; - if (jj_3R_289()) { + if (jj_3R_296()) { jj_scanpos = xsp; - if (jj_3R_290()) { + if (jj_3R_297()) { jj_scanpos = xsp; - if (jj_3R_291()) { + if (jj_3R_298()) { jj_scanpos = xsp; - if (jj_3R_292()) { + if (jj_3R_299()) { jj_scanpos = xsp; - if (jj_3R_293()) { + if (jj_3R_300()) { jj_scanpos = xsp; - if (jj_3R_294()) { + if (jj_3R_301()) { return true; } } @@ -6867,9 +7004,9 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } } xsp = jj_scanpos; - if (jj_3R_295()) { + if (jj_3R_302()) { jj_scanpos = xsp; - if (jj_3R_296()) { + if (jj_3R_303()) { return true; } } @@ -6883,7 +7020,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_207() { + private boolean jj_3R_216() { if (jj_scan_token(LBRACKET)) { return true; } @@ -6906,7 +7043,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } } xsp = jj_scanpos; - if (jj_3R_282()) { + if (jj_3R_289()) { jj_scanpos = xsp; } if (jj_scan_token(RBRACKET)) { @@ -6915,28 +7052,28 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_288() { + private boolean jj_3R_295() { if (jj_scan_token(INTERPOLATION)) { return true; } return false; } - private boolean jj_3R_195() { - if (jj_3R_179()) { + private boolean jj_3R_199() { + if (jj_3R_183()) { return true; } return false; } - private boolean jj_3R_243() { + private boolean jj_3R_250() { if (jj_scan_token(PARENT)) { return true; } return false; } - private boolean jj_3R_242() { + private boolean jj_3R_249() { if (jj_scan_token(ANY)) { return true; } @@ -6944,7 +7081,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } private boolean jj_3_6() { - if (jj_3R_174()) { + if (jj_3R_178()) { return true; } if (jj_scan_token(LBRACE)) { @@ -6953,8 +7090,8 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_175() { - if (jj_3R_194()) { + private boolean jj_3R_179() { + if (jj_3R_198()) { return true; } if (jj_scan_token(COLON)) { @@ -6969,42 +7106,42 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } } xsp = jj_scanpos; - if (jj_3R_195()) { + if (jj_3R_199()) { jj_scanpos = xsp; - if (jj_3R_196()) { + if (jj_3R_200()) { return true; } } return false; } - private boolean jj_3R_252() { + private boolean jj_3R_259() { Token xsp; xsp = jj_scanpos; - if (jj_3R_256()) { + if (jj_3R_263()) { jj_scanpos = xsp; - if (jj_3R_257()) { + if (jj_3R_264()) { return true; } } return false; } - private boolean jj_3R_256() { + private boolean jj_3R_263() { if (jj_scan_token(IDENT)) { return true; } return false; } - private boolean jj_3R_203() { + private boolean jj_3R_212() { Token xsp; xsp = jj_scanpos; - if (jj_3R_241()) { + if (jj_3R_248()) { jj_scanpos = xsp; - if (jj_3R_242()) { + if (jj_3R_249()) { jj_scanpos = xsp; - if (jj_3R_243()) { + if (jj_3R_250()) { return true; } } @@ -7012,14 +7149,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_241() { + private boolean jj_3R_248() { Token xsp; - if (jj_3R_252()) { + if (jj_3R_259()) { return true; } while (true) { xsp = jj_scanpos; - if (jj_3R_252()) { + if (jj_3R_259()) { jj_scanpos = xsp; break; } @@ -7027,7 +7164,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_172() { + private boolean jj_3R_262() { + if (jj_3R_183()) { + return true; + } + return false; + } + + private boolean jj_3R_176() { if (jj_scan_token(COMMA)) { return true; } @@ -7042,27 +7186,27 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_270() { + private boolean jj_3R_277() { Token xsp; xsp = jj_scanpos; - if (jj_3R_287()) { + if (jj_3R_294()) { jj_scanpos = xsp; - if (jj_3R_288()) { + if (jj_3R_295()) { return true; } } return false; } - private boolean jj_3R_287() { + private boolean jj_3R_294() { if (jj_scan_token(IDENT)) { return true; } return false; } - private boolean jj_3R_286() { - if (jj_3R_206()) { + private boolean jj_3R_293() { + if (jj_3R_215()) { return true; } return false; @@ -7071,26 +7215,26 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { private boolean jj_3_5() { Token xsp; xsp = jj_scanpos; - if (jj_3R_172()) { + if (jj_3R_176()) { jj_scanpos = xsp; } - if (jj_3R_173()) { + if (jj_3R_177()) { return true; } return false; } - private boolean jj_3R_205() { + private boolean jj_3R_214() { if (jj_scan_token(DOT)) { return true; } Token xsp; - if (jj_3R_270()) { + if (jj_3R_277()) { return true; } while (true) { xsp = jj_scanpos; - if (jj_3R_270()) { + if (jj_3R_277()) { jj_scanpos = xsp; break; } @@ -7098,72 +7242,108 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_284() { - if (jj_3R_205()) { + private boolean jj_3R_252() { + if (jj_scan_token(FUNCTION)) { + return true; + } + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { + jj_scanpos = xsp; + break; + } + } + xsp = jj_scanpos; + if (jj_3R_262()) { + jj_scanpos = xsp; + } + if (jj_scan_token(RPARAN)) { return true; } return false; } - private boolean jj_3R_279() { - if (jj_3R_205()) { + private boolean jj_3R_291() { + if (jj_3R_214()) { return true; } return false; } - private boolean jj_3R_281() { - if (jj_3R_206()) { + private boolean jj_3R_286() { + if (jj_3R_214()) { return true; } return false; } - private boolean jj_3R_269() { - if (jj_3R_206()) { + private boolean jj_3R_288() { + if (jj_3R_215()) { return true; } return false; } - private boolean jj_3R_272() { - if (jj_3R_205()) { + private boolean jj_3R_276() { + if (jj_3R_215()) { return true; } return false; } - private boolean jj_3R_274() { - if (jj_3R_206()) { + private boolean jj_3R_279() { + if (jj_3R_214()) { return true; } return false; } - private boolean jj_3R_255() { - if (jj_3R_179()) { + private boolean jj_3R_281() { + if (jj_3R_215()) { return true; } return false; } - private boolean jj_3R_285() { - if (jj_3R_207()) { + private boolean jj_3R_243() { + if (jj_3R_256()) { return true; } return false; } - private boolean jj_3R_262() { + private boolean jj_3R_242() { + if (jj_3R_255()) { + return true; + } + return false; + } + + private boolean jj_3R_241() { + if (jj_3R_254()) { + return true; + } + return false; + } + + private boolean jj_3R_292() { + if (jj_3R_216()) { + return true; + } + return false; + } + + private boolean jj_3R_269() { Token xsp; xsp = jj_scanpos; - if (jj_3R_283()) { + if (jj_3R_290()) { jj_scanpos = xsp; - if (jj_3R_284()) { + if (jj_3R_291()) { jj_scanpos = xsp; - if (jj_3R_285()) { + if (jj_3R_292()) { jj_scanpos = xsp; - if (jj_3R_286()) { + if (jj_3R_293()) { return true; } } @@ -7172,23 +7352,23 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_283() { - if (jj_3R_204()) { + private boolean jj_3R_290() { + if (jj_3R_213()) { return true; } return false; } - private boolean jj_3R_261() { + private boolean jj_3R_268() { Token xsp; xsp = jj_scanpos; - if (jj_3R_278()) { + if (jj_3R_285()) { jj_scanpos = xsp; - if (jj_3R_279()) { + if (jj_3R_286()) { jj_scanpos = xsp; - if (jj_3R_280()) { + if (jj_3R_287()) { jj_scanpos = xsp; - if (jj_3R_281()) { + if (jj_3R_288()) { return true; } } @@ -7197,30 +7377,30 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_278() { - if (jj_3R_204()) { + private boolean jj_3R_285() { + if (jj_3R_213()) { return true; } return false; } - private boolean jj_3R_266() { - if (jj_3R_206()) { + private boolean jj_3R_273() { + if (jj_3R_215()) { return true; } return false; } - private boolean jj_3R_260() { + private boolean jj_3R_267() { Token xsp; xsp = jj_scanpos; - if (jj_3R_271()) { + if (jj_3R_278()) { jj_scanpos = xsp; - if (jj_3R_272()) { + if (jj_3R_279()) { jj_scanpos = xsp; - if (jj_3R_273()) { + if (jj_3R_280()) { jj_scanpos = xsp; - if (jj_3R_274()) { + if (jj_3R_281()) { return true; } } @@ -7229,42 +7409,42 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_271() { - if (jj_3R_204()) { + private boolean jj_3R_278() { + if (jj_3R_213()) { return true; } return false; } - private boolean jj_3R_280() { - if (jj_3R_207()) { + private boolean jj_3R_287() { + if (jj_3R_216()) { return true; } return false; } - private boolean jj_3R_268() { - if (jj_3R_207()) { + private boolean jj_3R_275() { + if (jj_3R_216()) { return true; } return false; } - private boolean jj_3R_273() { - if (jj_3R_207()) { + private boolean jj_3R_280() { + if (jj_3R_216()) { return true; } return false; } - private boolean jj_3R_259() { + private boolean jj_3R_266() { Token xsp; xsp = jj_scanpos; - if (jj_3R_267()) { + if (jj_3R_274()) { jj_scanpos = xsp; - if (jj_3R_268()) { + if (jj_3R_275()) { jj_scanpos = xsp; - if (jj_3R_269()) { + if (jj_3R_276()) { return true; } } @@ -7272,64 +7452,43 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_264() { - if (jj_3R_205()) { + private boolean jj_3R_271() { + if (jj_3R_214()) { return true; } return false; } - private boolean jj_3R_267() { - if (jj_3R_205()) { + private boolean jj_3R_274() { + if (jj_3R_214()) { return true; } return false; } - private boolean jj_3R_245() { - if (jj_scan_token(FUNCTION)) { + private boolean jj_3R_192() { + if (jj_3R_216()) { return true; } Token xsp; while (true) { xsp = jj_scanpos; - if (jj_scan_token(1)) { + if (jj_3R_269()) { jj_scanpos = xsp; break; } } - xsp = jj_scanpos; - if (jj_3R_255()) { - jj_scanpos = xsp; - } - if (jj_scan_token(RPARAN)) { - return true; - } - return false; - } - - private boolean jj_3R_234() { - if (jj_3R_249()) { - return true; - } - return false; - } - - private boolean jj_3R_233() { - if (jj_3R_248()) { - return true; - } return false; } - private boolean jj_3R_188() { - if (jj_3R_207()) { + private boolean jj_3R_191() { + if (jj_3R_215()) { return true; } Token xsp; while (true) { xsp = jj_scanpos; - if (jj_3R_262()) { + if (jj_3R_268()) { jj_scanpos = xsp; break; } @@ -7337,21 +7496,21 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_232() { - if (jj_3R_247()) { + private boolean jj_3R_272() { + if (jj_3R_216()) { return true; } return false; } - private boolean jj_3R_187() { - if (jj_3R_206()) { + private boolean jj_3R_190() { + if (jj_3R_214()) { return true; } Token xsp; while (true) { xsp = jj_scanpos; - if (jj_3R_261()) { + if (jj_3R_267()) { jj_scanpos = xsp; break; } @@ -7359,36 +7518,21 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_265() { - if (jj_3R_207()) { - return true; - } - return false; - } - - private boolean jj_3R_186() { - if (jj_3R_205()) { + private boolean jj_3R_253() { + if (jj_scan_token(DOT)) { return true; } - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_260()) { - jj_scanpos = xsp; - break; - } - } return false; } - private boolean jj_3R_185() { - if (jj_3R_204()) { + private boolean jj_3R_189() { + if (jj_3R_213()) { return true; } Token xsp; while (true) { xsp = jj_scanpos; - if (jj_3R_259()) { + if (jj_3R_266()) { jj_scanpos = xsp; break; } @@ -7396,16 +7540,16 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_258() { + private boolean jj_3R_265() { Token xsp; xsp = jj_scanpos; - if (jj_3R_263()) { + if (jj_3R_270()) { jj_scanpos = xsp; - if (jj_3R_264()) { + if (jj_3R_271()) { jj_scanpos = xsp; - if (jj_3R_265()) { + if (jj_3R_272()) { jj_scanpos = xsp; - if (jj_3R_266()) { + if (jj_3R_273()) { return true; } } @@ -7414,21 +7558,33 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_263() { - if (jj_3R_204()) { + private boolean jj_3R_270() { + if (jj_3R_213()) { return true; } return false; } - private boolean jj_3R_184() { - if (jj_3R_203()) { + private boolean jj_3R_240() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_253()) { + jj_scanpos = xsp; + } + if (jj_scan_token(IDENT)) { + return true; + } + return false; + } + + private boolean jj_3R_188() { + if (jj_3R_212()) { return true; } Token xsp; while (true) { xsp = jj_scanpos; - if (jj_3R_258()) { + if (jj_3R_265()) { jj_scanpos = xsp; break; } @@ -7436,82 +7592,63 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_170() { + private boolean jj_3R_174() { Token xsp; xsp = jj_scanpos; - if (jj_3R_184()) { + if (jj_3R_188()) { jj_scanpos = xsp; - if (jj_3R_185()) { + if (jj_3R_189()) { jj_scanpos = xsp; - if (jj_3R_186()) { + if (jj_3R_190()) { jj_scanpos = xsp; - if (jj_3R_187()) { + if (jj_3R_191()) { jj_scanpos = xsp; - if (jj_3R_188()) { + if (jj_3R_192()) { return true; } } } - } - } - return false; - } - - private boolean jj_3R_236() { - if (jj_3R_201()) { - return true; - } - if (jj_3R_170()) { - return true; + } } return false; } - private boolean jj_3R_246() { - if (jj_scan_token(DOT)) { + private boolean jj_3R_239() { + if (jj_scan_token(STRING)) { return true; } return false; } - private boolean jj_3R_231() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_246()) { - jj_scanpos = xsp; - } - if (jj_scan_token(IDENT)) { + private boolean jj_3R_238() { + if (jj_3R_252()) { return true; } return false; } - private boolean jj_3R_230() { - if (jj_scan_token(STRING)) { + private boolean jj_3R_245() { + if (jj_3R_210()) { return true; } - return false; - } - - private boolean jj_3R_229() { - if (jj_3R_245()) { + if (jj_3R_174()) { return true; } return false; } - private boolean jj_3R_191() { + private boolean jj_3R_195() { Token xsp; xsp = jj_scanpos; - if (jj_3R_230()) { + if (jj_3R_239()) { jj_scanpos = xsp; - if (jj_3R_231()) { + if (jj_3R_240()) { jj_scanpos = xsp; - if (jj_3R_232()) { + if (jj_3R_241()) { jj_scanpos = xsp; - if (jj_3R_233()) { + if (jj_3R_242()) { jj_scanpos = xsp; - if (jj_3R_234()) { + if (jj_3R_243()) { return true; } } @@ -7521,312 +7658,298 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3_2() { - if (jj_3R_169()) { - return true; - } - if (jj_3R_170()) { + private boolean jj_3R_237() { + if (jj_scan_token(DIMEN)) { return true; } return false; } - private boolean jj_3_1() { - if (jj_3R_168()) { + private boolean jj_3R_236() { + if (jj_scan_token(KHZ)) { return true; } return false; } - private boolean jj_3R_193() { - if (jj_scan_token(COMMA)) { - return true; - } - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } - if (jj_3R_192()) { + private boolean jj_3R_235() { + if (jj_scan_token(HZ)) { return true; } return false; } - private boolean jj_3R_235() { - if (jj_3R_170()) { + private boolean jj_3R_234() { + if (jj_scan_token(MS)) { return true; } return false; } - private boolean jj_3R_228() { - if (jj_scan_token(DIMEN)) { + private boolean jj_3R_233() { + if (jj_scan_token(SECOND)) { return true; } return false; } - private boolean jj_3R_227() { - if (jj_scan_token(KHZ)) { + private boolean jj_3R_232() { + if (jj_scan_token(GRAD)) { return true; } return false; } - private boolean jj_3R_192() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_235()) { - jj_scanpos = xsp; - if (jj_3R_236()) { - return true; - } - } - while (true) { - xsp = jj_scanpos; - if (jj_3_2()) { - jj_scanpos = xsp; - break; - } - } - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } + private boolean jj_3R_231() { + if (jj_scan_token(RAD)) { + return true; } return false; } - private boolean jj_3R_226() { - if (jj_scan_token(HZ)) { + private boolean jj_3_2() { + if (jj_3R_173()) { return true; } - return false; - } - - private boolean jj_3R_225() { - if (jj_scan_token(MS)) { + if (jj_3R_174()) { return true; } return false; } - private boolean jj_3R_224() { - if (jj_scan_token(SECOND)) { + private boolean jj_3R_230() { + if (jj_scan_token(DEG)) { return true; } return false; } - private boolean jj_3R_223() { - if (jj_scan_token(GRAD)) { + private boolean jj_3_1() { + if (jj_3R_172()) { return true; } return false; } - private boolean jj_3R_222() { - if (jj_scan_token(RAD)) { + private boolean jj_3R_229() { + if (jj_scan_token(EXS)) { return true; } return false; } - private boolean jj_3R_174() { - if (jj_3R_192()) { + private boolean jj_3R_197() { + if (jj_scan_token(COMMA)) { return true; } Token xsp; while (true) { xsp = jj_scanpos; - if (jj_3R_193()) { + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } } - return false; - } - - private boolean jj_3R_221() { - if (jj_scan_token(DEG)) { + if (jj_3R_196()) { return true; } return false; } - private boolean jj_3R_220() { - if (jj_scan_token(EXS)) { + private boolean jj_3R_244() { + if (jj_3R_174()) { return true; } return false; } - private boolean jj_3R_219() { + private boolean jj_3R_228() { if (jj_scan_token(REM)) { return true; } return false; } - private boolean jj_3_4() { - if (jj_3R_171()) { + private boolean jj_3R_227() { + if (jj_scan_token(LEM)) { return true; } return false; } - private boolean jj_3R_218() { - if (jj_scan_token(LEM)) { - return true; + private boolean jj_3R_196() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_244()) { + jj_scanpos = xsp; + if (jj_3R_245()) { + return true; + } + } + while (true) { + xsp = jj_scanpos; + if (jj_3_2()) { + jj_scanpos = xsp; + break; + } + } + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { + jj_scanpos = xsp; + break; + } } return false; } - private boolean jj_3R_217() { + private boolean jj_3R_226() { if (jj_scan_token(EMS)) { return true; } return false; } - private boolean jj_3R_216() { + private boolean jj_3R_225() { if (jj_scan_token(PX)) { return true; } return false; } - private boolean jj_3R_215() { + private boolean jj_3R_224() { if (jj_scan_token(IN)) { return true; } return false; } - private boolean jj_3R_214() { + private boolean jj_3R_223() { if (jj_scan_token(PC)) { return true; } return false; } - private boolean jj_3R_213() { + private boolean jj_3R_222() { if (jj_scan_token(MM)) { return true; } return false; } - private boolean jj_3R_212() { + private boolean jj_3R_221() { if (jj_scan_token(CM)) { return true; } return false; } - private boolean jj_3R_251() { - if (jj_scan_token(INTERPOLATION)) { + private boolean jj_3R_178() { + if (jj_3R_196()) { return true; } + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_3R_197()) { + jj_scanpos = xsp; + break; + } + } return false; } - private boolean jj_3R_211() { + private boolean jj_3R_220() { if (jj_scan_token(PT)) { return true; } return false; } - private boolean jj_3R_210() { + private boolean jj_3R_219() { if (jj_scan_token(PERCENTAGE)) { return true; } return false; } - private boolean jj_3R_199() { - if (jj_3R_240()) { + private boolean jj_3_4() { + if (jj_3R_175()) { return true; } return false; } - private boolean jj_3_3() { - if (jj_3R_168()) { + private boolean jj_3R_202() { + if (jj_3R_247()) { return true; } return false; } - private boolean jj_3R_209() { + private boolean jj_3R_218() { if (jj_scan_token(NUMBER)) { return true; } return false; } - private boolean jj_3R_208() { - if (jj_3R_244()) { + private boolean jj_3R_217() { + if (jj_3R_251()) { return true; } return false; } - private boolean jj_3R_190() { + private boolean jj_3R_194() { Token xsp; xsp = jj_scanpos; - if (jj_3R_208()) { + if (jj_3R_217()) { jj_scanpos = xsp; } xsp = jj_scanpos; - if (jj_3R_209()) { + if (jj_3R_218()) { jj_scanpos = xsp; - if (jj_3R_210()) { + if (jj_3R_219()) { jj_scanpos = xsp; - if (jj_3R_211()) { + if (jj_3R_220()) { jj_scanpos = xsp; - if (jj_3R_212()) { + if (jj_3R_221()) { jj_scanpos = xsp; - if (jj_3R_213()) { + if (jj_3R_222()) { jj_scanpos = xsp; - if (jj_3R_214()) { + if (jj_3R_223()) { jj_scanpos = xsp; - if (jj_3R_215()) { + if (jj_3R_224()) { jj_scanpos = xsp; - if (jj_3R_216()) { + if (jj_3R_225()) { jj_scanpos = xsp; - if (jj_3R_217()) { + if (jj_3R_226()) { jj_scanpos = xsp; - if (jj_3R_218()) { + if (jj_3R_227()) { jj_scanpos = xsp; - if (jj_3R_219()) { + if (jj_3R_228()) { jj_scanpos = xsp; - if (jj_3R_220()) { + if (jj_3R_229()) { jj_scanpos = xsp; - if (jj_3R_221()) { + if (jj_3R_230()) { jj_scanpos = xsp; - if (jj_3R_222()) { + if (jj_3R_231()) { jj_scanpos = xsp; - if (jj_3R_223()) { + if (jj_3R_232()) { jj_scanpos = xsp; - if (jj_3R_224()) { + if (jj_3R_233()) { jj_scanpos = xsp; - if (jj_3R_225()) { + if (jj_3R_234()) { jj_scanpos = xsp; - if (jj_3R_226()) { + if (jj_3R_235()) { jj_scanpos = xsp; - if (jj_3R_227()) { + if (jj_3R_236()) { jj_scanpos = xsp; - if (jj_3R_228()) { + if (jj_3R_237()) { jj_scanpos = xsp; - if (jj_3R_229()) { + if (jj_3R_238()) { return true; } } @@ -7852,12 +7975,12 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_173() { + private boolean jj_3R_177() { Token xsp; xsp = jj_scanpos; - if (jj_3R_190()) { + if (jj_3R_194()) { jj_scanpos = xsp; - if (jj_3R_191()) { + if (jj_3R_195()) { return true; } } @@ -7871,7 +7994,68 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_181() { + private boolean jj_3R_254() { + if (jj_scan_token(HASH)) { + return true; + } + return false; + } + + private boolean jj_3R_247() { + if (jj_3R_182()) { + return true; + } + return false; + } + + private boolean jj_3R_258() { + if (jj_scan_token(INTERPOLATION)) { + return true; + } + return false; + } + + private boolean jj_3R_255() { + if (jj_scan_token(URL)) { + return true; + } + return false; + } + + private boolean jj_3_3() { + if (jj_3R_172()) { + return true; + } + return false; + } + + private boolean jj_3R_201() { + if (jj_3R_177()) { + return true; + } + return false; + } + + private boolean jj_3R_180() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_201()) { + jj_scanpos = xsp; + if (jj_3R_202()) { + return true; + } + } + return false; + } + + private boolean jj_3_9() { + if (jj_3R_181()) { + return true; + } + return false; + } + + private boolean jj_3R_185() { if (jj_scan_token(SEMICOLON)) { return true; } @@ -7886,13 +8070,6 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_247() { - if (jj_scan_token(HASH)) { - return true; - } - return false; - } - /** Generated Token Manager. */ public ParserTokenManager token_source; /** Current token. */ @@ -7903,7 +8080,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { private Token jj_scanpos, jj_lastpos; private int jj_la; private int jj_gen; - final private int[] jj_la1 = new int[251]; + final private int[] jj_la1 = new int[254]; static private int[] jj_la1_0; static private int[] jj_la1_1; static private int[] jj_la1_2; @@ -7917,117 +8094,120 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { private static void jj_la1_init_0() { jj_la1_0 = new int[] { 0x0, 0xc02, 0xc02, 0x0, 0xc00, 0x2, 0x2, 0x2, - 0xd3100000, 0x0, 0xc00, 0x2, 0xc00, 0x2, 0x0, 0x2, 0x0, 0x2, - 0x2, 0x0, 0x0, 0x2, 0x2, 0x0, 0x2, 0x0, 0x2, 0x2, 0xd3100000, - 0xd3100000, 0x2, 0x2, 0x2, 0xd3f45400, 0xd3f45400, 0x2, + 0x53100000, 0x0, 0xc00, 0x2, 0xc00, 0x2, 0x0, 0x2, 0x0, 0x2, + 0x2, 0x0, 0x0, 0x2, 0x2, 0x0, 0x2, 0x0, 0x2, 0x2, 0x53100000, + 0x53100000, 0x2, 0x2, 0x2, 0x53f45400, 0x53f45400, 0x2, 0x400000, 0x2, 0x2, 0x2, 0x2, 0x0, 0x0, 0x2, 0x0, 0x800000, 0x2, 0x0, 0x2, 0x2, 0x2, 0x2, 0x0, 0x800000, 0x2, 0x0, 0x2, 0xe45400, 0x3100000, 0x3100002, 0x3100000, 0x2, 0x2, 0x480002, - 0x480002, 0x2, 0x0, 0x0, 0x2, 0x2, 0x2, 0x2, 0xd3100000, - 0xd3100000, 0x2, 0x400000, 0x2, 0xd3100000, 0x2, 0x10000000, + 0x480002, 0x2, 0x0, 0x0, 0x2, 0x2, 0x2, 0x2, 0x53100000, + 0x53100000, 0x2, 0x400000, 0x2, 0x53100000, 0x2, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, - 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0xd0000000, - 0x0, 0x0, 0x0, 0x0, 0xc0000000, 0x2, 0x2, 0xfc000, 0x2, 0x0, + 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x50000000, + 0x0, 0x0, 0x0, 0x0, 0x40000000, 0x2, 0x2, 0xfc000, 0x2, 0x0, 0x2, 0xfc000, 0x0, 0x2, 0x0, 0x2, 0x0, 0x2, 0x800000, 0x0, - 0xd3100000, 0x0, 0x4d380002, 0x2, 0xd3100000, 0x2, 0x0, 0x2, - 0x4d380002, 0x0, 0x2, 0xd3100000, 0x2, 0x4d380002, 0x2, 0x2, - 0x2, 0x0, 0x2, 0xd3100000, 0x2, 0x2, 0x400000, 0x2, 0x2, 0x2, - 0x2, 0x0, 0x2, 0xd3100000, 0xd3100000, 0x2, 0x400000, 0x2, 0x2, + 0x53100000, 0x0, 0x4d380002, 0x2, 0x53100000, 0x2, 0x0, 0x2, + 0x4d380002, 0x0, 0x2, 0x53100000, 0x2, 0x4d380002, 0x2, 0x2, + 0x2, 0x0, 0x2, 0x53100000, 0x2, 0x2, 0x400000, 0x2, 0x2, 0x2, + 0x2, 0x0, 0x2, 0x53100000, 0x53100000, 0x2, 0x400000, 0x2, 0x2, 0x2, 0x400000, 0x0, 0x0, 0x300000, 0x2, 0x0, 0x400000, 0x2, 0x300000, 0x2, 0x0, 0x2, 0x0, 0x2, 0x800000, 0x2, 0x2, 0x0, 0x2, 0x0, 0x2, 0x2, 0x2, 0x400000, 0x2, 0x2, 0x2, 0x2, 0x2, 0x0, 0x2, 0x2, 0x2, 0x400000, 0x2, 0x2, 0x2, 0x0, 0x2, 0x2, 0x2, 0x400000, 0x2, 0x2, 0x0, 0x2, 0x0, 0x2, 0x2, 0x2, 0x400000, 0x0, 0x2, 0x2, 0x0, 0x2, 0x2, 0x2, 0x800000, 0x2, - 0x2, 0x0, 0x800000, 0x2, 0x0, 0x2, 0x0, 0xd3100000, 0x2, 0x0, + 0x2, 0x0, 0x800000, 0x2, 0x0, 0x2, 0x0, 0x53100000, 0x2, 0x0, 0x2, 0x0, 0x800000, 0x2, 0x0, 0x2, 0x301000, 0x2, 0x0, 0x2, - 0x2, 0x2, 0x2, 0x8400000, 0x8400000, 0x300000, 0x300000, - 0x300000, 0x0, 0x0, 0x0, 0x300000, 0x2, 0x2, 0x300000, 0x2, - 0xd3100000, 0x2, 0x2, 0x2, 0x0, 0x800000, 0x2, 0x0, 0x2, }; + 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0xc8700000, 0x300000, + 0x300000, 0x300000, 0x0, 0x0, 0x0, 0x300000, 0x2, 0x2, + 0x300000, 0x2, 0x53100000, 0x2, 0x2, 0x2, 0x0, 0x800000, 0x2, + 0x0, 0x2, }; } private static void jj_la1_init_1() { jj_la1_1 = new int[] { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0xacc00181, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x100, 0x100, 0x0, 0x0, 0x240000, 0x0, 0x240000, 0x0, 0x0, - 0xac800181, 0xac800181, 0x0, 0x0, 0x0, 0xc000381, 0xc000381, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80, 0x0, 0x100, 0x0, 0x0, - 0x100, 0x0, 0x0, 0x0, 0x0, 0x100, 0x0, 0x0, 0x100, 0x0, 0x200, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x185, 0x185, 0x0, 0x100, 0x100, 0x0, - 0x0, 0x0, 0x0, 0xac800181, 0xac800181, 0x0, 0x0, 0x0, 0x181, - 0x0, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, - 0x81, 0x181, 0x100, 0x100, 0x100, 0x100, 0x100, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0xa0000000, 0xc800181, 0x0, 0x7e, 0x0, 0xc800181, 0x0, 0x0, - 0x0, 0x7e, 0x0, 0x0, 0xc800181, 0x0, 0x7e, 0x0, 0x0, 0x0, 0x0, - 0x0, 0xc800181, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x100, 0x0, - 0xac800181, 0xac800181, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80, - 0x80, 0x81, 0x0, 0x80, 0x0, 0x0, 0x81, 0x0, 0x80, 0x0, 0x100, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, - 0x0, 0x0, 0xc000000, 0x0, 0x0, 0xc0000, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x100, 0x0, 0x0, 0x100, 0x0, 0xc000000, 0x181, 0x0, - 0x0, 0x0, 0x100, 0x0, 0x0, 0x100, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x1, 0x1, 0x1, 0x0, - 0x0, 0x1, 0x0, 0xc000181, 0x0, 0x0, 0x0, 0x100, 0x0, 0x0, - 0x100, 0x0, }; + 0x59800303, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x200, 0x200, 0x0, 0x0, 0x480000, 0x0, 0x480000, 0x0, 0x0, + 0x59000303, 0x59000303, 0x0, 0x0, 0x0, 0x18000703, 0x18000703, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x100, 0x0, 0x200, 0x0, 0x0, + 0x200, 0x0, 0x0, 0x0, 0x0, 0x200, 0x0, 0x0, 0x200, 0x0, 0x400, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x30a, 0x30a, 0x0, 0x200, 0x200, 0x0, + 0x0, 0x0, 0x0, 0x59000303, 0x59000303, 0x0, 0x0, 0x0, 0x303, + 0x0, 0x102, 0x102, 0x102, 0x102, 0x102, 0x102, 0x102, 0x102, + 0x102, 0x102, 0x303, 0x200, 0x200, 0x200, 0x200, 0x201, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x100, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x40000000, 0x19000303, 0x0, 0xfc, 0x0, 0x19000303, 0x0, + 0x0, 0x0, 0xfc, 0x0, 0x0, 0x19000303, 0x0, 0xfc, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x19000303, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x200, + 0x0, 0x59000303, 0x59000303, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x100, 0x100, 0x102, 0x0, 0x100, 0x0, 0x0, 0x102, 0x0, 0x100, + 0x0, 0x200, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8, + 0x0, 0x0, 0x0, 0x0, 0x18000000, 0x0, 0x0, 0x180000, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x200, 0x0, 0x0, 0x200, 0x0, 0x18000000, + 0x303, 0x0, 0x0, 0x0, 0x200, 0x0, 0x0, 0x200, 0x0, 0x2, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2, + 0x0, 0x0, 0x2, 0x2, 0x2, 0x0, 0x0, 0x2, 0x0, 0x18000303, 0x0, + 0x0, 0x0, 0x200, 0x0, 0x0, 0x200, 0x0, }; } private static void jj_la1_init_2() { - jj_la1_2 = new int[] { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x100, - 0x1000, 0x0, 0x0, 0x0, 0x0, 0x880, 0x0, 0x100, 0x0, 0x0, 0x100, - 0x100, 0x0, 0x0, 0x2000, 0x0, 0x2000, 0x0, 0x0, 0x1112, 0x1112, - 0x0, 0x0, 0x0, 0x2b80, 0x2b80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x100, 0x0, 0x0, 0x100, 0x0, 0x0, 0x100, 0x0, 0x0, 0x0, 0x0, - 0x100, 0x0, 0x0, 0x100, 0x0, 0x2a80, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x380, 0x380, 0x0, 0x100, 0x100, 0x0, 0x0, 0x0, 0x0, 0x1112, - 0x1112, 0x0, 0x0, 0x0, 0x100, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x100, 0x100, 0x100, 0x100, 0x100, - 0x100, 0x0, 0x0, 0x0, 0x0, 0x180, 0x0, 0x0, 0x0, 0x0, 0x100, - 0x0, 0x40, 0x0, 0x0, 0x0, 0x102, 0x1000, 0x1300, 0x0, 0x1102, - 0x0, 0x1, 0x0, 0x1300, 0x20, 0x0, 0x1102, 0x0, 0x1300, 0x0, - 0x0, 0x0, 0x1100, 0x0, 0x1102, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x100, 0x0, 0x1102, 0x1102, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x1000, 0x1000, 0xfffffb80, 0x0, 0x0, 0x0, 0x0, 0xfffffb80, - 0x0, 0x0, 0x0, 0x1100, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + jj_la1_2 = new int[] { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x201, + 0x2000, 0x0, 0x0, 0x0, 0x0, 0x1100, 0x0, 0x200, 0x0, 0x0, + 0x200, 0x200, 0x0, 0x0, 0x4000, 0x0, 0x4000, 0x0, 0x0, 0x2225, + 0x2225, 0x0, 0x0, 0x0, 0x5700, 0x5700, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x200, 0x0, 0x0, 0x200, 0x0, 0x0, 0x200, 0x0, 0x0, 0x0, + 0x0, 0x200, 0x0, 0x0, 0x200, 0x0, 0x5500, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x700, 0x700, 0x0, 0x200, 0x200, 0x0, 0x0, 0x0, 0x0, + 0x2225, 0x2225, 0x0, 0x0, 0x0, 0x200, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x200, 0x200, 0x200, 0x200, + 0x200, 0x200, 0x0, 0x0, 0x0, 0x0, 0x300, 0x0, 0x0, 0x0, 0x0, + 0x200, 0x0, 0x80, 0x0, 0x0, 0x1, 0x204, 0x2000, 0x2600, 0x0, + 0x2204, 0x0, 0x2, 0x0, 0x2600, 0x40, 0x0, 0x2204, 0x0, 0x2600, + 0x0, 0x0, 0x0, 0x2200, 0x0, 0x2204, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x200, 0x0, 0x2205, 0x2205, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x2000, 0x2000, 0xfffff700, 0x0, 0x0, 0x0, 0x0, + 0xfffff700, 0x0, 0x0, 0x0, 0x2200, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x100, 0x0, 0x0, 0x100, 0x0, 0x0, 0x100, - 0x0, 0x0, 0x0, 0x100, 0x0, 0x0, 0x100, 0x0, 0xfffffb80, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xfffffb80, 0x0, - 0xffffe200, 0x0, 0x980, 0xffffeb80, 0x0, 0x0, 0xfffffb80, 0x0, - 0x100, 0x0, 0x0, 0x0, 0x100, 0x0, 0x0, 0x100, 0x0, }; + 0x0, 0x0, 0x2000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x200, 0x0, 0x0, 0x200, 0x0, + 0x0, 0x200, 0x0, 0x0, 0x0, 0x200, 0x0, 0x0, 0x200, 0x0, + 0xfffff700, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0xfffff700, 0x0, 0xffffc400, 0x0, 0x1300, 0xffffd700, + 0x0, 0x0, 0xfffff700, 0x0, 0x200, 0x0, 0x0, 0x0, 0x200, 0x0, + 0x0, 0x200, 0x0, }; } private static void jj_la1_init_3() { - jj_la1_3 = new int[] { 0x8, 0x80, 0x80, 0x2, 0x80, 0x0, 0x0, 0x0, 0x75, - 0x0, 0x80, 0x0, 0x80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x45, 0x45, 0x0, 0x0, 0x0, - 0xc401bf, 0xc401bf, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + jj_la1_3 = new int[] { 0x10, 0x100, 0x100, 0x4, 0x100, 0x0, 0x0, 0x0, + 0xea, 0x0, 0x100, 0x0, 0x100, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8a, 0x8a, 0x0, + 0x0, 0x0, 0x188037e, 0x188037e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0xc401be, 0x0, 0x0, 0x0, 0x0, 0x0, 0x400000, - 0x400000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x45, 0x45, 0x0, - 0x0, 0x0, 0x1, 0x0, 0x1, 0x1, 0x0, 0x0, 0x1, 0x1, 0x1, 0x1, - 0x1, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x400000, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x45, 0x0, 0x200000, 0x0, 0x45, 0x0, 0x0, 0x0, 0x200000, 0x0, - 0x0, 0x45, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x45, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x400000, 0x0, 0x75, 0x75, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x440001, 0x0, 0x0, 0x0, 0x0, - 0x440001, 0x0, 0x0, 0x0, 0x400000, 0x0, 0x0, 0x0, 0x0, - 0x380000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x188037c, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x800000, 0x800000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8a, + 0x8a, 0x0, 0x0, 0x0, 0x2, 0x0, 0x2, 0x2, 0x0, 0x0, 0x2, 0x2, + 0x2, 0x2, 0x2, 0x2, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x800000, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x8a, 0x0, 0x400000, 0x0, 0x8a, 0x0, 0x0, 0x0, + 0x400000, 0x0, 0x0, 0x8a, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x8a, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x800000, 0x0, 0xea, + 0xea, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x880003, 0x0, + 0x0, 0x0, 0x0, 0x880003, 0x0, 0x0, 0x0, 0x800000, 0x0, 0x0, + 0x0, 0x0, 0x700000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x1, 0x0, 0x100, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x440001, 0x0, 0x100, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x440001, 0x0, 0x400000, 0x0, 0x40001, 0x440001, 0x0, 0x0, - 0x440001, 0x0, 0x37, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, }; + 0x0, 0x0, 0x0, 0x0, 0x0, 0x2, 0x0, 0x200, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x880003, 0x0, 0x200, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x880003, 0x0, 0x800001, 0x0, 0x80002, + 0x880003, 0x0, 0x0, 0x880003, 0x0, 0x6e, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, }; } - final private JJCalls[] jj_2_rtns = new JJCalls[8]; + final private JJCalls[] jj_2_rtns = new JJCalls[9]; private boolean jj_rescan = false; private int jj_gc = 0; @@ -8037,7 +8217,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { token = new Token(); jj_ntk = -1; jj_gen = 0; - for (int i = 0; i < 251; i++) { + for (int i = 0; i < 254; i++) { jj_la1[i] = -1; } for (int i = 0; i < jj_2_rtns.length; i++) { @@ -8051,7 +8231,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { token = new Token(); jj_ntk = -1; jj_gen = 0; - for (int i = 0; i < 251; i++) { + for (int i = 0; i < 254; i++) { jj_la1[i] = -1; } for (int i = 0; i < jj_2_rtns.length; i++) { @@ -8065,7 +8245,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { token = new Token(); jj_ntk = -1; jj_gen = 0; - for (int i = 0; i < 251; i++) { + for (int i = 0; i < 254; i++) { jj_la1[i] = -1; } for (int i = 0; i < jj_2_rtns.length; i++) { @@ -8079,7 +8259,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { token = new Token(); jj_ntk = -1; jj_gen = 0; - for (int i = 0; i < 251; i++) { + for (int i = 0; i < 254; i++) { jj_la1[i] = -1; } for (int i = 0; i < jj_2_rtns.length; i++) { @@ -8225,12 +8405,12 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { /** Generate ParseException. */ public ParseException generateParseException() { jj_expentries.clear(); - boolean[] la1tokens = new boolean[120]; + boolean[] la1tokens = new boolean[121]; if (jj_kind >= 0) { la1tokens[jj_kind] = true; jj_kind = -1; } - for (int i = 0; i < 251; i++) { + for (int i = 0; i < 254; i++) { if (jj_la1[i] == jj_gen) { for (int j = 0; j < 32; j++) { if ((jj_la1_0[i] & (1 << j)) != 0) { @@ -8248,7 +8428,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } } } - for (int i = 0; i < 120; i++) { + for (int i = 0; i < 121; i++) { if (la1tokens[i]) { jj_expentry = new int[1]; jj_expentry[0] = i; @@ -8275,7 +8455,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { private void jj_rescan_token() { jj_rescan = true; - for (int i = 0; i < 8; i++) { + for (int i = 0; i < 9; i++) { try { JJCalls p = jj_2_rtns[i]; do { @@ -8307,6 +8487,9 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { case 7: jj_3_8(); break; + case 8: + jj_3_9(); + break; } } p = p.next; diff --git a/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.jj b/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.jj index 3798947d1d..636ecad49b 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.jj +++ b/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.jj @@ -534,6 +534,7 @@ TOKEN : | < LBRACKET : "[" > | < RBRACKET : "]" > | < ANY : "*" > + | < MOD : "%" > | < PARENT : "&" > | < DOT : "." > | < LPARAN : "(" > @@ -2193,12 +2194,40 @@ boolean guarded() : LexicalUnitImpl operator(LexicalUnitImpl prev) : {Token n;} { -n="/" ( )* { return LexicalUnitImpl.createSlash(n.beginLine, - n.beginColumn, - prev); } -| n="," ( )* { return LexicalUnitImpl.createComma(n.beginLine, - n.beginColumn, - prev); } +/* (comments copied from basic_arithmetics.scss) +*supports: +* 1. standard arithmetic operations (+, -, *, /, %) +* 2. / is treated as css operator, unless one of its operands is variable or there is another binary arithmetic operator +*limits: +* 1. cannot mix arithmetic and css operations, e.g. "margin: 1px + 3px 2px" will fail +* 2. space between add and minus operator and their following operand is mandatory. e.g. "1 + 2" is valid, "1+2" is not +* 3. parenthesis is not supported now. +*/ +n="," ( )* { return LexicalUnitImpl.createComma(n.beginLine, + n.beginColumn, + prev); } +|n="/" ( )* { return LexicalUnitImpl.createSlash(n.beginLine, + n.beginColumn, + prev); } +| n="*" ( )* { return LexicalUnitImpl.createMultiply(n.beginLine, + n.beginColumn, + prev); } +| n="%" ( )* { return LexicalUnitImpl.createModulo(n.beginLine, + n.beginColumn, + prev); } +/* +* for '+', since it can be either a binary operator or an unary operator, +* which is ambiguous. To avoid this, the binary operator '+' always has +* a space before the following term. so '2+3' is not a valid binary expression, +* but '2 + 3' is. The same for '-' operator. +*/ + +| n="+" ( )+{ return LexicalUnitImpl.createAdd(n.beginLine, + n.beginColumn, + prev); } +| n="-" ( )+{ return LexicalUnitImpl.createMinus(n.beginLine, + n.beginColumn, + prev); } } /** @@ -2211,7 +2240,7 @@ LexicalUnitImpl expr() : } { first=term(null){ res = first; } - ( LOOKAHEAD(2) ( res=operator(res) )? res=term(res))* + ( LOOKAHEAD(2) ( LOOKAHEAD(2) res=operator(res) )? res=term(res))* { return first; } } diff --git a/theme-compiler/src/com/vaadin/sass/internal/parser/ParserConstants.java b/theme-compiler/src/com/vaadin/sass/internal/parser/ParserConstants.java index c55a13265f..8b944b5973 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/parser/ParserConstants.java +++ b/theme-compiler/src/com/vaadin/sass/internal/parser/ParserConstants.java @@ -73,183 +73,185 @@ public interface ParserConstants { /** RegularExpression Id. */ int ANY = 30; /** RegularExpression Id. */ - int PARENT = 31; + int MOD = 31; /** RegularExpression Id. */ - int DOT = 32; + int PARENT = 32; /** RegularExpression Id. */ - int LPARAN = 33; + int DOT = 33; /** RegularExpression Id. */ - int RPARAN = 34; + int LPARAN = 34; /** RegularExpression Id. */ - int COMPARE = 35; + int RPARAN = 35; /** RegularExpression Id. */ - int OR = 36; + int COMPARE = 36; /** RegularExpression Id. */ - int AND = 37; + int OR = 37; /** RegularExpression Id. */ - int NOT_EQ = 38; + int AND = 38; /** RegularExpression Id. */ - int COLON = 39; + int NOT_EQ = 39; /** RegularExpression Id. */ - int INTERPOLATION = 40; + int COLON = 40; /** RegularExpression Id. */ - int NONASCII = 41; + int INTERPOLATION = 41; /** RegularExpression Id. */ - int H = 42; + int NONASCII = 42; /** RegularExpression Id. */ - int UNICODE = 43; + int H = 43; /** RegularExpression Id. */ - int ESCAPE = 44; + int UNICODE = 44; /** RegularExpression Id. */ - int NMSTART = 45; + int ESCAPE = 45; /** RegularExpression Id. */ - int NMCHAR = 46; + int NMSTART = 46; /** RegularExpression Id. */ - int STRINGCHAR = 47; + int NMCHAR = 47; /** RegularExpression Id. */ - int D = 48; + int STRINGCHAR = 48; /** RegularExpression Id. */ - int NAME = 49; + int D = 49; /** RegularExpression Id. */ - int TO = 50; + int NAME = 50; /** RegularExpression Id. */ - int THROUGH = 51; + int TO = 51; /** RegularExpression Id. */ - int EACH_IN = 52; + int THROUGH = 52; /** RegularExpression Id. */ - int FROM = 53; + int EACH_IN = 53; /** RegularExpression Id. */ - int MIXIN_SYM = 54; + int FROM = 54; /** RegularExpression Id. */ - int INCLUDE_SYM = 55; + int MIXIN_SYM = 55; /** RegularExpression Id. */ - int FUNCTION_SYM = 56; + int INCLUDE_SYM = 56; /** RegularExpression Id. */ - int RETURN_SYM = 57; + int FUNCTION_SYM = 57; /** RegularExpression Id. */ - int DEBUG_SYM = 58; + int RETURN_SYM = 58; /** RegularExpression Id. */ - int WARN_SYM = 59; + int DEBUG_SYM = 59; /** RegularExpression Id. */ - int FOR_SYM = 60; + int WARN_SYM = 60; /** RegularExpression Id. */ - int EACH_SYM = 61; + int FOR_SYM = 61; /** RegularExpression Id. */ - int WHILE_SYM = 62; + int EACH_SYM = 62; /** RegularExpression Id. */ - int IF_SYM = 63; + int WHILE_SYM = 63; /** RegularExpression Id. */ - int ELSE_SYM = 64; + int IF_SYM = 64; /** RegularExpression Id. */ - int EXTEND_SYM = 65; + int ELSE_SYM = 65; /** RegularExpression Id. */ - int MOZ_DOCUMENT_SYM = 66; + int EXTEND_SYM = 66; /** RegularExpression Id. */ - int SUPPORTS_SYM = 67; + int MOZ_DOCUMENT_SYM = 67; /** RegularExpression Id. */ - int MICROSOFT_RULE = 68; + int SUPPORTS_SYM = 68; /** RegularExpression Id. */ - int IF = 69; + int MICROSOFT_RULE = 69; /** RegularExpression Id. */ - int GUARDED_SYM = 70; + int IF = 70; /** RegularExpression Id. */ - int STRING = 71; + int GUARDED_SYM = 71; /** RegularExpression Id. */ - int IDENT = 72; + int STRING = 72; /** RegularExpression Id. */ - int NUMBER = 73; + int IDENT = 73; /** RegularExpression Id. */ - int _URL = 74; + int NUMBER = 74; /** RegularExpression Id. */ - int URL = 75; + int _URL = 75; /** RegularExpression Id. */ - int VARIABLE = 76; + int URL = 76; /** RegularExpression Id. */ - int PERCENTAGE = 77; + int VARIABLE = 77; /** RegularExpression Id. */ - int PT = 78; + int PERCENTAGE = 78; /** RegularExpression Id. */ - int MM = 79; + int PT = 79; /** RegularExpression Id. */ - int CM = 80; + int MM = 80; /** RegularExpression Id. */ - int PC = 81; + int CM = 81; /** RegularExpression Id. */ - int IN = 82; + int PC = 82; /** RegularExpression Id. */ - int PX = 83; + int IN = 83; /** RegularExpression Id. */ - int EMS = 84; + int PX = 84; /** RegularExpression Id. */ - int LEM = 85; + int EMS = 85; /** RegularExpression Id. */ - int REM = 86; + int LEM = 86; /** RegularExpression Id. */ - int EXS = 87; + int REM = 87; /** RegularExpression Id. */ - int DEG = 88; + int EXS = 88; /** RegularExpression Id. */ - int RAD = 89; + int DEG = 89; /** RegularExpression Id. */ - int GRAD = 90; + int RAD = 90; /** RegularExpression Id. */ - int MS = 91; + int GRAD = 91; /** RegularExpression Id. */ - int SECOND = 92; + int MS = 92; /** RegularExpression Id. */ - int HZ = 93; + int SECOND = 93; /** RegularExpression Id. */ - int KHZ = 94; + int HZ = 94; /** RegularExpression Id. */ - int DIMEN = 95; + int KHZ = 95; /** RegularExpression Id. */ - int HASH = 96; + int DIMEN = 96; /** RegularExpression Id. */ - int IMPORT_SYM = 97; + int HASH = 97; /** RegularExpression Id. */ - int MEDIA_SYM = 98; + int IMPORT_SYM = 98; /** RegularExpression Id. */ - int CHARSET_SYM = 99; + int MEDIA_SYM = 99; /** RegularExpression Id. */ - int PAGE_SYM = 100; + int CHARSET_SYM = 100; /** RegularExpression Id. */ - int FONT_FACE_SYM = 101; + int PAGE_SYM = 101; /** RegularExpression Id. */ - int KEY_FRAME_SYM = 102; + int FONT_FACE_SYM = 102; /** RegularExpression Id. */ - int ATKEYWORD = 103; + int KEY_FRAME_SYM = 103; /** RegularExpression Id. */ - int IMPORTANT_SYM = 104; + int ATKEYWORD = 104; /** RegularExpression Id. */ - int RANGE0 = 105; + int IMPORTANT_SYM = 105; /** RegularExpression Id. */ - int RANGE1 = 106; + int RANGE0 = 106; /** RegularExpression Id. */ - int RANGE2 = 107; + int RANGE1 = 107; /** RegularExpression Id. */ - int RANGE3 = 108; + int RANGE2 = 108; /** RegularExpression Id. */ - int RANGE4 = 109; + int RANGE3 = 109; /** RegularExpression Id. */ - int RANGE5 = 110; + int RANGE4 = 110; /** RegularExpression Id. */ - int RANGE6 = 111; + int RANGE5 = 111; /** RegularExpression Id. */ - int RANGE = 112; + int RANGE6 = 112; /** RegularExpression Id. */ - int UNI = 113; + int RANGE = 113; /** RegularExpression Id. */ - int UNICODERANGE = 114; + int UNI = 114; /** RegularExpression Id. */ - int REMOVE = 115; + int UNICODERANGE = 115; /** RegularExpression Id. */ - int APPEND = 116; + int REMOVE = 116; /** RegularExpression Id. */ - int CONTAINS = 117; + int APPEND = 117; /** RegularExpression Id. */ - int FUNCTION = 118; + int CONTAINS = 118; /** RegularExpression Id. */ - int UNKNOWN = 119; + int FUNCTION = 119; + /** RegularExpression Id. */ + int UNKNOWN = 120; /** Lexical state. */ int DEFAULT = 0; @@ -266,8 +268,8 @@ public interface ParserConstants { "\"*/\"", "", "\"\"", "\"{\"", "\"}\"", "\"|=\"", "\"^=\"", "\"$=\"", "\"*=\"", "\"~=\"", "\"=\"", "\"+\"", "\"-\"", "\",\"", "\";\"", "\">\"", "\"~\"", "\"<\"", - "\"/\"", "\"[\"", "\"]\"", "\"*\"", "\"&\"", "\".\"", "\"(\"", - "\")\"", "\"==\"", "\"||\"", "\"&&\"", "\"!=\"", "\":\"", + "\"/\"", "\"[\"", "\"]\"", "\"*\"", "\"%\"", "\"&\"", "\".\"", + "\"(\"", "\")\"", "\"==\"", "\"||\"", "\"&&\"", "\"!=\"", "\":\"", "", "", "", "", "", "", "", "", "", "", "\"to\"", "\"through\"", "\"in\"", "\"from\"", "\"@mixin\"", "\"@include\"", diff --git a/theme-compiler/src/com/vaadin/sass/internal/parser/ParserTokenManager.java b/theme-compiler/src/com/vaadin/sass/internal/parser/ParserTokenManager.java index 9ff123c808..030edb4cf0 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/parser/ParserTokenManager.java +++ b/theme-compiler/src/com/vaadin/sass/internal/parser/ParserTokenManager.java @@ -31,12 +31,12 @@ public class ParserTokenManager implements ParserConstants { long active1) { switch (pos) { case 0: - if ((active0 & 0x1c000000000000L) != 0L || (active1 & 0x20L) != 0L) { - jjmatchedKind = 72; - return 517; + if ((active0 & 0x40000000000000L) != 0L) { + jjmatchedKind = 73; + return 33; } - if ((active0 & 0x4000000000L) != 0L) { - return 518; + if ((active0 & 0x8000000000L) != 0L) { + return 517; } if ((active0 & 0x10000L) != 0L) { return 79; @@ -44,196 +44,196 @@ public class ParserTokenManager implements ParserConstants { if ((active0 & 0x200800L) != 0L) { return 42; } - if ((active0 & 0x20000000000000L) != 0L) { - jjmatchedKind = 72; - return 33; + if ((active0 & 0x38000000000000L) != 0L || (active1 & 0x40L) != 0L) { + jjmatchedKind = 73; + return 518; } if ((active0 & 0x8000044L) != 0L) { return 3; } - if ((active0 & 0xffc0000000000000L) != 0L - || (active1 & 0x3e0000000fL) != 0L) { + if ((active0 & 0xff80000000000000L) != 0L + || (active1 & 0x7c0000001fL) != 0L) { return 166; } - if ((active0 & 0x100000000L) != 0L) { + if ((active0 & 0x200000000L) != 0L) { return 519; } return -1; case 1: - if ((active1 & 0x4L) != 0L) { - return 178; - } - if ((active0 & 0xffc0000000000000L) != 0L - || (active1 & 0x3e0000000bL) != 0L) { - jjmatchedKind = 103; + if ((active0 & 0x50000000000000L) != 0L) { + jjmatchedKind = 73; jjmatchedPos = 1; - return 520; + return 518; + } + if ((active1 & 0x8L) != 0L) { + return 178; } if ((active0 & 0x40L) != 0L) { return 1; } - if ((active0 & 0x28000000000000L) != 0L) { - jjmatchedKind = 72; - jjmatchedPos = 1; - return 517; + if ((active0 & 0x28000000000000L) != 0L || (active1 & 0x40L) != 0L) { + return 518; } - if ((active0 & 0x14000000000000L) != 0L || (active1 & 0x20L) != 0L) { - return 517; + if ((active0 & 0xff80000000000000L) != 0L + || (active1 & 0x7c00000017L) != 0L) { + jjmatchedKind = 104; + jjmatchedPos = 1; + return 520; } return -1; case 2: - if ((active0 & 0x7fc0000000000000L) != 0L - || (active1 & 0x3e0000000bL) != 0L) { - jjmatchedKind = 103; + if ((active1 & 0x8L) != 0L) { + jjmatchedKind = 104; jjmatchedPos = 2; - return 520; + return 177; } - if ((active0 & 0x8000000000000000L) != 0L) { + if ((active1 & 0x1L) != 0L) { return 520; } - if ((active0 & 0x28000000000000L) != 0L) { - jjmatchedKind = 72; + if ((active0 & 0x50000000000000L) != 0L) { + jjmatchedKind = 73; jjmatchedPos = 2; - return 517; + return 518; } - if ((active1 & 0x4L) != 0L) { - jjmatchedKind = 103; + if ((active0 & 0xff80000000000000L) != 0L + || (active1 & 0x7c00000016L) != 0L) { + jjmatchedKind = 104; jjmatchedPos = 2; - return 177; + return 520; } return -1; case 3: - if ((active0 & 0x6fc0000000000000L) != 0L - || (active1 & 0x3e0000000bL) != 0L) { - jjmatchedKind = 103; + if ((active1 & 0x8L) != 0L) { + jjmatchedKind = 104; jjmatchedPos = 3; - return 520; + return 176; } - if ((active0 & 0x1000000000000000L) != 0L) { + if ((active0 & 0x2000000000000000L) != 0L) { return 520; } - if ((active1 & 0x4L) != 0L) { - jjmatchedKind = 103; + if ((active0 & 0xdf80000000000000L) != 0L + || (active1 & 0x7c00000016L) != 0L) { + jjmatchedKind = 104; jjmatchedPos = 3; - return 176; + return 520; } - if ((active0 & 0x20000000000000L) != 0L) { - return 517; + if ((active0 & 0x40000000000000L) != 0L) { + return 518; } - if ((active0 & 0x8000000000000L) != 0L) { - jjmatchedKind = 72; + if ((active0 & 0x10000000000000L) != 0L) { + jjmatchedKind = 73; jjmatchedPos = 3; - return 517; + return 518; } return -1; case 4: - if ((active1 & 0x4L) != 0L) { - jjmatchedKind = 103; - jjmatchedPos = 4; - return 175; + if ((active0 & 0x5000000000000000L) != 0L + || (active1 & 0x2000000002L) != 0L) { + return 520; } - if ((active0 & 0x8000000000000L) != 0L) { - jjmatchedKind = 72; + if ((active0 & 0x8f80000000000000L) != 0L + || (active1 & 0x5c00000014L) != 0L) { + jjmatchedKind = 104; jjmatchedPos = 4; - return 517; - } - if ((active0 & 0x2800000000000000L) != 0L - || (active1 & 0x1000000001L) != 0L) { return 520; } - if ((active0 & 0x47c0000000000000L) != 0L - || (active1 & 0x2e0000000aL) != 0L) { - jjmatchedKind = 103; + if ((active0 & 0x10000000000000L) != 0L) { + jjmatchedKind = 73; jjmatchedPos = 4; - return 520; + return 518; + } + if ((active1 & 0x8L) != 0L) { + jjmatchedKind = 104; + jjmatchedPos = 4; + return 175; } return -1; case 5: - if ((active0 & 0x4440000000000000L) != 0L - || (active1 & 0x400000000L) != 0L) { - return 520; - } - if ((active1 & 0x4L) != 0L) { - jjmatchedKind = 103; + if ((active0 & 0x10000000000000L) != 0L) { + jjmatchedKind = 73; jjmatchedPos = 5; - return 174; + return 518; } - if ((active0 & 0x380000000000000L) != 0L - || (active1 & 0x2a0000000aL) != 0L) { - jjmatchedKind = 103; + if ((active0 & 0x700000000000000L) != 0L + || (active1 & 0x5400000014L) != 0L) { + jjmatchedKind = 104; jjmatchedPos = 5; return 520; } - if ((active0 & 0x8000000000000L) != 0L) { - jjmatchedKind = 72; + if ((active1 & 0x8L) != 0L) { + jjmatchedKind = 104; jjmatchedPos = 5; - return 517; + return 174; + } + if ((active0 & 0x8880000000000000L) != 0L + || (active1 & 0x800000000L) != 0L) { + return 520; } return -1; case 6: - if ((active0 & 0x200000000000000L) != 0L - || (active1 & 0x200000002L) != 0L) { + if ((active0 & 0x300000000000000L) != 0L + || (active1 & 0x5000000018L) != 0L) { + jjmatchedKind = 104; + jjmatchedPos = 6; return 520; } - if ((active0 & 0x180000000000000L) != 0L - || (active1 & 0x280000000cL) != 0L) { - jjmatchedKind = 103; - jjmatchedPos = 6; + if ((active0 & 0x400000000000000L) != 0L + || (active1 & 0x400000004L) != 0L) { return 520; } - if ((active0 & 0x8000000000000L) != 0L) { - return 517; + if ((active0 & 0x10000000000000L) != 0L) { + return 518; } return -1; case 7: - if ((active0 & 0x100000000000000L) != 0L - || (active1 & 0x200000000cL) != 0L) { - jjmatchedKind = 103; + if ((active0 & 0x200000000000000L) != 0L + || (active1 & 0x4000000018L) != 0L) { + jjmatchedKind = 104; jjmatchedPos = 7; return 520; } - if ((active0 & 0x80000000000000L) != 0L - || (active1 & 0x800000000L) != 0L) { + if ((active0 & 0x100000000000000L) != 0L + || (active1 & 0x1000000000L) != 0L) { return 520; } return -1; case 8: - if ((active1 & 0x2000000004L) != 0L) { - jjmatchedKind = 103; - jjmatchedPos = 8; + if ((active0 & 0x200000000000000L) != 0L || (active1 & 0x10L) != 0L) { return 520; } - if ((active0 & 0x100000000000000L) != 0L || (active1 & 0x8L) != 0L) { + if ((active1 & 0x4000000008L) != 0L) { + jjmatchedKind = 104; + jjmatchedPos = 8; return 520; } return -1; case 9: - if ((active1 & 0x4L) != 0L) { - jjmatchedKind = 103; - jjmatchedPos = 9; + if ((active1 & 0x4000000000L) != 0L) { return 520; } - if ((active1 & 0x2000000000L) != 0L) { + if ((active1 & 0x8L) != 0L) { + jjmatchedKind = 104; + jjmatchedPos = 9; return 520; } return -1; case 10: - if ((active1 & 0x4L) != 0L) { - jjmatchedKind = 103; + if ((active1 & 0x8L) != 0L) { + jjmatchedKind = 104; jjmatchedPos = 10; return 520; } return -1; case 11: - if ((active1 & 0x4L) != 0L) { - jjmatchedKind = 103; + if ((active1 & 0x8L) != 0L) { + jjmatchedKind = 104; jjmatchedPos = 11; return 520; } return -1; case 12: - if ((active1 & 0x4L) != 0L) { - jjmatchedKind = 103; + if ((active1 & 0x8L) != 0L) { + jjmatchedKind = 104; jjmatchedPos = 12; return 520; } @@ -257,16 +257,18 @@ public class ParserTokenManager implements ParserConstants { private int jjMoveStringLiteralDfa0_0() { switch (curChar) { case 33: - return jjMoveStringLiteralDfa1_0(0x4000000000L, 0x0L); + return jjMoveStringLiteralDfa1_0(0x8000000000L, 0x0L); case 36: return jjMoveStringLiteralDfa1_0(0x10000L, 0x0L); + case 37: + return jjStopAtPos(0, 31); case 38: - jjmatchedKind = 31; - return jjMoveStringLiteralDfa1_0(0x2000000000L, 0x0L); + jjmatchedKind = 32; + return jjMoveStringLiteralDfa1_0(0x4000000000L, 0x0L); case 40: - return jjStopAtPos(0, 33); - case 41: return jjStopAtPos(0, 34); + case 41: + return jjStopAtPos(0, 35); case 42: jjmatchedKind = 30; return jjMoveStringLiteralDfa1_0(0x20000L, 0x0L); @@ -278,12 +280,12 @@ public class ParserTokenManager implements ParserConstants { jjmatchedKind = 21; return jjMoveStringLiteralDfa1_0(0x800L, 0x0L); case 46: - return jjStartNfaWithStates_0(0, 32, 519); + return jjStartNfaWithStates_0(0, 33, 519); case 47: jjmatchedKind = 27; return jjMoveStringLiteralDfa1_0(0x44L, 0x0L); case 58: - return jjStopAtPos(0, 39); + return jjStopAtPos(0, 40); case 59: return jjStopAtPos(0, 23); case 60: @@ -291,11 +293,11 @@ public class ParserTokenManager implements ParserConstants { return jjMoveStringLiteralDfa1_0(0x400L, 0x0L); case 61: jjmatchedKind = 19; - return jjMoveStringLiteralDfa1_0(0x800000000L, 0x0L); + return jjMoveStringLiteralDfa1_0(0x1000000000L, 0x0L); case 62: return jjStopAtPos(0, 24); case 64: - return jjMoveStringLiteralDfa1_0(0xffc0000000000000L, 0x3e0000000fL); + return jjMoveStringLiteralDfa1_0(0xff80000000000000L, 0x7c0000001fL); case 91: return jjStopAtPos(0, 28); case 93: @@ -304,17 +306,17 @@ public class ParserTokenManager implements ParserConstants { return jjMoveStringLiteralDfa1_0(0x8000L, 0x0L); case 70: case 102: - return jjMoveStringLiteralDfa1_0(0x20000000000000L, 0x0L); + return jjMoveStringLiteralDfa1_0(0x40000000000000L, 0x0L); case 73: case 105: - return jjMoveStringLiteralDfa1_0(0x10000000000000L, 0x20L); + return jjMoveStringLiteralDfa1_0(0x20000000000000L, 0x40L); case 84: case 116: - return jjMoveStringLiteralDfa1_0(0xc000000000000L, 0x0L); + return jjMoveStringLiteralDfa1_0(0x18000000000000L, 0x0L); case 123: return jjStopAtPos(0, 12); case 124: - return jjMoveStringLiteralDfa1_0(0x1000004000L, 0x0L); + return jjMoveStringLiteralDfa1_0(0x2000004000L, 0x0L); case 125: return jjStopAtPos(0, 13); case 126: @@ -336,8 +338,8 @@ public class ParserTokenManager implements ParserConstants { case 33: return jjMoveStringLiteralDfa2_0(active0, 0x400L, active1, 0L); case 38: - if ((active0 & 0x2000000000L) != 0L) { - return jjStopAtPos(1, 37); + if ((active0 & 0x4000000000L) != 0L) { + return jjStopAtPos(1, 38); } break; case 42: @@ -346,7 +348,7 @@ public class ParserTokenManager implements ParserConstants { } break; case 45: - return jjMoveStringLiteralDfa2_0(active0, 0x800L, active1, 0x4L); + return jjMoveStringLiteralDfa2_0(active0, 0x800L, active1, 0x8L); case 47: if ((active0 & 0x4L) != 0L) { return jjStopAtPos(1, 2); @@ -363,72 +365,73 @@ public class ParserTokenManager implements ParserConstants { return jjStopAtPos(1, 17); } else if ((active0 & 0x40000L) != 0L) { return jjStopAtPos(1, 18); - } else if ((active0 & 0x800000000L) != 0L) { - return jjStopAtPos(1, 35); - } else if ((active0 & 0x4000000000L) != 0L) { - return jjStopAtPos(1, 38); + } else if ((active0 & 0x1000000000L) != 0L) { + return jjStopAtPos(1, 36); + } else if ((active0 & 0x8000000000L) != 0L) { + return jjStopAtPos(1, 39); } break; case 67: case 99: - return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x800000000L); + return jjMoveStringLiteralDfa2_0(active0, 0L, active1, + 0x1000000000L); case 68: case 100: - return jjMoveStringLiteralDfa2_0(active0, 0x400000000000000L, + return jjMoveStringLiteralDfa2_0(active0, 0x800000000000000L, active1, 0L); case 69: case 101: - return jjMoveStringLiteralDfa2_0(active0, 0x2000000000000000L, - active1, 0x3L); + return jjMoveStringLiteralDfa2_0(active0, 0x4000000000000000L, + active1, 0x6L); case 70: case 102: - if ((active1 & 0x20L) != 0L) { - return jjStartNfaWithStates_0(1, 69, 517); + if ((active1 & 0x40L) != 0L) { + return jjStartNfaWithStates_0(1, 70, 518); } - return jjMoveStringLiteralDfa2_0(active0, 0x1100000000000000L, - active1, 0x2000000000L); + return jjMoveStringLiteralDfa2_0(active0, 0x2200000000000000L, + active1, 0x4000000000L); case 72: case 104: - return jjMoveStringLiteralDfa2_0(active0, 0x8000000000000L, + return jjMoveStringLiteralDfa2_0(active0, 0x10000000000000L, active1, 0L); case 73: case 105: - return jjMoveStringLiteralDfa2_0(active0, 0x8080000000000000L, - active1, 0x200000000L); + return jjMoveStringLiteralDfa2_0(active0, 0x100000000000000L, + active1, 0x400000001L); case 77: case 109: - return jjMoveStringLiteralDfa2_0(active0, 0x40000000000000L, - active1, 0x400000000L); + return jjMoveStringLiteralDfa2_0(active0, 0x80000000000000L, + active1, 0x800000000L); case 78: case 110: - if ((active0 & 0x10000000000000L) != 0L) { - return jjStartNfaWithStates_0(1, 52, 517); + if ((active0 & 0x20000000000000L) != 0L) { + return jjStartNfaWithStates_0(1, 53, 518); } break; case 79: case 111: - if ((active0 & 0x4000000000000L) != 0L) { - return jjStartNfaWithStates_0(1, 50, 517); + if ((active0 & 0x8000000000000L) != 0L) { + return jjStartNfaWithStates_0(1, 51, 518); } break; case 80: case 112: return jjMoveStringLiteralDfa2_0(active0, 0L, active1, - 0x1000000000L); + 0x2000000000L); case 82: case 114: - return jjMoveStringLiteralDfa2_0(active0, 0x220000000000000L, + return jjMoveStringLiteralDfa2_0(active0, 0x440000000000000L, active1, 0L); case 83: case 115: - return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x8L); + return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x10L); case 87: case 119: - return jjMoveStringLiteralDfa2_0(active0, 0x4800000000000000L, + return jjMoveStringLiteralDfa2_0(active0, 0x9000000000000000L, active1, 0L); case 124: - if ((active0 & 0x1000000000L) != 0L) { - return jjStopAtPos(1, 36); + if ((active0 & 0x2000000000L) != 0L) { + return jjStopAtPos(1, 37); } break; default: @@ -458,51 +461,51 @@ public class ParserTokenManager implements ParserConstants { break; case 65: case 97: - return jjMoveStringLiteralDfa3_0(active0, 0x2800000000000000L, - active1, 0x1000000000L); + return jjMoveStringLiteralDfa3_0(active0, 0x5000000000000000L, + active1, 0x2000000000L); case 69: case 101: - return jjMoveStringLiteralDfa3_0(active0, 0x600000000000000L, - active1, 0x400000000L); + return jjMoveStringLiteralDfa3_0(active0, 0xc00000000000000L, + active1, 0x800000000L); case 70: case 102: - if ((active0 & 0x8000000000000000L) != 0L) { - return jjStartNfaWithStates_0(2, 63, 520); + if ((active1 & 0x1L) != 0L) { + return jjStartNfaWithStates_0(2, 64, 520); } break; case 72: case 104: - return jjMoveStringLiteralDfa3_0(active0, 0x4000000000000000L, - active1, 0x800000000L); + return jjMoveStringLiteralDfa3_0(active0, 0x8000000000000000L, + active1, 0x1000000000L); case 73: case 105: - return jjMoveStringLiteralDfa3_0(active0, 0x40000000000000L, + return jjMoveStringLiteralDfa3_0(active0, 0x80000000000000L, active1, 0L); case 76: case 108: - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x1L); + return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x2L); case 77: case 109: - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x200000004L); + return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x400000008L); case 78: case 110: - return jjMoveStringLiteralDfa3_0(active0, 0x80000000000000L, + return jjMoveStringLiteralDfa3_0(active0, 0x100000000000000L, active1, 0L); case 79: case 111: - return jjMoveStringLiteralDfa3_0(active0, 0x1020000000000000L, - active1, 0x2000000000L); + return jjMoveStringLiteralDfa3_0(active0, 0x2040000000000000L, + active1, 0x4000000000L); case 82: case 114: - return jjMoveStringLiteralDfa3_0(active0, 0x8000000000000L, + return jjMoveStringLiteralDfa3_0(active0, 0x10000000000000L, active1, 0L); case 85: case 117: - return jjMoveStringLiteralDfa3_0(active0, 0x100000000000000L, - active1, 0x8L); + return jjMoveStringLiteralDfa3_0(active0, 0x200000000000000L, + active1, 0x10L); case 88: case 120: - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x2L); + return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x4L); default: break; } @@ -528,60 +531,61 @@ public class ParserTokenManager implements ParserConstants { break; case 65: case 97: - return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x800000000L); + return jjMoveStringLiteralDfa4_0(active0, 0L, active1, + 0x1000000000L); case 66: case 98: - return jjMoveStringLiteralDfa4_0(active0, 0x400000000000000L, + return jjMoveStringLiteralDfa4_0(active0, 0x800000000000000L, active1, 0L); case 67: case 99: - return jjMoveStringLiteralDfa4_0(active0, 0x2080000000000000L, + return jjMoveStringLiteralDfa4_0(active0, 0x4100000000000000L, active1, 0L); case 68: case 100: - return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x400000000L); + return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x800000000L); case 71: case 103: return jjMoveStringLiteralDfa4_0(active0, 0L, active1, - 0x1000000000L); + 0x2000000000L); case 73: case 105: - return jjMoveStringLiteralDfa4_0(active0, 0x4000000000000000L, + return jjMoveStringLiteralDfa4_0(active0, 0x8000000000000000L, active1, 0L); case 77: case 109: - if ((active0 & 0x20000000000000L) != 0L) { - return jjStartNfaWithStates_0(3, 53, 517); + if ((active0 & 0x40000000000000L) != 0L) { + return jjStartNfaWithStates_0(3, 54, 518); } break; case 78: case 110: - return jjMoveStringLiteralDfa4_0(active0, 0x100000000000000L, - active1, 0x2000000000L); + return jjMoveStringLiteralDfa4_0(active0, 0x200000000000000L, + active1, 0x4000000000L); case 79: case 111: - return jjMoveStringLiteralDfa4_0(active0, 0x8000000000000L, - active1, 0x4L); + return jjMoveStringLiteralDfa4_0(active0, 0x10000000000000L, + active1, 0x8L); case 80: case 112: - return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x200000008L); + return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x400000010L); case 82: case 114: - if ((active0 & 0x1000000000000000L) != 0L) { - return jjStartNfaWithStates_0(3, 60, 520); + if ((active0 & 0x2000000000000000L) != 0L) { + return jjStartNfaWithStates_0(3, 61, 520); } - return jjMoveStringLiteralDfa4_0(active0, 0x800000000000000L, + return jjMoveStringLiteralDfa4_0(active0, 0x1000000000000000L, active1, 0L); case 83: case 115: - return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x1L); + return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x2L); case 84: case 116: - return jjMoveStringLiteralDfa4_0(active0, 0x200000000000000L, - active1, 0x2L); + return jjMoveStringLiteralDfa4_0(active0, 0x400000000000000L, + active1, 0x4L); case 88: case 120: - return jjMoveStringLiteralDfa4_0(active0, 0x40000000000000L, + return jjMoveStringLiteralDfa4_0(active0, 0x80000000000000L, active1, 0L); default: break; @@ -603,56 +607,57 @@ public class ParserTokenManager implements ParserConstants { switch (curChar) { case 67: case 99: - return jjMoveStringLiteralDfa5_0(active0, 0x100000000000000L, + return jjMoveStringLiteralDfa5_0(active0, 0x200000000000000L, active1, 0L); case 69: case 101: - if ((active1 & 0x1L) != 0L) { - return jjStartNfaWithStates_0(4, 64, 520); - } else if ((active1 & 0x1000000000L) != 0L) { - return jjStartNfaWithStates_0(4, 100, 520); + if ((active1 & 0x2L) != 0L) { + return jjStartNfaWithStates_0(4, 65, 520); + } else if ((active1 & 0x2000000000L) != 0L) { + return jjStartNfaWithStates_0(4, 101, 520); } - return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x2L); + return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x4L); case 72: case 104: - if ((active0 & 0x2000000000000000L) != 0L) { - return jjStartNfaWithStates_0(4, 61, 520); + if ((active0 & 0x4000000000000000L) != 0L) { + return jjStartNfaWithStates_0(4, 62, 520); } break; case 73: case 105: - return jjMoveStringLiteralDfa5_0(active0, 0x40000000000000L, - active1, 0x400000000L); + return jjMoveStringLiteralDfa5_0(active0, 0x80000000000000L, + active1, 0x800000000L); case 76: case 108: - return jjMoveStringLiteralDfa5_0(active0, 0x4080000000000000L, + return jjMoveStringLiteralDfa5_0(active0, 0x8100000000000000L, active1, 0L); case 78: case 110: - if ((active0 & 0x800000000000000L) != 0L) { - return jjStartNfaWithStates_0(4, 59, 520); + if ((active0 & 0x1000000000000000L) != 0L) { + return jjStartNfaWithStates_0(4, 60, 520); } break; case 79: case 111: - return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x200000000L); + return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x400000000L); case 80: case 112: - return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x8L); + return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x10L); case 82: case 114: - return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x800000000L); + return jjMoveStringLiteralDfa5_0(active0, 0L, active1, + 0x1000000000L); case 84: case 116: return jjMoveStringLiteralDfa5_0(active0, 0L, active1, - 0x2000000000L); + 0x4000000000L); case 85: case 117: - return jjMoveStringLiteralDfa5_0(active0, 0x608000000000000L, + return jjMoveStringLiteralDfa5_0(active0, 0xc10000000000000L, active1, 0L); case 90: case 122: - return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x4L); + return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x8L); default: break; } @@ -673,49 +678,50 @@ public class ParserTokenManager implements ParserConstants { switch (curChar) { case 45: return jjMoveStringLiteralDfa6_0(active0, 0L, active1, - 0x2000000004L); + 0x4000000008L); case 65: case 97: - if ((active1 & 0x400000000L) != 0L) { - return jjStartNfaWithStates_0(5, 98, 520); + if ((active1 & 0x800000000L) != 0L) { + return jjStartNfaWithStates_0(5, 99, 520); } break; case 69: case 101: - if ((active0 & 0x4000000000000000L) != 0L) { - return jjStartNfaWithStates_0(5, 62, 520); + if ((active0 & 0x8000000000000000L) != 0L) { + return jjStartNfaWithStates_0(5, 63, 520); } break; case 71: case 103: - if ((active0 & 0x400000000000000L) != 0L) { - return jjStartNfaWithStates_0(5, 58, 520); + if ((active0 & 0x800000000000000L) != 0L) { + return jjStartNfaWithStates_0(5, 59, 520); } - return jjMoveStringLiteralDfa6_0(active0, 0x8000000000000L, + return jjMoveStringLiteralDfa6_0(active0, 0x10000000000000L, active1, 0L); case 78: case 110: - if ((active0 & 0x40000000000000L) != 0L) { - return jjStartNfaWithStates_0(5, 54, 520); + if ((active0 & 0x80000000000000L) != 0L) { + return jjStartNfaWithStates_0(5, 55, 520); } - return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x2L); + return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x4L); case 79: case 111: - return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x8L); + return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x10L); case 82: case 114: - return jjMoveStringLiteralDfa6_0(active0, 0x200000000000000L, - active1, 0x200000000L); + return jjMoveStringLiteralDfa6_0(active0, 0x400000000000000L, + active1, 0x400000000L); case 83: case 115: - return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x800000000L); + return jjMoveStringLiteralDfa6_0(active0, 0L, active1, + 0x1000000000L); case 84: case 116: - return jjMoveStringLiteralDfa6_0(active0, 0x100000000000000L, + return jjMoveStringLiteralDfa6_0(active0, 0x200000000000000L, active1, 0L); case 85: case 117: - return jjMoveStringLiteralDfa6_0(active0, 0x80000000000000L, + return jjMoveStringLiteralDfa6_0(active0, 0x100000000000000L, active1, 0L); default: break; @@ -737,41 +743,42 @@ public class ParserTokenManager implements ParserConstants { switch (curChar) { case 68: case 100: - if ((active1 & 0x2L) != 0L) { - return jjStartNfaWithStates_0(6, 65, 520); + if ((active1 & 0x4L) != 0L) { + return jjStartNfaWithStates_0(6, 66, 520); } - return jjMoveStringLiteralDfa7_0(active0, 0x80000000000000L, - active1, 0x4L); + return jjMoveStringLiteralDfa7_0(active0, 0x100000000000000L, + active1, 0x8L); case 69: case 101: - return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x800000000L); + return jjMoveStringLiteralDfa7_0(active0, 0L, active1, + 0x1000000000L); case 70: case 102: return jjMoveStringLiteralDfa7_0(active0, 0L, active1, - 0x2000000000L); + 0x4000000000L); case 72: case 104: - if ((active0 & 0x8000000000000L) != 0L) { - return jjStartNfaWithStates_0(6, 51, 517); + if ((active0 & 0x10000000000000L) != 0L) { + return jjStartNfaWithStates_0(6, 52, 518); } break; case 73: case 105: - return jjMoveStringLiteralDfa7_0(active0, 0x100000000000000L, + return jjMoveStringLiteralDfa7_0(active0, 0x200000000000000L, active1, 0L); case 78: case 110: - if ((active0 & 0x200000000000000L) != 0L) { - return jjStartNfaWithStates_0(6, 57, 520); + if ((active0 & 0x400000000000000L) != 0L) { + return jjStartNfaWithStates_0(6, 58, 520); } break; case 82: case 114: - return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x8L); + return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x10L); case 84: case 116: - if ((active1 & 0x200000000L) != 0L) { - return jjStartNfaWithStates_0(6, 97, 520); + if ((active1 & 0x400000000L) != 0L) { + return jjStartNfaWithStates_0(6, 98, 520); } break; default: @@ -795,23 +802,23 @@ public class ParserTokenManager implements ParserConstants { case 65: case 97: return jjMoveStringLiteralDfa8_0(active0, 0L, active1, - 0x2000000000L); + 0x4000000000L); case 69: case 101: - if ((active0 & 0x80000000000000L) != 0L) { - return jjStartNfaWithStates_0(7, 55, 520); + if ((active0 & 0x100000000000000L) != 0L) { + return jjStartNfaWithStates_0(7, 56, 520); } break; case 79: case 111: - return jjMoveStringLiteralDfa8_0(active0, 0x100000000000000L, - active1, 0x4L); + return jjMoveStringLiteralDfa8_0(active0, 0x200000000000000L, + active1, 0x8L); case 84: case 116: - if ((active1 & 0x800000000L) != 0L) { - return jjStartNfaWithStates_0(7, 99, 520); + if ((active1 & 0x1000000000L) != 0L) { + return jjStartNfaWithStates_0(7, 100, 520); } - return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x8L); + return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x10L); default: break; } @@ -833,17 +840,17 @@ public class ParserTokenManager implements ParserConstants { case 67: case 99: return jjMoveStringLiteralDfa9_0(active0, 0L, active1, - 0x2000000004L); + 0x4000000008L); case 78: case 110: - if ((active0 & 0x100000000000000L) != 0L) { - return jjStartNfaWithStates_0(8, 56, 520); + if ((active0 & 0x200000000000000L) != 0L) { + return jjStartNfaWithStates_0(8, 57, 520); } break; case 83: case 115: - if ((active1 & 0x8L) != 0L) { - return jjStartNfaWithStates_0(8, 67, 520); + if ((active1 & 0x10L) != 0L) { + return jjStartNfaWithStates_0(8, 68, 520); } break; default: @@ -866,13 +873,13 @@ public class ParserTokenManager implements ParserConstants { switch (curChar) { case 69: case 101: - if ((active1 & 0x2000000000L) != 0L) { - return jjStartNfaWithStates_0(9, 101, 520); + if ((active1 & 0x4000000000L) != 0L) { + return jjStartNfaWithStates_0(9, 102, 520); } break; case 85: case 117: - return jjMoveStringLiteralDfa10_0(active1, 0x4L); + return jjMoveStringLiteralDfa10_0(active1, 0x8L); default: break; } @@ -892,7 +899,7 @@ public class ParserTokenManager implements ParserConstants { switch (curChar) { case 77: case 109: - return jjMoveStringLiteralDfa11_0(active1, 0x4L); + return jjMoveStringLiteralDfa11_0(active1, 0x8L); default: break; } @@ -912,7 +919,7 @@ public class ParserTokenManager implements ParserConstants { switch (curChar) { case 69: case 101: - return jjMoveStringLiteralDfa12_0(active1, 0x4L); + return jjMoveStringLiteralDfa12_0(active1, 0x8L); default: break; } @@ -932,7 +939,7 @@ public class ParserTokenManager implements ParserConstants { switch (curChar) { case 78: case 110: - return jjMoveStringLiteralDfa13_0(active1, 0x4L); + return jjMoveStringLiteralDfa13_0(active1, 0x8L); default: break; } @@ -952,8 +959,8 @@ public class ParserTokenManager implements ParserConstants { switch (curChar) { case 84: case 116: - if ((active1 & 0x4L) != 0L) { - return jjStartNfaWithStates_0(13, 66, 520); + if ((active1 & 0x8L) != 0L) { + return jjStartNfaWithStates_0(13, 67, 520); } break; default: @@ -995,8 +1002,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff200000000000L & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddTwoStates(113, 114); break; @@ -1021,15 +1028,15 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff200000000000L & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddTwoStates(113, 114); break; case 4: if ((0x3ff000000000000L & l) != 0L) { - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(0, 81); } else if ((0x100003600L & l) != 0L) { @@ -1060,7 +1067,7 @@ public class ParserTokenManager implements ParserConstants { jjstateSet[jjnewStateCnt++] = 5; } break; - case 518: + case 517: if ((0x100003600L & l) != 0L) { jjCheckNAddTwoStates(251, 260); } @@ -1068,27 +1075,27 @@ public class ParserTokenManager implements ParserConstants { jjCheckNAddTwoStates(243, 250); } break; - case 517: + case 518: if ((0x3ff200000000000L & l) != 0L) { jjCheckNAddStates(120, 123); } else if ((0x100003600L & l) != 0L) { jjCheckNAddTwoStates(231, 232); } else if (curChar == 40) { - if (kind > 118) { - kind = 118; + if (kind > 119) { + kind = 119; } } if ((0x3ff200000000000L & l) != 0L) { - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddTwoStates(220, 221); } break; case 175: if ((0x3ff200000000000L & l) != 0L) { - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddTwoStates(113, 114); } @@ -1102,13 +1109,13 @@ public class ParserTokenManager implements ParserConstants { } else if ((0x100003600L & l) != 0L) { jjCheckNAddTwoStates(231, 232); } else if (curChar == 40) { - if (kind > 118) { - kind = 118; + if (kind > 119) { + kind = 119; } } if ((0x3ff200000000000L & l) != 0L) { - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddTwoStates(220, 221); } @@ -1117,8 +1124,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff200000000000L & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddTwoStates(113, 114); break; @@ -1181,8 +1188,8 @@ public class ParserTokenManager implements ParserConstants { jjCheckNAddTwoStates(267, 268); } if ((0x3ff000000000000L & l) != 0L) { - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAdd(266); } @@ -1191,8 +1198,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff200000000000L & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddTwoStates(113, 114); break; @@ -1336,8 +1343,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 46: - if (curChar == 34 && kind > 71) { - kind = 71; + if (curChar == 34 && kind > 72) { + kind = 72; } break; case 48: @@ -1411,8 +1418,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 63: - if (curChar == 39 && kind > 71) { - kind = 71; + if (curChar == 39 && kind > 72) { + kind = 72; } break; case 65: @@ -1484,8 +1491,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff200000000000L & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddTwoStates(81, 82); break; @@ -1493,8 +1500,8 @@ public class ParserTokenManager implements ParserConstants { if ((0xffffffff00000000L & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddTwoStates(81, 82); break; @@ -1502,8 +1509,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddStates(288, 291); break; @@ -1511,8 +1518,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x100003600L & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddTwoStates(81, 82); break; @@ -1520,8 +1527,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddStates(292, 298); break; @@ -1529,8 +1536,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddStates(299, 301); break; @@ -1538,8 +1545,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddStates(302, 305); break; @@ -1547,8 +1554,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddStates(306, 310); break; @@ -1556,8 +1563,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddStates(311, 316); break; @@ -1565,8 +1572,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddStates(317, 320); break; @@ -1574,8 +1581,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddStates(321, 327); break; @@ -1583,8 +1590,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddStates(328, 330); break; @@ -1592,8 +1599,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddStates(331, 334); break; @@ -1601,8 +1608,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddStates(335, 339); break; @@ -1610,8 +1617,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddStates(340, 345); break; @@ -1624,8 +1631,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff200000000000L & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddTwoStates(100, 101); break; @@ -1633,8 +1640,8 @@ public class ParserTokenManager implements ParserConstants { if ((0xffffffff00000000L & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddTwoStates(100, 101); break; @@ -1642,8 +1649,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(346, 349); break; @@ -1651,8 +1658,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x100003600L & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddTwoStates(100, 101); break; @@ -1660,8 +1667,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(350, 356); break; @@ -1669,8 +1676,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(357, 359); break; @@ -1678,8 +1685,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(360, 363); break; @@ -1687,8 +1694,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(364, 368); break; @@ -1696,8 +1703,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(369, 374); break; @@ -1710,8 +1717,8 @@ public class ParserTokenManager implements ParserConstants { if ((0xffffffff00000000L & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddTwoStates(113, 114); break; @@ -1719,8 +1726,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddStates(375, 378); break; @@ -1728,8 +1735,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x100003600L & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddTwoStates(113, 114); break; @@ -1737,8 +1744,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddStates(379, 385); break; @@ -1746,8 +1753,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddStates(386, 388); break; @@ -1755,8 +1762,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddStates(389, 392); break; @@ -1764,8 +1771,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddStates(393, 397); break; @@ -1773,8 +1780,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddStates(398, 403); break; @@ -1782,8 +1789,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddStates(404, 407); break; @@ -1791,8 +1798,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddStates(408, 414); break; @@ -1800,8 +1807,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddStates(415, 417); break; @@ -1809,8 +1816,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddStates(418, 421); break; @@ -1818,8 +1825,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddStates(422, 426); break; @@ -1827,8 +1834,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddStates(427, 432); break; @@ -1838,8 +1845,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 133: - if (curChar == 40 && kind > 115) { - kind = 115; + if (curChar == 40 && kind > 116) { + kind = 116; } break; case 140: @@ -1848,8 +1855,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 141: - if (curChar == 40 && kind > 116) { - kind = 116; + if (curChar == 40 && kind > 117) { + kind = 117; } break; case 148: @@ -1858,8 +1865,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 149: - if (curChar == 40 && kind > 117) { - kind = 117; + if (curChar == 40 && kind > 118) { + kind = 118; } break; case 179: @@ -1901,8 +1908,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff200000000000L & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddTwoStates(220, 221); break; @@ -1910,8 +1917,8 @@ public class ParserTokenManager implements ParserConstants { if ((0xffffffff00000000L & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddTwoStates(220, 221); break; @@ -1919,8 +1926,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddStates(439, 442); break; @@ -1928,8 +1935,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x100003600L & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddTwoStates(220, 221); break; @@ -1937,8 +1944,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddStates(443, 449); break; @@ -1946,8 +1953,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddStates(450, 452); break; @@ -1955,8 +1962,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddStates(453, 456); break; @@ -1964,8 +1971,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddStates(457, 461); break; @@ -1973,8 +1980,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddStates(462, 467); break; @@ -1989,8 +1996,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 232: - if (curChar == 40 && kind > 118) { - kind = 118; + if (curChar == 40 && kind > 119) { + kind = 119; } break; case 234: @@ -2063,8 +2070,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAdd(266); break; @@ -2074,8 +2081,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 268: - if (curChar == 37 && kind > 77) { - kind = 77; + if (curChar == 37 && kind > 78) { + kind = 78; } break; case 269: @@ -2177,8 +2184,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff200000000000L & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddTwoStates(329, 330); break; @@ -2186,8 +2193,8 @@ public class ParserTokenManager implements ParserConstants { if ((0xffffffff00000000L & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddTwoStates(329, 330); break; @@ -2195,8 +2202,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddStates(503, 506); break; @@ -2204,8 +2211,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x100003600L & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddTwoStates(329, 330); break; @@ -2213,8 +2220,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddStates(507, 513); break; @@ -2222,8 +2229,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddStates(514, 516); break; @@ -2231,8 +2238,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddStates(517, 520); break; @@ -2240,8 +2247,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddStates(521, 525); break; @@ -2249,8 +2256,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddStates(526, 531); break; @@ -2258,8 +2265,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddStates(532, 535); break; @@ -2267,8 +2274,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddStates(536, 542); break; @@ -2276,8 +2283,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddStates(543, 545); break; @@ -2285,8 +2292,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddStates(546, 549); break; @@ -2294,8 +2301,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddStates(550, 554); break; @@ -2303,8 +2310,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddStates(555, 560); break; @@ -2324,8 +2331,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 351: - if (curChar == 41 && kind > 75) { - kind = 75; + if (curChar == 41 && kind > 76) { + kind = 76; } break; case 353: @@ -2532,8 +2539,8 @@ public class ParserTokenManager implements ParserConstants { if (curChar != 63) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjstateSet[jjnewStateCnt++] = 400; break; @@ -2541,14 +2548,14 @@ public class ParserTokenManager implements ParserConstants { if (curChar != 63) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjCheckNAddStates(705, 708); break; case 401: - if (curChar == 63 && kind > 114) { - kind = 114; + if (curChar == 63 && kind > 115) { + kind = 115; } break; case 402: @@ -2559,8 +2566,8 @@ public class ParserTokenManager implements ParserConstants { if (curChar != 63) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjCheckNAdd(401); break; @@ -2568,8 +2575,8 @@ public class ParserTokenManager implements ParserConstants { if (curChar != 63) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjCheckNAddTwoStates(401, 402); break; @@ -2577,8 +2584,8 @@ public class ParserTokenManager implements ParserConstants { if (curChar != 63) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjCheckNAddStates(709, 711); break; @@ -2586,8 +2593,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjAddStates(712, 717); break; @@ -2607,8 +2614,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 409: - if ((0x3ff000000000000L & l) != 0L && kind > 114) { - kind = 114; + if ((0x3ff000000000000L & l) != 0L && kind > 115) { + kind = 115; } break; case 410: @@ -2630,8 +2637,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjCheckNAdd(401); break; @@ -2649,8 +2656,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjstateSet[jjnewStateCnt++] = 417; break; @@ -2663,8 +2670,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjstateSet[jjnewStateCnt++] = 420; break; @@ -2672,8 +2679,8 @@ public class ParserTokenManager implements ParserConstants { if (curChar != 63) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjCheckNAddTwoStates(401, 421); break; @@ -2681,8 +2688,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjstateSet[jjnewStateCnt++] = 423; break; @@ -2690,8 +2697,8 @@ public class ParserTokenManager implements ParserConstants { if (curChar != 63) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjCheckNAddStates(718, 720); break; @@ -2699,8 +2706,8 @@ public class ParserTokenManager implements ParserConstants { if (curChar != 63) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjCheckNAddTwoStates(401, 424); break; @@ -2708,8 +2715,8 @@ public class ParserTokenManager implements ParserConstants { if (curChar != 63) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjCheckNAddStates(721, 724); break; @@ -2717,8 +2724,8 @@ public class ParserTokenManager implements ParserConstants { if (curChar != 63) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjCheckNAddTwoStates(401, 427); break; @@ -2726,8 +2733,8 @@ public class ParserTokenManager implements ParserConstants { if (curChar != 63) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjCheckNAddStates(725, 727); break; @@ -2750,8 +2757,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjstateSet[jjnewStateCnt++] = 434; break; @@ -2759,8 +2766,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjCheckNAddStates(728, 731); break; @@ -2768,8 +2775,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjCheckNAdd(409); break; @@ -2777,8 +2784,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjCheckNAddTwoStates(409, 435); break; @@ -2786,8 +2793,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjCheckNAddStates(732, 734); break; @@ -2820,8 +2827,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddStates(747, 750); break; @@ -2829,8 +2836,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddStates(751, 757); break; @@ -2838,8 +2845,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddStates(758, 760); break; @@ -2847,8 +2854,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddStates(761, 764); break; @@ -2856,8 +2863,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddStates(765, 769); break; @@ -2865,8 +2872,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddStates(770, 775); break; @@ -2899,8 +2906,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(0, 81); break; @@ -2908,8 +2915,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAdd(457); break; @@ -3218,8 +3225,8 @@ public class ParserTokenManager implements ParserConstants { switch (jjstateSet[--i]) { case 520: if ((0x7fffffe87fffffeL & l) != 0L) { - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddTwoStates(113, 114); } else if (curChar == 92) { @@ -3228,8 +3235,8 @@ public class ParserTokenManager implements ParserConstants { break; case 166: if ((0x7fffffe07fffffeL & l) != 0L) { - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddTwoStates(113, 114); } else if (curChar == 92) { @@ -3241,8 +3248,8 @@ public class ParserTokenManager implements ParserConstants { break; case 174: if ((0x7fffffe87fffffeL & l) != 0L) { - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddTwoStates(113, 114); } else if (curChar == 92) { @@ -3254,8 +3261,8 @@ public class ParserTokenManager implements ParserConstants { break; case 4: if ((0x7fffffe07fffffeL & l) != 0L) { - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddStates(812, 817); } else if (curChar == 92) { @@ -3277,7 +3284,7 @@ public class ParserTokenManager implements ParserConstants { jjAddStates(830, 833); } break; - case 518: + case 517: if ((0x20000000200L & l) != 0L) { jjstateSet[jjnewStateCnt++] = 259; } else if ((0x1000000010L & l) != 0L) { @@ -3286,8 +3293,8 @@ public class ParserTokenManager implements ParserConstants { break; case 178: if ((0x7fffffe07fffffeL & l) != 0L) { - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddTwoStates(113, 114); } @@ -3302,15 +3309,15 @@ public class ParserTokenManager implements ParserConstants { jjstateSet[jjnewStateCnt++] = 177; } break; - case 517: + case 518: if ((0x7fffffe87fffffeL & l) != 0L) { jjCheckNAddStates(120, 123); } else if (curChar == 92) { jjCheckNAddTwoStates(222, 223); } if ((0x7fffffe87fffffeL & l) != 0L) { - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddTwoStates(220, 221); } else if (curChar == 92) { @@ -3319,8 +3326,8 @@ public class ParserTokenManager implements ParserConstants { break; case 175: if ((0x7fffffe87fffffeL & l) != 0L) { - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddTwoStates(113, 114); } else if (curChar == 92) { @@ -3334,8 +3341,8 @@ public class ParserTokenManager implements ParserConstants { jjCheckNAddTwoStates(222, 223); } if ((0x7fffffe87fffffeL & l) != 0L) { - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddTwoStates(220, 221); } else if (curChar == 92) { @@ -3347,8 +3354,8 @@ public class ParserTokenManager implements ParserConstants { break; case 176: if ((0x7fffffe87fffffeL & l) != 0L) { - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddTwoStates(113, 114); } else if (curChar == 92) { @@ -3363,8 +3370,8 @@ public class ParserTokenManager implements ParserConstants { jjCheckNAddStates(120, 123); } if ((0x7fffffe07fffffeL & l) != 0L) { - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddTwoStates(220, 221); } @@ -3374,8 +3381,8 @@ public class ParserTokenManager implements ParserConstants { break; case 177: if ((0x7fffffe87fffffeL & l) != 0L) { - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddTwoStates(113, 114); } else if (curChar == 92) { @@ -3389,8 +3396,8 @@ public class ParserTokenManager implements ParserConstants { break; case 79: if ((0x7fffffe07fffffeL & l) != 0L) { - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddTwoStates(81, 82); } else if (curChar == 92) { @@ -3418,8 +3425,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 10: - if (curChar == 125 && kind > 40) { - kind = 40; + if (curChar == 125 && kind > 41) { + kind = 41; } break; case 11: @@ -3498,8 +3505,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 29: - if ((0x4000000040000L & l) != 0L && kind > 68) { - kind = 68; + if ((0x4000000040000L & l) != 0L && kind > 69) { + kind = 69; } break; case 30: @@ -3644,8 +3651,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffe07fffffeL & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddTwoStates(81, 82); break; @@ -3653,8 +3660,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffe87fffffeL & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddTwoStates(81, 82); break; @@ -3667,8 +3674,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffffffffffffL & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddTwoStates(81, 82); break; @@ -3676,8 +3683,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddStates(288, 291); break; @@ -3685,8 +3692,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddStates(292, 298); break; @@ -3694,8 +3701,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddStates(299, 301); break; @@ -3703,8 +3710,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddStates(302, 305); break; @@ -3712,8 +3719,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddStates(306, 310); break; @@ -3721,8 +3728,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddStates(311, 316); break; @@ -3735,8 +3742,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddStates(317, 320); break; @@ -3744,8 +3751,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddStates(321, 327); break; @@ -3753,8 +3760,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddStates(328, 330); break; @@ -3762,8 +3769,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddStates(331, 334); break; @@ -3771,8 +3778,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddStates(335, 339); break; @@ -3780,8 +3787,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddStates(340, 345); break; @@ -3789,8 +3796,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffe87fffffeL & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddTwoStates(100, 101); break; @@ -3803,8 +3810,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffffffffffffL & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddTwoStates(100, 101); break; @@ -3812,8 +3819,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(346, 349); break; @@ -3821,8 +3828,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(350, 356); break; @@ -3830,8 +3837,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(357, 359); break; @@ -3839,8 +3846,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(360, 363); break; @@ -3848,8 +3855,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(364, 368); break; @@ -3857,8 +3864,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(369, 374); break; @@ -3871,8 +3878,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffe07fffffeL & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddTwoStates(113, 114); break; @@ -3880,8 +3887,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffe87fffffeL & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddTwoStates(113, 114); break; @@ -3894,8 +3901,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffffffffffffL & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddTwoStates(113, 114); break; @@ -3903,8 +3910,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddStates(375, 378); break; @@ -3912,8 +3919,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddStates(379, 385); break; @@ -3921,8 +3928,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddStates(386, 388); break; @@ -3930,8 +3937,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddStates(389, 392); break; @@ -3939,8 +3946,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddStates(393, 397); break; @@ -3948,8 +3955,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddStates(398, 403); break; @@ -3962,8 +3969,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddStates(404, 407); break; @@ -3971,8 +3978,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddStates(408, 414); break; @@ -3980,8 +3987,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddStates(415, 417); break; @@ -3989,8 +3996,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddStates(418, 421); break; @@ -3998,8 +4005,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddStates(422, 426); break; @@ -4007,8 +4014,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddStates(427, 432); break; @@ -4118,8 +4125,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 158: - if ((0x8000000080000L & l) != 0L && kind > 102) { - kind = 102; + if ((0x8000000080000L & l) != 0L && kind > 103) { + kind = 103; } break; case 159: @@ -4345,8 +4352,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffe87fffffeL & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddTwoStates(220, 221); break; @@ -4359,8 +4366,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffffffffffffL & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddTwoStates(220, 221); break; @@ -4368,8 +4375,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddStates(439, 442); break; @@ -4377,8 +4384,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddStates(443, 449); break; @@ -4386,8 +4393,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddStates(450, 452); break; @@ -4395,8 +4402,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddStates(453, 456); break; @@ -4404,8 +4411,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddStates(457, 461); break; @@ -4413,8 +4420,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddStates(462, 467); break; @@ -4465,8 +4472,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 244: - if ((0x10000000100000L & l) != 0L && kind > 70) { - kind = 70; + if ((0x10000000100000L & l) != 0L && kind > 71) { + kind = 71; } break; case 245: @@ -4500,8 +4507,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 252: - if ((0x10000000100000L & l) != 0L && kind > 104) { - kind = 104; + if ((0x10000000100000L & l) != 0L && kind > 105) { + kind = 105; } break; case 253: @@ -4548,8 +4555,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffe07fffffeL & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddTwoStates(220, 221); break; @@ -4562,14 +4569,14 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffe07fffffeL & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddStates(812, 817); break; case 270: - if ((0x10000000100000L & l) != 0L && kind > 78) { - kind = 78; + if ((0x10000000100000L & l) != 0L && kind > 79) { + kind = 79; } break; case 271: @@ -4578,8 +4585,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 273: - if ((0x200000002000L & l) != 0L && kind > 79) { - kind = 79; + if ((0x200000002000L & l) != 0L && kind > 80) { + kind = 80; } break; case 274: @@ -4588,8 +4595,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 276: - if ((0x200000002000L & l) != 0L && kind > 80) { - kind = 80; + if ((0x200000002000L & l) != 0L && kind > 81) { + kind = 81; } break; case 277: @@ -4598,8 +4605,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 279: - if ((0x800000008L & l) != 0L && kind > 81) { - kind = 81; + if ((0x800000008L & l) != 0L && kind > 82) { + kind = 82; } break; case 280: @@ -4608,8 +4615,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 282: - if ((0x400000004000L & l) != 0L && kind > 82) { - kind = 82; + if ((0x400000004000L & l) != 0L && kind > 83) { + kind = 83; } break; case 283: @@ -4618,8 +4625,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 285: - if ((0x100000001000000L & l) != 0L && kind > 83) { - kind = 83; + if ((0x100000001000000L & l) != 0L && kind > 84) { + kind = 84; } break; case 286: @@ -4628,8 +4635,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 288: - if ((0x200000002000L & l) != 0L && kind > 84) { - kind = 84; + if ((0x200000002000L & l) != 0L && kind > 85) { + kind = 85; } break; case 289: @@ -4638,8 +4645,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 291: - if ((0x200000002000L & l) != 0L && kind > 85) { - kind = 85; + if ((0x200000002000L & l) != 0L && kind > 86) { + kind = 86; } break; case 292: @@ -4653,8 +4660,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 295: - if ((0x200000002000L & l) != 0L && kind > 86) { - kind = 86; + if ((0x200000002000L & l) != 0L && kind > 87) { + kind = 87; } break; case 296: @@ -4668,8 +4675,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 299: - if ((0x100000001000000L & l) != 0L && kind > 87) { - kind = 87; + if ((0x100000001000000L & l) != 0L && kind > 88) { + kind = 88; } break; case 300: @@ -4678,8 +4685,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 302: - if ((0x8000000080L & l) != 0L && kind > 88) { - kind = 88; + if ((0x8000000080L & l) != 0L && kind > 89) { + kind = 89; } break; case 303: @@ -4693,8 +4700,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 306: - if ((0x1000000010L & l) != 0L && kind > 89) { - kind = 89; + if ((0x1000000010L & l) != 0L && kind > 90) { + kind = 90; } break; case 307: @@ -4708,8 +4715,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 310: - if ((0x1000000010L & l) != 0L && kind > 90) { - kind = 90; + if ((0x1000000010L & l) != 0L && kind > 91) { + kind = 91; } break; case 311: @@ -4728,8 +4735,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 315: - if ((0x8000000080000L & l) != 0L && kind > 91) { - kind = 91; + if ((0x8000000080000L & l) != 0L && kind > 92) { + kind = 92; } break; case 316: @@ -4738,13 +4745,13 @@ public class ParserTokenManager implements ParserConstants { } break; case 318: - if ((0x8000000080000L & l) != 0L && kind > 92) { - kind = 92; + if ((0x8000000080000L & l) != 0L && kind > 93) { + kind = 93; } break; case 320: - if ((0x400000004000000L & l) != 0L && kind > 93) { - kind = 93; + if ((0x400000004000000L & l) != 0L && kind > 94) { + kind = 94; } break; case 321: @@ -4753,8 +4760,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 323: - if ((0x400000004000000L & l) != 0L && kind > 94) { - kind = 94; + if ((0x400000004000000L & l) != 0L && kind > 95) { + kind = 95; } break; case 324: @@ -4771,8 +4778,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffe07fffffeL & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddTwoStates(329, 330); break; @@ -4780,8 +4787,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffe87fffffeL & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddTwoStates(329, 330); break; @@ -4794,8 +4801,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffffffffffffL & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddTwoStates(329, 330); break; @@ -4803,8 +4810,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddStates(503, 506); break; @@ -4812,8 +4819,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddStates(507, 513); break; @@ -4821,8 +4828,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddStates(514, 516); break; @@ -4830,8 +4837,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddStates(517, 520); break; @@ -4839,8 +4846,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddStates(521, 525); break; @@ -4848,8 +4855,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddStates(526, 531); break; @@ -4862,8 +4869,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddStates(532, 535); break; @@ -4871,8 +4878,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddStates(536, 542); break; @@ -4880,8 +4887,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddStates(543, 545); break; @@ -4889,8 +4896,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddStates(546, 549); break; @@ -4898,8 +4905,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddStates(550, 554); break; @@ -4907,8 +4914,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddStates(555, 560); break; @@ -5064,8 +5071,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjAddStates(712, 717); break; @@ -5085,8 +5092,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 409: - if ((0x7e0000007eL & l) != 0L && kind > 114) { - kind = 114; + if ((0x7e0000007eL & l) != 0L && kind > 115) { + kind = 115; } break; case 410: @@ -5108,8 +5115,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjstateSet[jjnewStateCnt++] = 401; break; @@ -5127,8 +5134,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjstateSet[jjnewStateCnt++] = 417; break; @@ -5141,8 +5148,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjstateSet[jjnewStateCnt++] = 420; break; @@ -5150,8 +5157,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjstateSet[jjnewStateCnt++] = 423; break; @@ -5164,8 +5171,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjstateSet[jjnewStateCnt++] = 434; break; @@ -5173,8 +5180,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjCheckNAddStates(728, 731); break; @@ -5182,8 +5189,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjCheckNAdd(409); break; @@ -5191,8 +5198,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjCheckNAddTwoStates(409, 435); break; @@ -5200,8 +5207,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 114) { - kind = 114; + if (kind > 115) { + kind = 115; } jjCheckNAddStates(732, 734); break; @@ -5239,8 +5246,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddStates(747, 750); break; @@ -5248,8 +5255,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddStates(751, 757); break; @@ -5257,8 +5264,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddStates(758, 760); break; @@ -5266,8 +5273,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddStates(761, 764); break; @@ -5275,8 +5282,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddStates(765, 769); break; @@ -5284,8 +5291,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddStates(770, 775); break; @@ -5329,8 +5336,8 @@ public class ParserTokenManager implements ParserConstants { if ((jjbitVec0[i2] & l2) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddTwoStates(113, 114); break; @@ -5338,8 +5345,8 @@ public class ParserTokenManager implements ParserConstants { if ((jjbitVec0[i2] & l2) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddTwoStates(113, 114); break; @@ -5347,8 +5354,8 @@ public class ParserTokenManager implements ParserConstants { if ((jjbitVec0[i2] & l2) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddTwoStates(113, 114); break; @@ -5356,15 +5363,15 @@ public class ParserTokenManager implements ParserConstants { if ((jjbitVec0[i2] & l2) == 0L) { break; } - if (kind > 41) { - kind = 41; + if (kind > 42) { + kind = 42; } jjCheckNAddStates(812, 817); break; - case 517: + case 518: if ((jjbitVec0[i2] & l2) != 0L) { - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddTwoStates(220, 221); } @@ -5376,15 +5383,15 @@ public class ParserTokenManager implements ParserConstants { if ((jjbitVec0[i2] & l2) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddTwoStates(113, 114); break; case 33: if ((jjbitVec0[i2] & l2) != 0L) { - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddTwoStates(220, 221); } @@ -5396,8 +5403,8 @@ public class ParserTokenManager implements ParserConstants { if ((jjbitVec0[i2] & l2) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddTwoStates(113, 114); break; @@ -5405,8 +5412,8 @@ public class ParserTokenManager implements ParserConstants { if ((jjbitVec0[i2] & l2) == 0L) { break; } - if (kind > 103) { - kind = 103; + if (kind > 104) { + kind = 104; } jjCheckNAddTwoStates(113, 114); break; @@ -5416,8 +5423,8 @@ public class ParserTokenManager implements ParserConstants { if ((jjbitVec0[i2] & l2) == 0L) { break; } - if (kind > 76) { - kind = 76; + if (kind > 77) { + kind = 77; } jjCheckNAddTwoStates(81, 82); break; @@ -5450,8 +5457,8 @@ public class ParserTokenManager implements ParserConstants { if ((jjbitVec0[i2] & l2) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddTwoStates(100, 101); break; @@ -5460,8 +5467,8 @@ public class ParserTokenManager implements ParserConstants { if ((jjbitVec0[i2] & l2) == 0L) { break; } - if (kind > 72) { - kind = 72; + if (kind > 73) { + kind = 73; } jjCheckNAddTwoStates(220, 221); break; @@ -5477,8 +5484,8 @@ public class ParserTokenManager implements ParserConstants { if ((jjbitVec0[i2] & l2) == 0L) { break; } - if (kind > 95) { - kind = 95; + if (kind > 96) { + kind = 96; } jjCheckNAddTwoStates(329, 330); break; @@ -5739,15 +5746,15 @@ public class ParserTokenManager implements ParserConstants { null, null, null, null, null, null, "\74\41\55\55", "\55\55\76", "\173", "\175", "\174\75", "\136\75", "\44\75", "\52\75", "\176\75", "\75", "\53", "\55", "\54", "\73", "\76", "\176", "\74", - "\57", "\133", "\135", "\52", "\46", "\56", "\50", "\51", "\75\75", - "\174\174", "\46\46", "\41\75", "\72", null, null, null, null, + "\57", "\133", "\135", "\52", "\45", "\46", "\56", "\50", "\51", + "\75\75", "\174\174", "\46\46", "\41\75", "\72", null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, - null, null, null, null, null, null, null, null, null, null, }; + null, null, null, null, null, null, null, null, null, null, null, }; /** Lexer state names. */ public static final String[] lexStateNames = { "DEFAULT", @@ -5762,8 +5769,8 @@ public class ParserTokenManager implements ParserConstants { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, }; - static final long[] jjtoToken = { 0xfffc03fffffffc03L, 0xfc01fffffffbffL, }; + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, }; + static final long[] jjtoToken = { 0xfff807fffffffc03L, 0x1f803fffffff7ffL, }; static final long[] jjtoSkip = { 0x190L, 0x0L, }; static final long[] jjtoSpecial = { 0x80L, 0x0L, }; static final long[] jjtoMore = { 0x26cL, 0x0L, }; @@ -5875,8 +5882,8 @@ public class ParserTokenManager implements ParserConstants { jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_0(); - if (jjmatchedPos == 0 && jjmatchedKind > 119) { - jjmatchedKind = 119; + if (jjmatchedPos == 0 && jjmatchedKind > 120) { + jjmatchedKind = 120; } break; case 1: diff --git a/theme-compiler/src/com/vaadin/sass/internal/parser/SCSSLexicalUnit.java b/theme-compiler/src/com/vaadin/sass/internal/parser/SCSSLexicalUnit.java index 935e4e5abd..709d1d3576 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/parser/SCSSLexicalUnit.java +++ b/theme-compiler/src/com/vaadin/sass/internal/parser/SCSSLexicalUnit.java @@ -19,6 +19,8 @@ import org.w3c.css.sac.LexicalUnit; public interface SCSSLexicalUnit extends LexicalUnit { static final short SCSS_VARIABLE = 100; + static final short SCSS_OPERATOR_LEFT_PAREN = 101; + static final short SCSS_OPERATOR_RIGHT_PAREN = 102; static final short SAC_LEM = 200; static final short SAC_REM = 201; @@ -31,4 +33,6 @@ public interface SCSSLexicalUnit extends LexicalUnit { LexicalUnitImpl multiply(LexicalUnitImpl another); + LexicalUnitImpl modulo(LexicalUnitImpl another); + } diff --git a/theme-compiler/src/com/vaadin/sass/internal/tree/RuleNode.java b/theme-compiler/src/com/vaadin/sass/internal/tree/RuleNode.java index a78d9d66d2..19880e4ce5 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/tree/RuleNode.java +++ b/theme-compiler/src/com/vaadin/sass/internal/tree/RuleNode.java @@ -20,6 +20,7 @@ import java.util.ArrayList; import java.util.regex.Pattern; import com.vaadin.sass.internal.ScssStylesheet; +import com.vaadin.sass.internal.expression.ArithmeticExpressionEvaluator; import com.vaadin.sass.internal.parser.LexicalUnitImpl; import com.vaadin.sass.internal.util.StringUtil; @@ -140,6 +141,20 @@ public class RuleNode extends Node implements IVariableNode { @Override public void traverse() { - replaceVariables(ScssStylesheet.getVariables()); + /* + * "replaceVariables(ScssStylesheet.getVariables());" seems duplicated + * and can be extracted out of if, but it is not. + * containsArithmeticalOperator must be called before replaceVariables. + * Because for the "/" operator, it needs to see if its predecessor or + * successor is a Variable or not, to determine it is an arithmetic + * operator. + */ + if (ArithmeticExpressionEvaluator.get().containsArithmeticalOperator( + value)) { + replaceVariables(ScssStylesheet.getVariables()); + value = ArithmeticExpressionEvaluator.get().evaluate(value); + } else { + replaceVariables(ScssStylesheet.getVariables()); + } } } diff --git a/theme-compiler/src/com/vaadin/sass/internal/tree/VariableNode.java b/theme-compiler/src/com/vaadin/sass/internal/tree/VariableNode.java index 90be727f88..f2499d72ab 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/tree/VariableNode.java +++ b/theme-compiler/src/com/vaadin/sass/internal/tree/VariableNode.java @@ -19,6 +19,7 @@ package com.vaadin.sass.internal.tree; import java.util.ArrayList; import com.vaadin.sass.internal.ScssStylesheet; +import com.vaadin.sass.internal.expression.ArithmeticExpressionEvaluator; import com.vaadin.sass.internal.parser.LexicalUnitImpl; import com.vaadin.sass.internal.util.StringUtil; import com.vaadin.sass.internal.visitor.VariableNodeHandler; @@ -101,7 +102,21 @@ public class VariableNode extends Node implements IVariableNode { @Override public void traverse() { - replaceVariables(ScssStylesheet.getVariables()); + /* + * "replaceVariables(ScssStylesheet.getVariables());" seems duplicated + * and can be extracted out of if, but it is not. + * containsArithmeticalOperator must be called before replaceVariables. + * Because for the "/" operator, it needs to see if its predecessor or + * successor is a Variable or not, to determine it is an arithmetic + * operator. + */ + if (ArithmeticExpressionEvaluator.get().containsArithmeticalOperator( + expr)) { + replaceVariables(ScssStylesheet.getVariables()); + expr = ArithmeticExpressionEvaluator.get().evaluate(expr); + } else { + replaceVariables(ScssStylesheet.getVariables()); + } VariableNodeHandler.traverse(this); } } -- cgit v1.2.3 From 970b2efaa1416689f537c7752c11e9062f77974a Mon Sep 17 00:00:00 2001 From: Haijian Wang Date: Thu, 28 Feb 2013 10:17:40 +0200 Subject: support @content directive for Sass compiler (Ticket #10207) Change-Id: I8037e1d64afd1ce2044d89d3bdcf408f6162727c --- .classpath | 2 +- .../sass/internal/handler/SCSSDocumentHandler.java | 6 + .../internal/handler/SCSSDocumentHandlerImpl.java | 20 + .../com/vaadin/sass/internal/parser/Parser.java | 1827 +++++++++++--------- .../src/com/vaadin/sass/internal/parser/Parser.jj | 19 +- .../sass/internal/parser/ParserConstants.java | 110 +- .../sass/internal/parser/ParserTokenManager.java | 1192 ++++++------- .../com/vaadin/sass/internal/tree/ContentNode.java | 33 + .../vaadin/sass/internal/tree/MixinDefNode.java | 34 + .../com/vaadin/sass/internal/tree/MixinNode.java | 19 +- .../src/com/vaadin/sass/internal/tree/Node.java | 17 + .../com/vaadin/sass/internal/util/DeepCopy.java | 10 + .../sass/internal/visitor/ImportNodeHandler.java | 9 +- .../sass/internal/visitor/MixinNodeHandler.java | 17 +- .../css/mixin-content-directive-with-vars.css | 5 + .../automatic/css/mixin-content-directive.css | 20 + .../scss/mixin-content-directive-with-vars.scss | 9 + .../automatic/scss/mixin-content-directive.scss | 40 + 18 files changed, 1857 insertions(+), 1532 deletions(-) create mode 100644 theme-compiler/src/com/vaadin/sass/internal/tree/ContentNode.java create mode 100644 theme-compiler/tests/resources/automatic/css/mixin-content-directive-with-vars.css create mode 100644 theme-compiler/tests/resources/automatic/css/mixin-content-directive.css create mode 100644 theme-compiler/tests/resources/automatic/scss/mixin-content-directive-with-vars.scss create mode 100644 theme-compiler/tests/resources/automatic/scss/mixin-content-directive.scss (limited to 'theme-compiler/src') diff --git a/.classpath b/.classpath index c643b0af4e..cc95780a5c 100644 --- a/.classpath +++ b/.classpath @@ -17,7 +17,7 @@ - + diff --git a/theme-compiler/src/com/vaadin/sass/internal/handler/SCSSDocumentHandler.java b/theme-compiler/src/com/vaadin/sass/internal/handler/SCSSDocumentHandler.java index 9dc6e33873..b9672b6c78 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/handler/SCSSDocumentHandler.java +++ b/theme-compiler/src/com/vaadin/sass/internal/handler/SCSSDocumentHandler.java @@ -96,4 +96,10 @@ public interface SCSSDocumentHandler extends DocumentHandler { void endKeyframeSelector(); + void contentDirective(); + + void startIncludeContentBlock(String name); + + void endIncludeContentBlock(); + } diff --git a/theme-compiler/src/com/vaadin/sass/internal/handler/SCSSDocumentHandlerImpl.java b/theme-compiler/src/com/vaadin/sass/internal/handler/SCSSDocumentHandlerImpl.java index d155d8522f..d77a404ae8 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/handler/SCSSDocumentHandlerImpl.java +++ b/theme-compiler/src/com/vaadin/sass/internal/handler/SCSSDocumentHandlerImpl.java @@ -30,6 +30,7 @@ import com.vaadin.sass.internal.ScssStylesheet; import com.vaadin.sass.internal.parser.LexicalUnitImpl; import com.vaadin.sass.internal.tree.BlockNode; import com.vaadin.sass.internal.tree.CommentNode; +import com.vaadin.sass.internal.tree.ContentNode; import com.vaadin.sass.internal.tree.ExtendNode; import com.vaadin.sass.internal.tree.FontFaceNode; import com.vaadin.sass.internal.tree.ForNode; @@ -365,4 +366,23 @@ public class SCSSDocumentHandlerImpl implements SCSSDocumentHandler { public void endKeyframeSelector() { nodeStack.pop(); } + + @Override + public void contentDirective() { + ContentNode node = new ContentNode(); + nodeStack.peek().appendChild(node); + } + + @Override + public void startIncludeContentBlock(String name) { + MixinNode node = new MixinNode(name); + nodeStack.peek().appendChild(node); + nodeStack.push(node); + + } + + @Override + public void endIncludeContentBlock() { + nodeStack.pop(); + } } diff --git a/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.java b/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.java index 492b79bbfc..34da123085 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.java +++ b/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.java @@ -16,35 +16,25 @@ /* Generated By:JavaCC: Do not edit this line. Parser.java */ package com.vaadin.sass.internal.parser; -import java.io.*; -import java.net.*; +import java.io.BufferedInputStream; +import java.io.FileInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.Reader; +import java.net.URL; import java.util.ArrayList; import java.util.Locale; -import java.util.Map; import java.util.UUID; -import org.w3c.css.sac.ConditionFactory; -import org.w3c.css.sac.Condition; -import org.w3c.css.sac.SelectorFactory; -import org.w3c.css.sac.SelectorList; -import org.w3c.css.sac.Selector; -import org.w3c.css.sac.SimpleSelector; -import org.w3c.css.sac.DocumentHandler; -import org.w3c.css.sac.InputSource; -import org.w3c.css.sac.ErrorHandler; -import org.w3c.css.sac.CSSException; -import org.w3c.css.sac.CSSParseException; -import org.w3c.css.sac.Locator; -import org.w3c.css.sac.LexicalUnit; +import org.omg.IOP.Encoding; +import org.xml.sax.DocumentHandler; +import org.xml.sax.InputSource; +import org.xml.sax.Locator; -import org.w3c.flute.parser.selectors.SelectorFactoryImpl; -import org.w3c.flute.parser.selectors.ConditionFactoryImpl; - -import org.w3c.flute.util.Encoding; - -import com.vaadin.sass.internal.handler.*; - -import com.vaadin.sass.internal.tree.*; +import com.vaadin.sass.internal.handler.SCSSDocumentHandlerImpl; +import com.vaadin.sass.internal.tree.Node; +import com.vaadin.sass.internal.tree.VariableNode; /** * A CSS2 parser @@ -959,6 +949,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { case EACH_SYM: case IF_SYM: case EXTEND_SYM: + case CONTENT_SYM: case MICROSOFT_RULE: case IDENT: case VARIABLE: @@ -985,6 +976,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { case DEBUG_SYM: case WARN_SYM: case EXTEND_SYM: + case CONTENT_SYM: case IDENT: case VARIABLE: case HASH: @@ -1916,6 +1908,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { case EACH_SYM: case IF_SYM: case EXTEND_SYM: + case CONTENT_SYM: case MICROSOFT_RULE: case IDENT: case VARIABLE: @@ -1942,6 +1935,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { case DEBUG_SYM: case WARN_SYM: case EXTEND_SYM: + case CONTENT_SYM: case IDENT: case VARIABLE: case HASH: @@ -2823,6 +2817,9 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { final public void ifContentStatement() throws ParseException { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { + case CONTENT_SYM: + contentDirective(); + break; case INCLUDE_SYM: includeDirective(); break; @@ -2931,6 +2928,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { case DEBUG_SYM: case WARN_SYM: case EXTEND_SYM: + case CONTENT_SYM: case IDENT: case VARIABLE: case HASH: @@ -3055,6 +3053,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { case DEBUG_SYM: case WARN_SYM: case EXTEND_SYM: + case CONTENT_SYM: case IDENT: case VARIABLE: case HASH: @@ -3243,6 +3242,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { case DEBUG_SYM: case WARN_SYM: case EXTEND_SYM: + case CONTENT_SYM: case IDENT: case VARIABLE: case HASH: @@ -3402,6 +3402,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { case EACH_SYM: case IF_SYM: case EXTEND_SYM: + case CONTENT_SYM: case IDENT: case VARIABLE: case HASH: @@ -3429,6 +3430,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { case DEBUG_SYM: case WARN_SYM: case EXTEND_SYM: + case CONTENT_SYM: case IDENT: case VARIABLE: case HASH: @@ -3805,29 +3807,88 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { jj_consume_token(-1); throw new ParseException(); } - label_109: while (true) { - jj_consume_token(SEMICOLON); - label_110: while (true) { + switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { + case SEMICOLON: + label_109: while (true) { + jj_consume_token(SEMICOLON); + label_110: while (true) { + switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { + case S: + ; + break; + default: + jj_la1[159] = jj_gen; + break label_110; + } + jj_consume_token(S); + } + switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { + case SEMICOLON: + ; + break; + default: + jj_la1[160] = jj_gen; + break label_109; + } + } + documentHandler.includeDirective(name, args); + break; + case LBRACE: + jj_consume_token(LBRACE); + label_111: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[159] = jj_gen; - break label_110; + jj_la1[161] = jj_gen; + break label_111; } jj_consume_token(S); } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case SEMICOLON: - ; - break; - default: - jj_la1[160] = jj_gen; - break label_109; + documentHandler.startIncludeContentBlock(name); + label_112: while (true) { + switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { + case PLUS: + case PRECEDES: + case SIBLING: + case LBRACKET: + case ANY: + case PARENT: + case DOT: + case COLON: + case INTERPOLATION: + case DEBUG_SYM: + case WARN_SYM: + case IDENT: + case HASH: + ; + break; + default: + jj_la1[162] = jj_gen; + break label_112; + } + styleRuleOrDeclarationOrNestedProperties(); + } + jj_consume_token(RBRACE); + label_113: while (true) { + switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { + case S: + ; + break; + default: + jj_la1[163] = jj_gen; + break label_113; + } + jj_consume_token(S); } + documentHandler.endIncludeContentBlock(); + break; + default: + jj_la1[164] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); } - documentHandler.includeDirective(name, args); } final public String interpolation() throws ParseException { @@ -3851,26 +3912,26 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { // refactor, remove those 3 LOOKAHEAD(5). n = jj_consume_token(VARIABLE); variable = n.image; - label_111: while (true) { + label_114: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[161] = jj_gen; - break label_111; + jj_la1[165] = jj_gen; + break label_114; } jj_consume_token(S); } jj_consume_token(COLON); - label_112: while (true) { + label_115: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[162] = jj_gen; - break label_112; + jj_la1[166] = jj_gen; + break label_115; } jj_consume_token(S); } @@ -3885,18 +3946,18 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { type = jj_consume_token(CONTAINS); break; default: - jj_la1[163] = jj_gen; + jj_la1[167] = jj_gen; jj_consume_token(-1); throw new ParseException(); } - label_113: while (true) { + label_116: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[164] = jj_gen; - break label_113; + jj_la1[168] = jj_gen; + break label_116; } jj_consume_token(S); } @@ -3906,18 +3967,18 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { jj_consume_token(RPARAN); break; default: - jj_la1[165] = jj_gen; + jj_la1[169] = jj_gen; ; } jj_consume_token(COMMA); - label_114: while (true) { + label_117: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[166] = jj_gen; - break label_114; + jj_la1[170] = jj_gen; + break label_117; } jj_consume_token(S); } @@ -3925,33 +3986,33 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case COMMA: jj_consume_token(COMMA); - label_115: while (true) { + label_118: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[167] = jj_gen; - break label_115; + jj_la1[171] = jj_gen; + break label_118; } jj_consume_token(S); } n = jj_consume_token(IDENT); separator = n.image; - label_116: while (true) { + label_119: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[168] = jj_gen; - break label_116; + jj_la1[172] = jj_gen; + break label_119; } jj_consume_token(S); } break; default: - jj_la1[169] = jj_gen; + jj_la1[173] = jj_gen; ; } jj_consume_token(RPARAN); @@ -3972,26 +4033,26 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { default: break; } - label_117: while (true) { + label_120: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[170] = jj_gen; - break label_117; + jj_la1[174] = jj_gen; + break label_120; } jj_consume_token(S); } jj_consume_token(SEMICOLON); - label_118: while (true) { + label_121: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[171] = jj_gen; - break label_118; + jj_la1[175] = jj_gen; + break label_121; } jj_consume_token(S); } @@ -4009,38 +4070,38 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { Token n = null; n = jj_consume_token(VARIABLE); variable = n.image; - label_119: while (true) { + label_122: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[172] = jj_gen; - break label_119; + jj_la1[176] = jj_gen; + break label_122; } jj_consume_token(S); } jj_consume_token(COLON); - label_120: while (true) { + label_123: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[173] = jj_gen; - break label_120; + jj_la1[177] = jj_gen; + break label_123; } jj_consume_token(S); } jj_consume_token(APPEND); - label_121: while (true) { + label_124: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[174] = jj_gen; - break label_121; + jj_la1[178] = jj_gen; + break label_124; } jj_consume_token(S); } @@ -4050,18 +4111,18 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { jj_consume_token(RPARAN); break; default: - jj_la1[175] = jj_gen; + jj_la1[179] = jj_gen; ; } jj_consume_token(COMMA); - label_122: while (true) { + label_125: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[176] = jj_gen; - break label_122; + jj_la1[180] = jj_gen; + break label_125; } jj_consume_token(S); } @@ -4069,33 +4130,33 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case COMMA: jj_consume_token(COMMA); - label_123: while (true) { + label_126: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[177] = jj_gen; - break label_123; + jj_la1[181] = jj_gen; + break label_126; } jj_consume_token(S); } n = jj_consume_token(IDENT); separator = n.image; - label_124: while (true) { + label_127: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[178] = jj_gen; - break label_124; + jj_la1[182] = jj_gen; + break label_127; } jj_consume_token(S); } break; default: - jj_la1[179] = jj_gen; + jj_la1[183] = jj_gen; ; } jj_consume_token(RPARAN); @@ -4114,38 +4175,38 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { Token n = null; n = jj_consume_token(VARIABLE); variable = n.image; - label_125: while (true) { + label_128: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[180] = jj_gen; - break label_125; + jj_la1[184] = jj_gen; + break label_128; } jj_consume_token(S); } jj_consume_token(COLON); - label_126: while (true) { + label_129: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[181] = jj_gen; - break label_126; + jj_la1[185] = jj_gen; + break label_129; } jj_consume_token(S); } jj_consume_token(REMOVE); - label_127: while (true) { + label_130: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[182] = jj_gen; - break label_127; + jj_la1[186] = jj_gen; + break label_130; } jj_consume_token(S); } @@ -4155,18 +4216,18 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { jj_consume_token(RPARAN); break; default: - jj_la1[183] = jj_gen; + jj_la1[187] = jj_gen; ; } jj_consume_token(COMMA); - label_128: while (true) { + label_131: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[184] = jj_gen; - break label_128; + jj_la1[188] = jj_gen; + break label_131; } jj_consume_token(S); } @@ -4174,33 +4235,33 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case COMMA: jj_consume_token(COMMA); - label_129: while (true) { + label_132: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[185] = jj_gen; - break label_129; + jj_la1[189] = jj_gen; + break label_132; } jj_consume_token(S); } n = jj_consume_token(IDENT); separator = n.image; - label_130: while (true) { + label_133: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[186] = jj_gen; - break label_130; + jj_la1[190] = jj_gen; + break label_133; } jj_consume_token(S); } break; default: - jj_la1[187] = jj_gen; + jj_la1[191] = jj_gen; ; } jj_consume_token(RPARAN); @@ -4221,43 +4282,43 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { case VARIABLE: n = jj_consume_token(VARIABLE); variable = n.image; - label_131: while (true) { + label_134: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[188] = jj_gen; - break label_131; + jj_la1[192] = jj_gen; + break label_134; } jj_consume_token(S); } jj_consume_token(COLON); - label_132: while (true) { + label_135: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[189] = jj_gen; - break label_132; + jj_la1[193] = jj_gen; + break label_135; } jj_consume_token(S); } break; default: - jj_la1[190] = jj_gen; + jj_la1[194] = jj_gen; ; } jj_consume_token(CONTAINS); - label_133: while (true) { + label_136: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[191] = jj_gen; - break label_133; + jj_la1[195] = jj_gen; + break label_136; } jj_consume_token(S); } @@ -4267,18 +4328,18 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { jj_consume_token(RPARAN); break; default: - jj_la1[192] = jj_gen; + jj_la1[196] = jj_gen; ; } jj_consume_token(COMMA); - label_134: while (true) { + label_137: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[193] = jj_gen; - break label_134; + jj_la1[197] = jj_gen; + break label_137; } jj_consume_token(S); } @@ -4286,33 +4347,33 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case COMMA: jj_consume_token(COMMA); - label_135: while (true) { + label_138: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[194] = jj_gen; - break label_135; + jj_la1[198] = jj_gen; + break label_138; } jj_consume_token(S); } n = jj_consume_token(IDENT); separator = n.image; - label_136: while (true) { + label_139: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[195] = jj_gen; - break label_136; + jj_la1[199] = jj_gen; + break label_139; } jj_consume_token(S); } break; default: - jj_la1[196] = jj_gen; + jj_la1[200] = jj_gen; ; } jj_consume_token(RPARAN); @@ -4414,7 +4475,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { warnDirective(); break; default: - jj_la1[197] = jj_gen; + jj_la1[201] = jj_gen; jj_consume_token(-1); throw new ParseException(); } @@ -4426,14 +4487,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { // TODO should evaluate the content expression, call // documentHandler.debugDirective() etc. System.out.println(content); - label_137: while (true) { + label_140: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[198] = jj_gen; - break label_137; + jj_la1[202] = jj_gen; + break label_140; } jj_consume_token(S); } @@ -4445,14 +4506,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { // TODO should evaluate the content expression, call // documentHandler.warnDirective() etc. System.err.println(content); - label_138: while (true) { + label_141: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[199] = jj_gen; - break label_138; + jj_la1[203] = jj_gen; + break label_141; } jj_consume_token(S); } @@ -4478,19 +4539,19 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { exclusive = false; break; default: - jj_la1[200] = jj_gen; + jj_la1[204] = jj_gen; jj_consume_token(-1); throw new ParseException(); } to = skipStatementUntilLeftBrace(); - label_139: while (true) { + label_142: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[201] = jj_gen; - break label_139; + jj_la1[205] = jj_gen; + break label_142; } jj_consume_token(S); } @@ -4520,28 +4581,28 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { final public void extendDirective() throws ParseException { ArrayList list; jj_consume_token(EXTEND_SYM); - label_140: while (true) { + label_143: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[202] = jj_gen; - break label_140; + jj_la1[206] = jj_gen; + break label_143; } jj_consume_token(S); } list = selectorList(); - label_141: while (true) { + label_144: while (true) { jj_consume_token(SEMICOLON); - label_142: while (true) { + label_145: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[203] = jj_gen; - break label_142; + jj_la1[207] = jj_gen; + break label_145; } jj_consume_token(S); } @@ -4550,13 +4611,51 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { ; break; default: - jj_la1[204] = jj_gen; - break label_141; + jj_la1[208] = jj_gen; + break label_144; } } documentHandler.extendDirective(list); } + final public void contentDirective() throws ParseException { + jj_consume_token(CONTENT_SYM); + label_146: while (true) { + switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { + case S: + ; + break; + default: + jj_la1[209] = jj_gen; + break label_146; + } + jj_consume_token(S); + } + label_147: while (true) { + jj_consume_token(SEMICOLON); + label_148: while (true) { + switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { + case S: + ; + break; + default: + jj_la1[210] = jj_gen; + break label_148; + } + jj_consume_token(S); + } + switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { + case SEMICOLON: + ; + break; + default: + jj_la1[211] = jj_gen; + break label_147; + } + } + documentHandler.contentDirective(); + } + Node importDirective() throws ParseException { return null; } @@ -4578,26 +4677,26 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { LexicalUnit exp; name = property(); jj_consume_token(COLON); - label_143: while (true) { + label_149: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[205] = jj_gen; - break label_143; + jj_la1[212] = jj_gen; + break label_149; } jj_consume_token(S); } jj_consume_token(LBRACE); - label_144: while (true) { + label_150: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[206] = jj_gen; - break label_144; + jj_la1[213] = jj_gen; + break label_150; } jj_consume_token(S); } @@ -4608,27 +4707,27 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { declaration(); break; default: - jj_la1[207] = jj_gen; + jj_la1[214] = jj_gen; ; } - label_145: while (true) { + label_151: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case SEMICOLON: ; break; default: - jj_la1[208] = jj_gen; - break label_145; + jj_la1[215] = jj_gen; + break label_151; } jj_consume_token(SEMICOLON); - label_146: while (true) { + label_152: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[209] = jj_gen; - break label_146; + jj_la1[216] = jj_gen; + break label_152; } jj_consume_token(S); } @@ -4638,20 +4737,20 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { declaration(); break; default: - jj_la1[210] = jj_gen; + jj_la1[217] = jj_gen; ; } } jj_consume_token(RBRACE); documentHandler.endNestedProperties(name); - label_147: while (true) { + label_153: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[211] = jj_gen; - break label_147; + jj_la1[218] = jj_gen; + break label_153; } jj_consume_token(S); } @@ -4670,7 +4769,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { debuggingDirective(); break; default: - jj_la1[212] = jj_gen; + jj_la1[219] = jj_gen; if (jj_2_6(2147483647)) { styleRule(); } else if (jj_2_7(3)) { @@ -4691,7 +4790,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { styleRule(); break; default: - jj_la1[213] = jj_gen; + jj_la1[220] = jj_gen; jj_consume_token(-1); throw new ParseException(); } @@ -4736,14 +4835,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { name = property(); save = token; jj_consume_token(COLON); - label_148: while (true) { + label_154: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[214] = jj_gen; - break label_148; + jj_la1[221] = jj_gen; + break label_154; } jj_consume_token(S); } @@ -4784,7 +4883,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { important = prio(); break; default: - jj_la1[215] = jj_gen; + jj_la1[222] = jj_gen; ; } Token next = getToken(1); @@ -4803,14 +4902,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { break; case LBRACE: jj_consume_token(LBRACE); - label_149: while (true) { + label_155: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[216] = jj_gen; - break label_149; + jj_la1[223] = jj_gen; + break label_155; } jj_consume_token(S); } @@ -4821,27 +4920,27 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { declaration(); break; default: - jj_la1[217] = jj_gen; + jj_la1[224] = jj_gen; ; } - label_150: while (true) { + label_156: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case SEMICOLON: ; break; default: - jj_la1[218] = jj_gen; - break label_150; + jj_la1[225] = jj_gen; + break label_156; } jj_consume_token(SEMICOLON); - label_151: while (true) { + label_157: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[219] = jj_gen; - break label_151; + jj_la1[226] = jj_gen; + break label_157; } jj_consume_token(S); } @@ -4851,26 +4950,26 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { declaration(); break; default: - jj_la1[220] = jj_gen; + jj_la1[227] = jj_gen; ; } } jj_consume_token(RBRACE); - label_152: while (true) { + label_158: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[221] = jj_gen; - break label_152; + jj_la1[228] = jj_gen; + break label_158; } jj_consume_token(S); } documentHandler.endNestedProperties(name); break; default: - jj_la1[222] = jj_gen; + jj_la1[229] = jj_gen; jj_consume_token(-1); throw new ParseException(); } @@ -4918,14 +5017,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { name = property(); save = token; jj_consume_token(COLON); - label_153: while (true) { + label_159: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[223] = jj_gen; - break label_153; + jj_la1[230] = jj_gen; + break label_159; } jj_consume_token(S); } @@ -4935,7 +5034,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { important = prio(); break; default: - jj_la1[224] = jj_gen; + jj_la1[231] = jj_gen; ; } documentHandler.property(name, exp, important); @@ -4976,14 +5075,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { */ final public boolean prio() throws ParseException { jj_consume_token(IMPORTANT_SYM); - label_154: while (true) { + label_160: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[225] = jj_gen; - break label_154; + jj_la1[232] = jj_gen; + break label_160; } jj_consume_token(S); } @@ -4997,14 +5096,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { final public boolean guarded() throws ParseException { jj_consume_token(GUARDED_SYM); - label_155: while (true) { + label_161: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[226] = jj_gen; - break label_155; + jj_la1[233] = jj_gen; + break label_161; } jj_consume_token(S); } @@ -5036,14 +5135,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { * parenthesis is not supported now. */ n = jj_consume_token(COMMA); - label_156: while (true) { + label_162: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[227] = jj_gen; - break label_156; + jj_la1[234] = jj_gen; + break label_162; } jj_consume_token(S); } @@ -5056,14 +5155,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { break; case DIV: n = jj_consume_token(DIV); - label_157: while (true) { + label_163: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[228] = jj_gen; - break label_157; + jj_la1[235] = jj_gen; + break label_163; } jj_consume_token(S); } @@ -5076,14 +5175,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { break; case ANY: n = jj_consume_token(ANY); - label_158: while (true) { + label_164: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[229] = jj_gen; - break label_158; + jj_la1[236] = jj_gen; + break label_164; } jj_consume_token(S); } @@ -5096,14 +5195,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { break; case MOD: n = jj_consume_token(MOD); - label_159: while (true) { + label_165: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[230] = jj_gen; - break label_159; + jj_la1[237] = jj_gen; + break label_165; } jj_consume_token(S); } @@ -5116,15 +5215,15 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { break; case PLUS: n = jj_consume_token(PLUS); - label_160: while (true) { + label_166: while (true) { jj_consume_token(S); switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[231] = jj_gen; - break label_160; + jj_la1[238] = jj_gen; + break label_166; } } { @@ -5136,15 +5235,15 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { break; case MINUS: n = jj_consume_token(MINUS); - label_161: while (true) { + label_167: while (true) { jj_consume_token(S); switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[232] = jj_gen; - break label_161; + jj_la1[239] = jj_gen; + break label_167; } } { @@ -5155,7 +5254,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } break; default: - jj_la1[233] = jj_gen; + jj_la1[240] = jj_gen; jj_consume_token(-1); throw new ParseException(); } @@ -5171,11 +5270,11 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { char op; first = term(null); res = first; - label_162: while (true) { + label_168: while (true) { if (jj_2_8(2)) { ; } else { - break label_162; + break label_168; } if (jj_2_9(2)) { res = operator(res); @@ -5215,7 +5314,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } break; default: - jj_la1[234] = jj_gen; + jj_la1[241] = jj_gen; jj_consume_token(-1); throw new ParseException(); } @@ -5267,7 +5366,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { result = variableTerm(prev); break; default: - jj_la1[235] = jj_gen; + jj_la1[242] = jj_gen; jj_consume_token(-1); throw new ParseException(); } @@ -5331,7 +5430,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { op = unaryOperator(); break; default: - jj_la1[236] = jj_gen; + jj_la1[243] = jj_gen; ; } switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { @@ -5446,7 +5545,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { result = function(op, prev); break; default: - jj_la1[237] = jj_gen; + jj_la1[244] = jj_gen; jj_consume_token(-1); throw new ParseException(); } @@ -5472,7 +5571,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { s += "."; break; default: - jj_la1[238] = jj_gen; + jj_la1[245] = jj_gen; ; } n = jj_consume_token(IDENT); @@ -5510,24 +5609,24 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { result = unicode(prev); break; default: - jj_la1[239] = jj_gen; + jj_la1[246] = jj_gen; jj_consume_token(-1); throw new ParseException(); } break; default: - jj_la1[240] = jj_gen; + jj_la1[247] = jj_gen; jj_consume_token(-1); throw new ParseException(); } - label_163: while (true) { + label_169: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[241] = jj_gen; - break label_163; + jj_la1[248] = jj_gen; + break label_169; } jj_consume_token(S); } @@ -5550,14 +5649,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { Token n; LexicalUnit params = null; n = jj_consume_token(FUNCTION); - label_164: while (true) { + label_170: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[242] = jj_gen; - break label_164; + jj_la1[249] = jj_gen; + break label_170; } jj_consume_token(S); } @@ -5613,7 +5712,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { params = expr(); break; default: - jj_la1[243] = jj_gen; + jj_la1[250] = jj_gen; ; } jj_consume_token(RPARAN); @@ -6150,14 +6249,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { */ final public void _parseRule() throws ParseException { String ret = null; - label_165: while (true) { + label_171: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[244] = jj_gen; - break label_165; + jj_la1[251] = jj_gen; + break label_171; } jj_consume_token(S); } @@ -6192,7 +6291,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { fontFace(); break; default: - jj_la1[245] = jj_gen; + jj_la1[252] = jj_gen; ret = skipStatement(); if ((ret == null) || (ret.length() == 0)) { { @@ -6215,14 +6314,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } final public void _parseImportRule() throws ParseException { - label_166: while (true) { + label_172: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[246] = jj_gen; - break label_166; + jj_la1[253] = jj_gen; + break label_172; } jj_consume_token(S); } @@ -6230,14 +6329,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } final public void _parseMediaRule() throws ParseException { - label_167: while (true) { + label_173: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[247] = jj_gen; - break label_167; + jj_la1[254] = jj_gen; + break label_173; } jj_consume_token(S); } @@ -6245,14 +6344,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } final public void _parseDeclarationBlock() throws ParseException { - label_168: while (true) { + label_174: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[248] = jj_gen; - break label_168; + jj_la1[255] = jj_gen; + break label_174; } jj_consume_token(S); } @@ -6262,27 +6361,27 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { declaration(); break; default: - jj_la1[249] = jj_gen; + jj_la1[256] = jj_gen; ; } - label_169: while (true) { + label_175: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case SEMICOLON: ; break; default: - jj_la1[250] = jj_gen; - break label_169; + jj_la1[257] = jj_gen; + break label_175; } jj_consume_token(SEMICOLON); - label_170: while (true) { + label_176: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[251] = jj_gen; - break label_170; + jj_la1[258] = jj_gen; + break label_176; } jj_consume_token(S); } @@ -6292,7 +6391,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { declaration(); break; default: - jj_la1[252] = jj_gen; + jj_la1[259] = jj_gen; ; } } @@ -6301,14 +6400,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { final public ArrayList _parseSelectors() throws ParseException { ArrayList p = null; try { - label_171: while (true) { + label_177: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case S: ; break; default: - jj_la1[253] = jj_gen; - break label_171; + jj_la1[260] = jj_gen; + break label_177; } jj_consume_token(S); } @@ -6436,85 +6535,55 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } } - private boolean jj_3R_182() { - if (jj_scan_token(VARIABLE)) { - return true; - } + private boolean jj_3R_252() { Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; + xsp = jj_scanpos; + if (jj_3R_263()) { + jj_scanpos = xsp; + if (jj_3R_264()) { + return true; } } return false; } - private boolean jj_3R_261() { - if (jj_scan_token(PLUS)) { + private boolean jj_3R_263() { + if (jj_scan_token(IDENT)) { return true; } return false; } - private boolean jj_3R_251() { + private boolean jj_3R_204() { Token xsp; - xsp = jj_scanpos; - if (jj_3R_260()) { - jj_scanpos = xsp; - if (jj_3R_261()) { - return true; + if (jj_3R_252()) { + return true; + } + while (true) { + xsp = jj_scanpos; + if (jj_3R_252()) { + jj_scanpos = xsp; + break; + } + } + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { + jj_scanpos = xsp; + break; } } return false; } - private boolean jj_3R_260() { + private boolean jj_3R_214() { if (jj_scan_token(MINUS)) { return true; } - return false; - } - - private boolean jj_3R_256() { - if (jj_scan_token(UNICODERANGE)) { - return true; - } - return false; - } - - private boolean jj_3R_246() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_257()) { - jj_scanpos = xsp; - if (jj_3R_258()) { - return true; - } - } - return false; - } - - private boolean jj_3R_257() { - if (jj_scan_token(IDENT)) { - return true; - } - return false; - } - - private boolean jj_3R_198() { Token xsp; - if (jj_3R_246()) { + if (jj_scan_token(1)) { return true; } - while (true) { - xsp = jj_scanpos; - if (jj_3R_246()) { - jj_scanpos = xsp; - break; - } - } while (true) { xsp = jj_scanpos; if (jj_scan_token(1)) { @@ -6525,26 +6594,24 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3_8() { - Token xsp; - xsp = jj_scanpos; - if (jj_3_9()) { - jj_scanpos = xsp; - } - if (jj_3R_180()) { + private boolean jj_3R_190() { + if (jj_3R_215()) { return true; } return false; } - private boolean jj_3R_183() { - if (jj_3R_180()) { + private boolean jj_3R_213() { + if (jj_scan_token(PLUS)) { return true; } Token xsp; + if (jj_scan_token(1)) { + return true; + } while (true) { xsp = jj_scanpos; - if (jj_3_8()) { + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } @@ -6552,21 +6619,11 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_184() { - if (jj_3R_209()) { - return true; - } - return false; - } - - private boolean jj_3R_208() { - if (jj_scan_token(MINUS)) { + private boolean jj_3R_212() { + if (jj_scan_token(MOD)) { return true; } Token xsp; - if (jj_scan_token(1)) { - return true; - } while (true) { xsp = jj_scanpos; if (jj_scan_token(1)) { @@ -6577,14 +6634,11 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_207() { - if (jj_scan_token(PLUS)) { + private boolean jj_3R_211() { + if (jj_scan_token(ANY)) { return true; } Token xsp; - if (jj_scan_token(1)) { - return true; - } while (true) { xsp = jj_scanpos; if (jj_scan_token(1)) { @@ -6595,8 +6649,8 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_206() { - if (jj_scan_token(MOD)) { + private boolean jj_3R_210() { + if (jj_scan_token(DIV)) { return true; } Token xsp; @@ -6610,8 +6664,8 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_205() { - if (jj_scan_token(ANY)) { + private boolean jj_3R_209() { + if (jj_scan_token(COMMA)) { return true; } Token xsp; @@ -6625,29 +6679,38 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_204() { - if (jj_scan_token(DIV)) { - return true; - } + private boolean jj_3R_187() { Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { + xsp = jj_scanpos; + if (jj_3R_209()) { + jj_scanpos = xsp; + if (jj_3R_210()) { jj_scanpos = xsp; - break; + if (jj_3R_211()) { + jj_scanpos = xsp; + if (jj_3R_212()) { + jj_scanpos = xsp; + if (jj_3R_213()) { + jj_scanpos = xsp; + if (jj_3R_214()) { + return true; + } + } + } + } } } return false; } - private boolean jj_3R_211() { - if (jj_3R_210()) { + private boolean jj_3R_217() { + if (jj_3R_216()) { return true; } return false; } - private boolean jj_3R_210() { + private boolean jj_3R_216() { Token xsp; xsp = jj_scanpos; if (jj_scan_token(20)) { @@ -6669,8 +6732,8 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_172() { - if (jj_3R_182()) { + private boolean jj_3R_178() { + if (jj_3R_188()) { return true; } if (jj_scan_token(COLON)) { @@ -6684,19 +6747,19 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { break; } } - if (jj_3R_183()) { + if (jj_3R_189()) { return true; } xsp = jj_scanpos; - if (jj_3R_184()) { + if (jj_3R_190()) { jj_scanpos = xsp; } - if (jj_3R_185()) { + if (jj_3R_191()) { return true; } while (true) { xsp = jj_scanpos; - if (jj_3R_185()) { + if (jj_3R_191()) { jj_scanpos = xsp; break; } @@ -6704,8 +6767,8 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_203() { - if (jj_scan_token(COMMA)) { + private boolean jj_3R_215() { + if (jj_scan_token(GUARDED_SYM)) { return true; } Token xsp; @@ -6719,77 +6782,38 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_181() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_203()) { - jj_scanpos = xsp; - if (jj_3R_204()) { - jj_scanpos = xsp; - if (jj_3R_205()) { - jj_scanpos = xsp; - if (jj_3R_206()) { - jj_scanpos = xsp; - if (jj_3R_207()) { - jj_scanpos = xsp; - if (jj_3R_208()) { - return true; - } - } - } - } - } - } - return false; - } - - private boolean jj_3R_187() { + private boolean jj_3R_193() { if (jj_scan_token(S)) { return true; } Token xsp; xsp = jj_scanpos; - if (jj_3R_211()) { + if (jj_3R_217()) { jj_scanpos = xsp; } return false; } - private boolean jj_3R_186() { - if (jj_3R_210()) { + private boolean jj_3R_192() { + if (jj_3R_216()) { return true; } return false; } - private boolean jj_3R_173() { + private boolean jj_3R_179() { Token xsp; xsp = jj_scanpos; - if (jj_3R_186()) { + if (jj_3R_192()) { jj_scanpos = xsp; - if (jj_3R_187()) { + if (jj_3R_193()) { return true; } } return false; } - private boolean jj_3R_209() { - if (jj_scan_token(GUARDED_SYM)) { - return true; - } - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } - return false; - } - - private boolean jj_3R_193() { + private boolean jj_3R_199() { if (jj_scan_token(VARIABLE)) { return true; } @@ -6814,10 +6838,10 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_175() { + private boolean jj_3R_181() { Token xsp; xsp = jj_scanpos; - if (jj_3R_193()) { + if (jj_3R_199()) { jj_scanpos = xsp; } if (jj_scan_token(CONTAINS)) { @@ -6838,21 +6862,21 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_213() { + private boolean jj_3R_219() { if (jj_scan_token(HASH)) { return true; } return false; } - private boolean jj_3R_283() { + private boolean jj_3R_289() { if (jj_scan_token(IDENT)) { return true; } return false; } - private boolean jj_3R_284() { + private boolean jj_3R_290() { if (jj_scan_token(FUNCTION)) { return true; } @@ -6872,26 +6896,26 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_282() { + private boolean jj_3R_288() { if (jj_scan_token(COLON)) { return true; } return false; } - private boolean jj_3R_215() { + private boolean jj_3R_221() { if (jj_scan_token(COLON)) { return true; } Token xsp; xsp = jj_scanpos; - if (jj_3R_282()) { + if (jj_3R_288()) { jj_scanpos = xsp; } xsp = jj_scanpos; - if (jj_3R_283()) { + if (jj_3R_289()) { jj_scanpos = xsp; - if (jj_3R_284()) { + if (jj_3R_290()) { return true; } } @@ -6899,96 +6923,103 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } private boolean jj_3_7() { - if (jj_3R_179()) { + if (jj_3R_185()) { return true; } return false; } - private boolean jj_3R_303() { + private boolean jj_3R_206() { + if (jj_scan_token(LBRACE)) { + return true; + } + return false; + } + + private boolean jj_3R_309() { if (jj_scan_token(STRING)) { return true; } return false; } - private boolean jj_3R_301() { + private boolean jj_3R_307() { if (jj_scan_token(STARMATCH)) { return true; } return false; } - private boolean jj_3R_302() { + private boolean jj_3R_308() { if (jj_scan_token(IDENT)) { return true; } return false; } - private boolean jj_3R_300() { + private boolean jj_3R_306() { if (jj_scan_token(DOLLARMATCH)) { return true; } return false; } - private boolean jj_3R_299() { + private boolean jj_3R_305() { if (jj_scan_token(CARETMATCH)) { return true; } return false; } - private boolean jj_3R_298() { + private boolean jj_3R_304() { if (jj_scan_token(DASHMATCH)) { return true; } return false; } - private boolean jj_3R_297() { + private boolean jj_3R_303() { if (jj_scan_token(INCLUDES)) { return true; } return false; } - private boolean jj_3R_264() { + private boolean jj_3R_270() { if (jj_scan_token(INTERPOLATION)) { return true; } return false; } - private boolean jj_3R_296() { + private boolean jj_3R_302() { if (jj_scan_token(EQ)) { return true; } return false; } - private boolean jj_3R_200() { - if (jj_scan_token(LBRACE)) { + private boolean jj_3R_205() { + if (jj_3R_189()) { return true; } return false; } - private boolean jj_3R_289() { + private boolean jj_3R_295() { Token xsp; xsp = jj_scanpos; - if (jj_3R_296()) { + if (jj_3R_302()) { jj_scanpos = xsp; - if (jj_3R_297()) { + if (jj_3R_303()) { jj_scanpos = xsp; - if (jj_3R_298()) { + if (jj_3R_304()) { jj_scanpos = xsp; - if (jj_3R_299()) { + if (jj_3R_305()) { jj_scanpos = xsp; - if (jj_3R_300()) { + if (jj_3R_306()) { jj_scanpos = xsp; - if (jj_3R_301()) { + if (jj_3R_307()) { return true; } } @@ -7004,9 +7035,9 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } } xsp = jj_scanpos; - if (jj_3R_302()) { + if (jj_3R_308()) { jj_scanpos = xsp; - if (jj_3R_303()) { + if (jj_3R_309()) { return true; } } @@ -7020,7 +7051,17 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_216() { + private boolean jj_3_6() { + if (jj_3R_184()) { + return true; + } + if (jj_scan_token(LBRACE)) { + return true; + } + return false; + } + + private boolean jj_3R_222() { if (jj_scan_token(LBRACKET)) { return true; } @@ -7043,7 +7084,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } } xsp = jj_scanpos; - if (jj_3R_289()) { + if (jj_3R_295()) { jj_scanpos = xsp; } if (jj_scan_token(RBRACKET)) { @@ -7052,96 +7093,86 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_295() { - if (jj_scan_token(INTERPOLATION)) { + private boolean jj_3R_185() { + if (jj_3R_204()) { + return true; + } + if (jj_scan_token(COLON)) { return true; } + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { + jj_scanpos = xsp; + break; + } + } + xsp = jj_scanpos; + if (jj_3R_205()) { + jj_scanpos = xsp; + if (jj_3R_206()) { + return true; + } + } return false; } - private boolean jj_3R_199() { - if (jj_3R_183()) { + private boolean jj_3R_301() { + if (jj_scan_token(INTERPOLATION)) { return true; } return false; } - private boolean jj_3R_250() { + private boolean jj_3R_256() { if (jj_scan_token(PARENT)) { return true; } return false; } - private boolean jj_3R_249() { - if (jj_scan_token(ANY)) { + private boolean jj_3R_268() { + if (jj_3R_189()) { return true; } return false; } - private boolean jj_3_6() { - if (jj_3R_178()) { - return true; - } - if (jj_scan_token(LBRACE)) { + private boolean jj_3R_255() { + if (jj_scan_token(ANY)) { return true; } return false; } - private boolean jj_3R_179() { - if (jj_3R_198()) { - return true; - } - if (jj_scan_token(COLON)) { - return true; - } - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } - xsp = jj_scanpos; - if (jj_3R_199()) { - jj_scanpos = xsp; - if (jj_3R_200()) { - return true; - } - } - return false; - } - - private boolean jj_3R_259() { + private boolean jj_3R_265() { Token xsp; xsp = jj_scanpos; - if (jj_3R_263()) { + if (jj_3R_269()) { jj_scanpos = xsp; - if (jj_3R_264()) { + if (jj_3R_270()) { return true; } } return false; } - private boolean jj_3R_263() { + private boolean jj_3R_269() { if (jj_scan_token(IDENT)) { return true; } return false; } - private boolean jj_3R_212() { + private boolean jj_3R_218() { Token xsp; xsp = jj_scanpos; - if (jj_3R_248()) { + if (jj_3R_254()) { jj_scanpos = xsp; - if (jj_3R_249()) { + if (jj_3R_255()) { jj_scanpos = xsp; - if (jj_3R_250()) { + if (jj_3R_256()) { return true; } } @@ -7149,14 +7180,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_248() { + private boolean jj_3R_254() { Token xsp; - if (jj_3R_259()) { + if (jj_3R_265()) { return true; } while (true) { xsp = jj_scanpos; - if (jj_3R_259()) { + if (jj_3R_265()) { jj_scanpos = xsp; break; } @@ -7164,15 +7195,23 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_262() { - if (jj_3R_183()) { + private boolean jj_3R_182() { + if (jj_scan_token(COMMA)) { return true; } + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { + jj_scanpos = xsp; + break; + } + } return false; } - private boolean jj_3R_176() { - if (jj_scan_token(COMMA)) { + private boolean jj_3R_258() { + if (jj_scan_token(FUNCTION)) { return true; } Token xsp; @@ -7183,167 +7222,152 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { break; } } + xsp = jj_scanpos; + if (jj_3R_268()) { + jj_scanpos = xsp; + } + if (jj_scan_token(RPARAN)) { + return true; + } return false; } - private boolean jj_3R_277() { + private boolean jj_3R_283() { Token xsp; xsp = jj_scanpos; - if (jj_3R_294()) { + if (jj_3R_300()) { jj_scanpos = xsp; - if (jj_3R_295()) { + if (jj_3R_301()) { return true; } } return false; } - private boolean jj_3R_294() { + private boolean jj_3R_300() { if (jj_scan_token(IDENT)) { return true; } return false; } - private boolean jj_3R_293() { - if (jj_3R_215()) { + private boolean jj_3R_249() { + if (jj_3R_262()) { return true; } return false; } - private boolean jj_3_5() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_176()) { - jj_scanpos = xsp; - } - if (jj_3R_177()) { + private boolean jj_3R_299() { + if (jj_3R_221()) { return true; } return false; } - private boolean jj_3R_214() { - if (jj_scan_token(DOT)) { - return true; - } - Token xsp; - if (jj_3R_277()) { + private boolean jj_3R_248() { + if (jj_3R_261()) { return true; } - while (true) { - xsp = jj_scanpos; - if (jj_3R_277()) { - jj_scanpos = xsp; - break; - } - } return false; } - private boolean jj_3R_252() { - if (jj_scan_token(FUNCTION)) { + private boolean jj_3R_247() { + if (jj_3R_260()) { return true; } + return false; + } + + private boolean jj_3_5() { Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } xsp = jj_scanpos; - if (jj_3R_262()) { + if (jj_3R_182()) { jj_scanpos = xsp; } - if (jj_scan_token(RPARAN)) { + if (jj_3R_183()) { return true; } return false; } - private boolean jj_3R_291() { - if (jj_3R_214()) { + private boolean jj_3R_220() { + if (jj_scan_token(DOT)) { return true; } - return false; - } - - private boolean jj_3R_286() { - if (jj_3R_214()) { + Token xsp; + if (jj_3R_283()) { return true; } - return false; - } - - private boolean jj_3R_288() { - if (jj_3R_215()) { - return true; + while (true) { + xsp = jj_scanpos; + if (jj_3R_283()) { + jj_scanpos = xsp; + break; + } } return false; } - private boolean jj_3R_276() { - if (jj_3R_215()) { + private boolean jj_3R_297() { + if (jj_3R_220()) { return true; } return false; } - private boolean jj_3R_279() { - if (jj_3R_214()) { + private boolean jj_3R_292() { + if (jj_3R_220()) { return true; } return false; } - private boolean jj_3R_281() { - if (jj_3R_215()) { + private boolean jj_3R_294() { + if (jj_3R_221()) { return true; } return false; } - private boolean jj_3R_243() { - if (jj_3R_256()) { + private boolean jj_3R_282() { + if (jj_3R_221()) { return true; } return false; } - private boolean jj_3R_242() { - if (jj_3R_255()) { + private boolean jj_3R_285() { + if (jj_3R_220()) { return true; } return false; } - private boolean jj_3R_241() { - if (jj_3R_254()) { + private boolean jj_3R_287() { + if (jj_3R_221()) { return true; } return false; } - private boolean jj_3R_292() { - if (jj_3R_216()) { + private boolean jj_3R_298() { + if (jj_3R_222()) { return true; } return false; } - private boolean jj_3R_269() { + private boolean jj_3R_275() { Token xsp; xsp = jj_scanpos; - if (jj_3R_290()) { + if (jj_3R_296()) { jj_scanpos = xsp; - if (jj_3R_291()) { + if (jj_3R_297()) { jj_scanpos = xsp; - if (jj_3R_292()) { + if (jj_3R_298()) { jj_scanpos = xsp; - if (jj_3R_293()) { + if (jj_3R_299()) { return true; } } @@ -7352,23 +7376,23 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_290() { - if (jj_3R_213()) { + private boolean jj_3R_296() { + if (jj_3R_219()) { return true; } return false; } - private boolean jj_3R_268() { + private boolean jj_3R_274() { Token xsp; xsp = jj_scanpos; - if (jj_3R_285()) { + if (jj_3R_291()) { jj_scanpos = xsp; - if (jj_3R_286()) { + if (jj_3R_292()) { jj_scanpos = xsp; - if (jj_3R_287()) { + if (jj_3R_293()) { jj_scanpos = xsp; - if (jj_3R_288()) { + if (jj_3R_294()) { return true; } } @@ -7377,30 +7401,30 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_285() { - if (jj_3R_213()) { + private boolean jj_3R_291() { + if (jj_3R_219()) { return true; } return false; } - private boolean jj_3R_273() { - if (jj_3R_215()) { + private boolean jj_3R_279() { + if (jj_3R_221()) { return true; } return false; } - private boolean jj_3R_267() { + private boolean jj_3R_273() { Token xsp; xsp = jj_scanpos; - if (jj_3R_278()) { + if (jj_3R_284()) { jj_scanpos = xsp; - if (jj_3R_279()) { + if (jj_3R_285()) { jj_scanpos = xsp; - if (jj_3R_280()) { + if (jj_3R_286()) { jj_scanpos = xsp; - if (jj_3R_281()) { + if (jj_3R_287()) { return true; } } @@ -7409,42 +7433,42 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_278() { - if (jj_3R_213()) { + private boolean jj_3R_284() { + if (jj_3R_219()) { return true; } return false; } - private boolean jj_3R_287() { - if (jj_3R_216()) { + private boolean jj_3R_293() { + if (jj_3R_222()) { return true; } return false; } - private boolean jj_3R_275() { - if (jj_3R_216()) { + private boolean jj_3R_281() { + if (jj_3R_222()) { return true; } return false; } - private boolean jj_3R_280() { - if (jj_3R_216()) { + private boolean jj_3R_286() { + if (jj_3R_222()) { return true; } return false; } - private boolean jj_3R_266() { + private boolean jj_3R_272() { Token xsp; xsp = jj_scanpos; - if (jj_3R_274()) { + if (jj_3R_280()) { jj_scanpos = xsp; - if (jj_3R_275()) { + if (jj_3R_281()) { jj_scanpos = xsp; - if (jj_3R_276()) { + if (jj_3R_282()) { return true; } } @@ -7452,43 +7476,47 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_271() { - if (jj_3R_214()) { + private boolean jj_3R_277() { + if (jj_3R_220()) { return true; } return false; } - private boolean jj_3R_274() { - if (jj_3R_214()) { + private boolean jj_3R_280() { + if (jj_3R_220()) { return true; } return false; } - private boolean jj_3R_192() { - if (jj_3R_216()) { + private boolean jj_3R_259() { + if (jj_scan_token(DOT)) { return true; } + return false; + } + + private boolean jj_3R_246() { Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_269()) { - jj_scanpos = xsp; - break; - } + xsp = jj_scanpos; + if (jj_3R_259()) { + jj_scanpos = xsp; + } + if (jj_scan_token(IDENT)) { + return true; } return false; } - private boolean jj_3R_191() { - if (jj_3R_215()) { + private boolean jj_3R_198() { + if (jj_3R_222()) { return true; } Token xsp; while (true) { xsp = jj_scanpos; - if (jj_3R_268()) { + if (jj_3R_275()) { jj_scanpos = xsp; break; } @@ -7496,21 +7524,28 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_272() { - if (jj_3R_216()) { + private boolean jj_3R_245() { + if (jj_scan_token(STRING)) { return true; } return false; } - private boolean jj_3R_190() { - if (jj_3R_214()) { + private boolean jj_3R_244() { + if (jj_3R_258()) { + return true; + } + return false; + } + + private boolean jj_3R_197() { + if (jj_3R_221()) { return true; } Token xsp; while (true) { xsp = jj_scanpos; - if (jj_3R_267()) { + if (jj_3R_274()) { jj_scanpos = xsp; break; } @@ -7518,21 +7553,42 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_253() { - if (jj_scan_token(DOT)) { + private boolean jj_3R_201() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_245()) { + jj_scanpos = xsp; + if (jj_3R_246()) { + jj_scanpos = xsp; + if (jj_3R_247()) { + jj_scanpos = xsp; + if (jj_3R_248()) { + jj_scanpos = xsp; + if (jj_3R_249()) { + return true; + } + } + } + } + } + return false; + } + + private boolean jj_3R_278() { + if (jj_3R_222()) { return true; } return false; } - private boolean jj_3R_189() { - if (jj_3R_213()) { + private boolean jj_3R_196() { + if (jj_3R_220()) { return true; } Token xsp; while (true) { xsp = jj_scanpos; - if (jj_3R_266()) { + if (jj_3R_273()) { jj_scanpos = xsp; break; } @@ -7540,16 +7596,31 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_265() { + private boolean jj_3R_195() { + if (jj_3R_219()) { + return true; + } + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_3R_272()) { + jj_scanpos = xsp; + break; + } + } + return false; + } + + private boolean jj_3R_271() { Token xsp; xsp = jj_scanpos; - if (jj_3R_270()) { + if (jj_3R_276()) { jj_scanpos = xsp; - if (jj_3R_271()) { + if (jj_3R_277()) { jj_scanpos = xsp; - if (jj_3R_272()) { + if (jj_3R_278()) { jj_scanpos = xsp; - if (jj_3R_273()) { + if (jj_3R_279()) { return true; } } @@ -7558,33 +7629,21 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_270() { - if (jj_3R_213()) { - return true; - } - return false; - } - - private boolean jj_3R_240() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_253()) { - jj_scanpos = xsp; - } - if (jj_scan_token(IDENT)) { + private boolean jj_3R_276() { + if (jj_3R_219()) { return true; } return false; } - private boolean jj_3R_188() { - if (jj_3R_212()) { + private boolean jj_3R_194() { + if (jj_3R_218()) { return true; } Token xsp; while (true) { xsp = jj_scanpos; - if (jj_3R_265()) { + if (jj_3R_271()) { jj_scanpos = xsp; break; } @@ -7592,18 +7651,18 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_174() { + private boolean jj_3R_180() { Token xsp; xsp = jj_scanpos; - if (jj_3R_188()) { + if (jj_3R_194()) { jj_scanpos = xsp; - if (jj_3R_189()) { + if (jj_3R_195()) { jj_scanpos = xsp; - if (jj_3R_190()) { + if (jj_3R_196()) { jj_scanpos = xsp; - if (jj_3R_191()) { + if (jj_3R_197()) { jj_scanpos = xsp; - if (jj_3R_192()) { + if (jj_3R_198()) { return true; } } @@ -7613,132 +7672,132 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_239() { - if (jj_scan_token(STRING)) { + private boolean jj_3R_243() { + if (jj_scan_token(DIMEN)) { + return true; + } + return false; + } + + private boolean jj_3R_251() { + if (jj_3R_216()) { + return true; + } + if (jj_3R_180()) { + return true; + } + return false; + } + + private boolean jj_3R_242() { + if (jj_scan_token(KHZ)) { return true; } return false; } - private boolean jj_3R_238() { - if (jj_3R_252()) { + private boolean jj_3R_241() { + if (jj_scan_token(HZ)) { return true; } return false; } - private boolean jj_3R_245() { - if (jj_3R_210()) { + private boolean jj_3R_240() { + if (jj_scan_token(MS)) { return true; } - if (jj_3R_174()) { + return false; + } + + private boolean jj_3R_239() { + if (jj_scan_token(SECOND)) { return true; } return false; } - private boolean jj_3R_195() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_239()) { - jj_scanpos = xsp; - if (jj_3R_240()) { - jj_scanpos = xsp; - if (jj_3R_241()) { - jj_scanpos = xsp; - if (jj_3R_242()) { - jj_scanpos = xsp; - if (jj_3R_243()) { - return true; - } - } - } - } + private boolean jj_3R_238() { + if (jj_scan_token(GRAD)) { + return true; } return false; } private boolean jj_3R_237() { - if (jj_scan_token(DIMEN)) { + if (jj_scan_token(RAD)) { return true; } return false; } private boolean jj_3R_236() { - if (jj_scan_token(KHZ)) { + if (jj_scan_token(DEG)) { return true; } return false; } private boolean jj_3R_235() { - if (jj_scan_token(HZ)) { + if (jj_scan_token(EXS)) { return true; } return false; } private boolean jj_3R_234() { - if (jj_scan_token(MS)) { + if (jj_scan_token(REM)) { return true; } return false; } private boolean jj_3R_233() { - if (jj_scan_token(SECOND)) { + if (jj_scan_token(LEM)) { return true; } return false; } private boolean jj_3R_232() { - if (jj_scan_token(GRAD)) { - return true; - } - return false; - } - - private boolean jj_3R_231() { - if (jj_scan_token(RAD)) { + if (jj_scan_token(EMS)) { return true; } return false; } private boolean jj_3_2() { - if (jj_3R_173()) { + if (jj_3R_179()) { return true; } - if (jj_3R_174()) { + if (jj_3R_180()) { return true; } return false; } - private boolean jj_3R_230() { - if (jj_scan_token(DEG)) { + private boolean jj_3R_231() { + if (jj_scan_token(PX)) { return true; } return false; } private boolean jj_3_1() { - if (jj_3R_172()) { + if (jj_3R_178()) { return true; } return false; } - private boolean jj_3R_229() { - if (jj_scan_token(EXS)) { + private boolean jj_3R_230() { + if (jj_scan_token(IN)) { return true; } return false; } - private boolean jj_3R_197() { + private boolean jj_3R_203() { if (jj_scan_token(COMMA)) { return true; } @@ -7750,39 +7809,39 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { break; } } - if (jj_3R_196()) { + if (jj_3R_202()) { return true; } return false; } - private boolean jj_3R_244() { - if (jj_3R_174()) { + private boolean jj_3R_250() { + if (jj_3R_180()) { return true; } return false; } - private boolean jj_3R_228() { - if (jj_scan_token(REM)) { + private boolean jj_3R_229() { + if (jj_scan_token(PC)) { return true; } return false; } - private boolean jj_3R_227() { - if (jj_scan_token(LEM)) { + private boolean jj_3R_228() { + if (jj_scan_token(MM)) { return true; } return false; } - private boolean jj_3R_196() { + private boolean jj_3R_202() { Token xsp; xsp = jj_scanpos; - if (jj_3R_244()) { + if (jj_3R_250()) { jj_scanpos = xsp; - if (jj_3R_245()) { + if (jj_3R_251()) { return true; } } @@ -7803,56 +7862,56 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_226() { - if (jj_scan_token(EMS)) { + private boolean jj_3R_227() { + if (jj_scan_token(CM)) { return true; } return false; } - private boolean jj_3R_225() { - if (jj_scan_token(PX)) { + private boolean jj_3R_226() { + if (jj_scan_token(PT)) { return true; } return false; } - private boolean jj_3R_224() { - if (jj_scan_token(IN)) { + private boolean jj_3R_225() { + if (jj_scan_token(PERCENTAGE)) { return true; } return false; } - private boolean jj_3R_223() { - if (jj_scan_token(PC)) { + private boolean jj_3R_208() { + if (jj_3R_253()) { return true; } return false; } - private boolean jj_3R_222() { - if (jj_scan_token(MM)) { + private boolean jj_3R_224() { + if (jj_scan_token(NUMBER)) { return true; } return false; } - private boolean jj_3R_221() { - if (jj_scan_token(CM)) { + private boolean jj_3R_223() { + if (jj_3R_257()) { return true; } return false; } - private boolean jj_3R_178() { - if (jj_3R_196()) { + private boolean jj_3R_184() { + if (jj_3R_202()) { return true; } Token xsp; while (true) { xsp = jj_scanpos; - if (jj_3R_197()) { + if (jj_3R_203()) { jj_scanpos = xsp; break; } @@ -7860,96 +7919,54 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_220() { - if (jj_scan_token(PT)) { - return true; - } - return false; - } - - private boolean jj_3R_219() { - if (jj_scan_token(PERCENTAGE)) { - return true; - } - return false; - } - - private boolean jj_3_4() { - if (jj_3R_175()) { - return true; - } - return false; - } - - private boolean jj_3R_202() { - if (jj_3R_247()) { - return true; - } - return false; - } - - private boolean jj_3R_218() { - if (jj_scan_token(NUMBER)) { - return true; - } - return false; - } - - private boolean jj_3R_217() { - if (jj_3R_251()) { - return true; - } - return false; - } - - private boolean jj_3R_194() { + private boolean jj_3R_200() { Token xsp; xsp = jj_scanpos; - if (jj_3R_217()) { + if (jj_3R_223()) { jj_scanpos = xsp; } xsp = jj_scanpos; - if (jj_3R_218()) { + if (jj_3R_224()) { jj_scanpos = xsp; - if (jj_3R_219()) { + if (jj_3R_225()) { jj_scanpos = xsp; - if (jj_3R_220()) { + if (jj_3R_226()) { jj_scanpos = xsp; - if (jj_3R_221()) { + if (jj_3R_227()) { jj_scanpos = xsp; - if (jj_3R_222()) { + if (jj_3R_228()) { jj_scanpos = xsp; - if (jj_3R_223()) { + if (jj_3R_229()) { jj_scanpos = xsp; - if (jj_3R_224()) { + if (jj_3R_230()) { jj_scanpos = xsp; - if (jj_3R_225()) { + if (jj_3R_231()) { jj_scanpos = xsp; - if (jj_3R_226()) { + if (jj_3R_232()) { jj_scanpos = xsp; - if (jj_3R_227()) { + if (jj_3R_233()) { jj_scanpos = xsp; - if (jj_3R_228()) { + if (jj_3R_234()) { jj_scanpos = xsp; - if (jj_3R_229()) { + if (jj_3R_235()) { jj_scanpos = xsp; - if (jj_3R_230()) { + if (jj_3R_236()) { jj_scanpos = xsp; - if (jj_3R_231()) { + if (jj_3R_237()) { jj_scanpos = xsp; - if (jj_3R_232()) { + if (jj_3R_238()) { jj_scanpos = xsp; - if (jj_3R_233()) { + if (jj_3R_239()) { jj_scanpos = xsp; - if (jj_3R_234()) { + if (jj_3R_240()) { jj_scanpos = xsp; - if (jj_3R_235()) { + if (jj_3R_241()) { jj_scanpos = xsp; - if (jj_3R_236()) { + if (jj_3R_242()) { jj_scanpos = xsp; - if (jj_3R_237()) { + if (jj_3R_243()) { jj_scanpos = xsp; - if (jj_3R_238()) { + if (jj_3R_244()) { return true; } } @@ -7975,12 +7992,12 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_177() { + private boolean jj_3R_183() { Token xsp; xsp = jj_scanpos; - if (jj_3R_194()) { + if (jj_3R_200()) { jj_scanpos = xsp; - if (jj_3R_195()) { + if (jj_3R_201()) { return true; } } @@ -7994,68 +8011,108 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } - private boolean jj_3R_254() { + private boolean jj_3R_260() { if (jj_scan_token(HASH)) { return true; } return false; } - private boolean jj_3R_247() { - if (jj_3R_182()) { + private boolean jj_3_4() { + if (jj_3R_181()) { return true; } return false; } - private boolean jj_3R_258() { - if (jj_scan_token(INTERPOLATION)) { + private boolean jj_3R_253() { + if (jj_3R_188()) { return true; } return false; } - private boolean jj_3R_255() { + private boolean jj_3R_261() { if (jj_scan_token(URL)) { return true; } return false; } + private boolean jj_3R_207() { + if (jj_3R_183()) { + return true; + } + return false; + } + + private boolean jj_3R_186() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_207()) { + jj_scanpos = xsp; + if (jj_3R_208()) { + return true; + } + } + return false; + } + + private boolean jj_3R_264() { + if (jj_scan_token(INTERPOLATION)) { + return true; + } + return false; + } + + private boolean jj_3_9() { + if (jj_3R_187()) { + return true; + } + return false; + } + private boolean jj_3_3() { - if (jj_3R_172()) { + if (jj_3R_178()) { return true; } return false; } - private boolean jj_3R_201() { - if (jj_3R_177()) { + private boolean jj_3R_267() { + if (jj_scan_token(PLUS)) { return true; } return false; } - private boolean jj_3R_180() { + private boolean jj_3R_257() { Token xsp; xsp = jj_scanpos; - if (jj_3R_201()) { + if (jj_3R_266()) { jj_scanpos = xsp; - if (jj_3R_202()) { + if (jj_3R_267()) { return true; } } return false; } - private boolean jj_3_9() { - if (jj_3R_181()) { + private boolean jj_3R_266() { + if (jj_scan_token(MINUS)) { return true; } return false; } - private boolean jj_3R_185() { + private boolean jj_3R_262() { + if (jj_scan_token(UNICODERANGE)) { + return true; + } + return false; + } + + private boolean jj_3R_191() { if (jj_scan_token(SEMICOLON)) { return true; } @@ -8070,6 +8127,48 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return false; } + private boolean jj_3_8() { + Token xsp; + xsp = jj_scanpos; + if (jj_3_9()) { + jj_scanpos = xsp; + } + if (jj_3R_186()) { + return true; + } + return false; + } + + private boolean jj_3R_189() { + if (jj_3R_186()) { + return true; + } + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_3_8()) { + jj_scanpos = xsp; + break; + } + } + return false; + } + + private boolean jj_3R_188() { + if (jj_scan_token(VARIABLE)) { + return true; + } + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { + jj_scanpos = xsp; + break; + } + } + return false; + } + /** Generated Token Manager. */ public ParserTokenManager token_source; /** Current token. */ @@ -8080,7 +8179,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { private Token jj_scanpos, jj_lastpos; private int jj_la; private int jj_gen; - final private int[] jj_la1 = new int[254]; + final private int[] jj_la1 = new int[261]; static private int[] jj_la1_0; static private int[] jj_la1_1; static private int[] jj_la1_2; @@ -8111,17 +8210,17 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { 0x2, 0x0, 0x2, 0x53100000, 0x2, 0x2, 0x400000, 0x2, 0x2, 0x2, 0x2, 0x0, 0x2, 0x53100000, 0x53100000, 0x2, 0x400000, 0x2, 0x2, 0x2, 0x400000, 0x0, 0x0, 0x300000, 0x2, 0x0, 0x400000, 0x2, - 0x300000, 0x2, 0x0, 0x2, 0x0, 0x2, 0x800000, 0x2, 0x2, 0x0, - 0x2, 0x0, 0x2, 0x2, 0x2, 0x400000, 0x2, 0x2, 0x2, 0x2, 0x2, - 0x0, 0x2, 0x2, 0x2, 0x400000, 0x2, 0x2, 0x2, 0x0, 0x2, 0x2, - 0x2, 0x400000, 0x2, 0x2, 0x0, 0x2, 0x0, 0x2, 0x2, 0x2, - 0x400000, 0x0, 0x2, 0x2, 0x0, 0x2, 0x2, 0x2, 0x800000, 0x2, - 0x2, 0x0, 0x800000, 0x2, 0x0, 0x2, 0x0, 0x53100000, 0x2, 0x0, - 0x2, 0x0, 0x800000, 0x2, 0x0, 0x2, 0x301000, 0x2, 0x0, 0x2, - 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0xc8700000, 0x300000, - 0x300000, 0x300000, 0x0, 0x0, 0x0, 0x300000, 0x2, 0x2, - 0x300000, 0x2, 0x53100000, 0x2, 0x2, 0x2, 0x0, 0x800000, 0x2, - 0x0, 0x2, }; + 0x300000, 0x2, 0x0, 0x2, 0x0, 0x2, 0x800000, 0x2, 0x53100000, + 0x2, 0x801000, 0x2, 0x2, 0x0, 0x2, 0x0, 0x2, 0x2, 0x2, + 0x400000, 0x2, 0x2, 0x2, 0x2, 0x2, 0x0, 0x2, 0x2, 0x2, + 0x400000, 0x2, 0x2, 0x2, 0x0, 0x2, 0x2, 0x2, 0x400000, 0x2, + 0x2, 0x0, 0x2, 0x0, 0x2, 0x2, 0x2, 0x400000, 0x0, 0x2, 0x2, + 0x0, 0x2, 0x2, 0x2, 0x800000, 0x2, 0x2, 0x800000, 0x2, 0x2, + 0x0, 0x800000, 0x2, 0x0, 0x2, 0x0, 0x53100000, 0x2, 0x0, 0x2, + 0x0, 0x800000, 0x2, 0x0, 0x2, 0x301000, 0x2, 0x0, 0x2, 0x2, + 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0xc8700000, 0x300000, 0x300000, + 0x300000, 0x0, 0x0, 0x0, 0x300000, 0x2, 0x2, 0x300000, 0x2, + 0x53100000, 0x2, 0x2, 0x2, 0x0, 0x800000, 0x2, 0x0, 0x2, }; } private static void jj_la1_init_1() { @@ -8141,69 +8240,71 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { 0x0, 0x0, 0x19000303, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x200, 0x0, 0x59000303, 0x59000303, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x100, 0x100, 0x102, 0x0, 0x100, 0x0, 0x0, 0x102, 0x0, 0x100, - 0x0, 0x200, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8, - 0x0, 0x0, 0x0, 0x0, 0x18000000, 0x0, 0x0, 0x180000, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x200, 0x0, 0x0, 0x200, 0x0, 0x18000000, - 0x303, 0x0, 0x0, 0x0, 0x200, 0x0, 0x0, 0x200, 0x0, 0x2, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2, - 0x0, 0x0, 0x2, 0x2, 0x2, 0x0, 0x0, 0x2, 0x0, 0x18000303, 0x0, - 0x0, 0x0, 0x200, 0x0, 0x0, 0x200, 0x0, }; + 0x0, 0x200, 0x0, 0x0, 0x0, 0x18000303, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, 0x0, 0x18000000, 0x0, + 0x0, 0x180000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x200, 0x0, 0x0, 0x200, 0x0, 0x18000000, 0x303, 0x0, 0x0, 0x0, + 0x200, 0x0, 0x0, 0x200, 0x0, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2, 0x0, 0x0, 0x2, 0x2, 0x2, + 0x0, 0x0, 0x2, 0x0, 0x18000303, 0x0, 0x0, 0x0, 0x200, 0x0, 0x0, + 0x200, 0x0, }; } private static void jj_la1_init_2() { - jj_la1_2 = new int[] { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x201, - 0x2000, 0x0, 0x0, 0x0, 0x0, 0x1100, 0x0, 0x200, 0x0, 0x0, - 0x200, 0x200, 0x0, 0x0, 0x4000, 0x0, 0x4000, 0x0, 0x0, 0x2225, - 0x2225, 0x0, 0x0, 0x0, 0x5700, 0x5700, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x200, 0x0, 0x0, 0x200, 0x0, 0x0, 0x200, 0x0, 0x0, 0x0, - 0x0, 0x200, 0x0, 0x0, 0x200, 0x0, 0x5500, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x700, 0x700, 0x0, 0x200, 0x200, 0x0, 0x0, 0x0, 0x0, - 0x2225, 0x2225, 0x0, 0x0, 0x0, 0x200, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x200, 0x200, 0x200, 0x200, - 0x200, 0x200, 0x0, 0x0, 0x0, 0x0, 0x300, 0x0, 0x0, 0x0, 0x0, - 0x200, 0x0, 0x80, 0x0, 0x0, 0x1, 0x204, 0x2000, 0x2600, 0x0, - 0x2204, 0x0, 0x2, 0x0, 0x2600, 0x40, 0x0, 0x2204, 0x0, 0x2600, - 0x0, 0x0, 0x0, 0x2200, 0x0, 0x2204, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x200, 0x0, 0x2205, 0x2205, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x2000, 0x2000, 0xfffff700, 0x0, 0x0, 0x0, 0x0, - 0xfffff700, 0x0, 0x0, 0x0, 0x2200, 0x0, 0x0, 0x0, 0x0, 0x0, + jj_la1_2 = new int[] { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x401, + 0x4000, 0x0, 0x0, 0x0, 0x0, 0x2200, 0x0, 0x400, 0x0, 0x0, + 0x400, 0x400, 0x0, 0x0, 0x8000, 0x0, 0x8000, 0x0, 0x0, 0x4465, + 0x4465, 0x0, 0x0, 0x0, 0xae00, 0xae00, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x400, 0x0, 0x0, 0x400, 0x0, 0x0, 0x400, 0x0, 0x0, 0x0, + 0x0, 0x400, 0x0, 0x0, 0x400, 0x0, 0xaa00, 0x0, 0x0, 0x0, 0x0, + 0x0, 0xe00, 0xe00, 0x0, 0x400, 0x400, 0x0, 0x0, 0x0, 0x0, + 0x4465, 0x4465, 0x0, 0x0, 0x0, 0x400, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x400, 0x400, 0x400, 0x400, + 0x400, 0x400, 0x0, 0x0, 0x0, 0x0, 0x600, 0x0, 0x0, 0x0, 0x0, + 0x400, 0x0, 0x100, 0x0, 0x0, 0x1, 0x424, 0x4000, 0x4c00, 0x0, + 0x4424, 0x0, 0x2, 0x0, 0x4c00, 0x80, 0x0, 0x4424, 0x0, 0x4c00, + 0x0, 0x0, 0x0, 0x4400, 0x0, 0x4424, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x400, 0x0, 0x4425, 0x4425, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x4000, 0x4000, 0xffffee00, 0x0, 0x0, 0x0, 0x0, + 0xffffee00, 0x0, 0x0, 0x0, 0x4400, 0x0, 0x0, 0x0, 0x400, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x2000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x200, 0x0, 0x0, 0x200, 0x0, - 0x0, 0x200, 0x0, 0x0, 0x0, 0x200, 0x0, 0x0, 0x200, 0x0, - 0xfffff700, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0xfffff700, 0x0, 0xffffc400, 0x0, 0x1300, 0xffffd700, - 0x0, 0x0, 0xfffff700, 0x0, 0x200, 0x0, 0x0, 0x0, 0x200, 0x0, - 0x0, 0x200, 0x0, }; + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4000, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x400, 0x0, 0x0, 0x400, 0x0, 0x0, 0x400, 0x0, 0x0, + 0x0, 0x400, 0x0, 0x0, 0x400, 0x0, 0xffffee00, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xffffee00, 0x0, + 0xffff8800, 0x0, 0x2600, 0xffffae00, 0x0, 0x0, 0xffffee00, 0x0, + 0x400, 0x0, 0x0, 0x0, 0x400, 0x0, 0x0, 0x400, 0x0, }; } private static void jj_la1_init_3() { - jj_la1_3 = new int[] { 0x10, 0x100, 0x100, 0x4, 0x100, 0x0, 0x0, 0x0, - 0xea, 0x0, 0x100, 0x0, 0x100, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8a, 0x8a, 0x0, - 0x0, 0x0, 0x188037e, 0x188037e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + jj_la1_3 = new int[] { 0x20, 0x200, 0x200, 0x8, 0x200, 0x0, 0x0, 0x0, + 0x1d4, 0x0, 0x200, 0x0, 0x200, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x114, 0x114, 0x0, + 0x0, 0x0, 0x31006fc, 0x31006fc, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x31006f8, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x1000000, 0x1000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x114, + 0x114, 0x0, 0x0, 0x0, 0x4, 0x0, 0x4, 0x4, 0x0, 0x0, 0x4, 0x4, + 0x4, 0x4, 0x4, 0x4, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1000000, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x114, 0x0, 0x800000, 0x0, 0x114, 0x0, 0x0, 0x0, + 0x800000, 0x0, 0x0, 0x114, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x114, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1000000, 0x0, + 0x1d4, 0x1d4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x1100007, 0x0, 0x0, 0x0, 0x0, 0x1100007, 0x0, 0x0, 0x0, + 0x1000000, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0x0, 0xe00000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x188037c, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x800000, 0x800000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8a, - 0x8a, 0x0, 0x0, 0x0, 0x2, 0x0, 0x2, 0x2, 0x0, 0x0, 0x2, 0x2, - 0x2, 0x2, 0x2, 0x2, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x800000, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x8a, 0x0, 0x400000, 0x0, 0x8a, 0x0, 0x0, 0x0, - 0x400000, 0x0, 0x0, 0x8a, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x8a, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x800000, 0x0, 0xea, - 0xea, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x880003, 0x0, - 0x0, 0x0, 0x0, 0x880003, 0x0, 0x0, 0x0, 0x800000, 0x0, 0x0, - 0x0, 0x0, 0x700000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x2, 0x0, 0x200, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x880003, 0x0, 0x200, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x880003, 0x0, 0x800001, 0x0, 0x80002, - 0x880003, 0x0, 0x0, 0x880003, 0x0, 0x6e, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x4, 0x0, 0x400, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x1100007, 0x0, 0x400, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x1100007, 0x0, 0x1000003, 0x0, 0x100004, + 0x1100007, 0x0, 0x0, 0x1100007, 0x0, 0xdc, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, }; } @@ -8217,7 +8318,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { token = new Token(); jj_ntk = -1; jj_gen = 0; - for (int i = 0; i < 254; i++) { + for (int i = 0; i < 261; i++) { jj_la1[i] = -1; } for (int i = 0; i < jj_2_rtns.length; i++) { @@ -8231,7 +8332,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { token = new Token(); jj_ntk = -1; jj_gen = 0; - for (int i = 0; i < 254; i++) { + for (int i = 0; i < 261; i++) { jj_la1[i] = -1; } for (int i = 0; i < jj_2_rtns.length; i++) { @@ -8245,7 +8346,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { token = new Token(); jj_ntk = -1; jj_gen = 0; - for (int i = 0; i < 254; i++) { + for (int i = 0; i < 261; i++) { jj_la1[i] = -1; } for (int i = 0; i < jj_2_rtns.length; i++) { @@ -8259,7 +8360,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { token = new Token(); jj_ntk = -1; jj_gen = 0; - for (int i = 0; i < 254; i++) { + for (int i = 0; i < 261; i++) { jj_la1[i] = -1; } for (int i = 0; i < jj_2_rtns.length; i++) { @@ -8405,12 +8506,12 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { /** Generate ParseException. */ public ParseException generateParseException() { jj_expentries.clear(); - boolean[] la1tokens = new boolean[121]; + boolean[] la1tokens = new boolean[122]; if (jj_kind >= 0) { la1tokens[jj_kind] = true; jj_kind = -1; } - for (int i = 0; i < 254; i++) { + for (int i = 0; i < 261; i++) { if (jj_la1[i] == jj_gen) { for (int j = 0; j < 32; j++) { if ((jj_la1_0[i] & (1 << j)) != 0) { @@ -8428,7 +8529,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } } } - for (int i = 0; i < 121; i++) { + for (int i = 0; i < 122; i++) { if (la1tokens[i]) { jj_expentry = new int[1]; jj_expentry[0] = i; diff --git a/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.jj b/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.jj index 636ecad49b..0b664bedc6 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.jj +++ b/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.jj @@ -604,6 +604,7 @@ TOKEN : | | | + | } < DEFAULT > @@ -1510,7 +1511,7 @@ void controlDirective() : void ifContentStatement() : {} { - includeDirective() | media() | extendDirective() | styleRuleOrDeclarationOrNestedProperties() + contentDirective() | includeDirective() | media() | extendDirective() | styleRuleOrDeclarationOrNestedProperties() | keyframes() | LOOKAHEAD(variable()) variable() | listModifyDirective() } @@ -1710,8 +1711,13 @@ void includeDirective() : ()* (name = property()|name = variableName(){ name = "$"+name;} |(name = functionName() - args = argValuelist()) )(";"()*)+ + args = argValuelist()) ) + ((";"()*)+ {documentHandler.includeDirective(name, args);} + | ()* {documentHandler.startIncludeContentBlock(name);} + (styleRuleOrDeclarationOrNestedProperties())* + ()* {documentHandler.endIncludeContentBlock();} + ) } String interpolation() : @@ -1974,6 +1980,15 @@ void extendDirective() : {documentHandler.extendDirective(list);} } +void contentDirective() : +{} +{ + + ()* + (";"()*)+ + {documentHandler.contentDirective();} +} + JAVACODE Node importDirective(){ return null; diff --git a/theme-compiler/src/com/vaadin/sass/internal/parser/ParserConstants.java b/theme-compiler/src/com/vaadin/sass/internal/parser/ParserConstants.java index 8b944b5973..b69ee77862 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/parser/ParserConstants.java +++ b/theme-compiler/src/com/vaadin/sass/internal/parser/ParserConstants.java @@ -149,109 +149,111 @@ public interface ParserConstants { /** RegularExpression Id. */ int SUPPORTS_SYM = 68; /** RegularExpression Id. */ - int MICROSOFT_RULE = 69; + int CONTENT_SYM = 69; /** RegularExpression Id. */ - int IF = 70; + int MICROSOFT_RULE = 70; /** RegularExpression Id. */ - int GUARDED_SYM = 71; + int IF = 71; /** RegularExpression Id. */ - int STRING = 72; + int GUARDED_SYM = 72; /** RegularExpression Id. */ - int IDENT = 73; + int STRING = 73; /** RegularExpression Id. */ - int NUMBER = 74; + int IDENT = 74; /** RegularExpression Id. */ - int _URL = 75; + int NUMBER = 75; /** RegularExpression Id. */ - int URL = 76; + int _URL = 76; /** RegularExpression Id. */ - int VARIABLE = 77; + int URL = 77; /** RegularExpression Id. */ - int PERCENTAGE = 78; + int VARIABLE = 78; /** RegularExpression Id. */ - int PT = 79; + int PERCENTAGE = 79; /** RegularExpression Id. */ - int MM = 80; + int PT = 80; /** RegularExpression Id. */ - int CM = 81; + int MM = 81; /** RegularExpression Id. */ - int PC = 82; + int CM = 82; /** RegularExpression Id. */ - int IN = 83; + int PC = 83; /** RegularExpression Id. */ - int PX = 84; + int IN = 84; /** RegularExpression Id. */ - int EMS = 85; + int PX = 85; /** RegularExpression Id. */ - int LEM = 86; + int EMS = 86; /** RegularExpression Id. */ - int REM = 87; + int LEM = 87; /** RegularExpression Id. */ - int EXS = 88; + int REM = 88; /** RegularExpression Id. */ - int DEG = 89; + int EXS = 89; /** RegularExpression Id. */ - int RAD = 90; + int DEG = 90; /** RegularExpression Id. */ - int GRAD = 91; + int RAD = 91; /** RegularExpression Id. */ - int MS = 92; + int GRAD = 92; /** RegularExpression Id. */ - int SECOND = 93; + int MS = 93; /** RegularExpression Id. */ - int HZ = 94; + int SECOND = 94; /** RegularExpression Id. */ - int KHZ = 95; + int HZ = 95; /** RegularExpression Id. */ - int DIMEN = 96; + int KHZ = 96; /** RegularExpression Id. */ - int HASH = 97; + int DIMEN = 97; /** RegularExpression Id. */ - int IMPORT_SYM = 98; + int HASH = 98; /** RegularExpression Id. */ - int MEDIA_SYM = 99; + int IMPORT_SYM = 99; /** RegularExpression Id. */ - int CHARSET_SYM = 100; + int MEDIA_SYM = 100; /** RegularExpression Id. */ - int PAGE_SYM = 101; + int CHARSET_SYM = 101; /** RegularExpression Id. */ - int FONT_FACE_SYM = 102; + int PAGE_SYM = 102; /** RegularExpression Id. */ - int KEY_FRAME_SYM = 103; + int FONT_FACE_SYM = 103; /** RegularExpression Id. */ - int ATKEYWORD = 104; + int KEY_FRAME_SYM = 104; /** RegularExpression Id. */ - int IMPORTANT_SYM = 105; + int ATKEYWORD = 105; /** RegularExpression Id. */ - int RANGE0 = 106; + int IMPORTANT_SYM = 106; /** RegularExpression Id. */ - int RANGE1 = 107; + int RANGE0 = 107; /** RegularExpression Id. */ - int RANGE2 = 108; + int RANGE1 = 108; /** RegularExpression Id. */ - int RANGE3 = 109; + int RANGE2 = 109; /** RegularExpression Id. */ - int RANGE4 = 110; + int RANGE3 = 110; /** RegularExpression Id. */ - int RANGE5 = 111; + int RANGE4 = 111; /** RegularExpression Id. */ - int RANGE6 = 112; + int RANGE5 = 112; /** RegularExpression Id. */ - int RANGE = 113; + int RANGE6 = 113; /** RegularExpression Id. */ - int UNI = 114; + int RANGE = 114; /** RegularExpression Id. */ - int UNICODERANGE = 115; + int UNI = 115; /** RegularExpression Id. */ - int REMOVE = 116; + int UNICODERANGE = 116; /** RegularExpression Id. */ - int APPEND = 117; + int REMOVE = 117; /** RegularExpression Id. */ - int CONTAINS = 118; + int APPEND = 118; /** RegularExpression Id. */ - int FUNCTION = 119; + int CONTAINS = 119; /** RegularExpression Id. */ - int UNKNOWN = 120; + int FUNCTION = 120; + /** RegularExpression Id. */ + int UNKNOWN = 121; /** Lexical state. */ int DEFAULT = 0; @@ -276,8 +278,8 @@ public interface ParserConstants { "\"@function\"", "\"@return\"", "\"@debug\"", "\"@warn\"", "\"@for\"", "\"@each\"", "\"@while\"", "\"@if\"", "\"@else\"", "\"@extend\"", "\"@-moz-document\"", "\"@supports\"", - "", "\"if\"", "", "", - "", "", "<_URL>", "", "", + "\"@content\"", "", "\"if\"", "", + "", "", "", "<_URL>", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", diff --git a/theme-compiler/src/com/vaadin/sass/internal/parser/ParserTokenManager.java b/theme-compiler/src/com/vaadin/sass/internal/parser/ParserTokenManager.java index 030edb4cf0..be145628a0 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/parser/ParserTokenManager.java +++ b/theme-compiler/src/com/vaadin/sass/internal/parser/ParserTokenManager.java @@ -32,7 +32,7 @@ public class ParserTokenManager implements ParserConstants { switch (pos) { case 0: if ((active0 & 0x40000000000000L) != 0L) { - jjmatchedKind = 73; + jjmatchedKind = 74; return 33; } if ((active0 & 0x8000000000L) != 0L) { @@ -44,141 +44,141 @@ public class ParserTokenManager implements ParserConstants { if ((active0 & 0x200800L) != 0L) { return 42; } - if ((active0 & 0x38000000000000L) != 0L || (active1 & 0x40L) != 0L) { - jjmatchedKind = 73; - return 518; - } if ((active0 & 0x8000044L) != 0L) { return 3; } if ((active0 & 0xff80000000000000L) != 0L - || (active1 & 0x7c0000001fL) != 0L) { + || (active1 & 0xf80000003fL) != 0L) { return 166; } + if ((active0 & 0x38000000000000L) != 0L || (active1 & 0x80L) != 0L) { + jjmatchedKind = 74; + return 518; + } if ((active0 & 0x200000000L) != 0L) { return 519; } return -1; case 1: if ((active0 & 0x50000000000000L) != 0L) { - jjmatchedKind = 73; + jjmatchedKind = 74; jjmatchedPos = 1; return 518; } if ((active1 & 0x8L) != 0L) { return 178; } + if ((active0 & 0xff80000000000000L) != 0L + || (active1 & 0xf800000037L) != 0L) { + jjmatchedKind = 105; + jjmatchedPos = 1; + return 520; + } if ((active0 & 0x40L) != 0L) { return 1; } - if ((active0 & 0x28000000000000L) != 0L || (active1 & 0x40L) != 0L) { + if ((active0 & 0x28000000000000L) != 0L || (active1 & 0x80L) != 0L) { return 518; } - if ((active0 & 0xff80000000000000L) != 0L - || (active1 & 0x7c00000017L) != 0L) { - jjmatchedKind = 104; - jjmatchedPos = 1; - return 520; - } return -1; case 2: if ((active1 & 0x8L) != 0L) { - jjmatchedKind = 104; + jjmatchedKind = 105; jjmatchedPos = 2; return 177; } if ((active1 & 0x1L) != 0L) { return 520; } - if ((active0 & 0x50000000000000L) != 0L) { - jjmatchedKind = 73; - jjmatchedPos = 2; - return 518; - } if ((active0 & 0xff80000000000000L) != 0L - || (active1 & 0x7c00000016L) != 0L) { - jjmatchedKind = 104; + || (active1 & 0xf800000036L) != 0L) { + jjmatchedKind = 105; jjmatchedPos = 2; return 520; } + if ((active0 & 0x50000000000000L) != 0L) { + jjmatchedKind = 74; + jjmatchedPos = 2; + return 518; + } return -1; case 3: + if ((active0 & 0x10000000000000L) != 0L) { + jjmatchedKind = 74; + jjmatchedPos = 3; + return 518; + } if ((active1 & 0x8L) != 0L) { - jjmatchedKind = 104; + jjmatchedKind = 105; jjmatchedPos = 3; return 176; } - if ((active0 & 0x2000000000000000L) != 0L) { - return 520; - } if ((active0 & 0xdf80000000000000L) != 0L - || (active1 & 0x7c00000016L) != 0L) { - jjmatchedKind = 104; + || (active1 & 0xf800000036L) != 0L) { + jjmatchedKind = 105; jjmatchedPos = 3; return 520; } - if ((active0 & 0x40000000000000L) != 0L) { - return 518; + if ((active0 & 0x2000000000000000L) != 0L) { + return 520; } - if ((active0 & 0x10000000000000L) != 0L) { - jjmatchedKind = 73; - jjmatchedPos = 3; + if ((active0 & 0x40000000000000L) != 0L) { return 518; } return -1; case 4: - if ((active0 & 0x5000000000000000L) != 0L - || (active1 & 0x2000000002L) != 0L) { - return 520; - } if ((active0 & 0x8f80000000000000L) != 0L - || (active1 & 0x5c00000014L) != 0L) { - jjmatchedKind = 104; + || (active1 & 0xb800000034L) != 0L) { + jjmatchedKind = 105; jjmatchedPos = 4; return 520; } + if ((active0 & 0x5000000000000000L) != 0L + || (active1 & 0x4000000002L) != 0L) { + return 520; + } if ((active0 & 0x10000000000000L) != 0L) { - jjmatchedKind = 73; + jjmatchedKind = 74; jjmatchedPos = 4; return 518; } if ((active1 & 0x8L) != 0L) { - jjmatchedKind = 104; + jjmatchedKind = 105; jjmatchedPos = 4; return 175; } return -1; case 5: - if ((active0 & 0x10000000000000L) != 0L) { - jjmatchedKind = 73; - jjmatchedPos = 5; - return 518; - } if ((active0 & 0x700000000000000L) != 0L - || (active1 & 0x5400000014L) != 0L) { - jjmatchedKind = 104; + || (active1 & 0xa800000034L) != 0L) { + jjmatchedKind = 105; jjmatchedPos = 5; return 520; } + if ((active0 & 0x10000000000000L) != 0L) { + jjmatchedKind = 74; + jjmatchedPos = 5; + return 518; + } if ((active1 & 0x8L) != 0L) { - jjmatchedKind = 104; + jjmatchedKind = 105; jjmatchedPos = 5; return 174; } if ((active0 & 0x8880000000000000L) != 0L - || (active1 & 0x800000000L) != 0L) { + || (active1 & 0x1000000000L) != 0L) { return 520; } return -1; case 6: - if ((active0 & 0x300000000000000L) != 0L - || (active1 & 0x5000000018L) != 0L) { - jjmatchedKind = 104; - jjmatchedPos = 6; + if ((active0 & 0x400000000000000L) != 0L + || (active1 & 0x800000004L) != 0L) { return 520; } - if ((active0 & 0x400000000000000L) != 0L - || (active1 & 0x400000004L) != 0L) { + if ((active0 & 0x300000000000000L) != 0L + || (active1 & 0xa000000038L) != 0L) { + jjmatchedKind = 105; + jjmatchedPos = 6; return 520; } if ((active0 & 0x10000000000000L) != 0L) { @@ -186,14 +186,14 @@ public class ParserTokenManager implements ParserConstants { } return -1; case 7: - if ((active0 & 0x200000000000000L) != 0L - || (active1 & 0x4000000018L) != 0L) { - jjmatchedKind = 104; - jjmatchedPos = 7; + if ((active0 & 0x100000000000000L) != 0L + || (active1 & 0x2000000020L) != 0L) { return 520; } - if ((active0 & 0x100000000000000L) != 0L - || (active1 & 0x1000000000L) != 0L) { + if ((active0 & 0x200000000000000L) != 0L + || (active1 & 0x8000000018L) != 0L) { + jjmatchedKind = 105; + jjmatchedPos = 7; return 520; } return -1; @@ -201,39 +201,39 @@ public class ParserTokenManager implements ParserConstants { if ((active0 & 0x200000000000000L) != 0L || (active1 & 0x10L) != 0L) { return 520; } - if ((active1 & 0x4000000008L) != 0L) { - jjmatchedKind = 104; + if ((active1 & 0x8000000008L) != 0L) { + jjmatchedKind = 105; jjmatchedPos = 8; return 520; } return -1; case 9: - if ((active1 & 0x4000000000L) != 0L) { - return 520; - } if ((active1 & 0x8L) != 0L) { - jjmatchedKind = 104; + jjmatchedKind = 105; jjmatchedPos = 9; return 520; } + if ((active1 & 0x8000000000L) != 0L) { + return 520; + } return -1; case 10: if ((active1 & 0x8L) != 0L) { - jjmatchedKind = 104; + jjmatchedKind = 105; jjmatchedPos = 10; return 520; } return -1; case 11: if ((active1 & 0x8L) != 0L) { - jjmatchedKind = 104; + jjmatchedKind = 105; jjmatchedPos = 11; return 520; } return -1; case 12: if ((active1 & 0x8L) != 0L) { - jjmatchedKind = 104; + jjmatchedKind = 105; jjmatchedPos = 12; return 520; } @@ -297,7 +297,7 @@ public class ParserTokenManager implements ParserConstants { case 62: return jjStopAtPos(0, 24); case 64: - return jjMoveStringLiteralDfa1_0(0xff80000000000000L, 0x7c0000001fL); + return jjMoveStringLiteralDfa1_0(0xff80000000000000L, 0xf80000003fL); case 91: return jjStopAtPos(0, 28); case 93: @@ -309,7 +309,7 @@ public class ParserTokenManager implements ParserConstants { return jjMoveStringLiteralDfa1_0(0x40000000000000L, 0x0L); case 73: case 105: - return jjMoveStringLiteralDfa1_0(0x20000000000000L, 0x40L); + return jjMoveStringLiteralDfa1_0(0x20000000000000L, 0x80L); case 84: case 116: return jjMoveStringLiteralDfa1_0(0x18000000000000L, 0x0L); @@ -374,7 +374,7 @@ public class ParserTokenManager implements ParserConstants { case 67: case 99: return jjMoveStringLiteralDfa2_0(active0, 0L, active1, - 0x1000000000L); + 0x2000000020L); case 68: case 100: return jjMoveStringLiteralDfa2_0(active0, 0x800000000000000L, @@ -385,11 +385,11 @@ public class ParserTokenManager implements ParserConstants { active1, 0x6L); case 70: case 102: - if ((active1 & 0x40L) != 0L) { - return jjStartNfaWithStates_0(1, 70, 518); + if ((active1 & 0x80L) != 0L) { + return jjStartNfaWithStates_0(1, 71, 518); } return jjMoveStringLiteralDfa2_0(active0, 0x2200000000000000L, - active1, 0x4000000000L); + active1, 0x8000000000L); case 72: case 104: return jjMoveStringLiteralDfa2_0(active0, 0x10000000000000L, @@ -397,11 +397,11 @@ public class ParserTokenManager implements ParserConstants { case 73: case 105: return jjMoveStringLiteralDfa2_0(active0, 0x100000000000000L, - active1, 0x400000001L); + active1, 0x800000001L); case 77: case 109: return jjMoveStringLiteralDfa2_0(active0, 0x80000000000000L, - active1, 0x800000000L); + active1, 0x1000000000L); case 78: case 110: if ((active0 & 0x20000000000000L) != 0L) { @@ -417,7 +417,7 @@ public class ParserTokenManager implements ParserConstants { case 80: case 112: return jjMoveStringLiteralDfa2_0(active0, 0L, active1, - 0x2000000000L); + 0x4000000000L); case 82: case 114: return jjMoveStringLiteralDfa2_0(active0, 0x440000000000000L, @@ -462,11 +462,11 @@ public class ParserTokenManager implements ParserConstants { case 65: case 97: return jjMoveStringLiteralDfa3_0(active0, 0x5000000000000000L, - active1, 0x2000000000L); + active1, 0x4000000000L); case 69: case 101: return jjMoveStringLiteralDfa3_0(active0, 0xc00000000000000L, - active1, 0x800000000L); + active1, 0x1000000000L); case 70: case 102: if ((active1 & 0x1L) != 0L) { @@ -476,7 +476,7 @@ public class ParserTokenManager implements ParserConstants { case 72: case 104: return jjMoveStringLiteralDfa3_0(active0, 0x8000000000000000L, - active1, 0x1000000000L); + active1, 0x2000000000L); case 73: case 105: return jjMoveStringLiteralDfa3_0(active0, 0x80000000000000L, @@ -486,7 +486,7 @@ public class ParserTokenManager implements ParserConstants { return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x2L); case 77: case 109: - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x400000008L); + return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x800000008L); case 78: case 110: return jjMoveStringLiteralDfa3_0(active0, 0x100000000000000L, @@ -494,7 +494,7 @@ public class ParserTokenManager implements ParserConstants { case 79: case 111: return jjMoveStringLiteralDfa3_0(active0, 0x2040000000000000L, - active1, 0x4000000000L); + active1, 0x8000000020L); case 82: case 114: return jjMoveStringLiteralDfa3_0(active0, 0x10000000000000L, @@ -532,7 +532,7 @@ public class ParserTokenManager implements ParserConstants { case 65: case 97: return jjMoveStringLiteralDfa4_0(active0, 0L, active1, - 0x1000000000L); + 0x2000000000L); case 66: case 98: return jjMoveStringLiteralDfa4_0(active0, 0x800000000000000L, @@ -543,11 +543,12 @@ public class ParserTokenManager implements ParserConstants { active1, 0L); case 68: case 100: - return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x800000000L); + return jjMoveStringLiteralDfa4_0(active0, 0L, active1, + 0x1000000000L); case 71: case 103: return jjMoveStringLiteralDfa4_0(active0, 0L, active1, - 0x2000000000L); + 0x4000000000L); case 73: case 105: return jjMoveStringLiteralDfa4_0(active0, 0x8000000000000000L, @@ -561,14 +562,14 @@ public class ParserTokenManager implements ParserConstants { case 78: case 110: return jjMoveStringLiteralDfa4_0(active0, 0x200000000000000L, - active1, 0x4000000000L); + active1, 0x8000000020L); case 79: case 111: return jjMoveStringLiteralDfa4_0(active0, 0x10000000000000L, active1, 0x8L); case 80: case 112: - return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x400000010L); + return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x800000010L); case 82: case 114: if ((active0 & 0x2000000000000000L) != 0L) { @@ -613,8 +614,8 @@ public class ParserTokenManager implements ParserConstants { case 101: if ((active1 & 0x2L) != 0L) { return jjStartNfaWithStates_0(4, 65, 520); - } else if ((active1 & 0x2000000000L) != 0L) { - return jjStartNfaWithStates_0(4, 101, 520); + } else if ((active1 & 0x4000000000L) != 0L) { + return jjStartNfaWithStates_0(4, 102, 520); } return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x4L); case 72: @@ -626,7 +627,7 @@ public class ParserTokenManager implements ParserConstants { case 73: case 105: return jjMoveStringLiteralDfa5_0(active0, 0x80000000000000L, - active1, 0x800000000L); + active1, 0x1000000000L); case 76: case 108: return jjMoveStringLiteralDfa5_0(active0, 0x8100000000000000L, @@ -639,18 +640,18 @@ public class ParserTokenManager implements ParserConstants { break; case 79: case 111: - return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x400000000L); + return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x800000000L); case 80: case 112: return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x10L); case 82: case 114: return jjMoveStringLiteralDfa5_0(active0, 0L, active1, - 0x1000000000L); + 0x2000000000L); case 84: case 116: return jjMoveStringLiteralDfa5_0(active0, 0L, active1, - 0x4000000000L); + 0x8000000020L); case 85: case 117: return jjMoveStringLiteralDfa5_0(active0, 0xc10000000000000L, @@ -678,11 +679,11 @@ public class ParserTokenManager implements ParserConstants { switch (curChar) { case 45: return jjMoveStringLiteralDfa6_0(active0, 0L, active1, - 0x4000000008L); + 0x8000000008L); case 65: case 97: - if ((active1 & 0x800000000L) != 0L) { - return jjStartNfaWithStates_0(5, 99, 520); + if ((active1 & 0x1000000000L) != 0L) { + return jjStartNfaWithStates_0(5, 100, 520); } break; case 69: @@ -690,7 +691,7 @@ public class ParserTokenManager implements ParserConstants { if ((active0 & 0x8000000000000000L) != 0L) { return jjStartNfaWithStates_0(5, 63, 520); } - break; + return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x20L); case 71: case 103: if ((active0 & 0x800000000000000L) != 0L) { @@ -710,11 +711,11 @@ public class ParserTokenManager implements ParserConstants { case 82: case 114: return jjMoveStringLiteralDfa6_0(active0, 0x400000000000000L, - active1, 0x400000000L); + active1, 0x800000000L); case 83: case 115: return jjMoveStringLiteralDfa6_0(active0, 0L, active1, - 0x1000000000L); + 0x2000000000L); case 84: case 116: return jjMoveStringLiteralDfa6_0(active0, 0x200000000000000L, @@ -751,11 +752,11 @@ public class ParserTokenManager implements ParserConstants { case 69: case 101: return jjMoveStringLiteralDfa7_0(active0, 0L, active1, - 0x1000000000L); + 0x2000000000L); case 70: case 102: return jjMoveStringLiteralDfa7_0(active0, 0L, active1, - 0x4000000000L); + 0x8000000000L); case 72: case 104: if ((active0 & 0x10000000000000L) != 0L) { @@ -771,14 +772,14 @@ public class ParserTokenManager implements ParserConstants { if ((active0 & 0x400000000000000L) != 0L) { return jjStartNfaWithStates_0(6, 58, 520); } - break; + return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x20L); case 82: case 114: return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x10L); case 84: case 116: - if ((active1 & 0x400000000L) != 0L) { - return jjStartNfaWithStates_0(6, 98, 520); + if ((active1 & 0x800000000L) != 0L) { + return jjStartNfaWithStates_0(6, 99, 520); } break; default: @@ -802,7 +803,7 @@ public class ParserTokenManager implements ParserConstants { case 65: case 97: return jjMoveStringLiteralDfa8_0(active0, 0L, active1, - 0x4000000000L); + 0x8000000000L); case 69: case 101: if ((active0 & 0x100000000000000L) != 0L) { @@ -815,8 +816,10 @@ public class ParserTokenManager implements ParserConstants { active1, 0x8L); case 84: case 116: - if ((active1 & 0x1000000000L) != 0L) { - return jjStartNfaWithStates_0(7, 100, 520); + if ((active1 & 0x20L) != 0L) { + return jjStartNfaWithStates_0(7, 69, 520); + } else if ((active1 & 0x2000000000L) != 0L) { + return jjStartNfaWithStates_0(7, 101, 520); } return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x10L); default: @@ -840,7 +843,7 @@ public class ParserTokenManager implements ParserConstants { case 67: case 99: return jjMoveStringLiteralDfa9_0(active0, 0L, active1, - 0x4000000008L); + 0x8000000008L); case 78: case 110: if ((active0 & 0x200000000000000L) != 0L) { @@ -873,8 +876,8 @@ public class ParserTokenManager implements ParserConstants { switch (curChar) { case 69: case 101: - if ((active1 & 0x4000000000L) != 0L) { - return jjStartNfaWithStates_0(9, 102, 520); + if ((active1 & 0x8000000000L) != 0L) { + return jjStartNfaWithStates_0(9, 103, 520); } break; case 85: @@ -1002,8 +1005,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff200000000000L & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddTwoStates(113, 114); break; @@ -1028,15 +1031,15 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff200000000000L & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddTwoStates(113, 114); break; case 4: if ((0x3ff000000000000L & l) != 0L) { - if (kind > 74) { - kind = 74; + if (kind > 75) { + kind = 75; } jjCheckNAddStates(0, 81); } else if ((0x100003600L & l) != 0L) { @@ -1081,21 +1084,21 @@ public class ParserTokenManager implements ParserConstants { } else if ((0x100003600L & l) != 0L) { jjCheckNAddTwoStates(231, 232); } else if (curChar == 40) { - if (kind > 119) { - kind = 119; + if (kind > 120) { + kind = 120; } } if ((0x3ff200000000000L & l) != 0L) { - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddTwoStates(220, 221); } break; case 175: if ((0x3ff200000000000L & l) != 0L) { - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddTwoStates(113, 114); } @@ -1109,13 +1112,13 @@ public class ParserTokenManager implements ParserConstants { } else if ((0x100003600L & l) != 0L) { jjCheckNAddTwoStates(231, 232); } else if (curChar == 40) { - if (kind > 119) { - kind = 119; + if (kind > 120) { + kind = 120; } } if ((0x3ff200000000000L & l) != 0L) { - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddTwoStates(220, 221); } @@ -1124,8 +1127,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff200000000000L & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddTwoStates(113, 114); break; @@ -1188,8 +1191,8 @@ public class ParserTokenManager implements ParserConstants { jjCheckNAddTwoStates(267, 268); } if ((0x3ff000000000000L & l) != 0L) { - if (kind > 74) { - kind = 74; + if (kind > 75) { + kind = 75; } jjCheckNAdd(266); } @@ -1198,8 +1201,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff200000000000L & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddTwoStates(113, 114); break; @@ -1343,8 +1346,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 46: - if (curChar == 34 && kind > 72) { - kind = 72; + if (curChar == 34 && kind > 73) { + kind = 73; } break; case 48: @@ -1418,8 +1421,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 63: - if (curChar == 39 && kind > 72) { - kind = 72; + if (curChar == 39 && kind > 73) { + kind = 73; } break; case 65: @@ -1491,8 +1494,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff200000000000L & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddTwoStates(81, 82); break; @@ -1500,8 +1503,8 @@ public class ParserTokenManager implements ParserConstants { if ((0xffffffff00000000L & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddTwoStates(81, 82); break; @@ -1509,8 +1512,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddStates(288, 291); break; @@ -1518,8 +1521,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x100003600L & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddTwoStates(81, 82); break; @@ -1527,8 +1530,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddStates(292, 298); break; @@ -1536,8 +1539,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddStates(299, 301); break; @@ -1545,8 +1548,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddStates(302, 305); break; @@ -1554,8 +1557,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddStates(306, 310); break; @@ -1563,8 +1566,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddStates(311, 316); break; @@ -1572,8 +1575,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddStates(317, 320); break; @@ -1581,8 +1584,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddStates(321, 327); break; @@ -1590,8 +1593,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddStates(328, 330); break; @@ -1599,8 +1602,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddStates(331, 334); break; @@ -1608,8 +1611,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddStates(335, 339); break; @@ -1617,8 +1620,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddStates(340, 345); break; @@ -1631,8 +1634,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff200000000000L & l) == 0L) { break; } - if (kind > 97) { - kind = 97; + if (kind > 98) { + kind = 98; } jjCheckNAddTwoStates(100, 101); break; @@ -1640,8 +1643,8 @@ public class ParserTokenManager implements ParserConstants { if ((0xffffffff00000000L & l) == 0L) { break; } - if (kind > 97) { - kind = 97; + if (kind > 98) { + kind = 98; } jjCheckNAddTwoStates(100, 101); break; @@ -1649,8 +1652,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 97) { - kind = 97; + if (kind > 98) { + kind = 98; } jjCheckNAddStates(346, 349); break; @@ -1658,8 +1661,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x100003600L & l) == 0L) { break; } - if (kind > 97) { - kind = 97; + if (kind > 98) { + kind = 98; } jjCheckNAddTwoStates(100, 101); break; @@ -1667,8 +1670,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 97) { - kind = 97; + if (kind > 98) { + kind = 98; } jjCheckNAddStates(350, 356); break; @@ -1676,8 +1679,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 97) { - kind = 97; + if (kind > 98) { + kind = 98; } jjCheckNAddStates(357, 359); break; @@ -1685,8 +1688,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 97) { - kind = 97; + if (kind > 98) { + kind = 98; } jjCheckNAddStates(360, 363); break; @@ -1694,8 +1697,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 97) { - kind = 97; + if (kind > 98) { + kind = 98; } jjCheckNAddStates(364, 368); break; @@ -1703,8 +1706,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 97) { - kind = 97; + if (kind > 98) { + kind = 98; } jjCheckNAddStates(369, 374); break; @@ -1717,8 +1720,8 @@ public class ParserTokenManager implements ParserConstants { if ((0xffffffff00000000L & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddTwoStates(113, 114); break; @@ -1726,8 +1729,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddStates(375, 378); break; @@ -1735,8 +1738,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x100003600L & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddTwoStates(113, 114); break; @@ -1744,8 +1747,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddStates(379, 385); break; @@ -1753,8 +1756,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddStates(386, 388); break; @@ -1762,8 +1765,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddStates(389, 392); break; @@ -1771,8 +1774,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddStates(393, 397); break; @@ -1780,8 +1783,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddStates(398, 403); break; @@ -1789,8 +1792,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddStates(404, 407); break; @@ -1798,8 +1801,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddStates(408, 414); break; @@ -1807,8 +1810,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddStates(415, 417); break; @@ -1816,8 +1819,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddStates(418, 421); break; @@ -1825,8 +1828,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddStates(422, 426); break; @@ -1834,8 +1837,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddStates(427, 432); break; @@ -1845,8 +1848,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 133: - if (curChar == 40 && kind > 116) { - kind = 116; + if (curChar == 40 && kind > 117) { + kind = 117; } break; case 140: @@ -1855,8 +1858,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 141: - if (curChar == 40 && kind > 117) { - kind = 117; + if (curChar == 40 && kind > 118) { + kind = 118; } break; case 148: @@ -1865,8 +1868,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 149: - if (curChar == 40 && kind > 118) { - kind = 118; + if (curChar == 40 && kind > 119) { + kind = 119; } break; case 179: @@ -1908,8 +1911,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff200000000000L & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddTwoStates(220, 221); break; @@ -1917,8 +1920,8 @@ public class ParserTokenManager implements ParserConstants { if ((0xffffffff00000000L & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddTwoStates(220, 221); break; @@ -1926,8 +1929,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(439, 442); break; @@ -1935,8 +1938,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x100003600L & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddTwoStates(220, 221); break; @@ -1944,8 +1947,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(443, 449); break; @@ -1953,8 +1956,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(450, 452); break; @@ -1962,8 +1965,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(453, 456); break; @@ -1971,8 +1974,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(457, 461); break; @@ -1980,8 +1983,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(462, 467); break; @@ -1996,8 +1999,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 232: - if (curChar == 40 && kind > 119) { - kind = 119; + if (curChar == 40 && kind > 120) { + kind = 120; } break; case 234: @@ -2070,8 +2073,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 74) { - kind = 74; + if (kind > 75) { + kind = 75; } jjCheckNAdd(266); break; @@ -2081,8 +2084,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 268: - if (curChar == 37 && kind > 78) { - kind = 78; + if (curChar == 37 && kind > 79) { + kind = 79; } break; case 269: @@ -2184,8 +2187,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff200000000000L & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddTwoStates(329, 330); break; @@ -2193,8 +2196,8 @@ public class ParserTokenManager implements ParserConstants { if ((0xffffffff00000000L & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddTwoStates(329, 330); break; @@ -2202,8 +2205,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(503, 506); break; @@ -2211,8 +2214,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x100003600L & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddTwoStates(329, 330); break; @@ -2220,8 +2223,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(507, 513); break; @@ -2229,8 +2232,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(514, 516); break; @@ -2238,8 +2241,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(517, 520); break; @@ -2247,8 +2250,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(521, 525); break; @@ -2256,8 +2259,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(526, 531); break; @@ -2265,8 +2268,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(532, 535); break; @@ -2274,8 +2277,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(536, 542); break; @@ -2283,8 +2286,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(543, 545); break; @@ -2292,8 +2295,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(546, 549); break; @@ -2301,8 +2304,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(550, 554); break; @@ -2310,8 +2313,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(555, 560); break; @@ -2331,8 +2334,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 351: - if (curChar == 41 && kind > 76) { - kind = 76; + if (curChar == 41 && kind > 77) { + kind = 77; } break; case 353: @@ -2539,8 +2542,8 @@ public class ParserTokenManager implements ParserConstants { if (curChar != 63) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjstateSet[jjnewStateCnt++] = 400; break; @@ -2548,14 +2551,14 @@ public class ParserTokenManager implements ParserConstants { if (curChar != 63) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjCheckNAddStates(705, 708); break; case 401: - if (curChar == 63 && kind > 115) { - kind = 115; + if (curChar == 63 && kind > 116) { + kind = 116; } break; case 402: @@ -2566,8 +2569,8 @@ public class ParserTokenManager implements ParserConstants { if (curChar != 63) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjCheckNAdd(401); break; @@ -2575,8 +2578,8 @@ public class ParserTokenManager implements ParserConstants { if (curChar != 63) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjCheckNAddTwoStates(401, 402); break; @@ -2584,8 +2587,8 @@ public class ParserTokenManager implements ParserConstants { if (curChar != 63) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjCheckNAddStates(709, 711); break; @@ -2593,8 +2596,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjAddStates(712, 717); break; @@ -2614,8 +2617,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 409: - if ((0x3ff000000000000L & l) != 0L && kind > 115) { - kind = 115; + if ((0x3ff000000000000L & l) != 0L && kind > 116) { + kind = 116; } break; case 410: @@ -2637,8 +2640,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjCheckNAdd(401); break; @@ -2656,8 +2659,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjstateSet[jjnewStateCnt++] = 417; break; @@ -2670,8 +2673,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjstateSet[jjnewStateCnt++] = 420; break; @@ -2679,8 +2682,8 @@ public class ParserTokenManager implements ParserConstants { if (curChar != 63) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjCheckNAddTwoStates(401, 421); break; @@ -2688,8 +2691,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjstateSet[jjnewStateCnt++] = 423; break; @@ -2697,8 +2700,8 @@ public class ParserTokenManager implements ParserConstants { if (curChar != 63) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjCheckNAddStates(718, 720); break; @@ -2706,8 +2709,8 @@ public class ParserTokenManager implements ParserConstants { if (curChar != 63) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjCheckNAddTwoStates(401, 424); break; @@ -2715,8 +2718,8 @@ public class ParserTokenManager implements ParserConstants { if (curChar != 63) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjCheckNAddStates(721, 724); break; @@ -2724,8 +2727,8 @@ public class ParserTokenManager implements ParserConstants { if (curChar != 63) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjCheckNAddTwoStates(401, 427); break; @@ -2733,8 +2736,8 @@ public class ParserTokenManager implements ParserConstants { if (curChar != 63) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjCheckNAddStates(725, 727); break; @@ -2757,8 +2760,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjstateSet[jjnewStateCnt++] = 434; break; @@ -2766,8 +2769,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjCheckNAddStates(728, 731); break; @@ -2775,8 +2778,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjCheckNAdd(409); break; @@ -2784,8 +2787,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjCheckNAddTwoStates(409, 435); break; @@ -2793,8 +2796,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjCheckNAddStates(732, 734); break; @@ -2827,8 +2830,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(747, 750); break; @@ -2836,8 +2839,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(751, 757); break; @@ -2845,8 +2848,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(758, 760); break; @@ -2854,8 +2857,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(761, 764); break; @@ -2863,8 +2866,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(765, 769); break; @@ -2872,8 +2875,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(770, 775); break; @@ -2906,8 +2909,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 74) { - kind = 74; + if (kind > 75) { + kind = 75; } jjCheckNAddStates(0, 81); break; @@ -2915,8 +2918,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x3ff000000000000L & l) == 0L) { break; } - if (kind > 74) { - kind = 74; + if (kind > 75) { + kind = 75; } jjCheckNAdd(457); break; @@ -3225,8 +3228,8 @@ public class ParserTokenManager implements ParserConstants { switch (jjstateSet[--i]) { case 520: if ((0x7fffffe87fffffeL & l) != 0L) { - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddTwoStates(113, 114); } else if (curChar == 92) { @@ -3235,8 +3238,8 @@ public class ParserTokenManager implements ParserConstants { break; case 166: if ((0x7fffffe07fffffeL & l) != 0L) { - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddTwoStates(113, 114); } else if (curChar == 92) { @@ -3248,8 +3251,8 @@ public class ParserTokenManager implements ParserConstants { break; case 174: if ((0x7fffffe87fffffeL & l) != 0L) { - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddTwoStates(113, 114); } else if (curChar == 92) { @@ -3261,8 +3264,8 @@ public class ParserTokenManager implements ParserConstants { break; case 4: if ((0x7fffffe07fffffeL & l) != 0L) { - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(812, 817); } else if (curChar == 92) { @@ -3293,8 +3296,8 @@ public class ParserTokenManager implements ParserConstants { break; case 178: if ((0x7fffffe07fffffeL & l) != 0L) { - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddTwoStates(113, 114); } @@ -3316,8 +3319,8 @@ public class ParserTokenManager implements ParserConstants { jjCheckNAddTwoStates(222, 223); } if ((0x7fffffe87fffffeL & l) != 0L) { - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddTwoStates(220, 221); } else if (curChar == 92) { @@ -3326,8 +3329,8 @@ public class ParserTokenManager implements ParserConstants { break; case 175: if ((0x7fffffe87fffffeL & l) != 0L) { - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddTwoStates(113, 114); } else if (curChar == 92) { @@ -3341,8 +3344,8 @@ public class ParserTokenManager implements ParserConstants { jjCheckNAddTwoStates(222, 223); } if ((0x7fffffe87fffffeL & l) != 0L) { - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddTwoStates(220, 221); } else if (curChar == 92) { @@ -3354,8 +3357,8 @@ public class ParserTokenManager implements ParserConstants { break; case 176: if ((0x7fffffe87fffffeL & l) != 0L) { - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddTwoStates(113, 114); } else if (curChar == 92) { @@ -3370,8 +3373,8 @@ public class ParserTokenManager implements ParserConstants { jjCheckNAddStates(120, 123); } if ((0x7fffffe07fffffeL & l) != 0L) { - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddTwoStates(220, 221); } @@ -3381,8 +3384,8 @@ public class ParserTokenManager implements ParserConstants { break; case 177: if ((0x7fffffe87fffffeL & l) != 0L) { - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddTwoStates(113, 114); } else if (curChar == 92) { @@ -3396,8 +3399,8 @@ public class ParserTokenManager implements ParserConstants { break; case 79: if ((0x7fffffe07fffffeL & l) != 0L) { - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddTwoStates(81, 82); } else if (curChar == 92) { @@ -3505,8 +3508,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 29: - if ((0x4000000040000L & l) != 0L && kind > 69) { - kind = 69; + if ((0x4000000040000L & l) != 0L && kind > 70) { + kind = 70; } break; case 30: @@ -3651,8 +3654,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffe07fffffeL & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddTwoStates(81, 82); break; @@ -3660,8 +3663,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffe87fffffeL & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddTwoStates(81, 82); break; @@ -3674,8 +3677,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffffffffffffL & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddTwoStates(81, 82); break; @@ -3683,8 +3686,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddStates(288, 291); break; @@ -3692,8 +3695,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddStates(292, 298); break; @@ -3701,8 +3704,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddStates(299, 301); break; @@ -3710,8 +3713,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddStates(302, 305); break; @@ -3719,8 +3722,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddStates(306, 310); break; @@ -3728,8 +3731,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddStates(311, 316); break; @@ -3742,8 +3745,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddStates(317, 320); break; @@ -3751,8 +3754,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddStates(321, 327); break; @@ -3760,8 +3763,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddStates(328, 330); break; @@ -3769,8 +3772,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddStates(331, 334); break; @@ -3778,8 +3781,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddStates(335, 339); break; @@ -3787,8 +3790,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddStates(340, 345); break; @@ -3796,8 +3799,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffe87fffffeL & l) == 0L) { break; } - if (kind > 97) { - kind = 97; + if (kind > 98) { + kind = 98; } jjCheckNAddTwoStates(100, 101); break; @@ -3810,8 +3813,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffffffffffffL & l) == 0L) { break; } - if (kind > 97) { - kind = 97; + if (kind > 98) { + kind = 98; } jjCheckNAddTwoStates(100, 101); break; @@ -3819,8 +3822,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 97) { - kind = 97; + if (kind > 98) { + kind = 98; } jjCheckNAddStates(346, 349); break; @@ -3828,8 +3831,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 97) { - kind = 97; + if (kind > 98) { + kind = 98; } jjCheckNAddStates(350, 356); break; @@ -3837,8 +3840,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 97) { - kind = 97; + if (kind > 98) { + kind = 98; } jjCheckNAddStates(357, 359); break; @@ -3846,8 +3849,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 97) { - kind = 97; + if (kind > 98) { + kind = 98; } jjCheckNAddStates(360, 363); break; @@ -3855,8 +3858,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 97) { - kind = 97; + if (kind > 98) { + kind = 98; } jjCheckNAddStates(364, 368); break; @@ -3864,8 +3867,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 97) { - kind = 97; + if (kind > 98) { + kind = 98; } jjCheckNAddStates(369, 374); break; @@ -3878,8 +3881,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffe07fffffeL & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddTwoStates(113, 114); break; @@ -3887,8 +3890,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffe87fffffeL & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddTwoStates(113, 114); break; @@ -3901,8 +3904,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffffffffffffL & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddTwoStates(113, 114); break; @@ -3910,8 +3913,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddStates(375, 378); break; @@ -3919,8 +3922,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddStates(379, 385); break; @@ -3928,8 +3931,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddStates(386, 388); break; @@ -3937,8 +3940,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddStates(389, 392); break; @@ -3946,8 +3949,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddStates(393, 397); break; @@ -3955,8 +3958,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddStates(398, 403); break; @@ -3969,8 +3972,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddStates(404, 407); break; @@ -3978,8 +3981,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddStates(408, 414); break; @@ -3987,8 +3990,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddStates(415, 417); break; @@ -3996,8 +3999,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddStates(418, 421); break; @@ -4005,8 +4008,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddStates(422, 426); break; @@ -4014,8 +4017,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddStates(427, 432); break; @@ -4125,8 +4128,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 158: - if ((0x8000000080000L & l) != 0L && kind > 103) { - kind = 103; + if ((0x8000000080000L & l) != 0L && kind > 104) { + kind = 104; } break; case 159: @@ -4352,8 +4355,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffe87fffffeL & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddTwoStates(220, 221); break; @@ -4366,8 +4369,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffffffffffffL & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddTwoStates(220, 221); break; @@ -4375,8 +4378,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(439, 442); break; @@ -4384,8 +4387,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(443, 449); break; @@ -4393,8 +4396,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(450, 452); break; @@ -4402,8 +4405,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(453, 456); break; @@ -4411,8 +4414,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(457, 461); break; @@ -4420,8 +4423,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(462, 467); break; @@ -4472,8 +4475,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 244: - if ((0x10000000100000L & l) != 0L && kind > 71) { - kind = 71; + if ((0x10000000100000L & l) != 0L && kind > 72) { + kind = 72; } break; case 245: @@ -4507,8 +4510,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 252: - if ((0x10000000100000L & l) != 0L && kind > 105) { - kind = 105; + if ((0x10000000100000L & l) != 0L && kind > 106) { + kind = 106; } break; case 253: @@ -4555,8 +4558,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffe07fffffeL & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddTwoStates(220, 221); break; @@ -4569,14 +4572,14 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffe07fffffeL & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(812, 817); break; case 270: - if ((0x10000000100000L & l) != 0L && kind > 79) { - kind = 79; + if ((0x10000000100000L & l) != 0L && kind > 80) { + kind = 80; } break; case 271: @@ -4585,8 +4588,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 273: - if ((0x200000002000L & l) != 0L && kind > 80) { - kind = 80; + if ((0x200000002000L & l) != 0L && kind > 81) { + kind = 81; } break; case 274: @@ -4595,8 +4598,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 276: - if ((0x200000002000L & l) != 0L && kind > 81) { - kind = 81; + if ((0x200000002000L & l) != 0L && kind > 82) { + kind = 82; } break; case 277: @@ -4605,8 +4608,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 279: - if ((0x800000008L & l) != 0L && kind > 82) { - kind = 82; + if ((0x800000008L & l) != 0L && kind > 83) { + kind = 83; } break; case 280: @@ -4615,8 +4618,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 282: - if ((0x400000004000L & l) != 0L && kind > 83) { - kind = 83; + if ((0x400000004000L & l) != 0L && kind > 84) { + kind = 84; } break; case 283: @@ -4625,8 +4628,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 285: - if ((0x100000001000000L & l) != 0L && kind > 84) { - kind = 84; + if ((0x100000001000000L & l) != 0L && kind > 85) { + kind = 85; } break; case 286: @@ -4635,8 +4638,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 288: - if ((0x200000002000L & l) != 0L && kind > 85) { - kind = 85; + if ((0x200000002000L & l) != 0L && kind > 86) { + kind = 86; } break; case 289: @@ -4645,8 +4648,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 291: - if ((0x200000002000L & l) != 0L && kind > 86) { - kind = 86; + if ((0x200000002000L & l) != 0L && kind > 87) { + kind = 87; } break; case 292: @@ -4660,8 +4663,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 295: - if ((0x200000002000L & l) != 0L && kind > 87) { - kind = 87; + if ((0x200000002000L & l) != 0L && kind > 88) { + kind = 88; } break; case 296: @@ -4675,8 +4678,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 299: - if ((0x100000001000000L & l) != 0L && kind > 88) { - kind = 88; + if ((0x100000001000000L & l) != 0L && kind > 89) { + kind = 89; } break; case 300: @@ -4685,8 +4688,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 302: - if ((0x8000000080L & l) != 0L && kind > 89) { - kind = 89; + if ((0x8000000080L & l) != 0L && kind > 90) { + kind = 90; } break; case 303: @@ -4700,8 +4703,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 306: - if ((0x1000000010L & l) != 0L && kind > 90) { - kind = 90; + if ((0x1000000010L & l) != 0L && kind > 91) { + kind = 91; } break; case 307: @@ -4715,8 +4718,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 310: - if ((0x1000000010L & l) != 0L && kind > 91) { - kind = 91; + if ((0x1000000010L & l) != 0L && kind > 92) { + kind = 92; } break; case 311: @@ -4735,8 +4738,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 315: - if ((0x8000000080000L & l) != 0L && kind > 92) { - kind = 92; + if ((0x8000000080000L & l) != 0L && kind > 93) { + kind = 93; } break; case 316: @@ -4745,13 +4748,13 @@ public class ParserTokenManager implements ParserConstants { } break; case 318: - if ((0x8000000080000L & l) != 0L && kind > 93) { - kind = 93; + if ((0x8000000080000L & l) != 0L && kind > 94) { + kind = 94; } break; case 320: - if ((0x400000004000000L & l) != 0L && kind > 94) { - kind = 94; + if ((0x400000004000000L & l) != 0L && kind > 95) { + kind = 95; } break; case 321: @@ -4760,8 +4763,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 323: - if ((0x400000004000000L & l) != 0L && kind > 95) { - kind = 95; + if ((0x400000004000000L & l) != 0L && kind > 96) { + kind = 96; } break; case 324: @@ -4778,8 +4781,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffe07fffffeL & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddTwoStates(329, 330); break; @@ -4787,8 +4790,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffe87fffffeL & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddTwoStates(329, 330); break; @@ -4801,8 +4804,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7fffffffffffffffL & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddTwoStates(329, 330); break; @@ -4810,8 +4813,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(503, 506); break; @@ -4819,8 +4822,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(507, 513); break; @@ -4828,8 +4831,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(514, 516); break; @@ -4837,8 +4840,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(517, 520); break; @@ -4846,8 +4849,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(521, 525); break; @@ -4855,8 +4858,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(526, 531); break; @@ -4869,8 +4872,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(532, 535); break; @@ -4878,8 +4881,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(536, 542); break; @@ -4887,8 +4890,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(543, 545); break; @@ -4896,8 +4899,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(546, 549); break; @@ -4905,8 +4908,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(550, 554); break; @@ -4914,8 +4917,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddStates(555, 560); break; @@ -5071,8 +5074,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjAddStates(712, 717); break; @@ -5092,8 +5095,8 @@ public class ParserTokenManager implements ParserConstants { } break; case 409: - if ((0x7e0000007eL & l) != 0L && kind > 115) { - kind = 115; + if ((0x7e0000007eL & l) != 0L && kind > 116) { + kind = 116; } break; case 410: @@ -5115,8 +5118,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjstateSet[jjnewStateCnt++] = 401; break; @@ -5134,8 +5137,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjstateSet[jjnewStateCnt++] = 417; break; @@ -5148,8 +5151,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjstateSet[jjnewStateCnt++] = 420; break; @@ -5157,8 +5160,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjstateSet[jjnewStateCnt++] = 423; break; @@ -5171,8 +5174,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjstateSet[jjnewStateCnt++] = 434; break; @@ -5180,8 +5183,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjCheckNAddStates(728, 731); break; @@ -5189,8 +5192,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjCheckNAdd(409); break; @@ -5198,8 +5201,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjCheckNAddTwoStates(409, 435); break; @@ -5207,8 +5210,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 115) { - kind = 115; + if (kind > 116) { + kind = 116; } jjCheckNAddStates(732, 734); break; @@ -5246,8 +5249,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(747, 750); break; @@ -5255,8 +5258,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(751, 757); break; @@ -5264,8 +5267,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(758, 760); break; @@ -5273,8 +5276,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(761, 764); break; @@ -5282,8 +5285,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(765, 769); break; @@ -5291,8 +5294,8 @@ public class ParserTokenManager implements ParserConstants { if ((0x7e0000007eL & l) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddStates(770, 775); break; @@ -5336,8 +5339,8 @@ public class ParserTokenManager implements ParserConstants { if ((jjbitVec0[i2] & l2) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddTwoStates(113, 114); break; @@ -5345,8 +5348,8 @@ public class ParserTokenManager implements ParserConstants { if ((jjbitVec0[i2] & l2) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddTwoStates(113, 114); break; @@ -5354,8 +5357,8 @@ public class ParserTokenManager implements ParserConstants { if ((jjbitVec0[i2] & l2) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddTwoStates(113, 114); break; @@ -5370,8 +5373,8 @@ public class ParserTokenManager implements ParserConstants { break; case 518: if ((jjbitVec0[i2] & l2) != 0L) { - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddTwoStates(220, 221); } @@ -5383,15 +5386,15 @@ public class ParserTokenManager implements ParserConstants { if ((jjbitVec0[i2] & l2) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddTwoStates(113, 114); break; case 33: if ((jjbitVec0[i2] & l2) != 0L) { - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddTwoStates(220, 221); } @@ -5403,8 +5406,8 @@ public class ParserTokenManager implements ParserConstants { if ((jjbitVec0[i2] & l2) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddTwoStates(113, 114); break; @@ -5412,8 +5415,8 @@ public class ParserTokenManager implements ParserConstants { if ((jjbitVec0[i2] & l2) == 0L) { break; } - if (kind > 104) { - kind = 104; + if (kind > 105) { + kind = 105; } jjCheckNAddTwoStates(113, 114); break; @@ -5423,8 +5426,8 @@ public class ParserTokenManager implements ParserConstants { if ((jjbitVec0[i2] & l2) == 0L) { break; } - if (kind > 77) { - kind = 77; + if (kind > 78) { + kind = 78; } jjCheckNAddTwoStates(81, 82); break; @@ -5457,8 +5460,8 @@ public class ParserTokenManager implements ParserConstants { if ((jjbitVec0[i2] & l2) == 0L) { break; } - if (kind > 97) { - kind = 97; + if (kind > 98) { + kind = 98; } jjCheckNAddTwoStates(100, 101); break; @@ -5467,8 +5470,8 @@ public class ParserTokenManager implements ParserConstants { if ((jjbitVec0[i2] & l2) == 0L) { break; } - if (kind > 73) { - kind = 73; + if (kind > 74) { + kind = 74; } jjCheckNAddTwoStates(220, 221); break; @@ -5484,8 +5487,8 @@ public class ParserTokenManager implements ParserConstants { if ((jjbitVec0[i2] & l2) == 0L) { break; } - if (kind > 96) { - kind = 96; + if (kind > 97) { + kind = 97; } jjCheckNAddTwoStates(329, 330); break; @@ -5754,7 +5757,8 @@ public class ParserTokenManager implements ParserConstants { null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, - null, null, null, null, null, null, null, null, null, null, null, }; + null, null, null, null, null, null, null, null, null, null, null, + null, }; /** Lexer state names. */ public static final String[] lexStateNames = { "DEFAULT", @@ -5769,8 +5773,8 @@ public class ParserTokenManager implements ParserConstants { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, }; - static final long[] jjtoToken = { 0xfff807fffffffc03L, 0x1f803fffffff7ffL, }; + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, }; + static final long[] jjtoToken = { 0xfff807fffffffc03L, 0x3f007ffffffefffL, }; static final long[] jjtoSkip = { 0x190L, 0x0L, }; static final long[] jjtoSpecial = { 0x80L, 0x0L, }; static final long[] jjtoMore = { 0x26cL, 0x0L, }; @@ -5882,8 +5886,8 @@ public class ParserTokenManager implements ParserConstants { jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_0(); - if (jjmatchedPos == 0 && jjmatchedKind > 120) { - jjmatchedKind = 120; + if (jjmatchedPos == 0 && jjmatchedKind > 121) { + jjmatchedKind = 121; } break; case 1: diff --git a/theme-compiler/src/com/vaadin/sass/internal/tree/ContentNode.java b/theme-compiler/src/com/vaadin/sass/internal/tree/ContentNode.java new file mode 100644 index 0000000000..10cb1599c1 --- /dev/null +++ b/theme-compiler/src/com/vaadin/sass/internal/tree/ContentNode.java @@ -0,0 +1,33 @@ +/* + * Copyright 2000-2013 Vaadin Ltd. + * + * Licensed 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. + */ + +/** + * ContentNode represents a {@literal @}content in a SCSS tree. + */ +package com.vaadin.sass.internal.tree; + +public class ContentNode extends Node { + + @Override + public void traverse() { + /* + * ContentNode is basically just a placeholder for some content which + * will be included. So for traverse of this node, it does nothing. it + * will be replaced when traversing MixinDefNode which contains it. + */ + } + +} diff --git a/theme-compiler/src/com/vaadin/sass/internal/tree/MixinDefNode.java b/theme-compiler/src/com/vaadin/sass/internal/tree/MixinDefNode.java index d3dce12c48..bae1475076 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/tree/MixinDefNode.java +++ b/theme-compiler/src/com/vaadin/sass/internal/tree/MixinDefNode.java @@ -85,4 +85,38 @@ public class MixinDefNode extends Node implements IVariableNode { } } + /** + * This should only happen on a cloned MixinDefNode, since it changes the + * Node itself. + * + * @param mixinNode + * @return + */ + public MixinDefNode replaceContentDirective(MixinNode mixinNode) { + return findAndReplaceContentNodeInChildren(this, mixinNode); + } + + private MixinDefNode findAndReplaceContentNodeInChildren(Node node, + MixinNode mixinNode) { + ContentNode contentNode = null; + for (Node child : new ArrayList(node.getChildren())) { + if (child instanceof ContentNode) { + contentNode = (ContentNode) child; + replaceContentNode(contentNode, mixinNode); + } else { + findAndReplaceContentNodeInChildren(child, mixinNode); + } + } + return this; + } + + public MixinDefNode replaceContentNode(ContentNode contentNode, + MixinNode mixinNode) { + if (contentNode != null) { + contentNode.getParentNode().appendChildrenAfter( + DeepCopy.copy(mixinNode.getChildren()), contentNode); + contentNode.getParentNode().removeChild(contentNode); + } + return this; + } } diff --git a/theme-compiler/src/com/vaadin/sass/internal/tree/MixinNode.java b/theme-compiler/src/com/vaadin/sass/internal/tree/MixinNode.java index 755c2d5c88..e702bc8577 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/tree/MixinNode.java +++ b/theme-compiler/src/com/vaadin/sass/internal/tree/MixinNode.java @@ -30,10 +30,13 @@ public class MixinNode extends Node implements IVariableNode { private String name; private ArrayList arglist; - public MixinNode(String name, Collection args) { - super(); + public MixinNode(String name) { this.name = name; arglist = new ArrayList(); + } + + public MixinNode(String name, Collection args) { + this(name); if (args != null && !args.isEmpty()) { arglist.addAll(args); } @@ -69,7 +72,8 @@ public class MixinNode extends Node implements IVariableNode { for (final LexicalUnitImpl arg : new ArrayList( arglist)) { LexicalUnitImpl unit = arg; - // only perform replace in the value if separate argument name + // only perform replace in the value if separate argument + // name // and value if (unit.getNextLexicalUnit() != null) { unit = unit.getNextLexicalUnit(); @@ -89,7 +93,15 @@ public class MixinNode extends Node implements IVariableNode { name = var.getExpr().toString(); } } + } + } + protected void replaceVariablesForChildren() { + for (Node child : getChildren()) { + if (child instanceof IVariableNode) { + ((IVariableNode) child).replaceVariables(ScssStylesheet + .getVariables()); + } } } @@ -101,6 +113,7 @@ public class MixinNode extends Node implements IVariableNode { .openVariableScope(); replaceVariables(ScssStylesheet.getVariables()); + replaceVariablesForChildren(); MixinNodeHandler.traverse(this); ScssStylesheet.closeVariableScope(variableScope); diff --git a/theme-compiler/src/com/vaadin/sass/internal/tree/Node.java b/theme-compiler/src/com/vaadin/sass/internal/tree/Node.java index 9a2cc6371e..98b701d5a9 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/tree/Node.java +++ b/theme-compiler/src/com/vaadin/sass/internal/tree/Node.java @@ -45,6 +45,23 @@ public abstract class Node implements Serializable { } } + public void appendChildrenAfter(Collection childrenNodes, Node after) { + if (childrenNodes != null && !childrenNodes.isEmpty()) { + int index = children.indexOf(after); + if (index != -1) { + children.addAll(index, childrenNodes); + for (final Node child : childrenNodes) { + if (child.getParentNode() != null) { + child.getParentNode().removeChild(child); + } + child.setParentNode(this); + } + } else { + throw new NullPointerException("after-node was not found"); + } + } + } + public void appendChild(Node node) { if (node != null) { children.add(node); diff --git a/theme-compiler/src/com/vaadin/sass/internal/util/DeepCopy.java b/theme-compiler/src/com/vaadin/sass/internal/util/DeepCopy.java index 6b16183588..bc30ffdd6c 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/util/DeepCopy.java +++ b/theme-compiler/src/com/vaadin/sass/internal/util/DeepCopy.java @@ -19,6 +19,9 @@ package com.vaadin.sass.internal.util; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; +import java.util.Collection; +import java.util.LinkedList; +import java.util.List; /** * Utility for making deep copies (vs. clone()'s shallow copies) of objects. @@ -70,4 +73,11 @@ public class DeepCopy { } } + public static Collection copy(Collection objects) { + List copies = new LinkedList(); + for (T object : objects) { + copies.add((T) copy(object)); + } + return copies; + } } \ No newline at end of file diff --git a/theme-compiler/src/com/vaadin/sass/internal/visitor/ImportNodeHandler.java b/theme-compiler/src/com/vaadin/sass/internal/visitor/ImportNodeHandler.java index 5593241297..e356ed3525 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/visitor/ImportNodeHandler.java +++ b/theme-compiler/src/com/vaadin/sass/internal/visitor/ImportNodeHandler.java @@ -67,12 +67,9 @@ public class ImportNodeHandler { updateUrlInImportedSheet(imported, prefix); } - Node pre = importNode; - for (Node importedChild : new ArrayList( - imported.getChildren())) { - node.appendChild(importedChild, pre); - pre = importedChild; - } + node.appendChildrenAfter( + new ArrayList(imported.getChildren()), + importNode); node.removeChild(importNode); } catch (CSSException e) { e.printStackTrace(); diff --git a/theme-compiler/src/com/vaadin/sass/internal/visitor/MixinNodeHandler.java b/theme-compiler/src/com/vaadin/sass/internal/visitor/MixinNodeHandler.java index 5aa90151b9..0469333965 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/visitor/MixinNodeHandler.java +++ b/theme-compiler/src/com/vaadin/sass/internal/visitor/MixinNodeHandler.java @@ -45,19 +45,19 @@ public class MixinNodeHandler { private static void replaceMixinNode(MixinNode mixinNode, MixinDefNode mixinDef) { - Node pre = mixinNode; - MixinDefNode defClone = (MixinDefNode) DeepCopy.copy(mixinDef); defClone.traverse(); + defClone.replaceContentDirective(mixinNode); + if (mixinDef.getArglist().isEmpty()) { - for (Node child : new ArrayList(defClone.getChildren())) { - mixinNode.getParentNode().appendChild(child, pre); - pre = child; - } + mixinNode.getParentNode().appendChildrenAfter( + new ArrayList(defClone.getChildren()), mixinNode); } else { - - replacePossibleArguments(mixinNode, defClone); + if (mixinNode.getArglist() != null + && !mixinNode.getArglist().isEmpty()) { + replacePossibleArguments(mixinNode, defClone); + } Node previous = mixinNode; for (final Node child : defClone.getChildren()) { @@ -87,7 +87,6 @@ public class MixinNodeHandler { */ private static void replacePossibleArguments(MixinNode mixinNode, MixinDefNode def) { - if (mixinNode.getArglist().size() > 0) { ArrayList remainingNodes = new ArrayList( def.getArglist()); diff --git a/theme-compiler/tests/resources/automatic/css/mixin-content-directive-with-vars.css b/theme-compiler/tests/resources/automatic/css/mixin-content-directive-with-vars.css new file mode 100644 index 0000000000..799d6ae90c --- /dev/null +++ b/theme-compiler/tests/resources/automatic/css/mixin-content-directive-with-vars.css @@ -0,0 +1,5 @@ +.colors { + background-color: blue; + color: white; + border-color: blue; +} \ No newline at end of file diff --git a/theme-compiler/tests/resources/automatic/css/mixin-content-directive.css b/theme-compiler/tests/resources/automatic/css/mixin-content-directive.css new file mode 100644 index 0000000000..07813d1c99 --- /dev/null +++ b/theme-compiler/tests/resources/automatic/css/mixin-content-directive.css @@ -0,0 +1,20 @@ +.foobar { + color: red; +} + +.foobar { + background-color: blue; +} + +* html #logo { + background-image: url(/logo.gif); +} + +* html .link { + color: blue; +} + +.foobar { + color: red; + color: red; +} \ No newline at end of file diff --git a/theme-compiler/tests/resources/automatic/scss/mixin-content-directive-with-vars.scss b/theme-compiler/tests/resources/automatic/scss/mixin-content-directive-with-vars.scss new file mode 100644 index 0000000000..e7e0c3b7e6 --- /dev/null +++ b/theme-compiler/tests/resources/automatic/scss/mixin-content-directive-with-vars.scss @@ -0,0 +1,9 @@ +$color: white; +@mixin colors($color: blue) { + background-color: $color; + @content; + border-color: $color; +} +.colors { + @include colors { color: $color; } +} \ No newline at end of file diff --git a/theme-compiler/tests/resources/automatic/scss/mixin-content-directive.scss b/theme-compiler/tests/resources/automatic/scss/mixin-content-directive.scss new file mode 100644 index 0000000000..71217cb814 --- /dev/null +++ b/theme-compiler/tests/resources/automatic/scss/mixin-content-directive.scss @@ -0,0 +1,40 @@ +@mixin my-mixin { + .foobar { + @content; + } +} + +@include my-mixin { + color: red; +} + +@include my-mixin { + background-color: blue; +} + +@mixin apply-to-ie6-only { + * html { + @content; + } +} +@include apply-to-ie6-only { + #logo { + background-image: url(/logo.gif); + } +} +@include apply-to-ie6-only { + .link { + color: blue; + } +} + +@mixin mixin-multi-contents { + .foobar { + @content; + @content; + } +} + +@include mixin-multi-contents { + color: red; +} \ No newline at end of file -- cgit v1.2.3 From b48144d8efd2a8fd7f2b823143b5bc9955b0a207 Mon Sep 17 00:00:00 2001 From: Henri Sara Date: Thu, 28 Feb 2013 15:51:35 +0200 Subject: Regenerate SCSS parser classes Change-Id: Ifdd08e5fa83f4e7135150517ebdc0e5ac7ffe963 --- .../com/vaadin/sass/internal/parser/Parser.java | 15399 +++++++++---------- .../sass/internal/parser/ParserConstants.java | 650 +- .../sass/internal/parser/ParserTokenManager.java | 11031 ++++++------- 3 files changed, 12657 insertions(+), 14423 deletions(-) (limited to 'theme-compiler/src') diff --git a/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.java b/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.java index 34da123085..c9ff10cc6a 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.java +++ b/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.java @@ -1,44 +1,39 @@ -/* - * Copyright 2000-2013 Vaadin Ltd. - * - * Licensed 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. - */ /* Generated By:JavaCC: Do not edit this line. Parser.java */ package com.vaadin.sass.internal.parser; -import java.io.BufferedInputStream; -import java.io.FileInputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.Reader; -import java.net.URL; +import java.io.*; +import java.net.*; import java.util.ArrayList; import java.util.Locale; +import java.util.Map; import java.util.UUID; -import org.omg.IOP.Encoding; -import org.xml.sax.DocumentHandler; -import org.xml.sax.InputSource; -import org.xml.sax.Locator; +import org.w3c.css.sac.ConditionFactory; +import org.w3c.css.sac.Condition; +import org.w3c.css.sac.SelectorFactory; +import org.w3c.css.sac.SelectorList; +import org.w3c.css.sac.Selector; +import org.w3c.css.sac.SimpleSelector; +import org.w3c.css.sac.DocumentHandler; +import org.w3c.css.sac.InputSource; +import org.w3c.css.sac.ErrorHandler; +import org.w3c.css.sac.CSSException; +import org.w3c.css.sac.CSSParseException; +import org.w3c.css.sac.Locator; +import org.w3c.css.sac.LexicalUnit; + +import org.w3c.flute.parser.selectors.SelectorFactoryImpl; +import org.w3c.flute.parser.selectors.ConditionFactoryImpl; + +import org.w3c.flute.util.Encoding; -import com.vaadin.sass.internal.handler.SCSSDocumentHandlerImpl; -import com.vaadin.sass.internal.tree.Node; -import com.vaadin.sass.internal.tree.VariableNode; +import com.vaadin.sass.internal.handler.*; + +import com.vaadin.sass.internal.tree.*; /** * A CSS2 parser - * + * * @author Philippe Le H�garet * @version $Revision: 1.15 $ */ @@ -69,14 +64,13 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { /** * @@TODO - * @exception CSSException - * Not yet implemented + * @exception CSSException Not yet implemented */ public void setLocale(Locale locale) throws CSSException { throw new CSSException(CSSException.SAC_NOT_SUPPORTED_ERR); } - public InputSource getInputSource() { + public InputSource getInputSource(){ return source; } @@ -84,7 +78,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { * Set the document handler for this parser */ public void setDocumentHandler(DocumentHandler handler) { - documentHandler = (SCSSDocumentHandlerImpl) handler; + this.documentHandler = (SCSSDocumentHandlerImpl) handler; } public void setSelectorFactory(SelectorFactory selectorFactory) { @@ -99,21 +93,18 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { * Set the error handler for this parser */ public void setErrorHandler(ErrorHandler error) { - errorHandler = error; + this.errorHandler = error; } /** * Main parse methods - * - * @param source - * the source of the style sheet. - * @exception IOException - * the source can't be parsed. - * @exception CSSException - * the source is not CSS valid. + * + * @param source the source of the style sheet. + * @exception IOException the source can't be parsed. + * @exception CSSException the source is not CSS valid. */ - public void parseStyleSheet(InputSource source) throws CSSException, - IOException { + public void parseStyleSheet(InputSource source) + throws CSSException, IOException { this.source = source; ReInit(getCharStreamWithLurk(source)); if (selectorFactory == null) { @@ -128,31 +119,25 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { /** * Convenient method for URIs. - * - * @param systemId - * the fully resolved URI of the style sheet. - * @exception IOException - * the source can't be parsed. - * @exception CSSException - * the source is not CSS valid. + * + * @param systemId the fully resolved URI of the style sheet. + * @exception IOException the source can't be parsed. + * @exception CSSException the source is not CSS valid. */ - public void parseStyleSheet(String systemId) throws CSSException, - IOException { + public void parseStyleSheet(String systemId) + throws CSSException, IOException { parseStyleSheet(new InputSource(systemId)); } /** - * This method parses only one rule (style rule or at-rule, except - * @charset). - * - * @param source - * the source of the rule. - * @exception IOException - * the source can't be parsed. - * @exception CSSException - * the source is not CSS valid. + * This method parses only one rule (style rule or at-rule, except @charset). + * + * @param source the source of the rule. + * @exception IOException the source can't be parsed. + * @exception CSSException the source is not CSS valid. */ - public void parseRule(InputSource source) throws CSSException, IOException { + public void parseRule(InputSource source) + throws CSSException, IOException { this.source = source; ReInit(getCharStreamWithLurk(source)); @@ -168,16 +153,13 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { /** * This method parses a style declaration (including the surrounding curly * braces). - * - * @param source - * the source of the style declaration. - * @exception IOException - * the source can't be parsed. - * @exception CSSException - * the source is not CSS valid. + * + * @param source the source of the style declaration. + * @exception IOException the source can't be parsed. + * @exception CSSException the source is not CSS valid. */ - public void parseStyleDeclaration(InputSource source) throws CSSException, - IOException { + public void parseStyleDeclaration(InputSource source) + throws CSSException, IOException { this.source = source; ReInit(getCharStreamWithLurk(source)); @@ -192,7 +174,6 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { /** * This methods returns "http://www.w3.org/TR/REC-CSS2". - * * @return the string "http://www.w3.org/TR/REC-CSS2". */ public String getParserVersion() { @@ -202,8 +183,8 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { /** * Parse methods used by DOM Level 2 implementation. */ - public void parseImportRule(InputSource source) throws CSSException, - IOException { + public void parseImportRule(InputSource source) + throws CSSException, IOException { this.source = source; ReInit(getCharStreamWithLurk(source)); @@ -216,8 +197,8 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { _parseImportRule(); } - public void parseMediaRule(InputSource source) throws CSSException, - IOException { + public void parseMediaRule(InputSource source) + throws CSSException, IOException { this.source = source; ReInit(getCharStreamWithLurk(source)); @@ -230,8 +211,8 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { _parseMediaRule(); } - public SelectorList parseSelectors(InputSource source) throws CSSException, - IOException { + public SelectorList parseSelectors(InputSource source) + throws CSSException, IOException { this.source = source; ReInit(getCharStreamWithLurk(source)); @@ -246,8 +227,8 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return expr(); } - public boolean parsePriority(InputSource source) throws CSSException, - IOException { + public boolean parsePriority(InputSource source) + throws CSSException, IOException { this.source = source; ReInit(getCharStreamWithLurk(source)); @@ -255,8 +236,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } /** - * Convert the source into a Reader. Used only by DOM Level 2 parser - * methods. + * Convert the source into a Reader. Used only by DOM Level 2 parser methods. */ private Reader getReader(InputSource source) throws IOException { if (source.getCharacterStream() != null) { @@ -268,7 +248,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { return new InputStreamReader(source.getByteStream(), "ASCII"); } else { return new InputStreamReader(source.getByteStream(), - source.getEncoding()); + source.getEncoding()); } } else { // systemId @@ -278,10 +258,11 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } /** - * Convert the source into a CharStream with encoding informations. The - * encoding can be found in the InputSource or in the CSS document. Since - * this method marks the reader and make a reset after looking for the - * charset declaration, you'll find the charset declaration into the stream. + * Convert the source into a CharStream with encoding informations. + * The encoding can be found in the InputSource or in the CSS document. + * Since this method marks the reader and make a reset after looking for + * the charset declaration, you'll find the charset declaration into the + * stream. */ private CharStream getCharStreamWithLurk(InputSource source) throws CSSException, IOException { @@ -301,7 +282,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } } } - // use UTF-8 as the default encoding. + //use UTF-8 as the default encoding. String encoding = source.getEncoding(); InputStream input = source.getByteStream(); if (!input.markSupported()) { @@ -311,7 +292,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } // Mark either the original stream or the wrapped stream input.mark(100); - if (encoding == null) { + if(encoding == null){ encoding = "ASCII"; char c = ' '; @@ -320,15 +301,14 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { if (c == '@') { // hum, is it a charset ? - int size = 100; + int size = 100; byte[] buf = new byte[size]; input.read(buf, 0, 7); String keyword = new String(buf, 0, 7); if (keyword.equals("charset")) { // Yes, this is the charset declaration ! - // here I don't use the right declaration : white space are - // ' '. + // here I don't use the right declaration : white space are ' '. while ((c = (char) input.read()) == ' ') { // find the first quote } @@ -355,17 +335,15 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { if (c != ';') { // no semi colon at the end ? throw new CSSException("invalid charset declaration: " - + "missing semi colon"); + + "missing semi colon"); } encoding = new String(buf, 0, i); if (source.getEncoding() != null) { // compare the two encoding informations. - // For example, I don't accept to have ASCII and after - // UTF-8. + // For example, I don't accept to have ASCII and after UTF-8. // Is it really good ? That is the question. if (!encoding.equals(source.getEncoding())) { - throw new CSSException( - "invalid encoding information."); + throw new CSSException("invalid encoding information."); } } } // else no charset declaration available @@ -375,7 +353,7 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { source.setEncoding(encoding); // set the real reader of this source. source.setCharacterStream(new InputStreamReader(source.getByteStream(), - Encoding.getJavaEncoding(encoding))); + Encoding.getJavaEncoding(encoding))); // reset the stream (leave the charset declaration in the stream). input.reset(); @@ -383,7 +361,6 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } private LocatorImpl currentLocator; - private Locator getLocator() { if (currentLocator == null) { currentLocator = new LocatorImpl(this); @@ -391,7 +368,6 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } return currentLocator.reInit(this); } - private LocatorImpl getLocator(Token save) { if (currentLocator == null) { currentLocator = new LocatorImpl(this, save); @@ -408,8 +384,8 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { if (pe.specialConstructor) { StringBuffer errorM = new StringBuffer(); if (pe.currentToken != null) { - errorM.append("encountered \u005c"").append( - pe.currentToken.next); + errorM.append("encountered \u005c"") + .append(pe.currentToken.next); } errorM.append('"'); if (pe.expectedTokenSequences.length != 0) { @@ -425,10 +401,10 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } } errorHandler.error(new CSSParseException(errorM.toString(), - l, e)); + l, e)); } else { - errorHandler.error(new CSSParseException(e.getMessage(), l, - e)); + errorHandler.error(new CSSParseException(e.getMessage(), + l, e)); } } else if (e == null) { errorHandler.error(new CSSParseException("error", l, null)); @@ -439,8187 +415,7340 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants { } private void reportWarningSkipText(Locator l, String text) { - if (errorHandler != null && text != null) { + if (errorHandler != null && text != null) { errorHandler.warning(new CSSParseException("Skipping: " + text, l)); } } - /* - * The grammar of CSS2 - */ +/* + * The grammar of CSS2 + */ - /** - * The main entry for the parser. - * - * @exception ParseException - * exception during the parse - */ - final public void parserUnit() throws ParseException { - try { - documentHandler.startDocument(source); - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case CHARSET_SYM: - charset(); - break; - default: - jj_la1[0] = jj_gen; - ; - } - label_1: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - case CDO: - case CDC: - case ATKEYWORD: - ; - break; - default: - jj_la1[1] = jj_gen; - break label_1; - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - jj_consume_token(S); - comments(); - break; - case CDO: - case CDC: - case ATKEYWORD: - ignoreStatement(); - break; - default: - jj_la1[2] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - label_2: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case IMPORT_SYM: - ; - break; - default: - jj_la1[3] = jj_gen; - break label_2; - } - importDeclaration(); - label_3: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case CDO: - case CDC: - case ATKEYWORD: - ; - break; - default: - jj_la1[4] = jj_gen; - break label_3; - } - ignoreStatement(); - label_4: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[5] = jj_gen; - break label_4; - } - jj_consume_token(S); - } - } - } - afterImportDeclaration(); - jj_consume_token(0); - } finally { - documentHandler.endDocument(source); +/** + * The main entry for the parser. + * + * @exception ParseException exception during the parse + */ + final public void parserUnit() throws ParseException { + try { + documentHandler.startDocument(source); + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case CHARSET_SYM: + charset(); + break; + default: + jj_la1[0] = jj_gen; + ; + } + label_1: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + case CDO: + case CDC: + case ATKEYWORD: + ; + break; + default: + jj_la1[1] = jj_gen; + break label_1; } - } - - final public void charset() throws ParseException { - Token n; - try { - jj_consume_token(CHARSET_SYM); - label_5: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[6] = jj_gen; - break label_5; - } - jj_consume_token(S); - } - n = jj_consume_token(STRING); - label_6: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[7] = jj_gen; - break label_6; - } - jj_consume_token(S); - } - jj_consume_token(SEMICOLON); - } catch (ParseException e) { - reportError(getLocator(e.currentToken.next), e); - skipStatement(); - // reportWarningSkipText(getLocator(), skipStatement()); - - } catch (Exception e) { - reportError(getLocator(), e); - skipStatement(); - // reportWarningSkipText(getLocator(), skipStatement()); - + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + jj_consume_token(S); + comments(); + break; + case CDO: + case CDC: + case ATKEYWORD: + ignoreStatement(); + break; + default: + jj_la1[2] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + } + label_2: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case IMPORT_SYM: + ; + break; + default: + jj_la1[3] = jj_gen; + break label_2; } - } - - final public void afterImportDeclaration() throws ParseException { - String ret; - Locator l; - label_7: while (true) { + importDeclaration(); + label_3: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case CDO: + case CDC: + case ATKEYWORD: ; - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case DEBUG_SYM: - case WARN_SYM: - debuggingDirective(); - break; - case MIXIN_SYM: - mixinDirective(); - break; - case EACH_SYM: - case IF_SYM: - controlDirective(); - break; - case INCLUDE_SYM: - includeDirective(); - break; - case PLUS: - case PRECEDES: - case SIBLING: - case LBRACKET: - case ANY: - case PARENT: - case DOT: - case COLON: - case INTERPOLATION: - case IDENT: - case HASH: - styleRule(); - break; - case MEDIA_SYM: - media(); - break; - case PAGE_SYM: - page(); - break; - case FONT_FACE_SYM: - fontFace(); - break; - case KEY_FRAME_SYM: - keyframes(); - break; + break; + default: + jj_la1[4] = jj_gen; + break label_3; + } + ignoreStatement(); + label_4: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; default: - jj_la1[8] = jj_gen; - if (jj_2_1(2147483647)) { - variable(); - } else { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case VARIABLE: - listModifyDirective(); - break; - default: - jj_la1[9] = jj_gen; - l = getLocator(); - ret = skipStatement(); - if ((ret == null) || (ret.length() == 0)) { - { - if (true) { - return; - } - } - } - if (ret.charAt(0) == '@') { - documentHandler.unrecognizedRule(ret); - } else { - reportWarningSkipText(l, ret); - } - } - } - } - label_8: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case CDO: - case CDC: - case ATKEYWORD: - ; - break; - default: - jj_la1[10] = jj_gen; - break label_8; - } - ignoreStatement(); - label_9: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[11] = jj_gen; - break label_9; - } - jj_consume_token(S); - } + jj_la1[5] = jj_gen; + break label_4; } - } - } - - final public void ignoreStatement() throws ParseException { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case CDO: - jj_consume_token(CDO); + jj_consume_token(S); + } + } + } + afterImportDeclaration(); + jj_consume_token(0); + } finally { + documentHandler.endDocument(source); + } + } + + final public void charset() throws ParseException { + Token n; + try { + jj_consume_token(CHARSET_SYM); + label_5: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[6] = jj_gen; + break label_5; + } + jj_consume_token(S); + } + n = jj_consume_token(STRING); + label_6: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[7] = jj_gen; + break label_6; + } + jj_consume_token(S); + } + jj_consume_token(SEMICOLON); + } catch (ParseException e) { + reportError(getLocator(e.currentToken.next), e); + skipStatement(); + // reportWarningSkipText(getLocator(), skipStatement()); + + } catch (Exception e) { + reportError(getLocator(), e); + skipStatement(); + // reportWarningSkipText(getLocator(), skipStatement()); + + } + } + + final public void afterImportDeclaration() throws ParseException { + String ret; + Locator l; + label_7: + while (true) { + ; + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case DEBUG_SYM: + case WARN_SYM: + debuggingDirective(); + break; + case MIXIN_SYM: + mixinDirective(); + break; + case EACH_SYM: + case IF_SYM: + controlDirective(); + break; + case INCLUDE_SYM: + includeDirective(); + break; + case PLUS: + case PRECEDES: + case SIBLING: + case LBRACKET: + case ANY: + case PARENT: + case DOT: + case COLON: + case INTERPOLATION: + case IDENT: + case HASH: + styleRule(); + break; + case MEDIA_SYM: + media(); + break; + case PAGE_SYM: + page(); + break; + case FONT_FACE_SYM: + fontFace(); + break; + case KEY_FRAME_SYM: + keyframes(); + break; + default: + jj_la1[8] = jj_gen; + if (jj_2_1(2147483647)) { + variable(); + } else { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case VARIABLE: + listModifyDirective(); break; + default: + jj_la1[9] = jj_gen; + l = getLocator(); + ret = skipStatement(); + if ((ret == null) || (ret.length() == 0)) { + {if (true) return;} + } + if (ret.charAt(0) == '@') { + documentHandler.unrecognizedRule(ret); + } else { + reportWarningSkipText(l, ret); + } + } + } + } + label_8: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case CDO: case CDC: - jj_consume_token(CDC); - break; case ATKEYWORD: - atRuleDeclaration(); - break; + ; + break; default: - jj_la1[12] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); + jj_la1[10] = jj_gen; + break label_8; } - } - - /** - * The import statement - * - * @exception ParseException - * exception during the parse - */ - final public void importDeclaration() throws ParseException { - Token n; - String uri; - MediaListImpl ml = new MediaListImpl(); - boolean isURL = false; - try { - jj_consume_token(IMPORT_SYM); - label_10: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[13] = jj_gen; - break label_10; - } - jj_consume_token(S); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case STRING: - n = jj_consume_token(STRING); - uri = convertStringIndex(n.image, 1, n.image.length() - 1); - break; - case URL: - n = jj_consume_token(URL); - isURL = true; - uri = n.image.substring(4, n.image.length() - 1).trim(); - if ((uri.charAt(0) == '"') || (uri.charAt(0) == '\u005c'')) { - uri = uri.substring(1, uri.length() - 1); - } - break; - default: - jj_la1[14] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - label_11: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[15] = jj_gen; - break label_11; - } - jj_consume_token(S); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case IDENT: - mediaStatement(ml); - break; - default: - jj_la1[16] = jj_gen; - ; - } - jj_consume_token(SEMICOLON); - label_12: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[17] = jj_gen; - break label_12; - } - jj_consume_token(S); - } - if (ml.getLength() == 0) { - // see section 6.3 of the CSS2 recommandation. - ml.addItem("all"); - } - documentHandler.importStyle(uri, ml, isURL); - } catch (ParseException e) { - reportError(getLocator(), e); - skipStatement(); - // reportWarningSkipText(getLocator(), skipStatement()); + ignoreStatement(); + label_9: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[11] = jj_gen; + break label_9; + } + jj_consume_token(S); + } + } + } + } + + final public void ignoreStatement() throws ParseException { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case CDO: + jj_consume_token(CDO); + break; + case CDC: + jj_consume_token(CDC); + break; + case ATKEYWORD: + atRuleDeclaration(); + break; + default: + jj_la1[12] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + } +/** + * The import statement + * + * @exception ParseException exception during the parse + */ + final public void importDeclaration() throws ParseException { + Token n; + String uri; + MediaListImpl ml = new MediaListImpl(); + boolean isURL = false; + try { + jj_consume_token(IMPORT_SYM); + label_10: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[13] = jj_gen; + break label_10; + } + jj_consume_token(S); + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case STRING: + n = jj_consume_token(STRING); + uri = convertStringIndex(n.image, 1, + n.image.length() -1); + break; + case URL: + n = jj_consume_token(URL); + isURL=true; + uri = n.image.substring(4, n.image.length()-1).trim(); + if ((uri.charAt(0) == '"') + || (uri.charAt(0) == '\u005c'')) { + uri = uri.substring(1, uri.length()-1); + } + break; + default: + jj_la1[14] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + label_11: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[15] = jj_gen; + break label_11; + } + jj_consume_token(S); + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case IDENT: + mediaStatement(ml); + break; + default: + jj_la1[16] = jj_gen; + ; + } + jj_consume_token(SEMICOLON); + label_12: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[17] = jj_gen; + break label_12; } - } + jj_consume_token(S); + } + if (ml.getLength() == 0) { + // see section 6.3 of the CSS2 recommandation. + ml.addItem("all"); + } + documentHandler.importStyle(uri, ml, isURL); + } catch (ParseException e) { + reportError(getLocator(), e); + skipStatement(); + // reportWarningSkipText(getLocator(), skipStatement()); - /** - * @exception ParseException - * exception during the parse - */ - final public void keyframes() throws ParseException { - Token n; - boolean start = false; - String keyframeName = null; - String animationname = ""; - try { - n = jj_consume_token(KEY_FRAME_SYM); - label_13: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[18] = jj_gen; - break label_13; - } - jj_consume_token(S); - } - keyframeName = n.image; - label_14: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case IDENT: - n = jj_consume_token(IDENT); - animationname += n.image; - break; - case INTERPOLATION: - n = jj_consume_token(INTERPOLATION); - animationname += n.image; - break; - default: - jj_la1[19] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case INTERPOLATION: - case IDENT: - ; - break; - default: - jj_la1[20] = jj_gen; - break label_14; - } - } - label_15: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[21] = jj_gen; - break label_15; - } - jj_consume_token(S); - } - start = true; - documentHandler.startKeyFrames(keyframeName, animationname); - jj_consume_token(LBRACE); - label_16: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[22] = jj_gen; - break label_16; - } - jj_consume_token(S); - } - label_17: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case TO: - case FROM: - case PERCENTAGE: - ; - break; - default: - jj_la1[23] = jj_gen; - break label_17; - } - keyframeSelector(); - } - jj_consume_token(RBRACE); - label_18: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[24] = jj_gen; - break label_18; - } - jj_consume_token(S); - } - } catch (ParseException e) { - reportError(getLocator(), e); - skipStatement(); - } finally { - if (start) { - documentHandler.endKeyFrames(); - } - } } + } - final public void keyframeSelector() throws ParseException { - Token n; - boolean start = false; - try { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case FROM: - n = jj_consume_token(FROM); - break; - case TO: - n = jj_consume_token(TO); - break; - case PERCENTAGE: - n = jj_consume_token(PERCENTAGE); - break; - default: - jj_la1[25] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - label_19: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[26] = jj_gen; - break label_19; - } - jj_consume_token(S); - } - jj_consume_token(LBRACE); - label_20: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[27] = jj_gen; - break label_20; - } - jj_consume_token(S); - } - start = true; - documentHandler.startKeyframeSelector(n.image); - label_21: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case PLUS: - case PRECEDES: - case SIBLING: - case LBRACKET: - case ANY: - case PARENT: - case DOT: - case COLON: - case INTERPOLATION: - case INCLUDE_SYM: - case DEBUG_SYM: - case WARN_SYM: - case EACH_SYM: - case IF_SYM: - case EXTEND_SYM: - case CONTENT_SYM: - case MICROSOFT_RULE: - case IDENT: - case VARIABLE: - case HASH: - case MEDIA_SYM: - case KEY_FRAME_SYM: - ; - break; - default: - jj_la1[28] = jj_gen; - break label_21; - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case PLUS: - case PRECEDES: - case SIBLING: - case LBRACKET: - case ANY: - case PARENT: - case DOT: - case COLON: - case INTERPOLATION: - case INCLUDE_SYM: - case DEBUG_SYM: - case WARN_SYM: - case EXTEND_SYM: - case CONTENT_SYM: - case IDENT: - case VARIABLE: - case HASH: - case MEDIA_SYM: - case KEY_FRAME_SYM: - ifContentStatement(); - break; - case EACH_SYM: - case IF_SYM: - controlDirective(); - break; - case MICROSOFT_RULE: - microsoftExtension(); - break; - default: - jj_la1[29] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - jj_consume_token(RBRACE); - label_22: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[30] = jj_gen; - break label_22; - } - jj_consume_token(S); - } - } catch (ThrowedParseException e) { - if (errorHandler != null) { - LocatorImpl li = new LocatorImpl(this, - e.e.currentToken.next.beginLine, - e.e.currentToken.next.beginColumn - 1); - reportError(li, e.e); - } - } catch (ParseException e) { - reportError(getLocator(), e); - skipStatement(); - // reportWarningSkipText(getLocator(), skipStatement()); - - } catch (TokenMgrError e) { - reportWarningSkipText(getLocator(), skipStatement()); - } finally { - if (start) { - documentHandler.endKeyframeSelector(); - } +/** + * @exception ParseException exception during the parse + */ + final public void keyframes() throws ParseException { + Token n; + boolean start = false; + String keyframeName = null; + String animationname = ""; + try { + n = jj_consume_token(KEY_FRAME_SYM); + label_13: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[18] = jj_gen; + break label_13; + } + jj_consume_token(S); + } + keyframeName = n.image; + label_14: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case IDENT: + n = jj_consume_token(IDENT); + animationname += n.image; + break; + case INTERPOLATION: + n = jj_consume_token(INTERPOLATION); + animationname += n.image; + break; + default: + jj_la1[19] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); } - } - - /** - * @exception ParseException - * exception during the parse - */ - final public void media() throws ParseException { - boolean start = false; - String ret; - MediaListImpl ml = new MediaListImpl(); - try { - jj_consume_token(MEDIA_SYM); - label_23: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[31] = jj_gen; - break label_23; - } - jj_consume_token(S); - } - mediaStatement(ml); - start = true; - documentHandler.startMedia(ml); - jj_consume_token(LBRACE); - label_24: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[32] = jj_gen; - break label_24; - } - jj_consume_token(S); - } - label_25: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case CDO: - case LBRACE: - case DASHMATCH: - case INCLUDES: - case PLUS: - case MINUS: - case COMMA: - case SEMICOLON: - case PRECEDES: - case SIBLING: - case LBRACKET: - case ANY: - case PARENT: - case DOT: - case COLON: - case INTERPOLATION: - case NONASCII: - case DEBUG_SYM: - case WARN_SYM: - case STRING: - case IDENT: - case NUMBER: - case URL: - case PERCENTAGE: - case HASH: - case IMPORT_SYM: - case MEDIA_SYM: - case CHARSET_SYM: - case PAGE_SYM: - case FONT_FACE_SYM: - case ATKEYWORD: - case IMPORTANT_SYM: - case UNICODERANGE: - case FUNCTION: - case UNKNOWN: - ; - break; - default: - jj_la1[33] = jj_gen; - break label_25; - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case DEBUG_SYM: - case WARN_SYM: - debuggingDirective(); - break; - case PLUS: - case PRECEDES: - case SIBLING: - case LBRACKET: - case ANY: - case PARENT: - case DOT: - case COLON: - case INTERPOLATION: - case IDENT: - case HASH: - styleRule(); - break; - case CDO: - case LBRACE: - case DASHMATCH: - case INCLUDES: - case MINUS: - case COMMA: - case SEMICOLON: - case NONASCII: - case STRING: - case NUMBER: - case URL: - case PERCENTAGE: - case IMPORT_SYM: - case MEDIA_SYM: - case CHARSET_SYM: - case PAGE_SYM: - case FONT_FACE_SYM: - case ATKEYWORD: - case IMPORTANT_SYM: - case UNICODERANGE: - case FUNCTION: - case UNKNOWN: - skipUnknownRule(); - break; - default: - jj_la1[34] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - jj_consume_token(RBRACE); - label_26: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[35] = jj_gen; - break label_26; - } - jj_consume_token(S); - } - } catch (ParseException e) { - reportError(getLocator(), e); - skipStatement(); - // reportWarningSkipText(getLocator(), skipStatement()); - - } finally { - if (start) { - documentHandler.endMedia(ml); - } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case INTERPOLATION: + case IDENT: + ; + break; + default: + jj_la1[20] = jj_gen; + break label_14; } - } - - final public void mediaStatement(MediaListImpl ml) throws ParseException { - String m; - m = medium(); - label_27: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case COMMA: - ; - break; - default: - jj_la1[36] = jj_gen; - break label_27; - } - jj_consume_token(COMMA); - label_28: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[37] = jj_gen; - break label_28; - } - jj_consume_token(S); - } - ml.addItem(m); - m = medium(); - } - ml.addItem(m); - } - - /** - * @exception ParseException - * exception during the parse - */ - final public String medium() throws ParseException { - Token n; - n = jj_consume_token(IDENT); - label_29: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[38] = jj_gen; - break label_29; - } - jj_consume_token(S); - } - { - if (true) { - return convertIdent(n.image); - } - } - throw new Error("Missing return statement in function"); - } - - /** - * @exception ParseException - * exception during the parse - */ - final public void page() throws ParseException { - boolean start = false; - Token n = null; - String page = null; - String pseudo = null; - try { - jj_consume_token(PAGE_SYM); - label_30: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[39] = jj_gen; - break label_30; - } - jj_consume_token(S); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case IDENT: - n = jj_consume_token(IDENT); - label_31: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[40] = jj_gen; - break label_31; - } - jj_consume_token(S); - } - break; - default: - jj_la1[41] = jj_gen; - ; - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case COLON: - pseudo = pseudo_page(); - break; - default: - jj_la1[42] = jj_gen; - ; - } - if (n != null) { - page = convertIdent(n.image); - } - jj_consume_token(LBRACE); - label_32: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[43] = jj_gen; - break label_32; - } - jj_consume_token(S); - } - start = true; - documentHandler.startPage(page, pseudo); - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case INTERPOLATION: - case IDENT: - declaration(); - break; - default: - jj_la1[44] = jj_gen; - ; - } - label_33: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case SEMICOLON: - ; - break; - default: - jj_la1[45] = jj_gen; - break label_33; - } - jj_consume_token(SEMICOLON); - label_34: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[46] = jj_gen; - break label_34; - } - jj_consume_token(S); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case INTERPOLATION: - case IDENT: - declaration(); - break; - default: - jj_la1[47] = jj_gen; - ; - } - } - jj_consume_token(RBRACE); - label_35: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[48] = jj_gen; - break label_35; - } - jj_consume_token(S); - } - } catch (ParseException e) { - if (errorHandler != null) { - LocatorImpl li = new LocatorImpl(this, - e.currentToken.next.beginLine, - e.currentToken.next.beginColumn - 1); - reportError(li, e); - skipStatement(); - // reportWarningSkipText(li, skipStatement()); - } else { - skipStatement(); - } - } finally { - if (start) { - documentHandler.endPage(page, pseudo); - } - } - } - - final public String pseudo_page() throws ParseException { - Token n; - jj_consume_token(COLON); - n = jj_consume_token(IDENT); - label_36: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[49] = jj_gen; - break label_36; - } - jj_consume_token(S); - } - { - if (true) { - return convertIdent(n.image); - } - } - throw new Error("Missing return statement in function"); - } - - final public void fontFace() throws ParseException { - boolean start = false; - try { - jj_consume_token(FONT_FACE_SYM); - label_37: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[50] = jj_gen; - break label_37; - } - jj_consume_token(S); - } - jj_consume_token(LBRACE); - label_38: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[51] = jj_gen; - break label_38; - } - jj_consume_token(S); - } - start = true; - documentHandler.startFontFace(); - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case INTERPOLATION: - case IDENT: - declaration(); - break; - default: - jj_la1[52] = jj_gen; - ; - } - label_39: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case SEMICOLON: - ; - break; - default: - jj_la1[53] = jj_gen; - break label_39; - } - jj_consume_token(SEMICOLON); - label_40: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[54] = jj_gen; - break label_40; - } - jj_consume_token(S); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case INTERPOLATION: - case IDENT: - declaration(); - break; - default: - jj_la1[55] = jj_gen; - ; - } - } - jj_consume_token(RBRACE); - label_41: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[56] = jj_gen; - break label_41; - } - jj_consume_token(S); - } - } catch (ParseException e) { - reportError(getLocator(), e); - skipStatement(); - // reportWarningSkipText(getLocator(), skipStatement()); - - } finally { - if (start) { - documentHandler.endFontFace(); - } - } - } - - /** - * @exception ParseException - * exception during the parse - */ - final public void atRuleDeclaration() throws ParseException { - Token n; - String ret; - n = jj_consume_token(ATKEYWORD); - ret = skipStatement(); - if ((ret != null) && (ret.charAt(0) == '@')) { - documentHandler.unrecognizedRule(ret); - } else { - reportWarningSkipText(getLocator(), ret); - } - } - - final public void skipUnknownRule() throws ParseException { - Token n; - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case ATKEYWORD: - n = jj_consume_token(ATKEYWORD); - break; - case CDO: - n = jj_consume_token(CDO); - break; - case CHARSET_SYM: - n = jj_consume_token(CHARSET_SYM); - break; - case COMMA: - n = jj_consume_token(COMMA); - break; - case DASHMATCH: - n = jj_consume_token(DASHMATCH); - break; - case FONT_FACE_SYM: - n = jj_consume_token(FONT_FACE_SYM); - break; - case FUNCTION: - n = jj_consume_token(FUNCTION); - break; - case IMPORTANT_SYM: - n = jj_consume_token(IMPORTANT_SYM); - break; - case IMPORT_SYM: - n = jj_consume_token(IMPORT_SYM); - break; - case INCLUDES: - n = jj_consume_token(INCLUDES); - break; - case LBRACE: - n = jj_consume_token(LBRACE); - break; - case MEDIA_SYM: - n = jj_consume_token(MEDIA_SYM); - break; - case NONASCII: - n = jj_consume_token(NONASCII); - break; - case NUMBER: - n = jj_consume_token(NUMBER); - break; - case PAGE_SYM: - n = jj_consume_token(PAGE_SYM); - break; - case PERCENTAGE: - n = jj_consume_token(PERCENTAGE); - break; - case STRING: - n = jj_consume_token(STRING); - break; - case UNICODERANGE: - n = jj_consume_token(UNICODERANGE); - break; - case URL: - n = jj_consume_token(URL); - break; - case SEMICOLON: - n = jj_consume_token(SEMICOLON); - break; - case MINUS: - n = jj_consume_token(MINUS); - break; - case UNKNOWN: - n = jj_consume_token(UNKNOWN); - break; - default: - jj_la1[57] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - String ret; - Locator loc = getLocator(); - ret = skipStatement(); - if ((ret != null) && (n.image.charAt(0) == '@')) { - documentHandler.unrecognizedRule(ret); - } else { - reportWarningSkipText(loc, ret); - } - } - - /** - * @exception ParseException - * exception during the parse - */ - final public char combinator() throws ParseException { - char connector = ' '; - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case PLUS: - case PRECEDES: - case SIBLING: - connector = combinatorChar(); - break; - case S: - jj_consume_token(S); - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case PLUS: - case PRECEDES: - case SIBLING: - connector = combinatorChar(); - break; - default: - jj_la1[58] = jj_gen; - ; - } - break; - default: - jj_la1[59] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - { - if (true) { - return connector; - } - } - throw new Error("Missing return statement in function"); - } - - /** to refactor combinator and reuse in selector(). */ - final public char combinatorChar() throws ParseException { - Token t; - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case PLUS: - t = jj_consume_token(PLUS); - break; - case PRECEDES: - t = jj_consume_token(PRECEDES); - break; - case SIBLING: - t = jj_consume_token(SIBLING); - break; - default: - jj_la1[60] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - label_42: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[61] = jj_gen; - break label_42; - } - jj_consume_token(S); - } - { - if (true) { - return t.image.charAt(0); - } - } - throw new Error("Missing return statement in function"); - } - - final public void microsoftExtension() throws ParseException { - Token n; - String name = ""; - String value = ""; - // This is not really taking the syntax of filter rules into account - n = jj_consume_token(MICROSOFT_RULE); - label_43: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[62] = jj_gen; - break label_43; - } - jj_consume_token(S); - } - name = n.image; - jj_consume_token(COLON); - label_44: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case IDENT: - n = jj_consume_token(IDENT); - value += n.image; - break; - case NUMBER: - n = jj_consume_token(NUMBER); - value += n.image; - break; - case STRING: - n = jj_consume_token(STRING); - value += n.image; - break; - case COMMA: - n = jj_consume_token(COMMA); - value += n.image; - break; - case INTERPOLATION: - n = jj_consume_token(INTERPOLATION); - value += n.image; - break; - case COLON: - n = jj_consume_token(COLON); - value += n.image; - break; - case FUNCTION: - n = jj_consume_token(FUNCTION); - value += n.image; - break; - case RPARAN: - n = jj_consume_token(RPARAN); - value += n.image; - break; - case EQ: - n = jj_consume_token(EQ); - value += n.image; - break; - case DOT: - n = jj_consume_token(DOT); - value += n.image; - break; - case S: - n = jj_consume_token(S); - if (value.lastIndexOf(' ') != value.length() - 1) { - value += n.image; - } - break; - default: - jj_la1[63] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - case EQ: - case COMMA: - case DOT: - case RPARAN: - case COLON: - case INTERPOLATION: - case STRING: - case IDENT: - case NUMBER: - case FUNCTION: - ; - break; - default: - jj_la1[64] = jj_gen; - break label_44; - } - } - jj_consume_token(SEMICOLON); - label_45: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[65] = jj_gen; - break label_45; - } - jj_consume_token(S); - } - documentHandler.microsoftDirective(name, value); - } - - /** - * @exception ParseException - * exception during the parse - */ - final public String property() throws ParseException { - Token t; - String s = ""; - label_46: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case IDENT: - t = jj_consume_token(IDENT); - s += t.image; - break; - case INTERPOLATION: - t = jj_consume_token(INTERPOLATION); - s += t.image; - break; - default: - jj_la1[66] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case INTERPOLATION: - case IDENT: - ; - break; - default: - jj_la1[67] = jj_gen; - break label_46; - } - } - label_47: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[68] = jj_gen; - break label_47; - } - jj_consume_token(S); - } - { - if (true) { - return s; - } - } - throw new Error("Missing return statement in function"); - } - - final public String variableName() throws ParseException { - Token n; - n = jj_consume_token(VARIABLE); - label_48: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[69] = jj_gen; - break label_48; - } - jj_consume_token(S); - } - { - if (true) { - return convertIdent(n.image.substring(1)); - } - } - throw new Error("Missing return statement in function"); - } - - final public String functionName() throws ParseException { - Token n; - n = jj_consume_token(FUNCTION); - label_49: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[70] = jj_gen; - break label_49; - } - jj_consume_token(S); - } - { - if (true) { - return convertIdent(n.image.substring(0, n.image.length() - 1)); - } - } - throw new Error("Missing return statement in function"); - } - - /** - * @exception ParseException - * exception during the parse - */ - final public void styleRule() throws ParseException { - boolean start = false; - ArrayList l = null; - Token save; - Locator loc; - try { - l = selectorList(); - save = token; - jj_consume_token(LBRACE); - label_50: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[71] = jj_gen; - break label_50; - } - jj_consume_token(S); - } - start = true; - documentHandler.startSelector(l); - label_51: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case PLUS: - case PRECEDES: - case SIBLING: - case LBRACKET: - case ANY: - case PARENT: - case DOT: - case COLON: - case INTERPOLATION: - case INCLUDE_SYM: - case DEBUG_SYM: - case WARN_SYM: - case EACH_SYM: - case IF_SYM: - case EXTEND_SYM: - case CONTENT_SYM: - case MICROSOFT_RULE: - case IDENT: - case VARIABLE: - case HASH: - case MEDIA_SYM: - case KEY_FRAME_SYM: - ; - break; - default: - jj_la1[72] = jj_gen; - break label_51; - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case PLUS: - case PRECEDES: - case SIBLING: - case LBRACKET: - case ANY: - case PARENT: - case DOT: - case COLON: - case INTERPOLATION: - case INCLUDE_SYM: - case DEBUG_SYM: - case WARN_SYM: - case EXTEND_SYM: - case CONTENT_SYM: - case IDENT: - case VARIABLE: - case HASH: - case MEDIA_SYM: - case KEY_FRAME_SYM: - ifContentStatement(); - break; - case EACH_SYM: - case IF_SYM: - controlDirective(); - break; - case MICROSOFT_RULE: - microsoftExtension(); - break; - default: - jj_la1[73] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - jj_consume_token(RBRACE); - label_52: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[74] = jj_gen; - break label_52; - } - jj_consume_token(S); - } - } catch (ThrowedParseException e) { - if (errorHandler != null) { - LocatorImpl li = new LocatorImpl(this, - e.e.currentToken.next.beginLine, - e.e.currentToken.next.beginColumn - 1); - reportError(li, e.e); - } - } catch (ParseException e) { - reportError(getLocator(), e); - skipStatement(); - // reportWarningSkipText(getLocator(), skipStatement()); - - } catch (TokenMgrError e) { - reportWarningSkipText(getLocator(), skipStatement()); - } finally { - if (start) { - documentHandler.endSelector(); - } - } - } - - final public ArrayList selectorList() throws ParseException { - ArrayList selectors = new ArrayList(); - String selector; - selector = selector(); - label_53: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case COMMA: - ; - break; - default: - jj_la1[75] = jj_gen; - break label_53; - } - jj_consume_token(COMMA); - label_54: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[76] = jj_gen; - break label_54; - } - jj_consume_token(S); - } - selectors.add(selector); - selector = selector(); - } - selectors.add(selector); - { - if (true) { - return selectors; - } - } - throw new Error("Missing return statement in function"); - } - - /** - * @exception ParseException - * exception during the parse - */ - final public String selector() throws ParseException { - String selector = null; - char comb; - try { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case LBRACKET: - case ANY: - case PARENT: - case DOT: - case COLON: - case INTERPOLATION: - case IDENT: - case HASH: - selector = simple_selector(null, ' '); - break; - case PLUS: - case PRECEDES: - case SIBLING: - comb = combinatorChar(); - selector = simple_selector(selector, comb); - break; - default: - jj_la1[77] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - label_55: while (true) { - if (jj_2_2(2)) { - ; - } else { - break label_55; - } - comb = combinator(); - selector = simple_selector(selector, comb); - } - label_56: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[78] = jj_gen; - break label_56; - } - jj_consume_token(S); - } - { - if (true) { - return selector; - } - } - } catch (ParseException e) { - /* - * Token t = getToken(1); StringBuffer s = new StringBuffer(); - * s.append(getToken(0).image); while ((t.kind != COMMA) && (t.kind - * != SEMICOLON) && (t.kind != LBRACE) && (t.kind != EOF)) { - * s.append(t.image); getNextToken(); t = getToken(1); } - * reportWarningSkipText(getLocator(), s.toString()); - */ - Token t = getToken(1); - while ((t.kind != COMMA) && (t.kind != SEMICOLON) - && (t.kind != LBRACE) && (t.kind != EOF)) { - getNextToken(); - t = getToken(1); - } - - { - if (true) { - throw new ThrowedParseException(e); - } - } - } - throw new Error("Missing return statement in function"); - } - - /** - * @exception ParseException - * exception during the parse - */ - final public String simple_selector(String selector, char comb) - throws ParseException { - String simple_current = null; - String cond = null; - - pseudoElt = null; - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case ANY: - case PARENT: - case INTERPOLATION: - case IDENT: - simple_current = element_name(); - label_57: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case LBRACKET: - case DOT: - case COLON: - case HASH: - ; - break; - default: - jj_la1[79] = jj_gen; - break label_57; - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case HASH: - cond = hash(cond); - break; - case DOT: - cond = _class(cond); - break; - case LBRACKET: - cond = attrib(cond); - break; - case COLON: - cond = pseudo(cond); - break; - default: - jj_la1[80] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - break; - case HASH: - cond = hash(cond); - label_58: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case LBRACKET: - case DOT: - case COLON: - ; - break; - default: - jj_la1[81] = jj_gen; - break label_58; - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case DOT: - cond = _class(cond); - break; - case LBRACKET: - cond = attrib(cond); - break; - case COLON: - cond = pseudo(cond); - break; - default: - jj_la1[82] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - break; - case DOT: - cond = _class(cond); - label_59: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case LBRACKET: - case DOT: - case COLON: - case HASH: - ; - break; - default: - jj_la1[83] = jj_gen; - break label_59; - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case HASH: - cond = hash(cond); - break; - case DOT: - cond = _class(cond); - break; - case LBRACKET: - cond = attrib(cond); - break; - case COLON: - cond = pseudo(cond); - break; - default: - jj_la1[84] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - break; - case COLON: - cond = pseudo(cond); - label_60: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case LBRACKET: - case DOT: - case COLON: - case HASH: - ; - break; - default: - jj_la1[85] = jj_gen; - break label_60; - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case HASH: - cond = hash(cond); - break; - case DOT: - cond = _class(cond); - break; - case LBRACKET: - cond = attrib(cond); - break; - case COLON: - cond = pseudo(cond); - break; - default: - jj_la1[86] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - break; - case LBRACKET: - cond = attrib(cond); - label_61: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case LBRACKET: - case DOT: - case COLON: - case HASH: - ; - break; - default: - jj_la1[87] = jj_gen; - break label_61; - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case HASH: - cond = hash(cond); - break; - case DOT: - cond = _class(cond); - break; - case LBRACKET: - cond = attrib(cond); - break; - case COLON: - cond = pseudo(cond); - break; - default: - jj_la1[88] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - break; - default: - jj_la1[89] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - if (simple_current == null) { - simple_current = ""; - } - if (cond != null) { - simple_current = simple_current + cond; - } - StringBuilder builder = new StringBuilder(); - switch (comb) { - case ' ': - if (selector != null) { - builder.append(selector).append(" "); - } - break; - case '+': - case '>': - case '~': - if (selector != null) { - builder.append(selector).append(" "); - } - builder.append(comb).append(" "); - break; - default: { - if (true) { - throw new ParseException("invalid state. send a bug report"); - } - } - } - builder.append(simple_current); - selector = builder.toString(); - - if (pseudoElt != null) { - selector = selector + pseudoElt; - } - { - if (true) { - return selector; - } - } - throw new Error("Missing return statement in function"); - } - - /** - * @exception ParseException - * exception during the parse - */ - final public String _class(String pred) throws ParseException { - Token t; - String s = "."; - jj_consume_token(DOT); - label_62: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case IDENT: - t = jj_consume_token(IDENT); - s += t.image; - break; - case INTERPOLATION: - t = jj_consume_token(INTERPOLATION); - s += t.image; - break; - default: - jj_la1[90] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case INTERPOLATION: - case IDENT: - ; - break; - default: - jj_la1[91] = jj_gen; - break label_62; - } - } - if (pred == null) { - { - if (true) { - return s; - } - } - } else { - { - if (true) { - return pred + s; - } - } - } - throw new Error("Missing return statement in function"); - } - - /** - * @exception ParseException - * exception during the parse - */ - final public String element_name() throws ParseException { - Token t; - String s = ""; - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case INTERPOLATION: - case IDENT: - label_63: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case IDENT: - t = jj_consume_token(IDENT); - s += t.image; - break; - case INTERPOLATION: - t = jj_consume_token(INTERPOLATION); - s += t.image; - break; - default: - jj_la1[92] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case INTERPOLATION: - case IDENT: - ; - break; - default: - jj_la1[93] = jj_gen; - break label_63; - } - } - { - if (true) { - return s; - } - } - break; - case ANY: - jj_consume_token(ANY); - { - if (true) { - return "*"; - } - } - break; - case PARENT: - jj_consume_token(PARENT); - { - if (true) { - return "&"; - } - } - break; - default: - jj_la1[94] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - throw new Error("Missing return statement in function"); - } - - /** - * @exception ParseException - * exception during the parse - */ - final public String attrib(String pred) throws ParseException { - int cases = 0; - Token att = null; - Token val = null; - String attValue = null; - jj_consume_token(LBRACKET); - label_64: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[95] = jj_gen; - break label_64; - } - jj_consume_token(S); - } - att = jj_consume_token(IDENT); - label_65: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[96] = jj_gen; - break label_65; - } - jj_consume_token(S); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case DASHMATCH: - case CARETMATCH: - case DOLLARMATCH: - case STARMATCH: - case INCLUDES: - case EQ: - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case EQ: - jj_consume_token(EQ); - cases = 1; - break; - case INCLUDES: - jj_consume_token(INCLUDES); - cases = 2; - break; - case DASHMATCH: - jj_consume_token(DASHMATCH); - cases = 3; - break; - case CARETMATCH: - jj_consume_token(CARETMATCH); - cases = 4; - break; - case DOLLARMATCH: - jj_consume_token(DOLLARMATCH); - cases = 5; - break; - case STARMATCH: - jj_consume_token(STARMATCH); - cases = 6; - break; - default: - jj_la1[97] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - label_66: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[98] = jj_gen; - break label_66; - } - jj_consume_token(S); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case IDENT: - val = jj_consume_token(IDENT); - attValue = val.image; - break; - case STRING: - val = jj_consume_token(STRING); - attValue = val.image; - break; - default: - jj_la1[99] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - label_67: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[100] = jj_gen; - break label_67; - } - jj_consume_token(S); - } - break; - default: - jj_la1[101] = jj_gen; - ; - } - jj_consume_token(RBRACKET); - String name = convertIdent(att.image); - String c; - switch (cases) { - case 0: - c = name; - break; - case 1: - c = name + "=" + attValue; - break; - case 2: - c = name + "~=" + attValue; - break; - case 3: - c = name + "|=" + attValue; - break; - case 4: - c = name + "^=" + attValue; - break; - case 5: - c = name + "$=" + attValue; - break; - case 6: - c = name + "*=" + attValue; - break; - default: - // never reached. - c = null; - } - c = "[" + c + "]"; - if (pred == null) { - { - if (true) { - return c; - } - } - } else { - { - if (true) { - return pred + c; - } - } - } - throw new Error("Missing return statement in function"); - } - - /** - * @exception ParseException - * exception during the parse - */ - final public String pseudo(String pred) throws ParseException { - Token n; - Token param; - String d; - boolean isPseudoElement = false; - jj_consume_token(COLON); - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case COLON: - jj_consume_token(COLON); - isPseudoElement = true; - break; - default: - jj_la1[102] = jj_gen; - ; - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case IDENT: - n = jj_consume_token(IDENT); - String s = ":" + convertIdent(n.image); - if (isPseudoElement) { - if (pseudoElt != null) { - { - if (true) { - throw new CSSParseException( - "duplicate pseudo element definition " + s, - getLocator()); - } - } - } else { - pseudoElt = ":" + s; - { - if (true) { - return pred; - } - } - } - } else { - String c = s; - if (pred == null) { - { - if (true) { - return c; - } - } - } else { - { - if (true) { - return pred + c; - } - } - } - } - break; - case FUNCTION: - n = jj_consume_token(FUNCTION); - label_68: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[103] = jj_gen; - break label_68; - } - jj_consume_token(S); - } - d = skipStatementUntilRightParan(); - jj_consume_token(RPARAN); - // accept anything between function and a right parenthesis - String f = convertIdent(n.image); - String colons = isPseudoElement ? "::" : ":"; - String pseudofn = colons + f + d + ")"; - if (pred == null) { - { - if (true) { - return pseudofn; - } - } - } else { - { - if (true) { - return pred + pseudofn; - } - } - } - break; - default: - jj_la1[104] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - throw new Error("Missing return statement in function"); - } - - /** - * @exception ParseException - * exception during the parse - */ - final public String hash(String pred) throws ParseException { - Token n; - n = jj_consume_token(HASH); - String d = n.image; - if (pred == null) { - { - if (true) { - return d; - } - } - } else { - { - if (true) { - return pred + d; - } - } - } - throw new Error("Missing return statement in function"); - } - - final public void variable() throws ParseException { - String name; - LexicalUnitImpl exp = null; - boolean guarded = false; - String raw; - try { - name = variableName(); - jj_consume_token(COLON); - label_69: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[105] = jj_gen; - break label_69; - } - jj_consume_token(S); - } - exp = expr(); - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case GUARDED_SYM: - guarded = guarded(); - break; - default: - jj_la1[106] = jj_gen; - ; - } - label_70: while (true) { - jj_consume_token(SEMICOLON); - label_71: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[107] = jj_gen; - break label_71; - } - jj_consume_token(S); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case SEMICOLON: - ; - break; - default: - jj_la1[108] = jj_gen; - break label_70; - } - } - documentHandler.variable(name, exp, guarded); - } catch (JumpException e) { - skipAfterExpression(); - } catch (NumberFormatException e) { - if (errorHandler != null) { - errorHandler.error(new CSSParseException("Invalid number " - + e.getMessage(), getLocator(), e)); - } - reportWarningSkipText(getLocator(), skipAfterExpression()); - } catch (ParseException e) { - if (errorHandler != null) { - if (e.currentToken != null) { - LocatorImpl li = new LocatorImpl(this, - e.currentToken.next.beginLine, - e.currentToken.next.beginColumn - 1); - reportError(li, e); - } else { - reportError(getLocator(), e); - } - skipAfterExpression(); - } else { - skipAfterExpression(); - } - } - } - - final public void controlDirective() throws ParseException { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case IF_SYM: - ifDirective(); - break; - case EACH_SYM: - eachDirective(); - break; - default: - jj_la1[109] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - - final public void ifContentStatement() throws ParseException { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case CONTENT_SYM: - contentDirective(); - break; - case INCLUDE_SYM: - includeDirective(); - break; - case MEDIA_SYM: - media(); - break; - case EXTEND_SYM: - extendDirective(); - break; - case PLUS: - case PRECEDES: - case SIBLING: - case LBRACKET: - case ANY: - case PARENT: - case DOT: - case COLON: - case INTERPOLATION: - case DEBUG_SYM: - case WARN_SYM: - case IDENT: - case HASH: - styleRuleOrDeclarationOrNestedProperties(); - break; - case KEY_FRAME_SYM: - keyframes(); - break; - default: - jj_la1[110] = jj_gen; - if (jj_2_3(2147483647)) { - variable(); - } else { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case VARIABLE: - listModifyDirective(); - break; - default: - jj_la1[111] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - } - } - - final public void ifDirective() throws ParseException { - Token n = null; - String s = null; - String evaluator = ""; - jj_consume_token(IF_SYM); - label_72: while (true) { - s = booleanExpressionToken(); - evaluator += s; - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - case EQ: - case PLUS: - case MINUS: - case PRECEDES: - case SUCCEEDS: - case DIV: - case ANY: - case LPARAN: - case RPARAN: - case COMPARE: - case OR: - case AND: - case NOT_EQ: - case IDENT: - case NUMBER: - case VARIABLE: - case CONTAINS: - ; - break; - default: - jj_la1[112] = jj_gen; - break label_72; - } - } - jj_consume_token(LBRACE); - label_73: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[113] = jj_gen; - break label_73; - } - jj_consume_token(S); - } - documentHandler.startIfElseDirective(); - documentHandler.ifDirective(evaluator); - label_74: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case PLUS: - case PRECEDES: - case SIBLING: - case LBRACKET: - case ANY: - case PARENT: - case DOT: - case COLON: - case INTERPOLATION: - case INCLUDE_SYM: - case DEBUG_SYM: - case WARN_SYM: - case EXTEND_SYM: - case CONTENT_SYM: - case IDENT: - case VARIABLE: - case HASH: - case MEDIA_SYM: - case KEY_FRAME_SYM: - ; - break; - default: - jj_la1[114] = jj_gen; - break label_74; - } - ifContentStatement(); - } - jj_consume_token(RBRACE); - label_75: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[115] = jj_gen; - break label_75; - } - jj_consume_token(S); - } - label_76: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case ELSE_SYM: - ; - break; - default: - jj_la1[116] = jj_gen; - break label_76; - } - elseDirective(); - } - documentHandler.endIfElseDirective(); - } - - final public void elseDirective() throws ParseException { - String evaluator = ""; - Token n = null; - String s = null; - jj_consume_token(ELSE_SYM); - label_77: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[117] = jj_gen; - break label_77; - } - jj_consume_token(S); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case IF: - jj_consume_token(IF); - label_78: while (true) { - s = booleanExpressionToken(); - evaluator += s; - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - case EQ: - case PLUS: - case MINUS: - case PRECEDES: - case SUCCEEDS: - case DIV: - case ANY: - case LPARAN: - case RPARAN: - case COMPARE: - case OR: - case AND: - case NOT_EQ: - case IDENT: - case NUMBER: - case VARIABLE: - case CONTAINS: - ; - break; - default: - jj_la1[118] = jj_gen; - break label_78; - } - } - break; - default: - jj_la1[119] = jj_gen; - ; - } - jj_consume_token(LBRACE); - label_79: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[120] = jj_gen; - break label_79; - } - jj_consume_token(S); - } - if (!evaluator.trim().equals("")) { - documentHandler.ifDirective(evaluator); - } else { - documentHandler.elseDirective(); - } - label_80: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case PLUS: - case PRECEDES: - case SIBLING: - case LBRACKET: - case ANY: - case PARENT: - case DOT: - case COLON: - case INTERPOLATION: - case INCLUDE_SYM: - case DEBUG_SYM: - case WARN_SYM: - case EXTEND_SYM: - case CONTENT_SYM: - case IDENT: - case VARIABLE: - case HASH: - case MEDIA_SYM: - case KEY_FRAME_SYM: - ; - break; - default: - jj_la1[121] = jj_gen; - break label_80; - } - ifContentStatement(); - } - jj_consume_token(RBRACE); - label_81: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[122] = jj_gen; - break label_81; - } - jj_consume_token(S); - } - } - - final public String booleanExpressionToken() throws ParseException { - Token n = null; - String s = null; - if (jj_2_4(2147483647)) { - s = containsDirective(); - } else { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case VARIABLE: - n = jj_consume_token(VARIABLE); - break; - case IDENT: - n = jj_consume_token(IDENT); - break; - case NUMBER: - n = jj_consume_token(NUMBER); - break; - case LPARAN: - n = jj_consume_token(LPARAN); - break; - case RPARAN: - n = jj_consume_token(RPARAN); - break; - case PLUS: - n = jj_consume_token(PLUS); - break; - case MINUS: - n = jj_consume_token(MINUS); - break; - case DIV: - n = jj_consume_token(DIV); - break; - case ANY: - n = jj_consume_token(ANY); - break; - case COMPARE: - n = jj_consume_token(COMPARE); - break; - case EQ: - n = jj_consume_token(EQ); - break; - case PRECEDES: - n = jj_consume_token(PRECEDES); - break; - case SUCCEEDS: - n = jj_consume_token(SUCCEEDS); - break; - case OR: - n = jj_consume_token(OR); - break; - case AND: - n = jj_consume_token(AND); - break; - case S: - n = jj_consume_token(S); - break; - case NOT_EQ: - n = jj_consume_token(NOT_EQ); - break; - default: - jj_la1[123] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - if (n != null) { - { - if (true) { - return n.image; - } - } - } else { - { - if (true) { - return s; - } - } - } - throw new Error("Missing return statement in function"); - } - - final public void eachDirective() throws ParseException { - Token var; - ArrayList list = null; - String listVariable = null; - jj_consume_token(EACH_SYM); - label_82: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[124] = jj_gen; - break label_82; - } - jj_consume_token(S); - } - var = jj_consume_token(VARIABLE); - label_83: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[125] = jj_gen; - break label_83; - } - jj_consume_token(S); - } - jj_consume_token(EACH_IN); - label_84: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[126] = jj_gen; - break label_84; - } - jj_consume_token(S); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case IDENT: - list = stringList(); - documentHandler.startEachDirective(var.image, list); - break; - case VARIABLE: - listVariable = variableName(); - documentHandler.startEachDirective(var.image, listVariable); - break; - default: - jj_la1[127] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - jj_consume_token(LBRACE); - label_85: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[128] = jj_gen; - break label_85; - } - jj_consume_token(S); - } - label_86: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case PLUS: - case PRECEDES: - case SIBLING: - case LBRACKET: - case ANY: - case PARENT: - case DOT: - case COLON: - case INTERPOLATION: - case INCLUDE_SYM: - case DEBUG_SYM: - case WARN_SYM: - case EXTEND_SYM: - case CONTENT_SYM: - case IDENT: - case VARIABLE: - case HASH: - case MEDIA_SYM: - case KEY_FRAME_SYM: - ; - break; - default: - jj_la1[129] = jj_gen; - break label_86; - } - ifContentStatement(); - } - jj_consume_token(RBRACE); - label_87: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[130] = jj_gen; - break label_87; - } - jj_consume_token(S); - } - documentHandler.endEachDirective(); - } - - final public ArrayList stringList() throws ParseException { - ArrayList strings = new ArrayList(); - Token input; - input = jj_consume_token(IDENT); - label_88: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[131] = jj_gen; - break label_88; - } - jj_consume_token(S); - } - strings.add(input.image); - label_89: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case COMMA: - ; - break; - default: - jj_la1[132] = jj_gen; - break label_89; - } - jj_consume_token(COMMA); - label_90: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[133] = jj_gen; - break label_90; - } - jj_consume_token(S); - } - input = jj_consume_token(IDENT); - strings.add(input.image); - label_91: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[134] = jj_gen; - break label_91; - } - jj_consume_token(S); - } - } - { - if (true) { - return strings; - } - } - throw new Error("Missing return statement in function"); - } - - final public void mixinDirective() throws ParseException { - String name; - ArrayList args = null; - String body; - jj_consume_token(MIXIN_SYM); - label_92: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[135] = jj_gen; - break label_92; - } - jj_consume_token(S); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case INTERPOLATION: - case IDENT: - name = property(); - break; - case FUNCTION: - name = functionName(); - args = arglist(); - jj_consume_token(RPARAN); - label_93: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[136] = jj_gen; - break label_93; - } - jj_consume_token(S); - } - break; - default: - jj_la1[137] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - jj_consume_token(LBRACE); - label_94: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[138] = jj_gen; - break label_94; - } - jj_consume_token(S); - } - documentHandler.startMixinDirective(name, args); - label_95: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case PLUS: - case PRECEDES: - case SIBLING: - case LBRACKET: - case ANY: - case PARENT: - case DOT: - case COLON: - case INTERPOLATION: - case INCLUDE_SYM: - case DEBUG_SYM: - case WARN_SYM: - case EACH_SYM: - case IF_SYM: - case EXTEND_SYM: - case CONTENT_SYM: - case IDENT: - case VARIABLE: - case HASH: - case MEDIA_SYM: - case PAGE_SYM: - case FONT_FACE_SYM: - case KEY_FRAME_SYM: - ; - break; - default: - jj_la1[139] = jj_gen; - break label_95; - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case PLUS: - case PRECEDES: - case SIBLING: - case LBRACKET: - case ANY: - case PARENT: - case DOT: - case COLON: - case INTERPOLATION: - case INCLUDE_SYM: - case DEBUG_SYM: - case WARN_SYM: - case EXTEND_SYM: - case CONTENT_SYM: - case IDENT: - case VARIABLE: - case HASH: - case MEDIA_SYM: - case KEY_FRAME_SYM: - ifContentStatement(); - break; - case EACH_SYM: - case IF_SYM: - controlDirective(); - break; - case FONT_FACE_SYM: - fontFace(); - break; - case PAGE_SYM: - page(); - break; - default: - jj_la1[140] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - jj_consume_token(RBRACE); - label_96: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[141] = jj_gen; - break label_96; - } - jj_consume_token(S); - } - documentHandler.endMixinDirective(name, args); - } - - final public ArrayList arglist() throws ParseException { - ArrayList args = new ArrayList(); - VariableNode arg; - boolean hasNonOptionalArgument = false; - arg = mixinArg(); - label_97: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case COMMA: - ; - break; - default: - jj_la1[142] = jj_gen; - break label_97; - } - jj_consume_token(COMMA); - label_98: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[143] = jj_gen; - break label_98; - } - jj_consume_token(S); - } - hasNonOptionalArgument = checkMixinForNonOptionalArguments(arg, - hasNonOptionalArgument); - args.add(arg); - arg = mixinArg(); - } - hasNonOptionalArgument = checkMixinForNonOptionalArguments(arg, - hasNonOptionalArgument); - args.add(arg); - { - if (true) { - return args; - } - } - throw new Error("Missing return statement in function"); - } - - boolean checkMixinForNonOptionalArguments(VariableNode arg, - boolean hasNonOptionalArguments) throws ParseException { - boolean currentArgHasArguments = arg.getExpr() != null - && arg.getExpr().getLexicalUnitType() == LexicalUnitImpl.SCSS_VARIABLE - && arg.getExpr().getNextLexicalUnit() != null; - - if (currentArgHasArguments) { - if (hasNonOptionalArguments) { - throw new ParseException("Sass Error: Required argument $" - + arg.getName() - + " must come before any optional arguments."); - } - return hasNonOptionalArguments; - } else { - return true; - } - } - - final public VariableNode mixinArg() throws ParseException { - String name; - Token variable = null; - LexicalUnitImpl first = null; - LexicalUnitImpl prev = null; - LexicalUnitImpl next = null; - name = variableName(); - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case COLON: - case VARIABLE: - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case COLON: - jj_consume_token(COLON); - label_99: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[144] = jj_gen; - break label_99; - } - jj_consume_token(S); - } - first = nonVariableTerm(null); - prev = first; - label_100: while (true) { - if (jj_2_5(3)) { - ; - } else { - break label_100; - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case COMMA: - jj_consume_token(COMMA); - label_101: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[145] = jj_gen; - break label_101; - } - jj_consume_token(S); - } - break; - default: - jj_la1[146] = jj_gen; - ; - } - prev = nonVariableTerm(prev); - } - break; - case VARIABLE: - variable = jj_consume_token(VARIABLE); - first = LexicalUnitImpl.createVariable(token.beginLine, - token.beginColumn, prev, variable.image); - break; - default: - jj_la1[147] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - break; - default: - jj_la1[148] = jj_gen; - ; - } - VariableNode arg = new VariableNode(name, first, false); - { - if (true) { - return arg; - } - } - throw new Error("Missing return statement in function"); - } - - final public ArrayList argValuelist() - throws ParseException { - ArrayList args = new ArrayList(); - LexicalUnitImpl first = null; - LexicalUnitImpl next = null; - LexicalUnitImpl prev = null; - first = term(null); - args.add(first); - prev = first; - label_102: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case PLUS: - case MINUS: - case DOT: - case COLON: - case STRING: - case IDENT: - case NUMBER: - case URL: - case VARIABLE: - case PERCENTAGE: - case PT: - case MM: - case CM: - case PC: - case IN: - case PX: - case EMS: - case LEM: - case REM: - case EXS: - case DEG: - case RAD: - case GRAD: - case MS: - case SECOND: - case HZ: - case KHZ: - case DIMEN: - case HASH: - case UNICODERANGE: - case FUNCTION: - ; - break; - default: - jj_la1[149] = jj_gen; - break label_102; - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case COLON: - jj_consume_token(COLON); - label_103: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[150] = jj_gen; - break label_103; - } - jj_consume_token(S); - } - break; - default: - jj_la1[151] = jj_gen; - ; - } - next = term(prev); - prev.setNextLexicalUnit(next); - prev = next; - } - label_104: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case COMMA: - ; - break; - default: - jj_la1[152] = jj_gen; - break label_104; - } - jj_consume_token(COMMA); - label_105: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[153] = jj_gen; - break label_105; - } - jj_consume_token(S); - } - first = term(null); - args.add(first); - prev = first; - label_106: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case PLUS: - case MINUS: - case DOT: - case COLON: - case STRING: - case IDENT: - case NUMBER: - case URL: - case VARIABLE: - case PERCENTAGE: - case PT: - case MM: - case CM: - case PC: - case IN: - case PX: - case EMS: - case LEM: - case REM: - case EXS: - case DEG: - case RAD: - case GRAD: - case MS: - case SECOND: - case HZ: - case KHZ: - case DIMEN: - case HASH: - case UNICODERANGE: - case FUNCTION: - ; - break; - default: - jj_la1[154] = jj_gen; - break label_106; - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case COLON: - jj_consume_token(COLON); - label_107: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[155] = jj_gen; - break label_107; - } - jj_consume_token(S); - } - break; - default: - jj_la1[156] = jj_gen; - ; - } - next = term(prev); - prev.setNextLexicalUnit(next); - prev = next; - } - } - { - if (true) { - return args; - } - } - throw new Error("Missing return statement in function"); - } - - final public void includeDirective() throws ParseException { - String name; - ArrayList args = null; - jj_consume_token(INCLUDE_SYM); - label_108: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[157] = jj_gen; - break label_108; - } - jj_consume_token(S); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case INTERPOLATION: - case IDENT: - name = property(); - break; - case VARIABLE: - name = variableName(); - name = "$" + name; - break; - case FUNCTION: - name = functionName(); - args = argValuelist(); - jj_consume_token(RPARAN); - break; - default: - jj_la1[158] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case SEMICOLON: - label_109: while (true) { - jj_consume_token(SEMICOLON); - label_110: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[159] = jj_gen; - break label_110; - } - jj_consume_token(S); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case SEMICOLON: - ; - break; - default: - jj_la1[160] = jj_gen; - break label_109; - } - } - documentHandler.includeDirective(name, args); - break; - case LBRACE: - jj_consume_token(LBRACE); - label_111: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[161] = jj_gen; - break label_111; - } - jj_consume_token(S); - } - documentHandler.startIncludeContentBlock(name); - label_112: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case PLUS: - case PRECEDES: - case SIBLING: - case LBRACKET: - case ANY: - case PARENT: - case DOT: - case COLON: - case INTERPOLATION: - case DEBUG_SYM: - case WARN_SYM: - case IDENT: - case HASH: - ; - break; - default: - jj_la1[162] = jj_gen; - break label_112; - } - styleRuleOrDeclarationOrNestedProperties(); - } - jj_consume_token(RBRACE); - label_113: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[163] = jj_gen; - break label_113; - } - jj_consume_token(S); - } - documentHandler.endIncludeContentBlock(); - break; - default: - jj_la1[164] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - - final public String interpolation() throws ParseException { - Token n; - n = jj_consume_token(INTERPOLATION); - { - if (true) { - return n.image; - } - } - throw new Error("Missing return statement in function"); - } - - final public void listModifyDirective() throws ParseException { - String list = null; - String remove = null; - String separator = null; - String variable = null; - Token n = null; - Token type = null; - // refactor, remove those 3 LOOKAHEAD(5). - n = jj_consume_token(VARIABLE); - variable = n.image; - label_114: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[165] = jj_gen; - break label_114; - } - jj_consume_token(S); - } - jj_consume_token(COLON); - label_115: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[166] = jj_gen; - break label_115; - } - jj_consume_token(S); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case APPEND: - type = jj_consume_token(APPEND); - break; - case REMOVE: - type = jj_consume_token(REMOVE); - break; - case CONTAINS: - type = jj_consume_token(CONTAINS); - break; - default: - jj_la1[167] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - label_116: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[168] = jj_gen; - break label_116; - } - jj_consume_token(S); - } - list = listModifyDirectiveArgs(0); - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case RPARAN: - jj_consume_token(RPARAN); - break; - default: - jj_la1[169] = jj_gen; - ; - } - jj_consume_token(COMMA); - label_117: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[170] = jj_gen; - break label_117; - } - jj_consume_token(S); - } - remove = listModifyDirectiveArgs(1); - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case COMMA: - jj_consume_token(COMMA); - label_118: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[171] = jj_gen; - break label_118; - } - jj_consume_token(S); - } - n = jj_consume_token(IDENT); - separator = n.image; - label_119: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[172] = jj_gen; - break label_119; - } - jj_consume_token(S); - } - break; - default: - jj_la1[173] = jj_gen; - ; - } - jj_consume_token(RPARAN); - switch (type.kind) { - case APPEND: - documentHandler.appendDirective(variable, list, remove, separator); - break; - case REMOVE: - documentHandler.removeDirective(variable, list, remove, separator); - break; - case CONTAINS: - if (variable == null) { - variable = "$var_" + UUID.randomUUID(); - } - documentHandler - .containsDirective(variable, list, remove, separator); - break; - default: - break; - } - label_120: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[174] = jj_gen; - break label_120; - } - jj_consume_token(S); - } - jj_consume_token(SEMICOLON); - label_121: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[175] = jj_gen; - break label_121; - } - jj_consume_token(S); - } - } - - /** - * @exception ParseException - * exception during the parse - */ - final public void appendDirective() throws ParseException { - String list = null; - String remove = null; - String separator = null; - String variable = null; - Token n = null; - n = jj_consume_token(VARIABLE); - variable = n.image; - label_122: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[176] = jj_gen; - break label_122; - } - jj_consume_token(S); - } - jj_consume_token(COLON); - label_123: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[177] = jj_gen; - break label_123; - } - jj_consume_token(S); - } - jj_consume_token(APPEND); - label_124: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[178] = jj_gen; - break label_124; - } - jj_consume_token(S); - } - list = listModifyDirectiveArgs(0); - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case RPARAN: - jj_consume_token(RPARAN); - break; - default: - jj_la1[179] = jj_gen; - ; - } - jj_consume_token(COMMA); - label_125: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[180] = jj_gen; - break label_125; - } - jj_consume_token(S); - } - remove = listModifyDirectiveArgs(1); - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case COMMA: - jj_consume_token(COMMA); - label_126: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[181] = jj_gen; - break label_126; - } - jj_consume_token(S); - } - n = jj_consume_token(IDENT); - separator = n.image; - label_127: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[182] = jj_gen; - break label_127; - } - jj_consume_token(S); - } - break; - default: - jj_la1[183] = jj_gen; - ; - } - jj_consume_token(RPARAN); - documentHandler.appendDirective(variable, list, remove, separator); - } - - /** - * @exception ParseException - * exception during the parse - */ - final public void removeDirective() throws ParseException { - String list = null; - String remove = null; - String separator = null; - String variable = null; - Token n = null; - n = jj_consume_token(VARIABLE); - variable = n.image; - label_128: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[184] = jj_gen; - break label_128; - } - jj_consume_token(S); - } - jj_consume_token(COLON); - label_129: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[185] = jj_gen; - break label_129; - } - jj_consume_token(S); - } - jj_consume_token(REMOVE); - label_130: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[186] = jj_gen; - break label_130; - } - jj_consume_token(S); - } - list = listModifyDirectiveArgs(0); - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case RPARAN: - jj_consume_token(RPARAN); - break; - default: - jj_la1[187] = jj_gen; - ; - } - jj_consume_token(COMMA); - label_131: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[188] = jj_gen; - break label_131; - } - jj_consume_token(S); - } - remove = listModifyDirectiveArgs(1); - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case COMMA: - jj_consume_token(COMMA); - label_132: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[189] = jj_gen; - break label_132; - } - jj_consume_token(S); - } - n = jj_consume_token(IDENT); - separator = n.image; - label_133: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[190] = jj_gen; - break label_133; - } - jj_consume_token(S); - } - break; - default: - jj_la1[191] = jj_gen; - ; - } - jj_consume_token(RPARAN); - documentHandler.removeDirective(variable, list, remove, separator); - } - - /** - * @exception ParseException - * exception during the parse - */ - final public String containsDirective() throws ParseException { - String list = null; - String remove = null; - String separator = null; - String variable = null; - Token n = null; - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case VARIABLE: - n = jj_consume_token(VARIABLE); - variable = n.image; - label_134: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[192] = jj_gen; - break label_134; - } - jj_consume_token(S); - } - jj_consume_token(COLON); - label_135: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[193] = jj_gen; - break label_135; - } - jj_consume_token(S); - } - break; - default: - jj_la1[194] = jj_gen; - ; - } - jj_consume_token(CONTAINS); - label_136: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[195] = jj_gen; - break label_136; - } - jj_consume_token(S); - } - list = listModifyDirectiveArgs(0); - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case RPARAN: - jj_consume_token(RPARAN); - break; - default: - jj_la1[196] = jj_gen; - ; - } - jj_consume_token(COMMA); - label_137: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[197] = jj_gen; - break label_137; - } - jj_consume_token(S); - } - remove = listModifyDirectiveArgs(1); - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case COMMA: - jj_consume_token(COMMA); - label_138: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[198] = jj_gen; - break label_138; - } - jj_consume_token(S); - } - n = jj_consume_token(IDENT); - separator = n.image; - label_139: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[199] = jj_gen; - break label_139; - } - jj_consume_token(S); - } - break; - default: - jj_la1[200] = jj_gen; - ; - } - jj_consume_token(RPARAN); - /* - * if it is not in the form like - * "$contains : contains($items, .v-button);"for example in @if, like - * "@if (contains(a b c, b))", then create a tempvariable for contains(a - * b c, b); - */ - if (variable == null) { - variable = "$var_" + UUID.randomUUID(); - } - documentHandler.containsDirective(variable, list, remove, separator); - { - if (true) { - return variable; - } - } - throw new Error("Missing return statement in function"); - } - - String listModifyDirectiveArgs(int nest) throws ParseException { - String list = ""; - int nesting = nest; - Token t = null; - - while (true) { - t = getToken(1); - String s = t.image; - if (t.kind == VARIABLE || t.kind == IDENT) { - list += s; - } else if (s.toLowerCase().equals("auto") - || s.toLowerCase().equals("space") - || s.toLowerCase().equals("comma")) { - int i = 2; - Token temp = getToken(i); - boolean isLast = true; - while (temp.kind != SEMICOLON) { - if (temp.kind != RPARAN || temp.kind != S) { - isLast = false; - } - i++; - temp = getToken(i); - } - - if (isLast) { - return list; - } - } else if (t.kind == STRING) { - list += s.substring(1, s.length()).substring(0, s.length() - 2); - - } else if (t.kind == LPARAN) { - nesting++; - if (nesting > nest + 1) { - throw new CSSParseException( - "Only one ( ) pair per parameter allowed", - getLocator()); - } - } else if (t.kind == RPARAN) { - nesting--; - if (nesting == 0) { - return list; - } - } else if (t.kind == COMMA) { - if (nesting == nest) { - return list; - } else { - list += ","; - } - - } else if (t.kind == S) { - list += " "; - } else if (t.kind == LBRACE) { - throw new CSSParseException("Invalid token,'{' found", - getLocator()); - } - - getNextToken(); - } - } - - final public Node returnDirective() throws ParseException { - String raw; - raw = skipStatement(); - { - if (true) { - return null; - } - } - throw new Error("Missing return statement in function"); - } - - final public void debuggingDirective() throws ParseException { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case DEBUG_SYM: - debugDirective(); - break; - case WARN_SYM: - warnDirective(); - break; - default: - jj_la1[201] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - - final public void debugDirective() throws ParseException { - jj_consume_token(DEBUG_SYM); - String content = skipStatementUntilSemiColon(); - // TODO should evaluate the content expression, call - // documentHandler.debugDirective() etc. - System.out.println(content); - label_140: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[202] = jj_gen; - break label_140; - } - jj_consume_token(S); - } - } - - final public void warnDirective() throws ParseException { - jj_consume_token(WARN_SYM); - String content = skipStatementUntilSemiColon(); - // TODO should evaluate the content expression, call - // documentHandler.warnDirective() etc. - System.err.println(content); - label_141: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[203] = jj_gen; - break label_141; - } - jj_consume_token(S); - } - } - - final public Node forDirective() throws ParseException { - String var; - String from; - String to; - boolean exclusive; - String body; - Token tok; - var = variableName(); - int[] toThrough = { TO, THROUGH }; - from = skipStatementUntil(toThrough); - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case TO: - tok = jj_consume_token(TO); - exclusive = true; - break; - case THROUGH: - tok = jj_consume_token(THROUGH); - exclusive = false; - break; - default: - jj_la1[204] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - to = skipStatementUntilLeftBrace(); - label_142: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[205] = jj_gen; - break label_142; - } - jj_consume_token(S); - } - body = skipStatement(); - { - if (true) { - return documentHandler.forDirective(var, from, to, exclusive, - body); - } - } - throw new Error("Missing return statement in function"); - } - - final public Node whileDirective() throws ParseException { - String condition; - String body; - condition = skipStatementUntilLeftBrace(); - body = skipStatement(); - { - if (true) { - return documentHandler.whileDirective(condition, body); - } - } - throw new Error("Missing return statement in function"); - } - - final public void extendDirective() throws ParseException { - ArrayList list; - jj_consume_token(EXTEND_SYM); - label_143: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[206] = jj_gen; - break label_143; - } - jj_consume_token(S); - } - list = selectorList(); - label_144: while (true) { - jj_consume_token(SEMICOLON); - label_145: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[207] = jj_gen; - break label_145; - } - jj_consume_token(S); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case SEMICOLON: - ; - break; - default: - jj_la1[208] = jj_gen; - break label_144; - } - } - documentHandler.extendDirective(list); - } - - final public void contentDirective() throws ParseException { - jj_consume_token(CONTENT_SYM); - label_146: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[209] = jj_gen; - break label_146; - } - jj_consume_token(S); - } - label_147: while (true) { - jj_consume_token(SEMICOLON); - label_148: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[210] = jj_gen; - break label_148; - } - jj_consume_token(S); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case SEMICOLON: - ; - break; - default: - jj_la1[211] = jj_gen; - break label_147; - } - } - documentHandler.contentDirective(); - } - - Node importDirective() throws ParseException { - return null; - } - - Node charsetDirective() throws ParseException { - return null; - } - - Node mozDocumentDirective() throws ParseException { - return null; - } - - Node supportsDirective() throws ParseException { - return null; - } - - final public void nestedProperties() throws ParseException { - String name; - LexicalUnit exp; - name = property(); - jj_consume_token(COLON); - label_149: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[212] = jj_gen; - break label_149; - } - jj_consume_token(S); - } - jj_consume_token(LBRACE); - label_150: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[213] = jj_gen; - break label_150; - } - jj_consume_token(S); - } - documentHandler.startNestedProperties(name); - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case INTERPOLATION: - case IDENT: - declaration(); - break; - default: - jj_la1[214] = jj_gen; - ; - } - label_151: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case SEMICOLON: - ; - break; - default: - jj_la1[215] = jj_gen; - break label_151; - } - jj_consume_token(SEMICOLON); - label_152: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[216] = jj_gen; - break label_152; - } - jj_consume_token(S); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case INTERPOLATION: - case IDENT: - declaration(); - break; - default: - jj_la1[217] = jj_gen; - ; - } - } - jj_consume_token(RBRACE); - documentHandler.endNestedProperties(name); - label_153: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[218] = jj_gen; - break label_153; - } - jj_consume_token(S); - } - } - - /** - * @exception ParseException - * exception during the parse - */ - final public void styleRuleOrDeclarationOrNestedProperties() - throws ParseException { - try { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case DEBUG_SYM: - case WARN_SYM: - debuggingDirective(); - break; - default: - jj_la1[219] = jj_gen; - if (jj_2_6(2147483647)) { - styleRule(); - } else if (jj_2_7(3)) { - declarationOrNestedProperties(); - } else { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case PLUS: - case PRECEDES: - case SIBLING: - case LBRACKET: - case ANY: - case PARENT: - case DOT: - case COLON: - case INTERPOLATION: - case IDENT: - case HASH: - styleRule(); - break; - default: - jj_la1[220] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - } - } catch (JumpException e) { - skipAfterExpression(); - // reportWarningSkipText(getLocator(), skipAfterExpression()); - - } catch (ParseException e) { - if (errorHandler != null) { - if (e.currentToken != null) { - LocatorImpl li = new LocatorImpl(this, - e.currentToken.next.beginLine, - e.currentToken.next.beginColumn - 1); - reportError(li, e); - } else { - reportError(getLocator(), e); - } - skipAfterExpression(); - /* - * LocatorImpl loc = (LocatorImpl) getLocator(); loc.column--; - * reportWarningSkipText(loc, skipAfterExpression()); - */ - } else { - skipAfterExpression(); - } - } - } - - /** - * @exception ParseException - * exception during the parse - */ - final public void declarationOrNestedProperties() throws ParseException { - boolean important = false; - String name; - LexicalUnitImpl exp; - Token save; - String comment = null; - try { - name = property(); - save = token; - jj_consume_token(COLON); - label_154: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[221] = jj_gen; - break label_154; - } - jj_consume_token(S); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case PLUS: - case MINUS: - case DOT: - case STRING: - case IDENT: - case NUMBER: - case URL: - case VARIABLE: - case PERCENTAGE: - case PT: - case MM: - case CM: - case PC: - case IN: - case PX: - case EMS: - case LEM: - case REM: - case EXS: - case DEG: - case RAD: - case GRAD: - case MS: - case SECOND: - case HZ: - case KHZ: - case DIMEN: - case HASH: - case UNICODERANGE: - case FUNCTION: - exp = expr(); - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case IMPORTANT_SYM: - important = prio(); - break; - default: - jj_la1[222] = jj_gen; - ; - } - Token next = getToken(1); - if (next.kind == SEMICOLON || next.kind == RBRACE) { - while (next.kind == SEMICOLON) { - skipStatement(); - next = getToken(1); - } - if (token.specialToken != null) { - documentHandler.property(name, exp, important, - token.specialToken.image); - } else { - documentHandler.property(name, exp, important, null); - } - } - break; - case LBRACE: - jj_consume_token(LBRACE); - label_155: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[223] = jj_gen; - break label_155; - } - jj_consume_token(S); - } - documentHandler.startNestedProperties(name); - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case INTERPOLATION: - case IDENT: - declaration(); - break; - default: - jj_la1[224] = jj_gen; - ; - } - label_156: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case SEMICOLON: - ; - break; - default: - jj_la1[225] = jj_gen; - break label_156; - } - jj_consume_token(SEMICOLON); - label_157: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[226] = jj_gen; - break label_157; - } - jj_consume_token(S); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case INTERPOLATION: - case IDENT: - declaration(); - break; - default: - jj_la1[227] = jj_gen; - ; - } - } - jj_consume_token(RBRACE); - label_158: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[228] = jj_gen; - break label_158; - } - jj_consume_token(S); - } - documentHandler.endNestedProperties(name); - break; - default: - jj_la1[229] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } catch (JumpException e) { - skipAfterExpression(); - // reportWarningSkipText(getLocator(), skipAfterExpression()); - - } catch (NumberFormatException e) { - if (errorHandler != null) { - errorHandler.error(new CSSParseException("Invalid number " - + e.getMessage(), getLocator(), e)); - } - reportWarningSkipText(getLocator(), skipAfterExpression()); - } catch (ParseException e) { - if (errorHandler != null) { - if (e.currentToken != null) { - LocatorImpl li = new LocatorImpl(this, - e.currentToken.next.beginLine, - e.currentToken.next.beginColumn - 1); - reportError(li, e); - } else { - reportError(getLocator(), e); - } - skipAfterExpression(); - /* - * LocatorImpl loc = (LocatorImpl) getLocator(); loc.column--; - * reportWarningSkipText(loc, skipAfterExpression()); - */ - } else { - skipAfterExpression(); - } - } - } - - /** - * @exception ParseException - * exception during the parse - */ - final public void declaration() throws ParseException { - boolean important = false; - String name; - LexicalUnit exp; - Token save; - try { - name = property(); - save = token; - jj_consume_token(COLON); - label_159: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[230] = jj_gen; - break label_159; - } - jj_consume_token(S); - } - exp = expr(); - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case IMPORTANT_SYM: - important = prio(); - break; - default: - jj_la1[231] = jj_gen; - ; - } - documentHandler.property(name, exp, important); - } catch (JumpException e) { - skipAfterExpression(); - // reportWarningSkipText(getLocator(), skipAfterExpression()); - - } catch (NumberFormatException e) { - if (errorHandler != null) { - errorHandler.error(new CSSParseException("Invalid number " - + e.getMessage(), getLocator(), e)); - } - reportWarningSkipText(getLocator(), skipAfterExpression()); - } catch (ParseException e) { - if (errorHandler != null) { - if (e.currentToken != null) { - LocatorImpl li = new LocatorImpl(this, - e.currentToken.next.beginLine, - e.currentToken.next.beginColumn - 1); - reportError(li, e); - } else { - reportError(getLocator(), e); - } - skipAfterExpression(); - /* - * LocatorImpl loc = (LocatorImpl) getLocator(); loc.column--; - * reportWarningSkipText(loc, skipAfterExpression()); - */ - } else { - skipAfterExpression(); - } - } - } - - /** - * @exception ParseException - * exception during the parse - */ - final public boolean prio() throws ParseException { - jj_consume_token(IMPORTANT_SYM); - label_160: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[232] = jj_gen; - break label_160; - } - jj_consume_token(S); - } - { - if (true) { - return true; - } - } - throw new Error("Missing return statement in function"); - } - - final public boolean guarded() throws ParseException { - jj_consume_token(GUARDED_SYM); - label_161: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[233] = jj_gen; - break label_161; - } - jj_consume_token(S); - } - { - if (true) { - return true; - } - } - throw new Error("Missing return statement in function"); - } - - /** - * @exception ParseException - * exception during the parse - */ - final public LexicalUnitImpl operator(LexicalUnitImpl prev) - throws ParseException { - Token n; - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case COMMA: - /* - * (comments copied from basic_arithmetics.scss)supports: 1. - * standard arithmetic operations (+, -, *, /, %) 2. / is treated as - * css operator, unless one of its operands is variable or there is - * another binary arithmetic operatorlimits: 1. cannot mix - * arithmetic and css operations, e.g. "margin: 1px + 3px 2px" will - * fail 2. space between add and minus operator and their following - * operand is mandatory. e.g. "1 + 2" is valid, "1+2" is not 3. - * parenthesis is not supported now. - */ - n = jj_consume_token(COMMA); - label_162: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[234] = jj_gen; - break label_162; - } - jj_consume_token(S); - } - { - if (true) { - return LexicalUnitImpl.createComma(n.beginLine, - n.beginColumn, prev); - } - } - break; - case DIV: - n = jj_consume_token(DIV); - label_163: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[235] = jj_gen; - break label_163; - } - jj_consume_token(S); - } - { - if (true) { - return LexicalUnitImpl.createSlash(n.beginLine, - n.beginColumn, prev); - } - } - break; - case ANY: - n = jj_consume_token(ANY); - label_164: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[236] = jj_gen; - break label_164; - } - jj_consume_token(S); - } - { - if (true) { - return LexicalUnitImpl.createMultiply(n.beginLine, - n.beginColumn, prev); - } - } - break; - case MOD: - n = jj_consume_token(MOD); - label_165: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[237] = jj_gen; - break label_165; - } - jj_consume_token(S); - } - { - if (true) { - return LexicalUnitImpl.createModulo(n.beginLine, - n.beginColumn, prev); - } - } - break; - case PLUS: - n = jj_consume_token(PLUS); - label_166: while (true) { - jj_consume_token(S); - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[238] = jj_gen; - break label_166; - } - } - { - if (true) { - return LexicalUnitImpl.createAdd(n.beginLine, - n.beginColumn, prev); - } - } - break; - case MINUS: - n = jj_consume_token(MINUS); - label_167: while (true) { - jj_consume_token(S); - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[239] = jj_gen; - break label_167; - } - } - { - if (true) { - return LexicalUnitImpl.createMinus(n.beginLine, - n.beginColumn, prev); - } - } - break; - default: - jj_la1[240] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - throw new Error("Missing return statement in function"); - } - - /** - * @exception ParseException - * exception during the parse - */ - final public LexicalUnitImpl expr() throws ParseException { - LexicalUnitImpl first, res; - char op; - first = term(null); - res = first; - label_168: while (true) { - if (jj_2_8(2)) { - ; - } else { - break label_168; - } - if (jj_2_9(2)) { - res = operator(res); - } else { - ; - } - res = term(res); - } - { - if (true) { - return first; - } - } - throw new Error("Missing return statement in function"); - } - - /** - * @exception ParseException - * exception during the parse - */ - final public char unaryOperator() throws ParseException { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case MINUS: - jj_consume_token(MINUS); - { - if (true) { - return '-'; - } - } - break; - case PLUS: - jj_consume_token(PLUS); - { - if (true) { - return '+'; - } - } - break; - default: - jj_la1[241] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - throw new Error("Missing return statement in function"); - } - - /** - * @exception ParseException - * exception during the parse - */ - final public LexicalUnitImpl term(LexicalUnitImpl prev) - throws ParseException { - LexicalUnitImpl result = null; - Token n = null; - char op = ' '; - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case PLUS: - case MINUS: - case DOT: - case STRING: - case IDENT: - case NUMBER: - case URL: - case PERCENTAGE: - case PT: - case MM: - case CM: - case PC: - case IN: - case PX: - case EMS: - case LEM: - case REM: - case EXS: - case DEG: - case RAD: - case GRAD: - case MS: - case SECOND: - case HZ: - case KHZ: - case DIMEN: - case HASH: - case UNICODERANGE: - case FUNCTION: - result = nonVariableTerm(prev); - break; - case VARIABLE: - result = variableTerm(prev); - break; - default: - jj_la1[242] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - { - if (true) { - return result; - } - } - throw new Error("Missing return statement in function"); - } - - final public LexicalUnitImpl variableTerm(LexicalUnitImpl prev) - throws ParseException { - LexicalUnitImpl result = null; - String varName = ""; - varName = variableName(); - result = LexicalUnitImpl.createVariable(token.beginLine, - token.beginColumn, prev, varName); - { - if (true) { - return result; - } - } - throw new Error("Missing return statement in function"); - } - - final public LexicalUnitImpl nonVariableTerm(LexicalUnitImpl prev) - throws ParseException { - LexicalUnitImpl result = null; - Token n = null; - char op = ' '; - String varName; - String s = ""; - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case PLUS: - case MINUS: - case NUMBER: - case PERCENTAGE: - case PT: - case MM: - case CM: - case PC: - case IN: - case PX: - case EMS: - case LEM: - case REM: - case EXS: - case DEG: - case RAD: - case GRAD: - case MS: - case SECOND: - case HZ: - case KHZ: - case DIMEN: - case FUNCTION: - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case PLUS: - case MINUS: - op = unaryOperator(); - break; - default: - jj_la1[243] = jj_gen; - ; - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case NUMBER: - n = jj_consume_token(NUMBER); - result = LexicalUnitImpl.createNumber(n.beginLine, - n.beginColumn, prev, number(op, n, 0)); - break; - case PERCENTAGE: - n = jj_consume_token(PERCENTAGE); - result = LexicalUnitImpl.createPercentage(n.beginLine, - n.beginColumn, prev, number(op, n, 1)); - break; - case PT: - n = jj_consume_token(PT); - result = LexicalUnitImpl.createPT(n.beginLine, n.beginColumn, - prev, number(op, n, 2)); - break; - case CM: - n = jj_consume_token(CM); - result = LexicalUnitImpl.createCM(n.beginLine, n.beginColumn, - prev, number(op, n, 2)); - break; - case MM: - n = jj_consume_token(MM); - result = LexicalUnitImpl.createMM(n.beginLine, n.beginColumn, - prev, number(op, n, 2)); - break; - case PC: - n = jj_consume_token(PC); - result = LexicalUnitImpl.createPC(n.beginLine, n.beginColumn, - prev, number(op, n, 2)); - break; - case IN: - n = jj_consume_token(IN); - result = LexicalUnitImpl.createIN(n.beginLine, n.beginColumn, - prev, number(op, n, 2)); - break; - case PX: - n = jj_consume_token(PX); - result = LexicalUnitImpl.createPX(n.beginLine, n.beginColumn, - prev, number(op, n, 2)); - break; - case EMS: - n = jj_consume_token(EMS); - result = LexicalUnitImpl.createEMS(n.beginLine, n.beginColumn, - prev, number(op, n, 2)); - break; - case LEM: - n = jj_consume_token(LEM); - result = LexicalUnitImpl.createLEM(n.beginLine, n.beginColumn, - prev, number(op, n, 3)); - break; - case REM: - n = jj_consume_token(REM); - result = LexicalUnitImpl.createREM(n.beginLine, n.beginColumn, - prev, number(op, n, 3)); - break; - case EXS: - n = jj_consume_token(EXS); - result = LexicalUnitImpl.createEXS(n.beginLine, n.beginColumn, - prev, number(op, n, 2)); - break; - case DEG: - n = jj_consume_token(DEG); - result = LexicalUnitImpl.createDEG(n.beginLine, n.beginColumn, - prev, number(op, n, 3)); - break; - case RAD: - n = jj_consume_token(RAD); - result = LexicalUnitImpl.createRAD(n.beginLine, n.beginColumn, - prev, number(op, n, 3)); - break; - case GRAD: - n = jj_consume_token(GRAD); - result = LexicalUnitImpl.createGRAD(n.beginLine, n.beginColumn, - prev, number(op, n, 3)); - break; - case SECOND: - n = jj_consume_token(SECOND); - result = LexicalUnitImpl.createS(n.beginLine, n.beginColumn, - prev, number(op, n, 1)); - break; - case MS: - n = jj_consume_token(MS); - result = LexicalUnitImpl.createMS(n.beginLine, n.beginColumn, - prev, number(op, n, 2)); - break; - case HZ: - n = jj_consume_token(HZ); - result = LexicalUnitImpl.createHZ(n.beginLine, n.beginColumn, - prev, number(op, n, 2)); - break; - case KHZ: - n = jj_consume_token(KHZ); - result = LexicalUnitImpl.createKHZ(n.beginLine, n.beginColumn, - prev, number(op, n, 3)); - break; - case DIMEN: - n = jj_consume_token(DIMEN); - s = n.image; - int i = 0; - while (i < s.length() - && (Character.isDigit(s.charAt(i)) || (s.charAt(i) == '.'))) { - i++; - } - result = LexicalUnitImpl.createDimen(n.beginLine, - n.beginColumn, prev, Float.valueOf(s.substring(0, i)) - .floatValue(), s.substring(i)); - break; - case FUNCTION: - result = function(op, prev); - break; - default: - jj_la1[244] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - break; - case DOT: - case STRING: - case IDENT: - case URL: - case HASH: - case UNICODERANGE: - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case STRING: - n = jj_consume_token(STRING); - result = LexicalUnitImpl.createString(n.beginLine, - n.beginColumn, prev, - convertStringIndex(n.image, 1, n.image.length() - 1)); - break; - case DOT: - case IDENT: - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case DOT: - jj_consume_token(DOT); - s += "."; - break; - default: - jj_la1[245] = jj_gen; - ; - } - n = jj_consume_token(IDENT); - s += convertIdent(n.image); - if ("inherit".equals(s)) { - result = LexicalUnitImpl.createInherit(n.beginLine, - n.beginColumn, prev); - } else { - result = LexicalUnitImpl.createIdent(n.beginLine, - n.beginColumn, prev, convertIdent(n.image)); - } - - /* - * / Auto correction code used in the CSS Validator but must not - * be used by a conformant CSS2 parser. Common error : H1 { - * color : black background : white } - * - * Token t = getToken(1); Token semicolon = new Token(); - * semicolon.kind = SEMICOLON; semicolon.image = ";"; if (t.kind - * == COLON) { // @@SEEME. (generate a warning?) // @@SEEME if - * expression is a single ident, generate an error ? - * rejectToken(semicolon); - * - * result = prev; } / - */ - - break; - case HASH: - result = hexcolor(prev); - break; - case URL: - result = url(prev); - break; - case UNICODERANGE: - result = unicode(prev); - break; - default: - jj_la1[246] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - break; - default: - jj_la1[247] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - label_169: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[248] = jj_gen; - break label_169; - } - jj_consume_token(S); - } - { - if (true) { - return result; - } - } - throw new Error("Missing return statement in function"); - } - - /** - * Handle all CSS2 functions. - * - * @exception ParseException - * exception during the parse - */ - final public LexicalUnitImpl function(char operator, LexicalUnitImpl prev) - throws ParseException { - Token n; - LexicalUnit params = null; - n = jj_consume_token(FUNCTION); - label_170: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[249] = jj_gen; - break label_170; - } - jj_consume_token(S); - } - String fname = convertIdent(n.image); - if ("alpha(".equals(fname)) { - String body = skipStatementUntilSemiColon(); - { - if (true) { - return LexicalUnitImpl.createIdent(n.beginLine, - n.beginColumn, null, "alpha(" + body); - } - } - } else if ("expression(".equals(fname)) { - String body = skipStatementUntilSemiColon(); - { - if (true) { - return LexicalUnitImpl.createIdent(n.beginLine, - n.beginColumn, null, "expression(" + body); - } - } - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case PLUS: - case MINUS: - case DOT: - case STRING: - case IDENT: - case NUMBER: - case URL: - case VARIABLE: - case PERCENTAGE: - case PT: - case MM: - case CM: - case PC: - case IN: - case PX: - case EMS: - case LEM: - case REM: - case EXS: - case DEG: - case RAD: - case GRAD: - case MS: - case SECOND: - case HZ: - case KHZ: - case DIMEN: - case HASH: - case UNICODERANGE: - case FUNCTION: - params = expr(); - break; - default: - jj_la1[250] = jj_gen; - ; - } - jj_consume_token(RPARAN); - if (operator != ' ') { - { - if (true) { - throw new CSSParseException( - "invalid operator before a function.", getLocator()); - } - } - } - String f = convertIdent(n.image); - LexicalUnitImpl l = (LexicalUnitImpl) params; - boolean loop = true; - if ("rgb(".equals(f)) { - // this is a RGB declaration (e.g. rgb(255, 50%, 0) ) - int i = 0; - while (loop && l != null && i < 5) { - switch (i) { - case 0: - case 2: - case 4: - if ((l.getLexicalUnitType() != LexicalUnit.SAC_INTEGER) - && (l.getLexicalUnitType() != LexicalUnit.SAC_PERCENTAGE)) { - loop = false; - } - break; - case 1: - case 3: - if (l.getLexicalUnitType() != LexicalUnit.SAC_OPERATOR_COMMA) { - loop = false; - } - break; - default: { - if (true) { - throw new ParseException("implementation error"); - } - } - } - if (loop) { - l = l.getNextLexicalUnit(); - i++; - } - } - if ((i == 5) && loop && (l == null)) { - { - if (true) { - return LexicalUnitImpl.createRGBColor(n.beginLine, - n.beginColumn, prev, params); - } - } - } else { - if (errorHandler != null) { - String errorText; - Locator loc; - if (i < 5) { - if (params == null) { - loc = new LocatorImpl(this, n.beginLine, - n.beginColumn - 1); - errorText = "not enough parameters."; - } else if (l == null) { - loc = new LocatorImpl(this, n.beginLine, - n.beginColumn - 1); - errorText = "not enough parameters: " - + params.toString(); - } else { - loc = new LocatorImpl(this, l.getLineNumber(), - l.getColumnNumber()); - errorText = "invalid parameter: " + l.toString(); - } - } else { - loc = new LocatorImpl(this, l.getLineNumber(), - l.getColumnNumber()); - errorText = "too many parameters: " + l.toString(); - } - errorHandler.error(new CSSParseException(errorText, loc)); - } - - { - if (true) { - throw new JumpException(); - } - } - } - } else if ("counter".equals(f)) { - int i = 0; - while (loop && l != null && i < 3) { - switch (i) { - case 0: - case 2: - if (l.getLexicalUnitType() != LexicalUnit.SAC_IDENT) { - loop = false; - } - break; - case 1: - if (l.getLexicalUnitType() != LexicalUnit.SAC_OPERATOR_COMMA) { - loop = false; - } - break; - default: { - if (true) { - throw new ParseException("implementation error"); - } - } - } - l = l.getNextLexicalUnit(); - i++; - } - if (((i == 1) || (i == 3)) && loop && (l == null)) { - { - if (true) { - return LexicalUnitImpl.createCounter(n.beginLine, - n.beginColumn, prev, params); - } - } - } - - } else if ("counters(".equals(f)) { - - int i = 0; - while (loop && l != null && i < 5) { - switch (i) { - case 0: - case 4: - if (l.getLexicalUnitType() != LexicalUnit.SAC_IDENT) { - loop = false; - } - break; - case 2: - if (l.getLexicalUnitType() != LexicalUnit.SAC_STRING_VALUE) { - loop = false; - } - break; - case 1: - case 3: - if (l.getLexicalUnitType() != LexicalUnit.SAC_OPERATOR_COMMA) { - loop = false; - } - break; - default: { - if (true) { - throw new ParseException("implementation error"); - } - } - } - l = l.getNextLexicalUnit(); - i++; - } - if (((i == 3) || (i == 5)) && loop && (l == null)) { - { - if (true) { - return LexicalUnitImpl.createCounters(n.beginLine, - n.beginColumn, prev, params); - } - } - } - } else if ("attr(".equals(f)) { - if ((l != null) && (l.getNextLexicalUnit() == null) - && (l.getLexicalUnitType() == LexicalUnit.SAC_IDENT)) { - { - if (true) { - return LexicalUnitImpl.createAttr(l.getLineNumber(), - l.getColumnNumber(), prev, l.getStringValue()); - } - } - } - } else if ("rect(".equals(f)) { - int i = 0; - while (loop && l != null && i < 7) { - switch (i) { - case 0: - case 2: - case 4: - case 6: - switch (l.getLexicalUnitType()) { - case LexicalUnit.SAC_INTEGER: - if (l.getIntegerValue() != 0) { - loop = false; - } - break; - case LexicalUnit.SAC_IDENT: - if (!l.getStringValue().equals("auto")) { - loop = false; - } - break; - case LexicalUnit.SAC_EM: - case LexicalUnit.SAC_EX: - case LexicalUnit.SAC_PIXEL: - case LexicalUnit.SAC_CENTIMETER: - case LexicalUnit.SAC_MILLIMETER: - case LexicalUnit.SAC_INCH: - case LexicalUnit.SAC_POINT: - case LexicalUnit.SAC_PICA: - // nothing - break; - default: - loop = false; - } - break; - case 1: - case 3: - case 5: - if (l.getLexicalUnitType() != LexicalUnit.SAC_OPERATOR_COMMA) { - loop = false; - } - break; - default: { - if (true) { - throw new ParseException("implementation error"); - } - } - } - l = l.getNextLexicalUnit(); - i++; - } - if ((i == 7) && loop && (l == null)) { - { - if (true) { - return LexicalUnitImpl.createRect(n.beginLine, - n.beginColumn, prev, params); - } - } - } - } - { - if (true) { - return LexicalUnitImpl.createFunction(n.beginLine, - n.beginColumn, prev, f.substring(0, f.length() - 1), - params); - } - } - throw new Error("Missing return statement in function"); - } - - final public LexicalUnitImpl unicode(LexicalUnitImpl prev) - throws ParseException { - Token n; - n = jj_consume_token(UNICODERANGE); - LexicalUnitImpl params = null; - String s = n.image.substring(2); - int index = s.indexOf('-'); - if (index == -1) { - params = LexicalUnitImpl.createInteger(n.beginLine, n.beginColumn, - params, Integer.parseInt(s, 16)); - } else { - String s1 = s.substring(0, index); - String s2 = s.substring(index); - - params = LexicalUnitImpl.createInteger(n.beginLine, n.beginColumn, - params, Integer.parseInt(s1, 16)); - params = LexicalUnitImpl.createInteger(n.beginLine, n.beginColumn, - params, Integer.parseInt(s2, 16)); - } - - { - if (true) { - return LexicalUnitImpl.createUnicodeRange(n.beginLine, - n.beginColumn, prev, params); - } - } - throw new Error("Missing return statement in function"); - } - - final public LexicalUnitImpl url(LexicalUnitImpl prev) - throws ParseException { - Token n; - n = jj_consume_token(URL); - String urlname = n.image.substring(4, n.image.length() - 1).trim(); - { - if (true) { - return LexicalUnitImpl.createURL(n.beginLine, n.beginColumn, - prev, urlname); - } - } - throw new Error("Missing return statement in function"); - } - - /** - * @exception ParseException - * exception during the parse - */ - final public LexicalUnitImpl hexcolor(LexicalUnitImpl prev) - throws ParseException { - Token n; - n = jj_consume_token(HASH); - int r; - LexicalUnitImpl first, params = null; - String s = n.image.substring(1); - - if (s.length() != 3 && s.length() != 6) { - first = null; - { - if (true) { - throw new CSSParseException( - "invalid hexadecimal notation for RGB: " + s, - getLocator()); - } - } - } - { - if (true) { - return LexicalUnitImpl.createIdent(n.beginLine, n.beginColumn, - prev, n.image); - } - } - throw new Error("Missing return statement in function"); - } - - float number(char operator, Token n, int lengthUnit) throws ParseException { - String image = n.image; - float f = 0; - - if (lengthUnit != 0) { - image = image.substring(0, image.length() - lengthUnit); - } - f = Float.valueOf(image).floatValue(); - return (operator == '-') ? -f : f; - } - - String skipStatementUntilSemiColon() throws ParseException { - int[] semicolon = { SEMICOLON }; - return skipStatementUntil(semicolon); - } - - String skipStatementUntilLeftBrace() throws ParseException { - int[] lBrace = { LBRACE }; - return skipStatementUntil(lBrace); - } - - String skipStatementUntilRightParan() throws ParseException { - int[] rParan = { RPARAN }; - return skipStatementUntil(rParan); - } - - String skipStatementUntil(int[] symbols) throws ParseException { - StringBuffer s = new StringBuffer(); - boolean stop = false; - Token tok; - while (!stop) { - tok = getToken(1); - if (tok.kind == EOF) { - return null; - } - for (int sym : symbols) { - if (tok.kind == sym) { - stop = true; - break; - } - } - if (!stop) { - if (tok.image != null) { - s.append(tok.image); - } - getNextToken(); - } - } - return s.toString().trim(); - } - - String skipStatement() throws ParseException { - StringBuffer s = new StringBuffer(); - Token tok = getToken(0); - if (tok.image != null) { - s.append(tok.image); - } - while (true) { - tok = getToken(1); - if (tok.kind == EOF) { - return null; - } - s.append(tok.image); - if (tok.kind == LBRACE) { - getNextToken(); - s.append(skip_to_matching_brace()); - getNextToken(); - tok = getToken(1); - break; - } else if (tok.kind == RBRACE) { - getNextToken(); - tok = getToken(1); - break; - } else if (tok.kind == SEMICOLON) { - getNextToken(); - tok = getToken(1); - break; - } - getNextToken(); - } - - // skip white space - while (true) { - if (tok.kind != S) { - break; - } - tok = getNextToken(); - tok = getToken(1); - } - - return s.toString().trim(); - } - - String skip_to_matching_brace() throws ParseException { - StringBuffer s = new StringBuffer(); - Token tok; - int nesting = 1; - while (true) { - tok = getToken(1); - if (tok.kind == EOF) { - break; - } - s.append(tok.image); - if (tok.kind == LBRACE) { - nesting++; - } else if (tok.kind == RBRACE) { - nesting--; - if (nesting == 0) { - break; - } - } - getNextToken(); - } - return s.toString(); - } - - String convertStringIndex(String s, int start, int len) - throws ParseException { - StringBuffer buf = new StringBuffer(len); - int index = start; - - while (index < len) { - char c = s.charAt(index); - if (c == '\u005c\u005c') { - if (++index < len) { - c = s.charAt(index); - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a': - case 'b': - case 'c': - case 'd': - case 'e': - case 'f': - case 'A': - case 'B': - case 'C': - case 'D': - case 'E': - case 'F': - buf.append('\u005c\u005c'); - while (index < len) { - buf.append(s.charAt(index++)); - } - break; - case '\u005cn': - case '\u005cf': - break; - case '\u005cr': - if (index + 1 < len) { - if (s.charAt(index + 1) == '\u005cn') { - index++; - } - } - break; - default: - buf.append(c); - } - } else { - throw new CSSParseException("invalid string " + s, - getLocator()); - } - } else { - buf.append(c); - } - index++; - } - - return buf.toString(); - } - - String convertIdent(String s) throws ParseException { - return convertStringIndex(s, 0, s.length()); - } - - String convertString(String s) throws ParseException { - return convertStringIndex(s, 0, s.length()); - } - - void comments() throws ParseException { - if (token.specialToken != null) { - Token tmp_t = token.specialToken; - while (tmp_t.specialToken != null) { - tmp_t = tmp_t.specialToken; - } - while (tmp_t != null) { - documentHandler.comment(tmp_t.image); - tmp_t = tmp_t.next; - } - } - } - - void rejectToken(Token t) throws ParseException { - Token fakeToken = new Token(); - t.next = token; - fakeToken.next = t; - token = fakeToken; - } - - String skipAfterExpression() throws ParseException { - Token t = getToken(1); - StringBuffer s = new StringBuffer(); - s.append(getToken(0).image); - - while ((t.kind != RBRACE) && (t.kind != SEMICOLON) && (t.kind != EOF)) { - s.append(t.image); - getNextToken(); - t = getToken(1); - } - - return s.toString(); - } - - /** - * The following functions are useful for a DOM CSS implementation only and - * are not part of the general CSS2 parser. - */ - final public void _parseRule() throws ParseException { - String ret = null; - label_171: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[251] = jj_gen; - break label_171; - } - jj_consume_token(S); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case IMPORT_SYM: - importDeclaration(); - break; - case DEBUG_SYM: - case WARN_SYM: - debuggingDirective(); - break; - case PLUS: - case PRECEDES: - case SIBLING: - case LBRACKET: - case ANY: - case PARENT: - case DOT: - case COLON: - case INTERPOLATION: - case IDENT: - case HASH: - styleRule(); - break; - case MEDIA_SYM: - media(); - break; - case PAGE_SYM: - page(); - break; - case FONT_FACE_SYM: - fontFace(); - break; - default: - jj_la1[252] = jj_gen; - ret = skipStatement(); - if ((ret == null) || (ret.length() == 0)) { - { - if (true) { - return; - } - } - } - if (ret.charAt(0) == '@') { - documentHandler.unrecognizedRule(ret); - } else { - { - if (true) { - throw new CSSParseException("unrecognize rule: " + ret, - getLocator()); - } - } - } - } - } - - final public void _parseImportRule() throws ParseException { - label_172: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[253] = jj_gen; - break label_172; - } - jj_consume_token(S); - } - importDeclaration(); - } - - final public void _parseMediaRule() throws ParseException { - label_173: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[254] = jj_gen; - break label_173; - } - jj_consume_token(S); - } - media(); - } - - final public void _parseDeclarationBlock() throws ParseException { - label_174: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[255] = jj_gen; - break label_174; - } - jj_consume_token(S); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case INTERPOLATION: - case IDENT: - declaration(); - break; - default: - jj_la1[256] = jj_gen; - ; - } - label_175: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case SEMICOLON: - ; - break; - default: - jj_la1[257] = jj_gen; - break label_175; - } - jj_consume_token(SEMICOLON); - label_176: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[258] = jj_gen; - break label_176; - } - jj_consume_token(S); - } - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case INTERPOLATION: - case IDENT: - declaration(); - break; - default: - jj_la1[259] = jj_gen; - ; - } - } - } - - final public ArrayList _parseSelectors() throws ParseException { - ArrayList p = null; - try { - label_177: while (true) { - switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { - case S: - ; - break; - default: - jj_la1[260] = jj_gen; - break label_177; - } - jj_consume_token(S); - } - p = selectorList(); - { - if (true) { - return p; - } - } - } catch (ThrowedParseException e) { - { - if (true) { - throw (ParseException) e.e.fillInStackTrace(); - } - } - } - throw new Error("Missing return statement in function"); - } - - private boolean jj_2_1(int xla) { - jj_la = xla; - jj_lastpos = jj_scanpos = token; - try { - return !jj_3_1(); - } catch (LookaheadSuccess ls) { - return true; - } finally { - jj_save(0, xla); - } - } - - private boolean jj_2_2(int xla) { - jj_la = xla; - jj_lastpos = jj_scanpos = token; - try { - return !jj_3_2(); - } catch (LookaheadSuccess ls) { - return true; - } finally { - jj_save(1, xla); - } - } - - private boolean jj_2_3(int xla) { - jj_la = xla; - jj_lastpos = jj_scanpos = token; - try { - return !jj_3_3(); - } catch (LookaheadSuccess ls) { - return true; - } finally { - jj_save(2, xla); - } - } - - private boolean jj_2_4(int xla) { - jj_la = xla; - jj_lastpos = jj_scanpos = token; - try { - return !jj_3_4(); - } catch (LookaheadSuccess ls) { - return true; - } finally { - jj_save(3, xla); - } - } - - private boolean jj_2_5(int xla) { - jj_la = xla; - jj_lastpos = jj_scanpos = token; - try { - return !jj_3_5(); - } catch (LookaheadSuccess ls) { - return true; - } finally { - jj_save(4, xla); - } - } - - private boolean jj_2_6(int xla) { - jj_la = xla; - jj_lastpos = jj_scanpos = token; - try { - return !jj_3_6(); - } catch (LookaheadSuccess ls) { - return true; - } finally { - jj_save(5, xla); - } - } - - private boolean jj_2_7(int xla) { - jj_la = xla; - jj_lastpos = jj_scanpos = token; - try { - return !jj_3_7(); - } catch (LookaheadSuccess ls) { - return true; - } finally { - jj_save(6, xla); - } - } - - private boolean jj_2_8(int xla) { - jj_la = xla; - jj_lastpos = jj_scanpos = token; - try { - return !jj_3_8(); - } catch (LookaheadSuccess ls) { - return true; - } finally { - jj_save(7, xla); - } - } - - private boolean jj_2_9(int xla) { - jj_la = xla; - jj_lastpos = jj_scanpos = token; - try { - return !jj_3_9(); - } catch (LookaheadSuccess ls) { - return true; - } finally { - jj_save(8, xla); - } - } - - private boolean jj_3R_252() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_263()) { - jj_scanpos = xsp; - if (jj_3R_264()) { - return true; - } - } - return false; - } - - private boolean jj_3R_263() { - if (jj_scan_token(IDENT)) { - return true; - } - return false; - } - - private boolean jj_3R_204() { - Token xsp; - if (jj_3R_252()) { - return true; - } - while (true) { - xsp = jj_scanpos; - if (jj_3R_252()) { - jj_scanpos = xsp; - break; - } - } - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } - return false; - } - - private boolean jj_3R_214() { - if (jj_scan_token(MINUS)) { - return true; - } - Token xsp; - if (jj_scan_token(1)) { - return true; - } - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } - return false; - } - - private boolean jj_3R_190() { - if (jj_3R_215()) { - return true; - } - return false; - } - - private boolean jj_3R_213() { - if (jj_scan_token(PLUS)) { - return true; - } - Token xsp; - if (jj_scan_token(1)) { - return true; - } - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } - return false; - } - - private boolean jj_3R_212() { - if (jj_scan_token(MOD)) { - return true; - } - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } - return false; - } - - private boolean jj_3R_211() { - if (jj_scan_token(ANY)) { - return true; - } - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } - return false; - } - - private boolean jj_3R_210() { - if (jj_scan_token(DIV)) { - return true; - } - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } - return false; - } - - private boolean jj_3R_209() { - if (jj_scan_token(COMMA)) { - return true; - } - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } - return false; - } - - private boolean jj_3R_187() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_209()) { - jj_scanpos = xsp; - if (jj_3R_210()) { - jj_scanpos = xsp; - if (jj_3R_211()) { - jj_scanpos = xsp; - if (jj_3R_212()) { - jj_scanpos = xsp; - if (jj_3R_213()) { - jj_scanpos = xsp; - if (jj_3R_214()) { - return true; - } - } - } - } - } - } - return false; - } - - private boolean jj_3R_217() { - if (jj_3R_216()) { - return true; - } - return false; - } - - private boolean jj_3R_216() { - Token xsp; - xsp = jj_scanpos; - if (jj_scan_token(20)) { - jj_scanpos = xsp; - if (jj_scan_token(24)) { - jj_scanpos = xsp; - if (jj_scan_token(25)) { - return true; - } - } - } - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } - return false; - } - - private boolean jj_3R_178() { - if (jj_3R_188()) { - return true; - } - if (jj_scan_token(COLON)) { - return true; - } - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } - if (jj_3R_189()) { - return true; - } - xsp = jj_scanpos; - if (jj_3R_190()) { - jj_scanpos = xsp; - } - if (jj_3R_191()) { - return true; - } - while (true) { - xsp = jj_scanpos; - if (jj_3R_191()) { - jj_scanpos = xsp; - break; - } - } - return false; - } - - private boolean jj_3R_215() { - if (jj_scan_token(GUARDED_SYM)) { - return true; - } - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } - return false; - } - - private boolean jj_3R_193() { - if (jj_scan_token(S)) { - return true; - } - Token xsp; - xsp = jj_scanpos; - if (jj_3R_217()) { - jj_scanpos = xsp; - } - return false; - } - - private boolean jj_3R_192() { - if (jj_3R_216()) { - return true; - } - return false; - } - - private boolean jj_3R_179() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_192()) { - jj_scanpos = xsp; - if (jj_3R_193()) { - return true; - } - } - return false; - } - - private boolean jj_3R_199() { - if (jj_scan_token(VARIABLE)) { - return true; - } - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } - if (jj_scan_token(COLON)) { - return true; - } - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } - return false; - } - - private boolean jj_3R_181() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_199()) { - jj_scanpos = xsp; - } - if (jj_scan_token(CONTAINS)) { - return true; - } - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } - if (true) { - jj_la = 0; - jj_scanpos = jj_lastpos; - return false; - } - return false; - } - - private boolean jj_3R_219() { - if (jj_scan_token(HASH)) { - return true; - } - return false; - } - - private boolean jj_3R_289() { - if (jj_scan_token(IDENT)) { - return true; - } - return false; - } - - private boolean jj_3R_290() { - if (jj_scan_token(FUNCTION)) { - return true; - } - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } - if (true) { - jj_la = 0; - jj_scanpos = jj_lastpos; - return false; - } - return false; - } - - private boolean jj_3R_288() { - if (jj_scan_token(COLON)) { - return true; - } - return false; - } - - private boolean jj_3R_221() { - if (jj_scan_token(COLON)) { - return true; - } - Token xsp; - xsp = jj_scanpos; - if (jj_3R_288()) { - jj_scanpos = xsp; - } - xsp = jj_scanpos; - if (jj_3R_289()) { - jj_scanpos = xsp; - if (jj_3R_290()) { - return true; - } - } - return false; - } - - private boolean jj_3_7() { - if (jj_3R_185()) { - return true; - } - return false; - } - - private boolean jj_3R_206() { - if (jj_scan_token(LBRACE)) { - return true; - } - return false; - } - - private boolean jj_3R_309() { - if (jj_scan_token(STRING)) { - return true; - } - return false; - } - - private boolean jj_3R_307() { - if (jj_scan_token(STARMATCH)) { - return true; - } - return false; - } - - private boolean jj_3R_308() { - if (jj_scan_token(IDENT)) { - return true; - } - return false; - } - - private boolean jj_3R_306() { - if (jj_scan_token(DOLLARMATCH)) { - return true; - } - return false; - } - - private boolean jj_3R_305() { - if (jj_scan_token(CARETMATCH)) { - return true; - } - return false; - } - - private boolean jj_3R_304() { - if (jj_scan_token(DASHMATCH)) { - return true; - } - return false; - } - - private boolean jj_3R_303() { - if (jj_scan_token(INCLUDES)) { - return true; - } - return false; - } - - private boolean jj_3R_270() { - if (jj_scan_token(INTERPOLATION)) { - return true; - } - return false; - } - - private boolean jj_3R_302() { - if (jj_scan_token(EQ)) { - return true; - } - return false; - } - - private boolean jj_3R_205() { - if (jj_3R_189()) { - return true; - } - return false; - } - - private boolean jj_3R_295() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_302()) { - jj_scanpos = xsp; - if (jj_3R_303()) { - jj_scanpos = xsp; - if (jj_3R_304()) { - jj_scanpos = xsp; - if (jj_3R_305()) { - jj_scanpos = xsp; - if (jj_3R_306()) { - jj_scanpos = xsp; - if (jj_3R_307()) { - return true; - } - } - } - } - } - } - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } - xsp = jj_scanpos; - if (jj_3R_308()) { - jj_scanpos = xsp; - if (jj_3R_309()) { - return true; - } - } - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } - return false; - } - - private boolean jj_3_6() { - if (jj_3R_184()) { - return true; - } - if (jj_scan_token(LBRACE)) { - return true; - } - return false; - } - - private boolean jj_3R_222() { - if (jj_scan_token(LBRACKET)) { - return true; - } - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } - if (jj_scan_token(IDENT)) { - return true; - } - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } - xsp = jj_scanpos; - if (jj_3R_295()) { - jj_scanpos = xsp; - } - if (jj_scan_token(RBRACKET)) { - return true; - } - return false; - } - - private boolean jj_3R_185() { - if (jj_3R_204()) { - return true; - } - if (jj_scan_token(COLON)) { - return true; - } - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } - xsp = jj_scanpos; - if (jj_3R_205()) { - jj_scanpos = xsp; - if (jj_3R_206()) { - return true; - } - } - return false; - } - - private boolean jj_3R_301() { - if (jj_scan_token(INTERPOLATION)) { - return true; - } - return false; - } - - private boolean jj_3R_256() { - if (jj_scan_token(PARENT)) { - return true; - } - return false; - } - - private boolean jj_3R_268() { - if (jj_3R_189()) { - return true; - } - return false; - } - - private boolean jj_3R_255() { - if (jj_scan_token(ANY)) { - return true; - } - return false; - } - - private boolean jj_3R_265() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_269()) { - jj_scanpos = xsp; - if (jj_3R_270()) { - return true; - } - } - return false; - } - - private boolean jj_3R_269() { - if (jj_scan_token(IDENT)) { - return true; - } - return false; - } - - private boolean jj_3R_218() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_254()) { - jj_scanpos = xsp; - if (jj_3R_255()) { - jj_scanpos = xsp; - if (jj_3R_256()) { - return true; - } - } - } - return false; - } - - private boolean jj_3R_254() { - Token xsp; - if (jj_3R_265()) { - return true; - } - while (true) { - xsp = jj_scanpos; - if (jj_3R_265()) { - jj_scanpos = xsp; - break; - } - } - return false; - } - - private boolean jj_3R_182() { - if (jj_scan_token(COMMA)) { - return true; - } - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } - return false; - } - - private boolean jj_3R_258() { - if (jj_scan_token(FUNCTION)) { - return true; - } - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } - xsp = jj_scanpos; - if (jj_3R_268()) { - jj_scanpos = xsp; - } - if (jj_scan_token(RPARAN)) { - return true; - } - return false; - } - - private boolean jj_3R_283() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_300()) { - jj_scanpos = xsp; - if (jj_3R_301()) { - return true; - } - } - return false; - } - - private boolean jj_3R_300() { - if (jj_scan_token(IDENT)) { - return true; - } - return false; - } - - private boolean jj_3R_249() { - if (jj_3R_262()) { - return true; - } - return false; - } - - private boolean jj_3R_299() { - if (jj_3R_221()) { - return true; - } - return false; - } - - private boolean jj_3R_248() { - if (jj_3R_261()) { - return true; - } - return false; - } - - private boolean jj_3R_247() { - if (jj_3R_260()) { - return true; - } - return false; - } - - private boolean jj_3_5() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_182()) { - jj_scanpos = xsp; - } - if (jj_3R_183()) { - return true; - } - return false; - } - - private boolean jj_3R_220() { - if (jj_scan_token(DOT)) { - return true; - } - Token xsp; - if (jj_3R_283()) { - return true; - } - while (true) { - xsp = jj_scanpos; - if (jj_3R_283()) { - jj_scanpos = xsp; - break; - } - } - return false; - } - - private boolean jj_3R_297() { - if (jj_3R_220()) { - return true; - } - return false; - } - - private boolean jj_3R_292() { - if (jj_3R_220()) { - return true; - } - return false; - } - - private boolean jj_3R_294() { - if (jj_3R_221()) { - return true; - } - return false; - } - - private boolean jj_3R_282() { - if (jj_3R_221()) { - return true; - } - return false; - } - - private boolean jj_3R_285() { - if (jj_3R_220()) { - return true; - } - return false; - } - - private boolean jj_3R_287() { - if (jj_3R_221()) { - return true; - } - return false; - } - - private boolean jj_3R_298() { - if (jj_3R_222()) { - return true; - } - return false; - } - - private boolean jj_3R_275() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_296()) { - jj_scanpos = xsp; - if (jj_3R_297()) { - jj_scanpos = xsp; - if (jj_3R_298()) { - jj_scanpos = xsp; - if (jj_3R_299()) { - return true; - } - } - } - } - return false; - } - - private boolean jj_3R_296() { - if (jj_3R_219()) { - return true; - } - return false; - } - - private boolean jj_3R_274() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_291()) { - jj_scanpos = xsp; - if (jj_3R_292()) { - jj_scanpos = xsp; - if (jj_3R_293()) { - jj_scanpos = xsp; - if (jj_3R_294()) { - return true; - } - } - } - } - return false; - } - - private boolean jj_3R_291() { - if (jj_3R_219()) { - return true; - } - return false; - } - - private boolean jj_3R_279() { - if (jj_3R_221()) { - return true; - } - return false; - } - - private boolean jj_3R_273() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_284()) { - jj_scanpos = xsp; - if (jj_3R_285()) { - jj_scanpos = xsp; - if (jj_3R_286()) { - jj_scanpos = xsp; - if (jj_3R_287()) { - return true; - } - } - } - } - return false; - } - - private boolean jj_3R_284() { - if (jj_3R_219()) { - return true; - } - return false; - } - - private boolean jj_3R_293() { - if (jj_3R_222()) { - return true; - } - return false; - } - - private boolean jj_3R_281() { - if (jj_3R_222()) { - return true; - } - return false; - } - - private boolean jj_3R_286() { - if (jj_3R_222()) { - return true; - } - return false; - } - - private boolean jj_3R_272() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_280()) { - jj_scanpos = xsp; - if (jj_3R_281()) { - jj_scanpos = xsp; - if (jj_3R_282()) { - return true; - } - } - } - return false; - } - - private boolean jj_3R_277() { - if (jj_3R_220()) { - return true; - } - return false; - } - - private boolean jj_3R_280() { - if (jj_3R_220()) { - return true; - } - return false; - } - - private boolean jj_3R_259() { - if (jj_scan_token(DOT)) { - return true; - } - return false; - } - - private boolean jj_3R_246() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_259()) { - jj_scanpos = xsp; - } - if (jj_scan_token(IDENT)) { - return true; - } - return false; - } - - private boolean jj_3R_198() { - if (jj_3R_222()) { - return true; + } + label_15: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[21] = jj_gen; + break label_15; + } + jj_consume_token(S); + } + start = true; documentHandler.startKeyFrames(keyframeName, animationname); + jj_consume_token(LBRACE); + label_16: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[22] = jj_gen; + break label_16; + } + jj_consume_token(S); + } + label_17: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case TO: + case FROM: + case PERCENTAGE: + ; + break; + default: + jj_la1[23] = jj_gen; + break label_17; + } + keyframeSelector(); + } + jj_consume_token(RBRACE); + label_18: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[24] = jj_gen; + break label_18; + } + jj_consume_token(S); + } + } catch (ParseException e) { + reportError(getLocator(), e); + skipStatement(); + } finally { + if (start) { + documentHandler.endKeyFrames(); + } + } + } + + final public void keyframeSelector() throws ParseException { + Token n; + boolean start = false; + try { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case FROM: + n = jj_consume_token(FROM); + break; + case TO: + n = jj_consume_token(TO); + break; + case PERCENTAGE: + n = jj_consume_token(PERCENTAGE); + break; + default: + jj_la1[25] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + label_19: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[26] = jj_gen; + break label_19; + } + jj_consume_token(S); + } + jj_consume_token(LBRACE); + label_20: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[27] = jj_gen; + break label_20; + } + jj_consume_token(S); + } + start = true; + documentHandler.startKeyframeSelector(n.image); + label_21: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case PLUS: + case PRECEDES: + case SIBLING: + case LBRACKET: + case ANY: + case PARENT: + case DOT: + case COLON: + case INTERPOLATION: + case INCLUDE_SYM: + case DEBUG_SYM: + case WARN_SYM: + case EACH_SYM: + case IF_SYM: + case EXTEND_SYM: + case CONTENT_SYM: + case MICROSOFT_RULE: + case IDENT: + case VARIABLE: + case HASH: + case MEDIA_SYM: + case KEY_FRAME_SYM: + ; + break; + default: + jj_la1[28] = jj_gen; + break label_21; } - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_275()) { - jj_scanpos = xsp; - break; - } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case PLUS: + case PRECEDES: + case SIBLING: + case LBRACKET: + case ANY: + case PARENT: + case DOT: + case COLON: + case INTERPOLATION: + case INCLUDE_SYM: + case DEBUG_SYM: + case WARN_SYM: + case EXTEND_SYM: + case CONTENT_SYM: + case IDENT: + case VARIABLE: + case HASH: + case MEDIA_SYM: + case KEY_FRAME_SYM: + ifContentStatement(); + break; + case EACH_SYM: + case IF_SYM: + controlDirective(); + break; + case MICROSOFT_RULE: + microsoftExtension(); + break; + default: + jj_la1[29] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + } + jj_consume_token(RBRACE); + label_22: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[30] = jj_gen; + break label_22; } - return false; - } - - private boolean jj_3R_245() { - if (jj_scan_token(STRING)) { - return true; + jj_consume_token(S); + } + } catch (ThrowedParseException e) { + if (errorHandler != null) { + LocatorImpl li = new LocatorImpl(this, + e.e.currentToken.next.beginLine, + e.e.currentToken.next.beginColumn-1); + reportError(li, e.e); } - return false; - } + } catch (ParseException e) { + reportError(getLocator(), e); + skipStatement(); + // reportWarningSkipText(getLocator(), skipStatement()); - private boolean jj_3R_244() { - if (jj_3R_258()) { - return true; + } catch (TokenMgrError e) { + reportWarningSkipText(getLocator(), skipStatement()); + } finally { + if (start) { + documentHandler.endKeyframeSelector(); } - return false; } + } - private boolean jj_3R_197() { - if (jj_3R_221()) { - return true; - } - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_274()) { - jj_scanpos = xsp; - break; - } +/** + * @exception ParseException exception during the parse + */ + final public void media() throws ParseException { + boolean start = false; + String ret; + MediaListImpl ml = new MediaListImpl(); + try { + jj_consume_token(MEDIA_SYM); + label_23: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[31] = jj_gen; + break label_23; + } + jj_consume_token(S); + } + mediaStatement(ml); + start = true; documentHandler.startMedia(ml); + jj_consume_token(LBRACE); + label_24: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[32] = jj_gen; + break label_24; + } + jj_consume_token(S); + } + label_25: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case CDO: + case LBRACE: + case DASHMATCH: + case INCLUDES: + case PLUS: + case MINUS: + case COMMA: + case SEMICOLON: + case PRECEDES: + case SIBLING: + case LBRACKET: + case ANY: + case PARENT: + case DOT: + case COLON: + case INTERPOLATION: + case NONASCII: + case DEBUG_SYM: + case WARN_SYM: + case STRING: + case IDENT: + case NUMBER: + case URL: + case PERCENTAGE: + case HASH: + case IMPORT_SYM: + case MEDIA_SYM: + case CHARSET_SYM: + case PAGE_SYM: + case FONT_FACE_SYM: + case ATKEYWORD: + case IMPORTANT_SYM: + case UNICODERANGE: + case FUNCTION: + case UNKNOWN: + ; + break; + default: + jj_la1[33] = jj_gen; + break label_25; } - return false; - } - - private boolean jj_3R_201() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_245()) { - jj_scanpos = xsp; - if (jj_3R_246()) { - jj_scanpos = xsp; - if (jj_3R_247()) { - jj_scanpos = xsp; - if (jj_3R_248()) { - jj_scanpos = xsp; - if (jj_3R_249()) { - return true; - } - } - } - } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case DEBUG_SYM: + case WARN_SYM: + debuggingDirective(); + break; + case PLUS: + case PRECEDES: + case SIBLING: + case LBRACKET: + case ANY: + case PARENT: + case DOT: + case COLON: + case INTERPOLATION: + case IDENT: + case HASH: + styleRule(); + break; + case CDO: + case LBRACE: + case DASHMATCH: + case INCLUDES: + case MINUS: + case COMMA: + case SEMICOLON: + case NONASCII: + case STRING: + case NUMBER: + case URL: + case PERCENTAGE: + case IMPORT_SYM: + case MEDIA_SYM: + case CHARSET_SYM: + case PAGE_SYM: + case FONT_FACE_SYM: + case ATKEYWORD: + case IMPORTANT_SYM: + case UNICODERANGE: + case FUNCTION: + case UNKNOWN: + skipUnknownRule(); + break; + default: + jj_la1[34] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + } + jj_consume_token(RBRACE); + label_26: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[35] = jj_gen; + break label_26; + } + jj_consume_token(S); + } + } catch (ParseException e) { + reportError(getLocator(), e); + skipStatement(); + // reportWarningSkipText(getLocator(), skipStatement()); + + } finally { + if (start) { + documentHandler.endMedia(ml); + } + } + } + + final public void mediaStatement(MediaListImpl ml) throws ParseException { + String m; + m = medium(); + label_27: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case COMMA: + ; + break; + default: + jj_la1[36] = jj_gen; + break label_27; + } + jj_consume_token(COMMA); + label_28: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[37] = jj_gen; + break label_28; } - return false; + jj_consume_token(S); + } + ml.addItem(m); + m = medium(); } + ml.addItem(m); + } - private boolean jj_3R_278() { - if (jj_3R_222()) { - return true; - } - return false; - } +/** + * @exception ParseException exception during the parse + */ + final public String medium() throws ParseException { + Token n; + n = jj_consume_token(IDENT); + label_29: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[38] = jj_gen; + break label_29; + } + jj_consume_token(S); + } + {if (true) return convertIdent(n.image);} + throw new Error("Missing return statement in function"); + } - private boolean jj_3R_196() { - if (jj_3R_220()) { - return true; +/** + * @exception ParseException exception during the parse + */ + final public void page() throws ParseException { + boolean start = false; + Token n = null; + String page = null; + String pseudo = null; + try { + jj_consume_token(PAGE_SYM); + label_30: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[39] = jj_gen; + break label_30; } - Token xsp; + jj_consume_token(S); + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case IDENT: + n = jj_consume_token(IDENT); + label_31: while (true) { - xsp = jj_scanpos; - if (jj_3R_273()) { - jj_scanpos = xsp; - break; - } - } - return false; - } - - private boolean jj_3R_195() { - if (jj_3R_219()) { - return true; + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[40] = jj_gen; + break label_31; + } + jj_consume_token(S); + } + break; + default: + jj_la1[41] = jj_gen; + ; + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case COLON: + pseudo = pseudo_page(); + break; + default: + jj_la1[42] = jj_gen; + ; + } + if (n != null) { + page = convertIdent(n.image); + } + jj_consume_token(LBRACE); + label_32: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[43] = jj_gen; + break label_32; + } + jj_consume_token(S); + } + start = true; + documentHandler.startPage(page, pseudo); + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case INTERPOLATION: + case IDENT: + declaration(); + break; + default: + jj_la1[44] = jj_gen; + ; + } + label_33: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case SEMICOLON: + ; + break; + default: + jj_la1[45] = jj_gen; + break label_33; } - Token xsp; + jj_consume_token(SEMICOLON); + label_34: while (true) { - xsp = jj_scanpos; - if (jj_3R_272()) { - jj_scanpos = xsp; - break; - } - } - return false; - } - - private boolean jj_3R_271() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_276()) { - jj_scanpos = xsp; - if (jj_3R_277()) { - jj_scanpos = xsp; - if (jj_3R_278()) { - jj_scanpos = xsp; - if (jj_3R_279()) { - return true; - } - } - } - } - return false; - } - - private boolean jj_3R_276() { - if (jj_3R_219()) { - return true; + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[46] = jj_gen; + break label_34; + } + jj_consume_token(S); } - return false; - } - - private boolean jj_3R_194() { - if (jj_3R_218()) { - return true; + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case INTERPOLATION: + case IDENT: + declaration(); + break; + default: + jj_la1[47] = jj_gen; + ; + } + } + jj_consume_token(RBRACE); + label_35: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[48] = jj_gen; + break label_35; + } + jj_consume_token(S); + } + } catch (ParseException e) { + if (errorHandler != null) { + LocatorImpl li = new LocatorImpl(this, + e.currentToken.next.beginLine, + e.currentToken.next.beginColumn-1); + reportError(li, e); + skipStatement(); + // reportWarningSkipText(li, skipStatement()); + } else { + skipStatement(); + } + } finally { + if (start) { + documentHandler.endPage(page, pseudo); + } + } + } + + final public String pseudo_page() throws ParseException { + Token n; + jj_consume_token(COLON); + n = jj_consume_token(IDENT); + label_36: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[49] = jj_gen; + break label_36; + } + jj_consume_token(S); + } + {if (true) return convertIdent(n.image);} + throw new Error("Missing return statement in function"); + } + + final public void fontFace() throws ParseException { + boolean start = false; + try { + jj_consume_token(FONT_FACE_SYM); + label_37: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[50] = jj_gen; + break label_37; + } + jj_consume_token(S); + } + jj_consume_token(LBRACE); + label_38: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[51] = jj_gen; + break label_38; + } + jj_consume_token(S); + } + start = true; documentHandler.startFontFace(); + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case INTERPOLATION: + case IDENT: + declaration(); + break; + default: + jj_la1[52] = jj_gen; + ; + } + label_39: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case SEMICOLON: + ; + break; + default: + jj_la1[53] = jj_gen; + break label_39; } - Token xsp; + jj_consume_token(SEMICOLON); + label_40: while (true) { - xsp = jj_scanpos; - if (jj_3R_271()) { - jj_scanpos = xsp; - break; - } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[54] = jj_gen; + break label_40; + } + jj_consume_token(S); } - return false; - } - - private boolean jj_3R_180() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_194()) { - jj_scanpos = xsp; - if (jj_3R_195()) { - jj_scanpos = xsp; - if (jj_3R_196()) { - jj_scanpos = xsp; - if (jj_3R_197()) { - jj_scanpos = xsp; - if (jj_3R_198()) { - return true; - } - } - } - } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case INTERPOLATION: + case IDENT: + declaration(); + break; + default: + jj_la1[55] = jj_gen; + ; + } + } + jj_consume_token(RBRACE); + label_41: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[56] = jj_gen; + break label_41; } - return false; + jj_consume_token(S); + } + } catch (ParseException e) { + reportError(getLocator(), e); + skipStatement(); + // reportWarningSkipText(getLocator(), skipStatement()); + + } finally { + if (start) { + documentHandler.endFontFace(); + } } + } - private boolean jj_3R_243() { - if (jj_scan_token(DIMEN)) { - return true; +/** + * @exception ParseException exception during the parse + */ + final public void atRuleDeclaration() throws ParseException { + Token n; + String ret; + n = jj_consume_token(ATKEYWORD); + ret=skipStatement(); + if ((ret != null) && (ret.charAt(0) == '@')) { + documentHandler.unrecognizedRule(ret); + } else { + reportWarningSkipText(getLocator(), ret); } - return false; - } + } + + final public void skipUnknownRule() throws ParseException { + Token n; + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case ATKEYWORD: + n = jj_consume_token(ATKEYWORD); + break; + case CDO: + n = jj_consume_token(CDO); + break; + case CHARSET_SYM: + n = jj_consume_token(CHARSET_SYM); + break; + case COMMA: + n = jj_consume_token(COMMA); + break; + case DASHMATCH: + n = jj_consume_token(DASHMATCH); + break; + case FONT_FACE_SYM: + n = jj_consume_token(FONT_FACE_SYM); + break; + case FUNCTION: + n = jj_consume_token(FUNCTION); + break; + case IMPORTANT_SYM: + n = jj_consume_token(IMPORTANT_SYM); + break; + case IMPORT_SYM: + n = jj_consume_token(IMPORT_SYM); + break; + case INCLUDES: + n = jj_consume_token(INCLUDES); + break; + case LBRACE: + n = jj_consume_token(LBRACE); + break; + case MEDIA_SYM: + n = jj_consume_token(MEDIA_SYM); + break; + case NONASCII: + n = jj_consume_token(NONASCII); + break; + case NUMBER: + n = jj_consume_token(NUMBER); + break; + case PAGE_SYM: + n = jj_consume_token(PAGE_SYM); + break; + case PERCENTAGE: + n = jj_consume_token(PERCENTAGE); + break; + case STRING: + n = jj_consume_token(STRING); + break; + case UNICODERANGE: + n = jj_consume_token(UNICODERANGE); + break; + case URL: + n = jj_consume_token(URL); + break; + case SEMICOLON: + n = jj_consume_token(SEMICOLON); + break; + case MINUS: + n = jj_consume_token(MINUS); + break; + case UNKNOWN: + n = jj_consume_token(UNKNOWN); + break; + default: + jj_la1[57] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + String ret; + Locator loc = getLocator(); + ret=skipStatement(); + if ((ret != null) && (n.image.charAt(0) == '@')) { + documentHandler.unrecognizedRule(ret); + } else { + reportWarningSkipText(loc, ret); + } + } + +/** + * @exception ParseException exception during the parse + */ + final public char combinator() throws ParseException { +char connector = ' '; + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case PLUS: + case PRECEDES: + case SIBLING: + connector = combinatorChar(); + break; + case S: + jj_consume_token(S); + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case PLUS: + case PRECEDES: + case SIBLING: + connector = combinatorChar(); + break; + default: + jj_la1[58] = jj_gen; + ; + } + break; + default: + jj_la1[59] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + {if (true) return connector;} + throw new Error("Missing return statement in function"); + } + +/**to refactor combinator and reuse in selector().*/ + final public char combinatorChar() throws ParseException { + Token t; + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case PLUS: + t = jj_consume_token(PLUS); + break; + case PRECEDES: + t = jj_consume_token(PRECEDES); + break; + case SIBLING: + t = jj_consume_token(SIBLING); + break; + default: + jj_la1[60] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + label_42: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[61] = jj_gen; + break label_42; + } + jj_consume_token(S); + } + {if (true) return t.image.charAt(0);} + throw new Error("Missing return statement in function"); + } + + final public void microsoftExtension() throws ParseException { + Token n; + String name = ""; + String value = ""; + // This is not really taking the syntax of filter rules into account + n = jj_consume_token(MICROSOFT_RULE); + label_43: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[62] = jj_gen; + break label_43; + } + jj_consume_token(S); + } + name = n.image; + jj_consume_token(COLON); + label_44: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case IDENT: + n = jj_consume_token(IDENT); + value += n.image; + break; + case NUMBER: + n = jj_consume_token(NUMBER); + value += n.image; + break; + case STRING: + n = jj_consume_token(STRING); + value += n.image; + break; + case COMMA: + n = jj_consume_token(COMMA); + value += n.image; + break; + case INTERPOLATION: + n = jj_consume_token(INTERPOLATION); + value += n.image; + break; + case COLON: + n = jj_consume_token(COLON); + value += n.image; + break; + case FUNCTION: + n = jj_consume_token(FUNCTION); + value += n.image; + break; + case RPARAN: + n = jj_consume_token(RPARAN); + value += n.image; + break; + case EQ: + n = jj_consume_token(EQ); + value += n.image; + break; + case DOT: + n = jj_consume_token(DOT); + value += n.image; + break; + case S: + n = jj_consume_token(S); + if(value.lastIndexOf(' ') != value.length()-1) + { value += n.image; } + break; + default: + jj_la1[63] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + case EQ: + case COMMA: + case DOT: + case RPARAN: + case COLON: + case INTERPOLATION: + case STRING: + case IDENT: + case NUMBER: + case FUNCTION: + ; + break; + default: + jj_la1[64] = jj_gen; + break label_44; + } + } + jj_consume_token(SEMICOLON); + label_45: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[65] = jj_gen; + break label_45; + } + jj_consume_token(S); + } + documentHandler.microsoftDirective(name, value); + } - private boolean jj_3R_251() { - if (jj_3R_216()) { - return true; +/** + * @exception ParseException exception during the parse + */ + final public String property() throws ParseException { + Token t;String s = ""; + label_46: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case IDENT: + t = jj_consume_token(IDENT); + s += t.image; + break; + case INTERPOLATION: + t = jj_consume_token(INTERPOLATION); + s += t.image; + break; + default: + jj_la1[66] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case INTERPOLATION: + case IDENT: + ; + break; + default: + jj_la1[67] = jj_gen; + break label_46; + } + } + label_47: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[68] = jj_gen; + break label_47; + } + jj_consume_token(S); + } + {if (true) return s;} + throw new Error("Missing return statement in function"); + } + + final public String variableName() throws ParseException { + Token n; + n = jj_consume_token(VARIABLE); + label_48: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[69] = jj_gen; + break label_48; + } + jj_consume_token(S); + } + {if (true) return convertIdent(n.image.substring(1));} + throw new Error("Missing return statement in function"); + } + + final public String functionName() throws ParseException { + Token n; + n = jj_consume_token(FUNCTION); + label_49: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[70] = jj_gen; + break label_49; + } + jj_consume_token(S); + } + {if (true) return convertIdent(n.image.substring(0, n.image.length()-1));} + throw new Error("Missing return statement in function"); + } + +/** + * @exception ParseException exception during the parse + */ + final public void styleRule() throws ParseException { + boolean start = false; + ArrayList l = null; + Token save; + Locator loc; + try { + l = selectorList(); + save = token; + jj_consume_token(LBRACE); + label_50: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[71] = jj_gen; + break label_50; + } + jj_consume_token(S); + } + start = true; + documentHandler.startSelector(l); + label_51: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case PLUS: + case PRECEDES: + case SIBLING: + case LBRACKET: + case ANY: + case PARENT: + case DOT: + case COLON: + case INTERPOLATION: + case INCLUDE_SYM: + case DEBUG_SYM: + case WARN_SYM: + case EACH_SYM: + case IF_SYM: + case EXTEND_SYM: + case CONTENT_SYM: + case MICROSOFT_RULE: + case IDENT: + case VARIABLE: + case HASH: + case MEDIA_SYM: + case KEY_FRAME_SYM: + ; + break; + default: + jj_la1[72] = jj_gen; + break label_51; } - if (jj_3R_180()) { - return true; + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case PLUS: + case PRECEDES: + case SIBLING: + case LBRACKET: + case ANY: + case PARENT: + case DOT: + case COLON: + case INTERPOLATION: + case INCLUDE_SYM: + case DEBUG_SYM: + case WARN_SYM: + case EXTEND_SYM: + case CONTENT_SYM: + case IDENT: + case VARIABLE: + case HASH: + case MEDIA_SYM: + case KEY_FRAME_SYM: + ifContentStatement(); + break; + case EACH_SYM: + case IF_SYM: + controlDirective(); + break; + case MICROSOFT_RULE: + microsoftExtension(); + break; + default: + jj_la1[73] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + } + jj_consume_token(RBRACE); + label_52: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[74] = jj_gen; + break label_52; + } + jj_consume_token(S); + } + } catch (ThrowedParseException e) { + if (errorHandler != null) { + LocatorImpl li = new LocatorImpl(this, + e.e.currentToken.next.beginLine, + e.e.currentToken.next.beginColumn-1); + reportError(li, e.e); + } + } catch (ParseException e) { + reportError(getLocator(), e); + skipStatement(); + // reportWarningSkipText(getLocator(), skipStatement()); + + } catch (TokenMgrError e) { + reportWarningSkipText(getLocator(), skipStatement()); + } finally { + if (start) { + documentHandler.endSelector(); + } + } + } + + final public ArrayList selectorList() throws ParseException { + ArrayList selectors = new ArrayList(); + String selector; + selector = selector(); + label_53: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case COMMA: + ; + break; + default: + jj_la1[75] = jj_gen; + break label_53; + } + jj_consume_token(COMMA); + label_54: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[76] = jj_gen; + break label_54; } - return false; + jj_consume_token(S); + } + selectors.add(selector); + selector = selector(); } + selectors.add(selector); + {if (true) return selectors;} + throw new Error("Missing return statement in function"); + } - private boolean jj_3R_242() { - if (jj_scan_token(KHZ)) { - return true; - } - return false; - } +/** + * @exception ParseException exception during the parse + */ + final public String selector() throws ParseException { + String selector = null; + char comb; + try { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case LBRACKET: + case ANY: + case PARENT: + case DOT: + case COLON: + case INTERPOLATION: + case IDENT: + case HASH: + selector = simple_selector(null, ' '); + break; + case PLUS: + case PRECEDES: + case SIBLING: + comb = combinatorChar(); + selector = simple_selector(selector, comb); + break; + default: + jj_la1[77] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + label_55: + while (true) { + if (jj_2_2(2)) { + ; + } else { + break label_55; + } + comb = combinator(); + selector = simple_selector(selector, comb); + } + label_56: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[78] = jj_gen; + break label_56; + } + jj_consume_token(S); + } + {if (true) return selector;} + } catch (ParseException e) { + /* + Token t = getToken(1); + StringBuffer s = new StringBuffer(); + s.append(getToken(0).image); + while ((t.kind != COMMA) && (t.kind != SEMICOLON) + && (t.kind != LBRACE) && (t.kind != EOF)) { + s.append(t.image); + getNextToken(); + t = getToken(1); + } + reportWarningSkipText(getLocator(), s.toString()); + */ + Token t = getToken(1); + while ((t.kind != COMMA) && (t.kind != SEMICOLON) + && (t.kind != LBRACE) && (t.kind != EOF)) { + getNextToken(); + t = getToken(1); + } - private boolean jj_3R_241() { - if (jj_scan_token(HZ)) { - return true; - } - return false; + {if (true) throw new ThrowedParseException(e);} } + throw new Error("Missing return statement in function"); + } - private boolean jj_3R_240() { - if (jj_scan_token(MS)) { - return true; +/** + * @exception ParseException exception during the parse + */ + final public String simple_selector(String selector, char comb) throws ParseException { + String simple_current = null; + String cond = null; + + pseudoElt = null; + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case ANY: + case PARENT: + case INTERPOLATION: + case IDENT: + simple_current = element_name(); + label_57: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case LBRACKET: + case DOT: + case COLON: + case HASH: + ; + break; + default: + jj_la1[79] = jj_gen; + break label_57; } - return false; - } - - private boolean jj_3R_239() { - if (jj_scan_token(SECOND)) { - return true; + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case HASH: + cond = hash(cond); + break; + case DOT: + cond = _class(cond); + break; + case LBRACKET: + cond = attrib(cond); + break; + case COLON: + cond = pseudo(cond); + break; + default: + jj_la1[80] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + } + break; + case HASH: + cond = hash(cond); + label_58: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case LBRACKET: + case DOT: + case COLON: + ; + break; + default: + jj_la1[81] = jj_gen; + break label_58; } - return false; - } - - private boolean jj_3R_238() { - if (jj_scan_token(GRAD)) { - return true; + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case DOT: + cond = _class(cond); + break; + case LBRACKET: + cond = attrib(cond); + break; + case COLON: + cond = pseudo(cond); + break; + default: + jj_la1[82] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + } + break; + case DOT: + cond = _class(cond); + label_59: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case LBRACKET: + case DOT: + case COLON: + case HASH: + ; + break; + default: + jj_la1[83] = jj_gen; + break label_59; } - return false; - } - - private boolean jj_3R_237() { - if (jj_scan_token(RAD)) { - return true; + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case HASH: + cond = hash(cond); + break; + case DOT: + cond = _class(cond); + break; + case LBRACKET: + cond = attrib(cond); + break; + case COLON: + cond = pseudo(cond); + break; + default: + jj_la1[84] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + } + break; + case COLON: + cond = pseudo(cond); + label_60: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case LBRACKET: + case DOT: + case COLON: + case HASH: + ; + break; + default: + jj_la1[85] = jj_gen; + break label_60; } - return false; - } - - private boolean jj_3R_236() { - if (jj_scan_token(DEG)) { - return true; + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case HASH: + cond = hash(cond); + break; + case DOT: + cond = _class(cond); + break; + case LBRACKET: + cond = attrib(cond); + break; + case COLON: + cond = pseudo(cond); + break; + default: + jj_la1[86] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + } + break; + case LBRACKET: + cond = attrib(cond); + label_61: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case LBRACKET: + case DOT: + case COLON: + case HASH: + ; + break; + default: + jj_la1[87] = jj_gen; + break label_61; } - return false; - } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case HASH: + cond = hash(cond); + break; + case DOT: + cond = _class(cond); + break; + case LBRACKET: + cond = attrib(cond); + break; + case COLON: + cond = pseudo(cond); + break; + default: + jj_la1[88] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + } + break; + default: + jj_la1[89] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + if (simple_current == null) { + simple_current = ""; + } + if (cond != null) { + simple_current = simple_current + cond; + } + StringBuilder builder = new StringBuilder(); + switch (comb) { + case ' ': + if(selector!=null){ + builder.append(selector).append(" "); + } + break; + case '+': + case '>': + case '~': + if(selector!=null){ + builder.append(selector).append(" "); + } + builder.append(comb).append(" "); + break; + default: + {if (true) throw new ParseException("invalid state. send a bug report");} + } + builder.append(simple_current); + selector = builder.toString(); - private boolean jj_3R_235() { - if (jj_scan_token(EXS)) { - return true; - } - return false; - } + if (pseudoElt != null) { + selector = selector + pseudoElt; + } + {if (true) return selector;} + throw new Error("Missing return statement in function"); + } - private boolean jj_3R_234() { - if (jj_scan_token(REM)) { - return true; - } - return false; - } +/** + * @exception ParseException exception during the parse + */ + final public String _class(String pred) throws ParseException { + Token t; +String s = "."; + jj_consume_token(DOT); + label_62: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case IDENT: + t = jj_consume_token(IDENT); + s += t.image; + break; + case INTERPOLATION: + t = jj_consume_token(INTERPOLATION); + s += t.image; + break; + default: + jj_la1[90] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case INTERPOLATION: + case IDENT: + ; + break; + default: + jj_la1[91] = jj_gen; + break label_62; + } + } + if (pred == null) { + {if (true) return s;} + } else { + {if (true) return pred + s;} + } + throw new Error("Missing return statement in function"); + } - private boolean jj_3R_233() { - if (jj_scan_token(LEM)) { - return true; +/** + * @exception ParseException exception during the parse + */ + final public String element_name() throws ParseException { + Token t; String s = ""; + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case INTERPOLATION: + case IDENT: + label_63: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case IDENT: + t = jj_consume_token(IDENT); + s += t.image; + break; + case INTERPOLATION: + t = jj_consume_token(INTERPOLATION); + s += t.image; + break; + default: + jj_la1[92] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); } - return false; - } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case INTERPOLATION: + case IDENT: + ; + break; + default: + jj_la1[93] = jj_gen; + break label_63; + } + } + {if (true) return s;} + break; + case ANY: + jj_consume_token(ANY); + {if (true) return "*";} + break; + case PARENT: + jj_consume_token(PARENT); + {if (true) return "&";} + break; + default: + jj_la1[94] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + throw new Error("Missing return statement in function"); + } - private boolean jj_3R_232() { - if (jj_scan_token(EMS)) { - return true; - } - return false; - } +/** + * @exception ParseException exception during the parse + */ + final public String attrib(String pred) throws ParseException { + int cases = 0; + Token att = null; + Token val = null; + String attValue = null; + jj_consume_token(LBRACKET); + label_64: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[95] = jj_gen; + break label_64; + } + jj_consume_token(S); + } + att = jj_consume_token(IDENT); + label_65: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[96] = jj_gen; + break label_65; + } + jj_consume_token(S); + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case DASHMATCH: + case CARETMATCH: + case DOLLARMATCH: + case STARMATCH: + case INCLUDES: + case EQ: + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case EQ: + jj_consume_token(EQ); + cases = 1; + break; + case INCLUDES: + jj_consume_token(INCLUDES); + cases = 2; + break; + case DASHMATCH: + jj_consume_token(DASHMATCH); + cases = 3; + break; + case CARETMATCH: + jj_consume_token(CARETMATCH); + cases = 4; + break; + case DOLLARMATCH: + jj_consume_token(DOLLARMATCH); + cases = 5; + break; + case STARMATCH: + jj_consume_token(STARMATCH); + cases = 6; + break; + default: + jj_la1[97] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + label_66: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[98] = jj_gen; + break label_66; + } + jj_consume_token(S); + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case IDENT: + val = jj_consume_token(IDENT); + attValue = val.image; + break; + case STRING: + val = jj_consume_token(STRING); + attValue = val.image; + break; + default: + jj_la1[99] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + label_67: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[100] = jj_gen; + break label_67; + } + jj_consume_token(S); + } + break; + default: + jj_la1[101] = jj_gen; + ; + } + jj_consume_token(RBRACKET); + String name = convertIdent(att.image); + String c; + switch (cases) { + case 0: + c = name; + break; + case 1: + c = name + "=" + attValue; + break; + case 2: + c = name + "~=" + attValue; + break; + case 3: + c = name + "|=" +attValue; + break; + case 4: + c = name + "^=" +attValue; + break; + case 5: + c = name + "$=" +attValue; + break; + case 6: + c = name + "*=" +attValue; + break; + default: + // never reached. + c = null; + } + c = "[" + c + "]"; + if (pred == null) { + {if (true) return c;} + } else { + {if (true) return pred + c;} + } + throw new Error("Missing return statement in function"); + } - private boolean jj_3_2() { - if (jj_3R_179()) { - return true; - } - if (jj_3R_180()) { - return true; - } - return false; - } +/** + * @exception ParseException exception during the parse + */ + final public String pseudo(String pred) throws ParseException { + Token n; +Token param; +String d; +boolean isPseudoElement = false; + jj_consume_token(COLON); + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case COLON: + jj_consume_token(COLON); + isPseudoElement=true; + break; + default: + jj_la1[102] = jj_gen; + ; + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case IDENT: + n = jj_consume_token(IDENT); + String s = ":" + convertIdent(n.image); + if (isPseudoElement) { + if (pseudoElt != null) { + {if (true) throw new CSSParseException("duplicate pseudo element definition " + + s, getLocator());} + } else { + pseudoElt = ":"+s; + {if (true) return pred;} + } + } else { + String c = s; + if (pred == null) { + {if (true) return c;} + } else { + {if (true) return pred + c;} + } + } + break; + case FUNCTION: + n = jj_consume_token(FUNCTION); + label_68: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[103] = jj_gen; + break label_68; + } + jj_consume_token(S); + } + d = skipStatementUntilRightParan(); + jj_consume_token(RPARAN); + // accept anything between function and a right parenthesis + String f = convertIdent(n.image); + String colons = isPseudoElement ? "::" : ":"; + String pseudofn = colons + f + d + ")"; + if (pred == null) { + {if (true) return pseudofn;} + } else { + {if (true) return pred + pseudofn;} + } + break; + default: + jj_la1[104] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + throw new Error("Missing return statement in function"); + } - private boolean jj_3R_231() { - if (jj_scan_token(PX)) { - return true; +/** + * @exception ParseException exception during the parse + */ + final public String hash(String pred) throws ParseException { + Token n; + n = jj_consume_token(HASH); + String d = n.image; + if (pred == null) { + {if (true) return d;} + } else { + {if (true) return pred + d;} + } + throw new Error("Missing return statement in function"); + } + + final public void variable() throws ParseException { + String name; + LexicalUnitImpl exp = null; + boolean guarded = false; + String raw; + try { + name = variableName(); + jj_consume_token(COLON); + label_69: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[105] = jj_gen; + break label_69; + } + jj_consume_token(S); + } + exp = expr(); + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case GUARDED_SYM: + guarded = guarded(); + break; + default: + jj_la1[106] = jj_gen; + ; + } + label_70: + while (true) { + jj_consume_token(SEMICOLON); + label_71: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[107] = jj_gen; + break label_71; + } + jj_consume_token(S); + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case SEMICOLON: + ; + break; + default: + jj_la1[108] = jj_gen; + break label_70; } - return false; + } + documentHandler.variable(name, exp, guarded); + } catch (JumpException e) { + skipAfterExpression(); + } catch (NumberFormatException e) { + if (errorHandler != null) { + errorHandler.error(new CSSParseException("Invalid number " + + e.getMessage(), + getLocator(), + e)); + } + reportWarningSkipText(getLocator(), skipAfterExpression()); + } catch (ParseException e) { + if (errorHandler != null) { + if (e.currentToken != null) { + LocatorImpl li = new LocatorImpl(this, + e.currentToken.next.beginLine, + e.currentToken.next.beginColumn-1); + reportError(li, e); + } else { + reportError(getLocator(), e); + } + skipAfterExpression(); + } else { + skipAfterExpression(); + } } - - private boolean jj_3_1() { - if (jj_3R_178()) { - return true; + } + + final public void controlDirective() throws ParseException { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case IF_SYM: + ifDirective(); + break; + case EACH_SYM: + eachDirective(); + break; + default: + jj_la1[109] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + } + + final public void ifContentStatement() throws ParseException { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case CONTENT_SYM: + contentDirective(); + break; + case INCLUDE_SYM: + includeDirective(); + break; + case MEDIA_SYM: + media(); + break; + case EXTEND_SYM: + extendDirective(); + break; + case PLUS: + case PRECEDES: + case SIBLING: + case LBRACKET: + case ANY: + case PARENT: + case DOT: + case COLON: + case INTERPOLATION: + case DEBUG_SYM: + case WARN_SYM: + case IDENT: + case HASH: + styleRuleOrDeclarationOrNestedProperties(); + break; + case KEY_FRAME_SYM: + keyframes(); + break; + default: + jj_la1[110] = jj_gen; + if (jj_2_3(2147483647)) { + variable(); + } else { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case VARIABLE: + listModifyDirective(); + break; + default: + jj_la1[111] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + } + } + } + + final public void ifDirective() throws ParseException { + Token n = null; + String s = null; + String evaluator = ""; + jj_consume_token(IF_SYM); + label_72: + while (true) { + s = booleanExpressionToken(); + evaluator += s; + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + case EQ: + case PLUS: + case MINUS: + case PRECEDES: + case SUCCEEDS: + case DIV: + case ANY: + case LPARAN: + case RPARAN: + case COMPARE: + case OR: + case AND: + case NOT_EQ: + case IDENT: + case NUMBER: + case VARIABLE: + case CONTAINS: + ; + break; + default: + jj_la1[112] = jj_gen; + break label_72; + } + } + jj_consume_token(LBRACE); + label_73: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[113] = jj_gen; + break label_73; + } + jj_consume_token(S); + } + documentHandler.startIfElseDirective(); + documentHandler.ifDirective(evaluator); + label_74: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case PLUS: + case PRECEDES: + case SIBLING: + case LBRACKET: + case ANY: + case PARENT: + case DOT: + case COLON: + case INTERPOLATION: + case INCLUDE_SYM: + case DEBUG_SYM: + case WARN_SYM: + case EXTEND_SYM: + case CONTENT_SYM: + case IDENT: + case VARIABLE: + case HASH: + case MEDIA_SYM: + case KEY_FRAME_SYM: + ; + break; + default: + jj_la1[114] = jj_gen; + break label_74; + } + ifContentStatement(); + } + jj_consume_token(RBRACE); + label_75: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[115] = jj_gen; + break label_75; + } + jj_consume_token(S); + } + label_76: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case ELSE_SYM: + ; + break; + default: + jj_la1[116] = jj_gen; + break label_76; + } + elseDirective(); + } + documentHandler.endIfElseDirective(); + } + + final public void elseDirective() throws ParseException { + String evaluator = ""; + Token n = null; + String s = null; + jj_consume_token(ELSE_SYM); + label_77: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[117] = jj_gen; + break label_77; + } + jj_consume_token(S); + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case IF: + jj_consume_token(IF); + label_78: + while (true) { + s = booleanExpressionToken(); + evaluator += s; + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + case EQ: + case PLUS: + case MINUS: + case PRECEDES: + case SUCCEEDS: + case DIV: + case ANY: + case LPARAN: + case RPARAN: + case COMPARE: + case OR: + case AND: + case NOT_EQ: + case IDENT: + case NUMBER: + case VARIABLE: + case CONTAINS: + ; + break; + default: + jj_la1[118] = jj_gen; + break label_78; + } + } + break; + default: + jj_la1[119] = jj_gen; + ; + } + jj_consume_token(LBRACE); + label_79: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[120] = jj_gen; + break label_79; + } + jj_consume_token(S); + } + if(!evaluator.trim().equals("")){ documentHandler.ifDirective(evaluator); } + else{ documentHandler.elseDirective(); } + label_80: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case PLUS: + case PRECEDES: + case SIBLING: + case LBRACKET: + case ANY: + case PARENT: + case DOT: + case COLON: + case INTERPOLATION: + case INCLUDE_SYM: + case DEBUG_SYM: + case WARN_SYM: + case EXTEND_SYM: + case CONTENT_SYM: + case IDENT: + case VARIABLE: + case HASH: + case MEDIA_SYM: + case KEY_FRAME_SYM: + ; + break; + default: + jj_la1[121] = jj_gen; + break label_80; + } + ifContentStatement(); + } + jj_consume_token(RBRACE); + label_81: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[122] = jj_gen; + break label_81; + } + jj_consume_token(S); + } + } + + final public String booleanExpressionToken() throws ParseException { + Token n = null; + String s = null; + if (jj_2_4(2147483647)) { + s = containsDirective(); + } else { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case VARIABLE: + n = jj_consume_token(VARIABLE); + break; + case IDENT: + n = jj_consume_token(IDENT); + break; + case NUMBER: + n = jj_consume_token(NUMBER); + break; + case LPARAN: + n = jj_consume_token(LPARAN); + break; + case RPARAN: + n = jj_consume_token(RPARAN); + break; + case PLUS: + n = jj_consume_token(PLUS); + break; + case MINUS: + n = jj_consume_token(MINUS); + break; + case DIV: + n = jj_consume_token(DIV); + break; + case ANY: + n = jj_consume_token(ANY); + break; + case COMPARE: + n = jj_consume_token(COMPARE); + break; + case EQ: + n = jj_consume_token(EQ); + break; + case PRECEDES: + n = jj_consume_token(PRECEDES); + break; + case SUCCEEDS: + n = jj_consume_token(SUCCEEDS); + break; + case OR: + n = jj_consume_token(OR); + break; + case AND: + n = jj_consume_token(AND); + break; + case S: + n = jj_consume_token(S); + break; + case NOT_EQ: + n = jj_consume_token(NOT_EQ); + break; + default: + jj_la1[123] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + } + if(n!=null){{if (true) return n.image;}} + else{{if (true) return s;}} + throw new Error("Missing return statement in function"); + } + + final public void eachDirective() throws ParseException { + Token var; + ArrayList list = null; + String listVariable = null; + jj_consume_token(EACH_SYM); + label_82: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[124] = jj_gen; + break label_82; + } + jj_consume_token(S); + } + var = jj_consume_token(VARIABLE); + label_83: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[125] = jj_gen; + break label_83; + } + jj_consume_token(S); + } + jj_consume_token(EACH_IN); + label_84: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[126] = jj_gen; + break label_84; + } + jj_consume_token(S); + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case IDENT: + list = stringList(); + documentHandler.startEachDirective(var.image, list); + break; + case VARIABLE: + listVariable = variableName(); + documentHandler.startEachDirective(var.image, listVariable); + break; + default: + jj_la1[127] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + jj_consume_token(LBRACE); + label_85: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[128] = jj_gen; + break label_85; + } + jj_consume_token(S); + } + label_86: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case PLUS: + case PRECEDES: + case SIBLING: + case LBRACKET: + case ANY: + case PARENT: + case DOT: + case COLON: + case INTERPOLATION: + case INCLUDE_SYM: + case DEBUG_SYM: + case WARN_SYM: + case EXTEND_SYM: + case CONTENT_SYM: + case IDENT: + case VARIABLE: + case HASH: + case MEDIA_SYM: + case KEY_FRAME_SYM: + ; + break; + default: + jj_la1[129] = jj_gen; + break label_86; + } + ifContentStatement(); + } + jj_consume_token(RBRACE); + label_87: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[130] = jj_gen; + break label_87; + } + jj_consume_token(S); + } + documentHandler.endEachDirective(); + } + + final public ArrayList stringList() throws ParseException { + ArrayList strings = new ArrayList(); + Token input; + input = jj_consume_token(IDENT); + label_88: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[131] = jj_gen; + break label_88; + } + jj_consume_token(S); + } + strings.add(input.image); + label_89: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case COMMA: + ; + break; + default: + jj_la1[132] = jj_gen; + break label_89; + } + jj_consume_token(COMMA); + label_90: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[133] = jj_gen; + break label_90; + } + jj_consume_token(S); + } + input = jj_consume_token(IDENT); + strings.add(input.image); + label_91: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[134] = jj_gen; + break label_91; + } + jj_consume_token(S); + } + } + {if (true) return strings;} + throw new Error("Missing return statement in function"); + } + + final public void mixinDirective() throws ParseException { + String name; + ArrayList args = null; + String body; + jj_consume_token(MIXIN_SYM); + label_92: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[135] = jj_gen; + break label_92; + } + jj_consume_token(S); + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case INTERPOLATION: + case IDENT: + name = property(); + break; + case FUNCTION: + name = functionName(); + args = arglist(); + jj_consume_token(RPARAN); + label_93: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[136] = jj_gen; + break label_93; + } + jj_consume_token(S); + } + break; + default: + jj_la1[137] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + jj_consume_token(LBRACE); + label_94: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[138] = jj_gen; + break label_94; + } + jj_consume_token(S); + } + documentHandler.startMixinDirective(name, args); + label_95: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case PLUS: + case PRECEDES: + case SIBLING: + case LBRACKET: + case ANY: + case PARENT: + case DOT: + case COLON: + case INTERPOLATION: + case INCLUDE_SYM: + case DEBUG_SYM: + case WARN_SYM: + case EACH_SYM: + case IF_SYM: + case EXTEND_SYM: + case CONTENT_SYM: + case IDENT: + case VARIABLE: + case HASH: + case MEDIA_SYM: + case PAGE_SYM: + case FONT_FACE_SYM: + case KEY_FRAME_SYM: + ; + break; + default: + jj_la1[139] = jj_gen; + break label_95; + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case PLUS: + case PRECEDES: + case SIBLING: + case LBRACKET: + case ANY: + case PARENT: + case DOT: + case COLON: + case INTERPOLATION: + case INCLUDE_SYM: + case DEBUG_SYM: + case WARN_SYM: + case EXTEND_SYM: + case CONTENT_SYM: + case IDENT: + case VARIABLE: + case HASH: + case MEDIA_SYM: + case KEY_FRAME_SYM: + ifContentStatement(); + break; + case EACH_SYM: + case IF_SYM: + controlDirective(); + break; + case FONT_FACE_SYM: + fontFace(); + break; + case PAGE_SYM: + page(); + break; + default: + jj_la1[140] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + } + jj_consume_token(RBRACE); + label_96: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[141] = jj_gen; + break label_96; + } + jj_consume_token(S); + } + documentHandler.endMixinDirective(name, args); + } + + final public ArrayList arglist() throws ParseException { + ArrayList args = new ArrayList(); + VariableNode arg; + boolean hasNonOptionalArgument = false; + arg = mixinArg(); + label_97: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case COMMA: + ; + break; + default: + jj_la1[142] = jj_gen; + break label_97; + } + jj_consume_token(COMMA); + label_98: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[143] = jj_gen; + break label_98; } - return false; + jj_consume_token(S); + } + hasNonOptionalArgument = checkMixinForNonOptionalArguments(arg, hasNonOptionalArgument); args.add(arg); + arg = mixinArg(); } + hasNonOptionalArgument = checkMixinForNonOptionalArguments(arg, hasNonOptionalArgument); args.add(arg); + {if (true) return args;} + throw new Error("Missing return statement in function"); + } - private boolean jj_3R_230() { - if (jj_scan_token(IN)) { - return true; - } - return false; - } + boolean checkMixinForNonOptionalArguments(VariableNode arg, boolean hasNonOptionalArguments) throws ParseException { + boolean currentArgHasArguments = arg.getExpr() != null && arg.getExpr().getLexicalUnitType() == LexicalUnitImpl.SCSS_VARIABLE && arg.getExpr().getNextLexicalUnit() != null; - private boolean jj_3R_203() { - if (jj_scan_token(COMMA)) { - return true; + if(currentArgHasArguments) + { + if(hasNonOptionalArguments) + { + throw new ParseException("Sass Error: Required argument $"+ arg.getName() +" must come before any optional arguments."); + } + return hasNonOptionalArguments; + }else + { + return true; + } + } + + final public VariableNode mixinArg() throws ParseException { + String name; + Token variable = null; + LexicalUnitImpl first = null; + LexicalUnitImpl prev = null; + LexicalUnitImpl next = null; + name = variableName(); + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case COLON: + case VARIABLE: + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case COLON: + jj_consume_token(COLON); + label_99: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[144] = jj_gen; + break label_99; + } + jj_consume_token(S); } - Token xsp; + first = nonVariableTerm(null); + prev = first; + label_100: while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; + if (jj_2_5(3)) { + ; + } else { + break label_100; + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case COMMA: + jj_consume_token(COMMA); + label_101: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; break; + default: + jj_la1[145] = jj_gen; + break label_101; + } + jj_consume_token(S); } - } - if (jj_3R_202()) { - return true; - } - return false; - } - - private boolean jj_3R_250() { - if (jj_3R_180()) { - return true; - } - return false; - } - - private boolean jj_3R_229() { - if (jj_scan_token(PC)) { - return true; - } - return false; - } - - private boolean jj_3R_228() { - if (jj_scan_token(MM)) { - return true; - } - return false; + break; + default: + jj_la1[146] = jj_gen; + ; + } + prev = nonVariableTerm(prev); + } + break; + case VARIABLE: + variable = jj_consume_token(VARIABLE); + first = LexicalUnitImpl.createVariable(token.beginLine, token.beginColumn, + prev, variable.image); + break; + default: + jj_la1[147] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + break; + default: + jj_la1[148] = jj_gen; + ; } - - private boolean jj_3R_202() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_250()) { - jj_scanpos = xsp; - if (jj_3R_251()) { - return true; - } - } + VariableNode arg = new VariableNode(name, first, false); + {if (true) return arg;} + throw new Error("Missing return statement in function"); + } + + final public ArrayList argValuelist() throws ParseException { + ArrayList args = new ArrayList(); + LexicalUnitImpl first = null; + LexicalUnitImpl next = null; + LexicalUnitImpl prev = null; + first = term(null); + args.add(first); prev = first; + label_102: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case PLUS: + case MINUS: + case DOT: + case COLON: + case STRING: + case IDENT: + case NUMBER: + case URL: + case VARIABLE: + case PERCENTAGE: + case PT: + case MM: + case CM: + case PC: + case IN: + case PX: + case EMS: + case LEM: + case REM: + case EXS: + case DEG: + case RAD: + case GRAD: + case MS: + case SECOND: + case HZ: + case KHZ: + case DIMEN: + case HASH: + case UNICODERANGE: + case FUNCTION: + ; + break; + default: + jj_la1[149] = jj_gen; + break label_102; + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case COLON: + jj_consume_token(COLON); + label_103: while (true) { - xsp = jj_scanpos; - if (jj_3_2()) { - jj_scanpos = xsp; - break; - } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[150] = jj_gen; + break label_103; + } + jj_consume_token(S); + } + break; + default: + jj_la1[151] = jj_gen; + ; + } + next = term(prev); + prev.setNextLexicalUnit(next); prev = next; + } + label_104: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case COMMA: + ; + break; + default: + jj_la1[152] = jj_gen; + break label_104; + } + jj_consume_token(COMMA); + label_105: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[153] = jj_gen; + break label_105; + } + jj_consume_token(S); + } + first = term(null); + args.add(first); prev = first; + label_106: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case PLUS: + case MINUS: + case DOT: + case COLON: + case STRING: + case IDENT: + case NUMBER: + case URL: + case VARIABLE: + case PERCENTAGE: + case PT: + case MM: + case CM: + case PC: + case IN: + case PX: + case EMS: + case LEM: + case REM: + case EXS: + case DEG: + case RAD: + case GRAD: + case MS: + case SECOND: + case HZ: + case KHZ: + case DIMEN: + case HASH: + case UNICODERANGE: + case FUNCTION: + ; + break; + default: + jj_la1[154] = jj_gen; + break label_106; } - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case COLON: + jj_consume_token(COLON); + label_107: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[155] = jj_gen; + break label_107; } + jj_consume_token(S); + } + break; + default: + jj_la1[156] = jj_gen; + ; + } + next = term(prev); + prev.setNextLexicalUnit(next); prev = next; + } + } + {if (true) return args;} + throw new Error("Missing return statement in function"); + } + + final public void includeDirective() throws ParseException { + String name; + ArrayList args=null; + jj_consume_token(INCLUDE_SYM); + label_108: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[157] = jj_gen; + break label_108; + } + jj_consume_token(S); + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case INTERPOLATION: + case IDENT: + name = property(); + break; + case VARIABLE: + name = variableName(); + name = "$"+name; + break; + case FUNCTION: + name = functionName(); + args = argValuelist(); + jj_consume_token(RPARAN); + break; + default: + jj_la1[158] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case SEMICOLON: + label_109: + while (true) { + jj_consume_token(SEMICOLON); + label_110: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[159] = jj_gen; + break label_110; + } + jj_consume_token(S); } - return false; - } - - private boolean jj_3R_227() { - if (jj_scan_token(CM)) { - return true; - } - return false; - } - - private boolean jj_3R_226() { - if (jj_scan_token(PT)) { - return true; - } - return false; - } - - private boolean jj_3R_225() { - if (jj_scan_token(PERCENTAGE)) { - return true; + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case SEMICOLON: + ; + break; + default: + jj_la1[160] = jj_gen; + break label_109; } - return false; - } + } + documentHandler.includeDirective(name, args); + break; + case LBRACE: + jj_consume_token(LBRACE); + label_111: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[161] = jj_gen; + break label_111; + } + jj_consume_token(S); + } + documentHandler.startIncludeContentBlock(name); + label_112: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case PLUS: + case PRECEDES: + case SIBLING: + case LBRACKET: + case ANY: + case PARENT: + case DOT: + case COLON: + case INTERPOLATION: + case DEBUG_SYM: + case WARN_SYM: + case IDENT: + case HASH: + ; + break; + default: + jj_la1[162] = jj_gen; + break label_112; + } + styleRuleOrDeclarationOrNestedProperties(); + } + jj_consume_token(RBRACE); + label_113: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[163] = jj_gen; + break label_113; + } + jj_consume_token(S); + } + documentHandler.endIncludeContentBlock(); + break; + default: + jj_la1[164] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + } + + final public String interpolation() throws ParseException { + Token n; + n = jj_consume_token(INTERPOLATION); + {if (true) return n.image;} + throw new Error("Missing return statement in function"); + } + + final public void listModifyDirective() throws ParseException { + String list = null; + String remove = null; + String separator = null; + String variable = null; + Token n = null; + Token type = null; + //refactor, remove those 3 LOOKAHEAD(5). + n = jj_consume_token(VARIABLE); + variable = n.image; + label_114: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[165] = jj_gen; + break label_114; + } + jj_consume_token(S); + } + jj_consume_token(COLON); + label_115: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[166] = jj_gen; + break label_115; + } + jj_consume_token(S); + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case APPEND: + type = jj_consume_token(APPEND); + break; + case REMOVE: + type = jj_consume_token(REMOVE); + break; + case CONTAINS: + type = jj_consume_token(CONTAINS); + break; + default: + jj_la1[167] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + label_116: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[168] = jj_gen; + break label_116; + } + jj_consume_token(S); + } + list = listModifyDirectiveArgs(0); + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case RPARAN: + jj_consume_token(RPARAN); + break; + default: + jj_la1[169] = jj_gen; + ; + } + jj_consume_token(COMMA); + label_117: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[170] = jj_gen; + break label_117; + } + jj_consume_token(S); + } + remove = listModifyDirectiveArgs(1); + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case COMMA: + jj_consume_token(COMMA); + label_118: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[171] = jj_gen; + break label_118; + } + jj_consume_token(S); + } + n = jj_consume_token(IDENT); + separator = n.image; + label_119: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[172] = jj_gen; + break label_119; + } + jj_consume_token(S); + } + break; + default: + jj_la1[173] = jj_gen; + ; + } + jj_consume_token(RPARAN); + switch (type.kind) { + case APPEND: + documentHandler.appendDirective(variable,list,remove,separator); + break; + case REMOVE: + documentHandler.removeDirective(variable,list,remove,separator); + break; + case CONTAINS: + if(variable == null){ + variable = "$var_"+UUID.randomUUID(); + } + documentHandler.containsDirective(variable,list,remove,separator); + break; + default: + break; + } + label_120: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[174] = jj_gen; + break label_120; + } + jj_consume_token(S); + } + jj_consume_token(SEMICOLON); + label_121: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[175] = jj_gen; + break label_121; + } + jj_consume_token(S); + } + } - private boolean jj_3R_208() { - if (jj_3R_253()) { - return true; +/** + * @exception ParseException exception during the parse + */ + final public void appendDirective() throws ParseException { + String list = null; + String remove = null; + String separator = null; + String variable = null; + Token n = null; + n = jj_consume_token(VARIABLE); + variable = n.image; + label_122: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[176] = jj_gen; + break label_122; + } + jj_consume_token(S); + } + jj_consume_token(COLON); + label_123: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[177] = jj_gen; + break label_123; + } + jj_consume_token(S); + } + jj_consume_token(APPEND); + label_124: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[178] = jj_gen; + break label_124; + } + jj_consume_token(S); + } + list = listModifyDirectiveArgs(0); + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case RPARAN: + jj_consume_token(RPARAN); + break; + default: + jj_la1[179] = jj_gen; + ; + } + jj_consume_token(COMMA); + label_125: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[180] = jj_gen; + break label_125; + } + jj_consume_token(S); + } + remove = listModifyDirectiveArgs(1); + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case COMMA: + jj_consume_token(COMMA); + label_126: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[181] = jj_gen; + break label_126; + } + jj_consume_token(S); + } + n = jj_consume_token(IDENT); + separator = n.image; + label_127: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[182] = jj_gen; + break label_127; } - return false; + jj_consume_token(S); + } + break; + default: + jj_la1[183] = jj_gen; + ; } + jj_consume_token(RPARAN); + documentHandler.appendDirective(variable,list,remove,separator); + } - private boolean jj_3R_224() { - if (jj_scan_token(NUMBER)) { - return true; +/** + * @exception ParseException exception during the parse + */ + final public void removeDirective() throws ParseException { + String list = null; + String remove = null; + String separator = null; + String variable = null; + Token n = null; + n = jj_consume_token(VARIABLE); + variable = n.image; + label_128: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[184] = jj_gen; + break label_128; + } + jj_consume_token(S); + } + jj_consume_token(COLON); + label_129: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[185] = jj_gen; + break label_129; + } + jj_consume_token(S); + } + jj_consume_token(REMOVE); + label_130: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[186] = jj_gen; + break label_130; + } + jj_consume_token(S); + } + list = listModifyDirectiveArgs(0); + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case RPARAN: + jj_consume_token(RPARAN); + break; + default: + jj_la1[187] = jj_gen; + ; + } + jj_consume_token(COMMA); + label_131: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[188] = jj_gen; + break label_131; + } + jj_consume_token(S); + } + remove = listModifyDirectiveArgs(1); + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case COMMA: + jj_consume_token(COMMA); + label_132: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[189] = jj_gen; + break label_132; + } + jj_consume_token(S); + } + n = jj_consume_token(IDENT); + separator = n.image; + label_133: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[190] = jj_gen; + break label_133; } - return false; + jj_consume_token(S); + } + break; + default: + jj_la1[191] = jj_gen; + ; } + jj_consume_token(RPARAN); + documentHandler.removeDirective(variable,list,remove,separator); + } - private boolean jj_3R_223() { - if (jj_3R_257()) { - return true; - } - return false; - } +/** + * @exception ParseException exception during the parse + */ + final public String containsDirective() throws ParseException { + String list = null; + String remove = null; + String separator = null; + String variable = null; + Token n = null; + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case VARIABLE: + n = jj_consume_token(VARIABLE); + variable = n.image; + label_134: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[192] = jj_gen; + break label_134; + } + jj_consume_token(S); + } + jj_consume_token(COLON); + label_135: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[193] = jj_gen; + break label_135; + } + jj_consume_token(S); + } + break; + default: + jj_la1[194] = jj_gen; + ; + } + jj_consume_token(CONTAINS); + label_136: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[195] = jj_gen; + break label_136; + } + jj_consume_token(S); + } + list = listModifyDirectiveArgs(0); + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case RPARAN: + jj_consume_token(RPARAN); + break; + default: + jj_la1[196] = jj_gen; + ; + } + jj_consume_token(COMMA); + label_137: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[197] = jj_gen; + break label_137; + } + jj_consume_token(S); + } + remove = listModifyDirectiveArgs(1); + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case COMMA: + jj_consume_token(COMMA); + label_138: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[198] = jj_gen; + break label_138; + } + jj_consume_token(S); + } + n = jj_consume_token(IDENT); + separator = n.image; + label_139: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[199] = jj_gen; + break label_139; + } + jj_consume_token(S); + } + break; + default: + jj_la1[200] = jj_gen; + ; + } + jj_consume_token(RPARAN); + /* + *if it is not in the form like "$contains : contains($items, .v-button);" + *for example in @if, like "@if (contains(a b c, b))", then create a temp + *variable for contains(a b c, b); + */ + if(variable == null){ + variable = "$var_"+UUID.randomUUID(); + } + documentHandler.containsDirective(variable,list,remove,separator); + {if (true) return variable;} + throw new Error("Missing return statement in function"); + } + + String listModifyDirectiveArgs(int nest) throws ParseException { + String list = ""; + int nesting = nest; + Token t = null; - private boolean jj_3R_184() { - if (jj_3R_202()) { - return true; - } - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_203()) { - jj_scanpos = xsp; - break; - } - } - return false; - } - - private boolean jj_3R_200() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_223()) { - jj_scanpos = xsp; - } - xsp = jj_scanpos; - if (jj_3R_224()) { - jj_scanpos = xsp; - if (jj_3R_225()) { - jj_scanpos = xsp; - if (jj_3R_226()) { - jj_scanpos = xsp; - if (jj_3R_227()) { - jj_scanpos = xsp; - if (jj_3R_228()) { - jj_scanpos = xsp; - if (jj_3R_229()) { - jj_scanpos = xsp; - if (jj_3R_230()) { - jj_scanpos = xsp; - if (jj_3R_231()) { - jj_scanpos = xsp; - if (jj_3R_232()) { - jj_scanpos = xsp; - if (jj_3R_233()) { - jj_scanpos = xsp; - if (jj_3R_234()) { - jj_scanpos = xsp; - if (jj_3R_235()) { - jj_scanpos = xsp; - if (jj_3R_236()) { - jj_scanpos = xsp; - if (jj_3R_237()) { - jj_scanpos = xsp; - if (jj_3R_238()) { - jj_scanpos = xsp; - if (jj_3R_239()) { - jj_scanpos = xsp; - if (jj_3R_240()) { - jj_scanpos = xsp; - if (jj_3R_241()) { - jj_scanpos = xsp; - if (jj_3R_242()) { - jj_scanpos = xsp; - if (jj_3R_243()) { - jj_scanpos = xsp; - if (jj_3R_244()) { - return true; - } - } - } - } - } - } - } - } - } - } - } - } - } - } + while(true) + { + t = getToken(1); + String s = t.image; + if(t.kind == VARIABLE||t.kind == IDENT) + { + list += s; + }else if(s.toLowerCase().equals("auto")||s.toLowerCase().equals("space")||s.toLowerCase().equals("comma")) + { + int i = 2; + Token temp = getToken(i); + boolean isLast = true; + while(temp.kind != SEMICOLON) + { + if(temp.kind != RPARAN || temp.kind != S) + { + isLast = false; } - } + i++; + temp = getToken(i); } - } - } - } - } - return false; - } - - private boolean jj_3R_183() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_200()) { - jj_scanpos = xsp; - if (jj_3R_201()) { - return true; - } - } - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } - return false; - } - - private boolean jj_3R_260() { - if (jj_scan_token(HASH)) { - return true; - } - return false; - } - - private boolean jj_3_4() { - if (jj_3R_181()) { - return true; - } - return false; - } - - private boolean jj_3R_253() { - if (jj_3R_188()) { - return true; - } - return false; - } - - private boolean jj_3R_261() { - if (jj_scan_token(URL)) { - return true; - } - return false; - } - private boolean jj_3R_207() { - if (jj_3R_183()) { - return true; - } - return false; - } + if(isLast) + { + return list; + } + } + else if(t.kind == STRING) + { + list += s.substring(1,s.length()).substring(0,s.length()-2); - private boolean jj_3R_186() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_207()) { - jj_scanpos = xsp; - if (jj_3R_208()) { - return true; - } - } - return false; - } + }else if(t.kind == LPARAN) + { + nesting++; + if(nesting > nest+1) + { + throw new CSSParseException("Only one ( ) pair per parameter allowed", getLocator()); + } + }else if(t.kind == RPARAN) + { + nesting--; + if(nesting == 0) + { + return list; + } + } else if(t.kind == COMMA) + { + if(nesting == nest) + { + return list; + }else + { + list += ","; + } - private boolean jj_3R_264() { - if (jj_scan_token(INTERPOLATION)) { - return true; - } - return false; - } + }else if(t.kind == S) + { + list += " "; + } else if(t.kind == LBRACE) + { + throw new CSSParseException("Invalid token,'{' found", getLocator()); + } - private boolean jj_3_9() { - if (jj_3R_187()) { - return true; + getNextToken(); } - return false; - } + } + + final public Node returnDirective() throws ParseException { + String raw; + raw = skipStatement(); + {if (true) return null;} + throw new Error("Missing return statement in function"); + } + + final public void debuggingDirective() throws ParseException { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case DEBUG_SYM: + debugDirective(); + break; + case WARN_SYM: + warnDirective(); + break; + default: + jj_la1[201] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + } + + final public void debugDirective() throws ParseException { + jj_consume_token(DEBUG_SYM); + String content = skipStatementUntilSemiColon(); + // TODO should evaluate the content expression, call documentHandler.debugDirective() etc. + System.out.println(content); + label_140: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[202] = jj_gen; + break label_140; + } + jj_consume_token(S); + } + } + + final public void warnDirective() throws ParseException { + jj_consume_token(WARN_SYM); + String content = skipStatementUntilSemiColon(); + // TODO should evaluate the content expression, call documentHandler.warnDirective() etc. + System.err.println(content); + label_141: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[203] = jj_gen; + break label_141; + } + jj_consume_token(S); + } + } + + final public Node forDirective() throws ParseException { + String var; + String from; + String to; + boolean exclusive; + String body; + Token tok; + var = variableName(); + int[] toThrough = {TO, THROUGH}; + from = skipStatementUntil(toThrough); + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case TO: + tok = jj_consume_token(TO); + exclusive = true; + break; + case THROUGH: + tok = jj_consume_token(THROUGH); + exclusive = false; + break; + default: + jj_la1[204] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + to = skipStatementUntilLeftBrace(); + label_142: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[205] = jj_gen; + break label_142; + } + jj_consume_token(S); + } + body = skipStatement(); + {if (true) return documentHandler.forDirective(var, from, to, exclusive, body);} + throw new Error("Missing return statement in function"); + } + + final public Node whileDirective() throws ParseException { + String condition; + String body; + condition = skipStatementUntilLeftBrace(); + body = skipStatement(); + {if (true) return documentHandler.whileDirective(condition, body);} + throw new Error("Missing return statement in function"); + } + + final public void extendDirective() throws ParseException { + ArrayList list; + jj_consume_token(EXTEND_SYM); + label_143: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[206] = jj_gen; + break label_143; + } + jj_consume_token(S); + } + list = selectorList(); + label_144: + while (true) { + jj_consume_token(SEMICOLON); + label_145: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[207] = jj_gen; + break label_145; + } + jj_consume_token(S); + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case SEMICOLON: + ; + break; + default: + jj_la1[208] = jj_gen; + break label_144; + } + } + documentHandler.extendDirective(list); + } + + final public void contentDirective() throws ParseException { + jj_consume_token(CONTENT_SYM); + label_146: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[209] = jj_gen; + break label_146; + } + jj_consume_token(S); + } + label_147: + while (true) { + jj_consume_token(SEMICOLON); + label_148: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[210] = jj_gen; + break label_148; + } + jj_consume_token(S); + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case SEMICOLON: + ; + break; + default: + jj_la1[211] = jj_gen; + break label_147; + } + } + documentHandler.contentDirective(); + } + + Node importDirective() throws ParseException { + return null; + } + + Node charsetDirective() throws ParseException { + return null; + } + + Node mozDocumentDirective() throws ParseException { + return null; + } + + Node supportsDirective() throws ParseException { + return null; + } + + final public void nestedProperties() throws ParseException { + String name; +LexicalUnit exp; + name = property(); + jj_consume_token(COLON); + label_149: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[212] = jj_gen; + break label_149; + } + jj_consume_token(S); + } + jj_consume_token(LBRACE); + label_150: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[213] = jj_gen; + break label_150; + } + jj_consume_token(S); + } + documentHandler.startNestedProperties(name); + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case INTERPOLATION: + case IDENT: + declaration(); + break; + default: + jj_la1[214] = jj_gen; + ; + } + label_151: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case SEMICOLON: + ; + break; + default: + jj_la1[215] = jj_gen; + break label_151; + } + jj_consume_token(SEMICOLON); + label_152: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[216] = jj_gen; + break label_152; + } + jj_consume_token(S); + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case INTERPOLATION: + case IDENT: + declaration(); + break; + default: + jj_la1[217] = jj_gen; + ; + } + } + jj_consume_token(RBRACE); + documentHandler.endNestedProperties(name); + label_153: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[218] = jj_gen; + break label_153; + } + jj_consume_token(S); + } + } - private boolean jj_3_3() { - if (jj_3R_178()) { - return true; - } - return false; +/** + * @exception ParseException exception during the parse + */ + final public void styleRuleOrDeclarationOrNestedProperties() throws ParseException { + try { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case DEBUG_SYM: + case WARN_SYM: + debuggingDirective(); + break; + default: + jj_la1[219] = jj_gen; + if (jj_2_6(2147483647)) { + styleRule(); + } else if (jj_2_7(3)) { + declarationOrNestedProperties(); + } else { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case PLUS: + case PRECEDES: + case SIBLING: + case LBRACKET: + case ANY: + case PARENT: + case DOT: + case COLON: + case INTERPOLATION: + case IDENT: + case HASH: + styleRule(); + break; + default: + jj_la1[220] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + } + } + } catch (JumpException e) { + skipAfterExpression(); + // reportWarningSkipText(getLocator(), skipAfterExpression()); + + } catch (ParseException e) { + if (errorHandler != null) { + if (e.currentToken != null) { + LocatorImpl li = new LocatorImpl(this, + e.currentToken.next.beginLine, + e.currentToken.next.beginColumn-1); + reportError(li, e); + } else { + reportError(getLocator(), e); + } + skipAfterExpression(); + /* + LocatorImpl loc = (LocatorImpl) getLocator(); + loc.column--; + reportWarningSkipText(loc, skipAfterExpression()); + */ + } else { + skipAfterExpression(); + } } + } - private boolean jj_3R_267() { - if (jj_scan_token(PLUS)) { - return true; +/** + * @exception ParseException exception during the parse + */ + final public void declarationOrNestedProperties() throws ParseException { + boolean important = false; + String name; + LexicalUnitImpl exp; + Token save; + String comment = null; + try { + name = property(); + save = token; + jj_consume_token(COLON); + label_154: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[221] = jj_gen; + break label_154; + } + jj_consume_token(S); + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case PLUS: + case MINUS: + case DOT: + case STRING: + case IDENT: + case NUMBER: + case URL: + case VARIABLE: + case PERCENTAGE: + case PT: + case MM: + case CM: + case PC: + case IN: + case PX: + case EMS: + case LEM: + case REM: + case EXS: + case DEG: + case RAD: + case GRAD: + case MS: + case SECOND: + case HZ: + case KHZ: + case DIMEN: + case HASH: + case UNICODERANGE: + case FUNCTION: + exp = expr(); + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case IMPORTANT_SYM: + important = prio(); + break; + default: + jj_la1[222] = jj_gen; + ; + } + Token next = getToken(1); + if(next.kind == SEMICOLON || next.kind == RBRACE){ + while(next.kind == SEMICOLON){ + skipStatement(); + next = getToken(1); + } + if(token.specialToken!=null){ + documentHandler.property(name, exp, important, token.specialToken.image); + }else{ + documentHandler.property(name, exp, important, null); + } + } + break; + case LBRACE: + jj_consume_token(LBRACE); + label_155: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[223] = jj_gen; + break label_155; + } + jj_consume_token(S); + } + documentHandler.startNestedProperties(name); + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case INTERPOLATION: + case IDENT: + declaration(); + break; + default: + jj_la1[224] = jj_gen; + ; } - return false; - } - - private boolean jj_3R_257() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_266()) { - jj_scanpos = xsp; - if (jj_3R_267()) { - return true; + label_156: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case SEMICOLON: + ; + break; + default: + jj_la1[225] = jj_gen; + break label_156; + } + jj_consume_token(SEMICOLON); + label_157: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[226] = jj_gen; + break label_157; } + jj_consume_token(S); + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case INTERPOLATION: + case IDENT: + declaration(); + break; + default: + jj_la1[227] = jj_gen; + ; + } } - return false; + jj_consume_token(RBRACE); + label_158: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[228] = jj_gen; + break label_158; + } + jj_consume_token(S); + } + documentHandler.endNestedProperties(name); + break; + default: + jj_la1[229] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + } catch (JumpException e) { + skipAfterExpression(); + // reportWarningSkipText(getLocator(), skipAfterExpression()); + + } catch (NumberFormatException e) { + if (errorHandler != null) { + errorHandler.error(new CSSParseException("Invalid number " + + e.getMessage(), + getLocator(), + e)); + } + reportWarningSkipText(getLocator(), skipAfterExpression()); + } catch (ParseException e) { + if (errorHandler != null) { + if (e.currentToken != null) { + LocatorImpl li = new LocatorImpl(this, + e.currentToken.next.beginLine, + e.currentToken.next.beginColumn-1); + reportError(li, e); + } else { + reportError(getLocator(), e); + } + skipAfterExpression(); + /* + LocatorImpl loc = (LocatorImpl) getLocator(); + loc.column--; + reportWarningSkipText(loc, skipAfterExpression()); + */ + } else { + skipAfterExpression(); + } } + } - private boolean jj_3R_266() { - if (jj_scan_token(MINUS)) { - return true; - } - return false; - } +/** + * @exception ParseException exception during the parse + */ + final public void declaration() throws ParseException { + boolean important = false; + String name; + LexicalUnit exp; + Token save; + try { + name = property(); + save = token; + jj_consume_token(COLON); + label_159: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[230] = jj_gen; + break label_159; + } + jj_consume_token(S); + } + exp = expr(); + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case IMPORTANT_SYM: + important = prio(); + break; + default: + jj_la1[231] = jj_gen; + ; + } + documentHandler.property(name, exp, important); + } catch (JumpException e) { + skipAfterExpression(); + // reportWarningSkipText(getLocator(), skipAfterExpression()); + + } catch (NumberFormatException e) { + if (errorHandler != null) { + errorHandler.error(new CSSParseException("Invalid number " + + e.getMessage(), + getLocator(), + e)); + } + reportWarningSkipText(getLocator(), skipAfterExpression()); + } catch (ParseException e) { + if (errorHandler != null) { + if (e.currentToken != null) { + LocatorImpl li = new LocatorImpl(this, + e.currentToken.next.beginLine, + e.currentToken.next.beginColumn-1); + reportError(li, e); + } else { + reportError(getLocator(), e); + } + skipAfterExpression(); + /* + LocatorImpl loc = (LocatorImpl) getLocator(); + loc.column--; + reportWarningSkipText(loc, skipAfterExpression()); + */ + } else { + skipAfterExpression(); + } + } + } - private boolean jj_3R_262() { - if (jj_scan_token(UNICODERANGE)) { - return true; - } - return false; - } +/** + * @exception ParseException exception during the parse + */ + final public boolean prio() throws ParseException { + jj_consume_token(IMPORTANT_SYM); + label_160: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[232] = jj_gen; + break label_160; + } + jj_consume_token(S); + } + {if (true) return true;} + throw new Error("Missing return statement in function"); + } + + final public boolean guarded() throws ParseException { + jj_consume_token(GUARDED_SYM); + label_161: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[233] = jj_gen; + break label_161; + } + jj_consume_token(S); + } + {if (true) return true;} + throw new Error("Missing return statement in function"); + } - private boolean jj_3R_191() { - if (jj_scan_token(SEMICOLON)) { - return true; - } - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; - } - } - return false; - } +/** + * @exception ParseException exception during the parse + */ + final public LexicalUnitImpl operator(LexicalUnitImpl prev) throws ParseException { + Token n; + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case COMMA: + /* (comments copied from basic_arithmetics.scss) + *supports: + * 1. standard arithmetic operations (+, -, *, /, %) + * 2. / is treated as css operator, unless one of its operands is variable or there is another binary arithmetic operator + *limits: + * 1. cannot mix arithmetic and css operations, e.g. "margin: 1px + 3px 2px" will fail + * 2. space between add and minus operator and their following operand is mandatory. e.g. "1 + 2" is valid, "1+2" is not + * 3. parenthesis is not supported now. + */ + n = jj_consume_token(COMMA); + label_162: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[234] = jj_gen; + break label_162; + } + jj_consume_token(S); + } + {if (true) return LexicalUnitImpl.createComma(n.beginLine, + n.beginColumn, + prev);} + break; + case DIV: + n = jj_consume_token(DIV); + label_163: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[235] = jj_gen; + break label_163; + } + jj_consume_token(S); + } + {if (true) return LexicalUnitImpl.createSlash(n.beginLine, + n.beginColumn, + prev);} + break; + case ANY: + n = jj_consume_token(ANY); + label_164: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[236] = jj_gen; + break label_164; + } + jj_consume_token(S); + } + {if (true) return LexicalUnitImpl.createMultiply(n.beginLine, + n.beginColumn, + prev);} + break; + case MOD: + n = jj_consume_token(MOD); + label_165: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[237] = jj_gen; + break label_165; + } + jj_consume_token(S); + } + {if (true) return LexicalUnitImpl.createModulo(n.beginLine, + n.beginColumn, + prev);} + break; + case PLUS: + n = jj_consume_token(PLUS); + label_166: + while (true) { + jj_consume_token(S); + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[238] = jj_gen; + break label_166; + } + } + {if (true) return LexicalUnitImpl.createAdd(n.beginLine, + n.beginColumn, + prev);} + break; + case MINUS: + n = jj_consume_token(MINUS); + label_167: + while (true) { + jj_consume_token(S); + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[239] = jj_gen; + break label_167; + } + } + {if (true) return LexicalUnitImpl.createMinus(n.beginLine, + n.beginColumn, + prev);} + break; + default: + jj_la1[240] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + throw new Error("Missing return statement in function"); + } - private boolean jj_3_8() { - Token xsp; - xsp = jj_scanpos; - if (jj_3_9()) { - jj_scanpos = xsp; - } - if (jj_3R_186()) { - return true; - } - return false; - } +/** + * @exception ParseException exception during the parse + */ + final public LexicalUnitImpl expr() throws ParseException { + LexicalUnitImpl first, res; + char op; + first = term(null); + res = first; + label_168: + while (true) { + if (jj_2_8(2)) { + ; + } else { + break label_168; + } + if (jj_2_9(2)) { + res = operator(res); + } else { + ; + } + res = term(res); + } + {if (true) return first;} + throw new Error("Missing return statement in function"); + } - private boolean jj_3R_189() { - if (jj_3R_186()) { - return true; - } - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3_8()) { - jj_scanpos = xsp; - break; - } - } - return false; - } +/** + * @exception ParseException exception during the parse + */ + final public char unaryOperator() throws ParseException { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case MINUS: + jj_consume_token(MINUS); + {if (true) return '-';} + break; + case PLUS: + jj_consume_token(PLUS); + {if (true) return '+';} + break; + default: + jj_la1[241] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + throw new Error("Missing return statement in function"); + } - private boolean jj_3R_188() { - if (jj_scan_token(VARIABLE)) { - return true; - } - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_scan_token(1)) { - jj_scanpos = xsp; - break; +/** + * @exception ParseException exception during the parse + */ + final public LexicalUnitImpl term(LexicalUnitImpl prev) throws ParseException { + LexicalUnitImpl result = null; + Token n = null; + char op = ' '; + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case PLUS: + case MINUS: + case DOT: + case STRING: + case IDENT: + case NUMBER: + case URL: + case PERCENTAGE: + case PT: + case MM: + case CM: + case PC: + case IN: + case PX: + case EMS: + case LEM: + case REM: + case EXS: + case DEG: + case RAD: + case GRAD: + case MS: + case SECOND: + case HZ: + case KHZ: + case DIMEN: + case HASH: + case UNICODERANGE: + case FUNCTION: + result = nonVariableTerm(prev); + break; + case VARIABLE: + result = variableTerm(prev); + break; + default: + jj_la1[242] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + {if (true) return result;} + throw new Error("Missing return statement in function"); + } + + final public LexicalUnitImpl variableTerm(LexicalUnitImpl prev) throws ParseException { + LexicalUnitImpl result = null; + String varName = ""; + varName = variableName(); + result = LexicalUnitImpl.createVariable(token.beginLine, token.beginColumn, + prev, varName); {if (true) return result;} + throw new Error("Missing return statement in function"); + } + + final public LexicalUnitImpl nonVariableTerm(LexicalUnitImpl prev) throws ParseException { +LexicalUnitImpl result = null; + Token n = null; + char op = ' '; + String varName; + String s = ""; + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case PLUS: + case MINUS: + case NUMBER: + case PERCENTAGE: + case PT: + case MM: + case CM: + case PC: + case IN: + case PX: + case EMS: + case LEM: + case REM: + case EXS: + case DEG: + case RAD: + case GRAD: + case MS: + case SECOND: + case HZ: + case KHZ: + case DIMEN: + case FUNCTION: + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case PLUS: + case MINUS: + op = unaryOperator(); + break; + default: + jj_la1[243] = jj_gen; + ; + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case NUMBER: + n = jj_consume_token(NUMBER); + result = LexicalUnitImpl.createNumber(n.beginLine, n.beginColumn, + prev, number(op, n, 0)); + break; + case PERCENTAGE: + n = jj_consume_token(PERCENTAGE); + result = LexicalUnitImpl.createPercentage(n.beginLine, n.beginColumn, + prev, number(op, n, 1)); + break; + case PT: + n = jj_consume_token(PT); + result = LexicalUnitImpl.createPT(n.beginLine, n.beginColumn, + prev, number(op, n, 2)); + break; + case CM: + n = jj_consume_token(CM); + result = LexicalUnitImpl.createCM(n.beginLine, n.beginColumn, + prev, number(op, n, 2)); + break; + case MM: + n = jj_consume_token(MM); + result = LexicalUnitImpl.createMM(n.beginLine, n.beginColumn, + prev, number(op, n, 2)); + break; + case PC: + n = jj_consume_token(PC); + result = LexicalUnitImpl.createPC(n.beginLine, n.beginColumn, + prev, number(op, n, 2)); + break; + case IN: + n = jj_consume_token(IN); + result = LexicalUnitImpl.createIN(n.beginLine, n.beginColumn, + prev, number(op, n, 2)); + break; + case PX: + n = jj_consume_token(PX); + result = LexicalUnitImpl.createPX(n.beginLine, n.beginColumn, + prev, number(op, n, 2)); + break; + case EMS: + n = jj_consume_token(EMS); + result = LexicalUnitImpl.createEMS(n.beginLine, n.beginColumn, + prev, number(op, n, 2)); + break; + case LEM: + n = jj_consume_token(LEM); + result = LexicalUnitImpl.createLEM(n.beginLine, n.beginColumn, + prev, number(op, n, 3)); + break; + case REM: + n = jj_consume_token(REM); + result = LexicalUnitImpl.createREM(n.beginLine, n.beginColumn, + prev, number(op, n, 3)); + break; + case EXS: + n = jj_consume_token(EXS); + result = LexicalUnitImpl.createEXS(n.beginLine, n.beginColumn, + prev, number(op, n, 2)); + break; + case DEG: + n = jj_consume_token(DEG); + result = LexicalUnitImpl.createDEG(n.beginLine, n.beginColumn, + prev, number(op, n, 3)); + break; + case RAD: + n = jj_consume_token(RAD); + result = LexicalUnitImpl.createRAD(n.beginLine, n.beginColumn, + prev, number(op, n, 3)); + break; + case GRAD: + n = jj_consume_token(GRAD); + result = LexicalUnitImpl.createGRAD(n.beginLine, n.beginColumn, + prev, number(op, n, 3)); + break; + case SECOND: + n = jj_consume_token(SECOND); + result = LexicalUnitImpl.createS(n.beginLine, n.beginColumn, + prev, number(op, n, 1)); + break; + case MS: + n = jj_consume_token(MS); + result = LexicalUnitImpl.createMS(n.beginLine, n.beginColumn, + prev, number(op, n, 2)); + break; + case HZ: + n = jj_consume_token(HZ); + result = LexicalUnitImpl.createHZ(n.beginLine, n.beginColumn, + prev, number(op, n, 2)); + break; + case KHZ: + n = jj_consume_token(KHZ); + result = LexicalUnitImpl.createKHZ(n.beginLine, n.beginColumn, + prev, number(op, n, 3)); + break; + case DIMEN: + n = jj_consume_token(DIMEN); + s = n.image; + int i = 0; + while (i < s.length() + && (Character.isDigit(s.charAt(i)) || (s.charAt(i) == '.'))) { + i++; } + result = LexicalUnitImpl.createDimen(n.beginLine, n.beginColumn, prev, + Float.valueOf(s.substring(0, i)).floatValue(), + s.substring(i)); + break; + case FUNCTION: + result = function(op, prev); + break; + default: + jj_la1[244] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + break; + case DOT: + case STRING: + case IDENT: + case URL: + case HASH: + case UNICODERANGE: + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case STRING: + n = jj_consume_token(STRING); + result = + LexicalUnitImpl.createString(n.beginLine, n.beginColumn, prev, + convertStringIndex(n.image, 1, + n.image.length() -1)); + break; + case DOT: + case IDENT: + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case DOT: + jj_consume_token(DOT); + s+="."; + break; + default: + jj_la1[245] = jj_gen; + ; } - return false; - } - - /** Generated Token Manager. */ - public ParserTokenManager token_source; - /** Current token. */ - public Token token; - /** Next token. */ - public Token jj_nt; - private int jj_ntk; - private Token jj_scanpos, jj_lastpos; - private int jj_la; - private int jj_gen; - final private int[] jj_la1 = new int[261]; - static private int[] jj_la1_0; - static private int[] jj_la1_1; - static private int[] jj_la1_2; - static private int[] jj_la1_3; - static { - jj_la1_init_0(); - jj_la1_init_1(); - jj_la1_init_2(); - jj_la1_init_3(); - } - - private static void jj_la1_init_0() { - jj_la1_0 = new int[] { 0x0, 0xc02, 0xc02, 0x0, 0xc00, 0x2, 0x2, 0x2, - 0x53100000, 0x0, 0xc00, 0x2, 0xc00, 0x2, 0x0, 0x2, 0x0, 0x2, - 0x2, 0x0, 0x0, 0x2, 0x2, 0x0, 0x2, 0x0, 0x2, 0x2, 0x53100000, - 0x53100000, 0x2, 0x2, 0x2, 0x53f45400, 0x53f45400, 0x2, - 0x400000, 0x2, 0x2, 0x2, 0x2, 0x0, 0x0, 0x2, 0x0, 0x800000, - 0x2, 0x0, 0x2, 0x2, 0x2, 0x2, 0x0, 0x800000, 0x2, 0x0, 0x2, - 0xe45400, 0x3100000, 0x3100002, 0x3100000, 0x2, 0x2, 0x480002, - 0x480002, 0x2, 0x0, 0x0, 0x2, 0x2, 0x2, 0x2, 0x53100000, - 0x53100000, 0x2, 0x400000, 0x2, 0x53100000, 0x2, 0x10000000, - 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, - 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x50000000, - 0x0, 0x0, 0x0, 0x0, 0x40000000, 0x2, 0x2, 0xfc000, 0x2, 0x0, - 0x2, 0xfc000, 0x0, 0x2, 0x0, 0x2, 0x0, 0x2, 0x800000, 0x0, - 0x53100000, 0x0, 0x4d380002, 0x2, 0x53100000, 0x2, 0x0, 0x2, - 0x4d380002, 0x0, 0x2, 0x53100000, 0x2, 0x4d380002, 0x2, 0x2, - 0x2, 0x0, 0x2, 0x53100000, 0x2, 0x2, 0x400000, 0x2, 0x2, 0x2, - 0x2, 0x0, 0x2, 0x53100000, 0x53100000, 0x2, 0x400000, 0x2, 0x2, - 0x2, 0x400000, 0x0, 0x0, 0x300000, 0x2, 0x0, 0x400000, 0x2, - 0x300000, 0x2, 0x0, 0x2, 0x0, 0x2, 0x800000, 0x2, 0x53100000, - 0x2, 0x801000, 0x2, 0x2, 0x0, 0x2, 0x0, 0x2, 0x2, 0x2, - 0x400000, 0x2, 0x2, 0x2, 0x2, 0x2, 0x0, 0x2, 0x2, 0x2, - 0x400000, 0x2, 0x2, 0x2, 0x0, 0x2, 0x2, 0x2, 0x400000, 0x2, - 0x2, 0x0, 0x2, 0x0, 0x2, 0x2, 0x2, 0x400000, 0x0, 0x2, 0x2, - 0x0, 0x2, 0x2, 0x2, 0x800000, 0x2, 0x2, 0x800000, 0x2, 0x2, - 0x0, 0x800000, 0x2, 0x0, 0x2, 0x0, 0x53100000, 0x2, 0x0, 0x2, - 0x0, 0x800000, 0x2, 0x0, 0x2, 0x301000, 0x2, 0x0, 0x2, 0x2, - 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0xc8700000, 0x300000, 0x300000, - 0x300000, 0x0, 0x0, 0x0, 0x300000, 0x2, 0x2, 0x300000, 0x2, - 0x53100000, 0x2, 0x2, 0x2, 0x0, 0x800000, 0x2, 0x0, 0x2, }; - } - - private static void jj_la1_init_1() { - jj_la1_1 = new int[] { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x59800303, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x200, 0x200, 0x0, 0x0, 0x480000, 0x0, 0x480000, 0x0, 0x0, - 0x59000303, 0x59000303, 0x0, 0x0, 0x0, 0x18000703, 0x18000703, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x100, 0x0, 0x200, 0x0, 0x0, - 0x200, 0x0, 0x0, 0x0, 0x0, 0x200, 0x0, 0x0, 0x200, 0x0, 0x400, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x30a, 0x30a, 0x0, 0x200, 0x200, 0x0, - 0x0, 0x0, 0x0, 0x59000303, 0x59000303, 0x0, 0x0, 0x0, 0x303, - 0x0, 0x102, 0x102, 0x102, 0x102, 0x102, 0x102, 0x102, 0x102, - 0x102, 0x102, 0x303, 0x200, 0x200, 0x200, 0x200, 0x201, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x100, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x40000000, 0x19000303, 0x0, 0xfc, 0x0, 0x19000303, 0x0, - 0x0, 0x0, 0xfc, 0x0, 0x0, 0x19000303, 0x0, 0xfc, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x19000303, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x200, - 0x0, 0x59000303, 0x59000303, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x100, 0x100, 0x102, 0x0, 0x100, 0x0, 0x0, 0x102, 0x0, 0x100, - 0x0, 0x200, 0x0, 0x0, 0x0, 0x18000303, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, 0x0, 0x18000000, 0x0, - 0x0, 0x180000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x200, 0x0, 0x0, 0x200, 0x0, 0x18000000, 0x303, 0x0, 0x0, 0x0, - 0x200, 0x0, 0x0, 0x200, 0x0, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2, 0x0, 0x0, 0x2, 0x2, 0x2, - 0x0, 0x0, 0x2, 0x0, 0x18000303, 0x0, 0x0, 0x0, 0x200, 0x0, 0x0, - 0x200, 0x0, }; - } - - private static void jj_la1_init_2() { - jj_la1_2 = new int[] { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x401, - 0x4000, 0x0, 0x0, 0x0, 0x0, 0x2200, 0x0, 0x400, 0x0, 0x0, - 0x400, 0x400, 0x0, 0x0, 0x8000, 0x0, 0x8000, 0x0, 0x0, 0x4465, - 0x4465, 0x0, 0x0, 0x0, 0xae00, 0xae00, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x400, 0x0, 0x0, 0x400, 0x0, 0x0, 0x400, 0x0, 0x0, 0x0, - 0x0, 0x400, 0x0, 0x0, 0x400, 0x0, 0xaa00, 0x0, 0x0, 0x0, 0x0, - 0x0, 0xe00, 0xe00, 0x0, 0x400, 0x400, 0x0, 0x0, 0x0, 0x0, - 0x4465, 0x4465, 0x0, 0x0, 0x0, 0x400, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x400, 0x400, 0x400, 0x400, - 0x400, 0x400, 0x0, 0x0, 0x0, 0x0, 0x600, 0x0, 0x0, 0x0, 0x0, - 0x400, 0x0, 0x100, 0x0, 0x0, 0x1, 0x424, 0x4000, 0x4c00, 0x0, - 0x4424, 0x0, 0x2, 0x0, 0x4c00, 0x80, 0x0, 0x4424, 0x0, 0x4c00, - 0x0, 0x0, 0x0, 0x4400, 0x0, 0x4424, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x400, 0x0, 0x4425, 0x4425, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x4000, 0x4000, 0xffffee00, 0x0, 0x0, 0x0, 0x0, - 0xffffee00, 0x0, 0x0, 0x0, 0x4400, 0x0, 0x0, 0x0, 0x400, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4000, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x400, 0x0, 0x0, 0x400, 0x0, 0x0, 0x400, 0x0, 0x0, - 0x0, 0x400, 0x0, 0x0, 0x400, 0x0, 0xffffee00, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xffffee00, 0x0, - 0xffff8800, 0x0, 0x2600, 0xffffae00, 0x0, 0x0, 0xffffee00, 0x0, - 0x400, 0x0, 0x0, 0x0, 0x400, 0x0, 0x0, 0x400, 0x0, }; - } - - private static void jj_la1_init_3() { - jj_la1_3 = new int[] { 0x20, 0x200, 0x200, 0x8, 0x200, 0x0, 0x0, 0x0, - 0x1d4, 0x0, 0x200, 0x0, 0x200, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x114, 0x114, 0x0, - 0x0, 0x0, 0x31006fc, 0x31006fc, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x31006f8, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x1000000, 0x1000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x114, - 0x114, 0x0, 0x0, 0x0, 0x4, 0x0, 0x4, 0x4, 0x0, 0x0, 0x4, 0x4, - 0x4, 0x4, 0x4, 0x4, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1000000, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x114, 0x0, 0x800000, 0x0, 0x114, 0x0, 0x0, 0x0, - 0x800000, 0x0, 0x0, 0x114, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x114, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1000000, 0x0, - 0x1d4, 0x1d4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x1100007, 0x0, 0x0, 0x0, 0x0, 0x1100007, 0x0, 0x0, 0x0, - 0x1000000, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0x0, 0xe00000, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0x4, 0x0, 0x400, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x1100007, 0x0, 0x400, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x1100007, 0x0, 0x1000003, 0x0, 0x100004, - 0x1100007, 0x0, 0x0, 0x1100007, 0x0, 0xdc, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, }; - } - - final private JJCalls[] jj_2_rtns = new JJCalls[9]; - private boolean jj_rescan = false; - private int jj_gc = 0; - - /** Constructor with user supplied CharStream. */ - public Parser(CharStream stream) { - token_source = new ParserTokenManager(stream); - token = new Token(); - jj_ntk = -1; - jj_gen = 0; - for (int i = 0; i < 261; i++) { - jj_la1[i] = -1; - } - for (int i = 0; i < jj_2_rtns.length; i++) { - jj_2_rtns[i] = new JJCalls(); - } - } - - /** Reinitialise. */ - public void ReInit(CharStream stream) { - token_source.ReInit(stream); - token = new Token(); - jj_ntk = -1; - jj_gen = 0; - for (int i = 0; i < 261; i++) { - jj_la1[i] = -1; - } - for (int i = 0; i < jj_2_rtns.length; i++) { - jj_2_rtns[i] = new JJCalls(); - } - } + n = jj_consume_token(IDENT); + s += convertIdent(n.image); + if ("inherit".equals(s)) { + result = LexicalUnitImpl.createInherit(n.beginLine, n.beginColumn, + prev); + } else { + result = LexicalUnitImpl.createIdent(n.beginLine, n.beginColumn, + prev, convertIdent(n.image)); + } + + /* / + Auto correction code used in the CSS Validator but must not + be used by a conformant CSS2 parser. + * Common error : + * H1 { + * color : black + * background : white + * } + * + Token t = getToken(1); + Token semicolon = new Token(); + semicolon.kind = SEMICOLON; + semicolon.image = ";"; + if (t.kind == COLON) { + // @@SEEME. (generate a warning?) + // @@SEEME if expression is a single ident, + generate an error ? + rejectToken(semicolon); + + result = prev; + } + / */ + + break; + case HASH: + result = hexcolor(prev); + break; + case URL: + result = url(prev); + break; + case UNICODERANGE: + result = unicode(prev); + break; + default: + jj_la1[246] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + break; + default: + jj_la1[247] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + label_169: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[248] = jj_gen; + break label_169; + } + jj_consume_token(S); + } + {if (true) return result;} + throw new Error("Missing return statement in function"); + } - /** Constructor with generated Token Manager. */ - public Parser(ParserTokenManager tm) { - token_source = tm; - token = new Token(); - jj_ntk = -1; - jj_gen = 0; - for (int i = 0; i < 261; i++) { - jj_la1[i] = -1; - } - for (int i = 0; i < jj_2_rtns.length; i++) { - jj_2_rtns[i] = new JJCalls(); - } +/** + * Handle all CSS2 functions. + * @exception ParseException exception during the parse + */ + final public LexicalUnitImpl function(char operator, LexicalUnitImpl prev) throws ParseException { + Token n; + LexicalUnit params = null; + n = jj_consume_token(FUNCTION); + label_170: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[249] = jj_gen; + break label_170; + } + jj_consume_token(S); } - - /** Reinitialise. */ - public void ReInit(ParserTokenManager tm) { - token_source = tm; - token = new Token(); - jj_ntk = -1; - jj_gen = 0; - for (int i = 0; i < 261; i++) { - jj_la1[i] = -1; - } - for (int i = 0; i < jj_2_rtns.length; i++) { - jj_2_rtns[i] = new JJCalls(); + String fname = convertIdent(n.image); + if("alpha(".equals(fname)){ + String body = skipStatementUntilSemiColon(); + {if (true) return LexicalUnitImpl.createIdent(n.beginLine, n.beginColumn, + null, "alpha("+body);} + }else if("expression(".equals(fname)){ + String body = skipStatementUntilSemiColon(); + {if (true) return LexicalUnitImpl.createIdent(n.beginLine, n.beginColumn, + null, "expression("+body);} + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case PLUS: + case MINUS: + case DOT: + case STRING: + case IDENT: + case NUMBER: + case URL: + case VARIABLE: + case PERCENTAGE: + case PT: + case MM: + case CM: + case PC: + case IN: + case PX: + case EMS: + case LEM: + case REM: + case EXS: + case DEG: + case RAD: + case GRAD: + case MS: + case SECOND: + case HZ: + case KHZ: + case DIMEN: + case HASH: + case UNICODERANGE: + case FUNCTION: + params = expr(); + break; + default: + jj_la1[250] = jj_gen; + ; + } + jj_consume_token(RPARAN); + if (operator != ' ') { + {if (true) throw new CSSParseException("invalid operator before a function.", + getLocator());} } - } - - private Token jj_consume_token(int kind) throws ParseException { - Token oldToken; - if ((oldToken = token).next != null) { - token = token.next; - } else { - token = token.next = token_source.getNextToken(); - } - jj_ntk = -1; - if (token.kind == kind) { - jj_gen++; - if (++jj_gc > 100) { - jj_gc = 0; - for (int i = 0; i < jj_2_rtns.length; i++) { - JJCalls c = jj_2_rtns[i]; - while (c != null) { - if (c.gen < jj_gen) { - c.first = null; + String f = convertIdent(n.image); + LexicalUnitImpl l = (LexicalUnitImpl) params; + boolean loop = true; + if ("rgb(".equals(f)) { + // this is a RGB declaration (e.g. rgb(255, 50%, 0) ) + int i = 0; + while (loop && l != null && i < 5) { + switch (i) { + case 0: + case 2: + case 4: + if ((l.getLexicalUnitType() != LexicalUnit.SAC_INTEGER) + && (l.getLexicalUnitType() != LexicalUnit.SAC_PERCENTAGE)) { + loop = false; } - c = c.next; - } + break; + case 1: + case 3: + if (l.getLexicalUnitType() != LexicalUnit.SAC_OPERATOR_COMMA) { + loop = false; + } + break; + default: + {if (true) throw new ParseException("implementation error");} + } + if (loop) { + l = (LexicalUnitImpl) l.getNextLexicalUnit(); + i ++; } } - return token; - } - token = oldToken; - jj_kind = kind; - throw generateParseException(); - } + if ((i == 5) && loop && (l == null)) { + {if (true) return LexicalUnitImpl.createRGBColor(n.beginLine, + n.beginColumn, + prev, params);} + } else { + if (errorHandler != null) { + String errorText; + Locator loc; + if (i < 5) { + if (params == null) { + loc = new LocatorImpl(this, n.beginLine, + n.beginColumn-1); + errorText = "not enough parameters."; + } else if (l == null) { + loc = new LocatorImpl(this, n.beginLine, + n.beginColumn-1); + errorText = "not enough parameters: " + + params.toString(); + } else { + loc = new LocatorImpl(this, l.getLineNumber(), + l.getColumnNumber()); + errorText = "invalid parameter: " + + l.toString(); + } + } else { + loc = new LocatorImpl(this, l.getLineNumber(), + l.getColumnNumber()); + errorText = "too many parameters: " + + l.toString(); + } + errorHandler.error(new CSSParseException(errorText, loc)); + } - static private final class LookaheadSuccess extends java.lang.Error { - } + {if (true) throw new JumpException();} + } + } else if ("counter".equals(f)) { + int i = 0; + while (loop && l != null && i < 3) { + switch (i) { + case 0: + case 2: + if (l.getLexicalUnitType() != LexicalUnit.SAC_IDENT) { + loop = false; + } + break; + case 1: + if (l.getLexicalUnitType() != LexicalUnit.SAC_OPERATOR_COMMA) { + loop = false; + } + break; + default: + {if (true) throw new ParseException("implementation error");} + } + l = (LexicalUnitImpl) l.getNextLexicalUnit(); + i ++; + } + if (((i == 1) || (i == 3)) && loop && (l == null)) { + {if (true) return LexicalUnitImpl.createCounter(n.beginLine, n.beginColumn, + prev, params);} + } - final private LookaheadSuccess jj_ls = new LookaheadSuccess(); + } else if ("counters(".equals(f)) { - private boolean jj_scan_token(int kind) { - if (jj_scanpos == jj_lastpos) { - jj_la--; - if (jj_scanpos.next == null) { - jj_lastpos = jj_scanpos = jj_scanpos.next = token_source - .getNextToken(); - } else { - jj_lastpos = jj_scanpos = jj_scanpos.next; + int i = 0; + while (loop && l != null && i < 5) { + switch (i) { + case 0: + case 4: + if (l.getLexicalUnitType() != LexicalUnit.SAC_IDENT) { + loop = false; + } + break; + case 2: + if (l.getLexicalUnitType() != LexicalUnit.SAC_STRING_VALUE) { + loop = false; + } + break; + case 1: + case 3: + if (l.getLexicalUnitType() != LexicalUnit.SAC_OPERATOR_COMMA) { + loop = false; + } + break; + default: + {if (true) throw new ParseException("implementation error");} + } + l = (LexicalUnitImpl) l.getNextLexicalUnit(); + i ++; } - } else { - jj_scanpos = jj_scanpos.next; - } - if (jj_rescan) { + if (((i == 3) || (i == 5)) && loop && (l == null)) { + {if (true) return LexicalUnitImpl.createCounters(n.beginLine, n.beginColumn, + prev, params);} + } + } else if ("attr(".equals(f)) { + if ((l != null) + && (l.getNextLexicalUnit() == null) + && (l.getLexicalUnitType() == LexicalUnit.SAC_IDENT)) { + {if (true) return LexicalUnitImpl.createAttr(l.getLineNumber(), + l.getColumnNumber(), + prev, l.getStringValue());} + } + } else if ("rect(".equals(f)) { int i = 0; - Token tok = token; - while (tok != null && tok != jj_scanpos) { - i++; - tok = tok.next; + while (loop && l != null && i < 7) { + switch (i) { + case 0: + case 2: + case 4: + case 6: + switch (l.getLexicalUnitType()) { + case LexicalUnit.SAC_INTEGER: + if (l.getIntegerValue() != 0) { + loop = false; + } + break; + case LexicalUnit.SAC_IDENT: + if (!l.getStringValue().equals("auto")) { + loop = false; + } + break; + case LexicalUnit.SAC_EM: + case LexicalUnit.SAC_EX: + case LexicalUnit.SAC_PIXEL: + case LexicalUnit.SAC_CENTIMETER: + case LexicalUnit.SAC_MILLIMETER: + case LexicalUnit.SAC_INCH: + case LexicalUnit.SAC_POINT: + case LexicalUnit.SAC_PICA: + // nothing + break; + default: + loop = false; + } + break; + case 1: + case 3: + case 5: + if (l.getLexicalUnitType() != LexicalUnit.SAC_OPERATOR_COMMA) { + loop = false; + } + break; + default: + {if (true) throw new ParseException("implementation error");} + } + l = (LexicalUnitImpl) l.getNextLexicalUnit(); + i ++; } - if (tok != null) { - jj_add_error_token(kind, i); + if ((i == 7) && loop && (l == null)) { + {if (true) return LexicalUnitImpl.createRect(n.beginLine, n.beginColumn, + prev, params);} + } + } + {if (true) return LexicalUnitImpl.createFunction(n.beginLine, n.beginColumn, prev, + f.substring(0, + f.length() -1), + params);} + throw new Error("Missing return statement in function"); + } + + final public LexicalUnitImpl unicode(LexicalUnitImpl prev) throws ParseException { + Token n; + n = jj_consume_token(UNICODERANGE); + LexicalUnitImpl params = null; + String s = n.image.substring(2); + int index = s.indexOf('-'); + if (index == -1) { + params = LexicalUnitImpl.createInteger(n.beginLine, n.beginColumn, + params, Integer.parseInt(s, 16)); + } else { + String s1 = s.substring(0, index); + String s2 = s.substring(index); + + params = LexicalUnitImpl.createInteger(n.beginLine, n.beginColumn, + params, Integer.parseInt(s1, 16)); + params = LexicalUnitImpl.createInteger(n.beginLine, n.beginColumn, + params, Integer.parseInt(s2, 16)); + } + + {if (true) return LexicalUnitImpl.createUnicodeRange(n.beginLine, n.beginColumn, + prev, params);} + throw new Error("Missing return statement in function"); + } + + final public LexicalUnitImpl url(LexicalUnitImpl prev) throws ParseException { + Token n; + n = jj_consume_token(URL); + String urlname = n.image.substring(4, n.image.length()-1).trim(); + {if (true) return LexicalUnitImpl.createURL(n.beginLine, n.beginColumn, prev, urlname);} + throw new Error("Missing return statement in function"); + } + +/** + * @exception ParseException exception during the parse + */ + final public LexicalUnitImpl hexcolor(LexicalUnitImpl prev) throws ParseException { + Token n; + n = jj_consume_token(HASH); + int r; + LexicalUnitImpl first, params = null; + String s = n.image.substring(1); + + if(s.length()!=3 && s.length()!=6) { + first = null; + {if (true) throw new CSSParseException("invalid hexadecimal notation for RGB: " + s, + getLocator());} + } + {if (true) return LexicalUnitImpl.createIdent(n.beginLine, n.beginColumn, + prev, n.image);} + throw new Error("Missing return statement in function"); + } + + float number(char operator, Token n, int lengthUnit) throws ParseException { + String image = n.image; + float f = 0; + + if (lengthUnit != 0) { + image = image.substring(0, image.length() - lengthUnit); + } + f = Float.valueOf(image).floatValue(); + return (operator == '-')? -f: f; + } + + String skipStatementUntilSemiColon() throws ParseException { + int[] semicolon = {SEMICOLON}; + return skipStatementUntil(semicolon); + } + + String skipStatementUntilLeftBrace() throws ParseException { + int[] lBrace = {LBRACE}; + return skipStatementUntil(lBrace); + } + + String skipStatementUntilRightParan() throws ParseException { + int[] rParan = {RPARAN}; + return skipStatementUntil(rParan); + } + + String skipStatementUntil(int[] symbols) throws ParseException { + StringBuffer s = new StringBuffer(); + boolean stop = false; + Token tok; + while(!stop){ + tok = getToken(1); + if(tok.kind == EOF) { + return null; + } + for(int sym : symbols){ + if(tok.kind == sym){ + stop = true; + break; + } + } + if(!stop){ + if (tok.image != null) { + s.append(tok.image); } + getNextToken(); } - if (jj_scanpos.kind != kind) { - return true; - } - if (jj_la == 0 && jj_scanpos == jj_lastpos) { - throw jj_ls; - } - return false; } + return s.toString().trim(); + } - /** Get the next Token. */ - final public Token getNextToken() { - if (token.next != null) { - token = token.next; - } else { - token = token.next = token_source.getNextToken(); - } - jj_ntk = -1; - jj_gen++; - return token; + String skipStatement() throws ParseException { + StringBuffer s = new StringBuffer(); + Token tok = getToken(0); + if (tok.image != null) { + s.append(tok.image); } - - /** Get the specific Token. */ - final public Token getToken(int index) { - Token t = token; - for (int i = 0; i < index; i++) { - if (t.next != null) { - t = t.next; - } else { - t = t.next = token_source.getNextToken(); - } + while (true) { + tok = getToken(1); + if (tok.kind == EOF) { + return null; + } + s.append(tok.image); + if (tok.kind == LBRACE) { + getNextToken(); + s.append(skip_to_matching_brace()); + getNextToken(); + tok = getToken(1); + break; + } else if (tok.kind == RBRACE) { + getNextToken(); + tok = getToken(1); + break; + } else if (tok.kind == SEMICOLON) { + getNextToken(); + tok = getToken(1); + break; } - return t; + getNextToken(); } - private int jj_ntk() { - if ((jj_nt = token.next) == null) { - return (jj_ntk = (token.next = token_source.getNextToken()).kind); - } else { - return (jj_ntk = jj_nt.kind); + // skip white space + while (true) { + if (tok.kind != S) { + break; } + tok = getNextToken(); + tok = getToken(1); } - private java.util.List jj_expentries = new java.util.ArrayList(); - private int[] jj_expentry; - private int jj_kind = -1; - private int[] jj_lasttokens = new int[100]; - private int jj_endpos; + return s.toString().trim(); + } - private void jj_add_error_token(int kind, int pos) { - if (pos >= 100) { - return; + String skip_to_matching_brace() throws ParseException { + StringBuffer s = new StringBuffer(); + Token tok; + int nesting = 1; + while (true) { + tok = getToken(1); + if (tok.kind == EOF) { + break; } - if (pos == jj_endpos + 1) { - jj_lasttokens[jj_endpos++] = kind; - } else if (jj_endpos != 0) { - jj_expentry = new int[jj_endpos]; - for (int i = 0; i < jj_endpos; i++) { - jj_expentry[i] = jj_lasttokens[i]; - } - jj_entries_loop: for (java.util.Iterator it = jj_expentries - .iterator(); it.hasNext();) { - int[] oldentry = (int[]) (it.next()); - if (oldentry.length == jj_expentry.length) { - for (int i = 0; i < jj_expentry.length; i++) { - if (oldentry[i] != jj_expentry[i]) { - continue jj_entries_loop; + s.append(tok.image); + if (tok.kind == LBRACE) { + nesting++; + } else if (tok.kind == RBRACE) { + nesting--; + if (nesting == 0) { + break; + } + } + getNextToken(); + } + return s.toString(); + } + + String convertStringIndex(String s, int start, int len) throws ParseException { + StringBuffer buf = new StringBuffer(len); + int index = start; + + while (index < len) { + char c = s.charAt(index); + if (c == '\u005c\u005c') { + if (++index < len) { + c = s.charAt(index); + switch (c) { + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': + buf.append('\u005c\u005c'); + while (index < len) { + buf.append(s.charAt(index++)); + } + break; + case '\u005cn': + case '\u005cf': + break; + case '\u005cr': + if (index + 1 < len) { + if (s.charAt(index + 1) == '\u005cn') { + index ++; } } - jj_expentries.add(jj_expentry); - break jj_entries_loop; + break; + default: + buf.append(c); } + } else { + throw new CSSParseException("invalid string " + s, getLocator()); } - if (pos != 0) { - jj_lasttokens[(jj_endpos = pos) - 1] = kind; - } + } else { + buf.append(c); } + index++; } - /** Generate ParseException. */ - public ParseException generateParseException() { - jj_expentries.clear(); - boolean[] la1tokens = new boolean[122]; - if (jj_kind >= 0) { - la1tokens[jj_kind] = true; - jj_kind = -1; - } - for (int i = 0; i < 261; i++) { - if (jj_la1[i] == jj_gen) { - for (int j = 0; j < 32; j++) { - if ((jj_la1_0[i] & (1 << j)) != 0) { - la1tokens[j] = true; - } - if ((jj_la1_1[i] & (1 << j)) != 0) { - la1tokens[32 + j] = true; - } - if ((jj_la1_2[i] & (1 << j)) != 0) { - la1tokens[64 + j] = true; - } - if ((jj_la1_3[i] & (1 << j)) != 0) { - la1tokens[96 + j] = true; - } - } - } - } - for (int i = 0; i < 122; i++) { - if (la1tokens[i]) { - jj_expentry = new int[1]; - jj_expentry[0] = i; - jj_expentries.add(jj_expentry); - } - } - jj_endpos = 0; - jj_rescan_token(); - jj_add_error_token(0, 0); - int[][] exptokseq = new int[jj_expentries.size()][]; - for (int i = 0; i < jj_expentries.size(); i++) { - exptokseq[i] = jj_expentries.get(i); - } - return new ParseException(token, exptokseq, tokenImage); - } + return buf.toString(); + } - /** Enable tracing. */ - final public void enable_tracing() { - } + String convertIdent(String s) throws ParseException { + return convertStringIndex(s, 0, s.length()); + } - /** Disable tracing. */ - final public void disable_tracing() { - } + String convertString(String s) throws ParseException { + return convertStringIndex(s, 0, s.length()); + } - private void jj_rescan_token() { - jj_rescan = true; - for (int i = 0; i < 9; i++) { - try { - JJCalls p = jj_2_rtns[i]; - do { - if (p.gen > jj_gen) { - jj_la = p.arg; - jj_lastpos = jj_scanpos = p.first; - switch (i) { - case 0: - jj_3_1(); - break; - case 1: - jj_3_2(); - break; - case 2: - jj_3_3(); - break; - case 3: - jj_3_4(); - break; - case 4: - jj_3_5(); - break; - case 5: - jj_3_6(); - break; - case 6: - jj_3_7(); - break; - case 7: - jj_3_8(); - break; - case 8: - jj_3_9(); - break; - } - } - p = p.next; - } while (p != null); - } catch (LookaheadSuccess ls) { - } + void comments() throws ParseException { + if (token.specialToken != null){ + Token tmp_t = token.specialToken; + while (tmp_t.specialToken != null) tmp_t = tmp_t.specialToken; + while (tmp_t != null) { + documentHandler.comment(tmp_t.image); + tmp_t = tmp_t.next; } - jj_rescan = false; } + } - private void jj_save(int index, int xla) { - JJCalls p = jj_2_rtns[index]; - while (p.gen > jj_gen) { - if (p.next == null) { - p = p.next = new JJCalls(); - break; - } - p = p.next; - } - p.gen = jj_gen + xla - jj_la; - p.first = token; - p.arg = xla; + void rejectToken(Token t) throws ParseException { + Token fakeToken = new Token(); + t.next = token; + fakeToken.next = t; + token = fakeToken; + } + + String skipAfterExpression() throws ParseException { + Token t = getToken(1); + StringBuffer s = new StringBuffer(); + s.append(getToken(0).image); + + while ((t.kind != RBRACE) && (t.kind != SEMICOLON) && (t.kind != EOF)) { + s.append(t.image); + getNextToken(); + t = getToken(1); } - static final class JJCalls { - int gen; - Token first; - int arg; - JJCalls next; + return s.toString(); + } + +/** + * The following functions are useful for a DOM CSS implementation only and are + * not part of the general CSS2 parser. + */ + final public void _parseRule() throws ParseException { + String ret = null; + label_171: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[251] = jj_gen; + break label_171; + } + jj_consume_token(S); + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case IMPORT_SYM: + importDeclaration(); + break; + case DEBUG_SYM: + case WARN_SYM: + debuggingDirective(); + break; + case PLUS: + case PRECEDES: + case SIBLING: + case LBRACKET: + case ANY: + case PARENT: + case DOT: + case COLON: + case INTERPOLATION: + case IDENT: + case HASH: + styleRule(); + break; + case MEDIA_SYM: + media(); + break; + case PAGE_SYM: + page(); + break; + case FONT_FACE_SYM: + fontFace(); + break; + default: + jj_la1[252] = jj_gen; + ret = skipStatement(); + if ((ret == null) || (ret.length() == 0)) { + {if (true) return;} + } + if (ret.charAt(0) == '@') { + documentHandler.unrecognizedRule(ret); + } else { + {if (true) throw new CSSParseException("unrecognize rule: " + ret, + getLocator());} + } } + } + + final public void _parseImportRule() throws ParseException { + label_172: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[253] = jj_gen; + break label_172; + } + jj_consume_token(S); + } + importDeclaration(); + } + + final public void _parseMediaRule() throws ParseException { + label_173: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[254] = jj_gen; + break label_173; + } + jj_consume_token(S); + } + media(); + } + + final public void _parseDeclarationBlock() throws ParseException { + label_174: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[255] = jj_gen; + break label_174; + } + jj_consume_token(S); + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case INTERPOLATION: + case IDENT: + declaration(); + break; + default: + jj_la1[256] = jj_gen; + ; + } + label_175: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case SEMICOLON: + ; + break; + default: + jj_la1[257] = jj_gen; + break label_175; + } + jj_consume_token(SEMICOLON); + label_176: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[258] = jj_gen; + break label_176; + } + jj_consume_token(S); + } + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case INTERPOLATION: + case IDENT: + declaration(); + break; + default: + jj_la1[259] = jj_gen; + ; + } + } + } + + final public ArrayList _parseSelectors() throws ParseException { + ArrayList p = null; + try { + label_177: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case S: + ; + break; + default: + jj_la1[260] = jj_gen; + break label_177; + } + jj_consume_token(S); + } + p = selectorList(); + {if (true) return p;} + } catch (ThrowedParseException e) { + {if (true) throw (ParseException) e.e.fillInStackTrace();} + } + throw new Error("Missing return statement in function"); + } + + private boolean jj_2_1(int xla) { + jj_la = xla; jj_lastpos = jj_scanpos = token; + try { return !jj_3_1(); } + catch(LookaheadSuccess ls) { return true; } + finally { jj_save(0, xla); } + } + + private boolean jj_2_2(int xla) { + jj_la = xla; jj_lastpos = jj_scanpos = token; + try { return !jj_3_2(); } + catch(LookaheadSuccess ls) { return true; } + finally { jj_save(1, xla); } + } + + private boolean jj_2_3(int xla) { + jj_la = xla; jj_lastpos = jj_scanpos = token; + try { return !jj_3_3(); } + catch(LookaheadSuccess ls) { return true; } + finally { jj_save(2, xla); } + } + + private boolean jj_2_4(int xla) { + jj_la = xla; jj_lastpos = jj_scanpos = token; + try { return !jj_3_4(); } + catch(LookaheadSuccess ls) { return true; } + finally { jj_save(3, xla); } + } + + private boolean jj_2_5(int xla) { + jj_la = xla; jj_lastpos = jj_scanpos = token; + try { return !jj_3_5(); } + catch(LookaheadSuccess ls) { return true; } + finally { jj_save(4, xla); } + } + + private boolean jj_2_6(int xla) { + jj_la = xla; jj_lastpos = jj_scanpos = token; + try { return !jj_3_6(); } + catch(LookaheadSuccess ls) { return true; } + finally { jj_save(5, xla); } + } + + private boolean jj_2_7(int xla) { + jj_la = xla; jj_lastpos = jj_scanpos = token; + try { return !jj_3_7(); } + catch(LookaheadSuccess ls) { return true; } + finally { jj_save(6, xla); } + } + + private boolean jj_2_8(int xla) { + jj_la = xla; jj_lastpos = jj_scanpos = token; + try { return !jj_3_8(); } + catch(LookaheadSuccess ls) { return true; } + finally { jj_save(7, xla); } + } + + private boolean jj_2_9(int xla) { + jj_la = xla; jj_lastpos = jj_scanpos = token; + try { return !jj_3_9(); } + catch(LookaheadSuccess ls) { return true; } + finally { jj_save(8, xla); } + } + + private boolean jj_3R_252() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_263()) { + jj_scanpos = xsp; + if (jj_3R_264()) return true; + } + return false; + } + + private boolean jj_3R_263() { + if (jj_scan_token(IDENT)) return true; + return false; + } + + private boolean jj_3R_204() { + Token xsp; + if (jj_3R_252()) return true; + while (true) { + xsp = jj_scanpos; + if (jj_3R_252()) { jj_scanpos = xsp; break; } + } + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } + } + return false; + } + + private boolean jj_3R_214() { + if (jj_scan_token(MINUS)) return true; + Token xsp; + if (jj_scan_token(1)) return true; + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } + } + return false; + } + + private boolean jj_3R_190() { + if (jj_3R_215()) return true; + return false; + } + + private boolean jj_3R_213() { + if (jj_scan_token(PLUS)) return true; + Token xsp; + if (jj_scan_token(1)) return true; + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } + } + return false; + } + + private boolean jj_3R_212() { + if (jj_scan_token(MOD)) return true; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } + } + return false; + } + + private boolean jj_3R_211() { + if (jj_scan_token(ANY)) return true; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } + } + return false; + } + + private boolean jj_3R_210() { + if (jj_scan_token(DIV)) return true; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } + } + return false; + } + + private boolean jj_3R_209() { + if (jj_scan_token(COMMA)) return true; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } + } + return false; + } + + private boolean jj_3R_187() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_209()) { + jj_scanpos = xsp; + if (jj_3R_210()) { + jj_scanpos = xsp; + if (jj_3R_211()) { + jj_scanpos = xsp; + if (jj_3R_212()) { + jj_scanpos = xsp; + if (jj_3R_213()) { + jj_scanpos = xsp; + if (jj_3R_214()) return true; + } + } + } + } + } + return false; + } + + private boolean jj_3R_217() { + if (jj_3R_216()) return true; + return false; + } + + private boolean jj_3R_216() { + Token xsp; + xsp = jj_scanpos; + if (jj_scan_token(20)) { + jj_scanpos = xsp; + if (jj_scan_token(24)) { + jj_scanpos = xsp; + if (jj_scan_token(25)) return true; + } + } + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } + } + return false; + } + + private boolean jj_3R_178() { + if (jj_3R_188()) return true; + if (jj_scan_token(COLON)) return true; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } + } + if (jj_3R_189()) return true; + xsp = jj_scanpos; + if (jj_3R_190()) jj_scanpos = xsp; + if (jj_3R_191()) return true; + while (true) { + xsp = jj_scanpos; + if (jj_3R_191()) { jj_scanpos = xsp; break; } + } + return false; + } + + private boolean jj_3R_215() { + if (jj_scan_token(GUARDED_SYM)) return true; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } + } + return false; + } + + private boolean jj_3R_193() { + if (jj_scan_token(S)) return true; + Token xsp; + xsp = jj_scanpos; + if (jj_3R_217()) jj_scanpos = xsp; + return false; + } + + private boolean jj_3R_192() { + if (jj_3R_216()) return true; + return false; + } + + private boolean jj_3R_179() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_192()) { + jj_scanpos = xsp; + if (jj_3R_193()) return true; + } + return false; + } + + private boolean jj_3R_199() { + if (jj_scan_token(VARIABLE)) return true; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } + } + if (jj_scan_token(COLON)) return true; + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } + } + return false; + } + + private boolean jj_3R_181() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_199()) jj_scanpos = xsp; + if (jj_scan_token(CONTAINS)) return true; + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } + } + if (true) { jj_la = 0; jj_scanpos = jj_lastpos; return false;} + return false; + } + + private boolean jj_3R_219() { + if (jj_scan_token(HASH)) return true; + return false; + } + + private boolean jj_3R_289() { + if (jj_scan_token(IDENT)) return true; + return false; + } + + private boolean jj_3R_290() { + if (jj_scan_token(FUNCTION)) return true; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } + } + if (true) { jj_la = 0; jj_scanpos = jj_lastpos; return false;} + return false; + } + + private boolean jj_3R_288() { + if (jj_scan_token(COLON)) return true; + return false; + } + + private boolean jj_3R_221() { + if (jj_scan_token(COLON)) return true; + Token xsp; + xsp = jj_scanpos; + if (jj_3R_288()) jj_scanpos = xsp; + xsp = jj_scanpos; + if (jj_3R_289()) { + jj_scanpos = xsp; + if (jj_3R_290()) return true; + } + return false; + } + + private boolean jj_3_7() { + if (jj_3R_185()) return true; + return false; + } + + private boolean jj_3R_206() { + if (jj_scan_token(LBRACE)) return true; + return false; + } + + private boolean jj_3R_309() { + if (jj_scan_token(STRING)) return true; + return false; + } + + private boolean jj_3R_307() { + if (jj_scan_token(STARMATCH)) return true; + return false; + } + + private boolean jj_3R_308() { + if (jj_scan_token(IDENT)) return true; + return false; + } + + private boolean jj_3R_306() { + if (jj_scan_token(DOLLARMATCH)) return true; + return false; + } + + private boolean jj_3R_305() { + if (jj_scan_token(CARETMATCH)) return true; + return false; + } + + private boolean jj_3R_304() { + if (jj_scan_token(DASHMATCH)) return true; + return false; + } + + private boolean jj_3R_303() { + if (jj_scan_token(INCLUDES)) return true; + return false; + } + + private boolean jj_3R_270() { + if (jj_scan_token(INTERPOLATION)) return true; + return false; + } + + private boolean jj_3R_302() { + if (jj_scan_token(EQ)) return true; + return false; + } + + private boolean jj_3R_205() { + if (jj_3R_189()) return true; + return false; + } + + private boolean jj_3R_295() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_302()) { + jj_scanpos = xsp; + if (jj_3R_303()) { + jj_scanpos = xsp; + if (jj_3R_304()) { + jj_scanpos = xsp; + if (jj_3R_305()) { + jj_scanpos = xsp; + if (jj_3R_306()) { + jj_scanpos = xsp; + if (jj_3R_307()) return true; + } + } + } + } + } + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } + } + xsp = jj_scanpos; + if (jj_3R_308()) { + jj_scanpos = xsp; + if (jj_3R_309()) return true; + } + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } + } + return false; + } + + private boolean jj_3_6() { + if (jj_3R_184()) return true; + if (jj_scan_token(LBRACE)) return true; + return false; + } + + private boolean jj_3R_222() { + if (jj_scan_token(LBRACKET)) return true; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } + } + if (jj_scan_token(IDENT)) return true; + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } + } + xsp = jj_scanpos; + if (jj_3R_295()) jj_scanpos = xsp; + if (jj_scan_token(RBRACKET)) return true; + return false; + } + + private boolean jj_3R_185() { + if (jj_3R_204()) return true; + if (jj_scan_token(COLON)) return true; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } + } + xsp = jj_scanpos; + if (jj_3R_205()) { + jj_scanpos = xsp; + if (jj_3R_206()) return true; + } + return false; + } + + private boolean jj_3R_301() { + if (jj_scan_token(INTERPOLATION)) return true; + return false; + } + + private boolean jj_3R_256() { + if (jj_scan_token(PARENT)) return true; + return false; + } + + private boolean jj_3R_268() { + if (jj_3R_189()) return true; + return false; + } + + private boolean jj_3R_255() { + if (jj_scan_token(ANY)) return true; + return false; + } + + private boolean jj_3R_265() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_269()) { + jj_scanpos = xsp; + if (jj_3R_270()) return true; + } + return false; + } + + private boolean jj_3R_269() { + if (jj_scan_token(IDENT)) return true; + return false; + } + + private boolean jj_3R_218() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_254()) { + jj_scanpos = xsp; + if (jj_3R_255()) { + jj_scanpos = xsp; + if (jj_3R_256()) return true; + } + } + return false; + } + + private boolean jj_3R_254() { + Token xsp; + if (jj_3R_265()) return true; + while (true) { + xsp = jj_scanpos; + if (jj_3R_265()) { jj_scanpos = xsp; break; } + } + return false; + } + + private boolean jj_3R_182() { + if (jj_scan_token(COMMA)) return true; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } + } + return false; + } + + private boolean jj_3R_258() { + if (jj_scan_token(FUNCTION)) return true; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } + } + xsp = jj_scanpos; + if (jj_3R_268()) jj_scanpos = xsp; + if (jj_scan_token(RPARAN)) return true; + return false; + } + + private boolean jj_3R_283() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_300()) { + jj_scanpos = xsp; + if (jj_3R_301()) return true; + } + return false; + } + + private boolean jj_3R_300() { + if (jj_scan_token(IDENT)) return true; + return false; + } + + private boolean jj_3R_249() { + if (jj_3R_262()) return true; + return false; + } + + private boolean jj_3R_299() { + if (jj_3R_221()) return true; + return false; + } + + private boolean jj_3R_248() { + if (jj_3R_261()) return true; + return false; + } + + private boolean jj_3R_247() { + if (jj_3R_260()) return true; + return false; + } + + private boolean jj_3_5() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_182()) jj_scanpos = xsp; + if (jj_3R_183()) return true; + return false; + } + + private boolean jj_3R_220() { + if (jj_scan_token(DOT)) return true; + Token xsp; + if (jj_3R_283()) return true; + while (true) { + xsp = jj_scanpos; + if (jj_3R_283()) { jj_scanpos = xsp; break; } + } + return false; + } + + private boolean jj_3R_297() { + if (jj_3R_220()) return true; + return false; + } + + private boolean jj_3R_292() { + if (jj_3R_220()) return true; + return false; + } + + private boolean jj_3R_294() { + if (jj_3R_221()) return true; + return false; + } + + private boolean jj_3R_282() { + if (jj_3R_221()) return true; + return false; + } + + private boolean jj_3R_285() { + if (jj_3R_220()) return true; + return false; + } + + private boolean jj_3R_287() { + if (jj_3R_221()) return true; + return false; + } + + private boolean jj_3R_298() { + if (jj_3R_222()) return true; + return false; + } + + private boolean jj_3R_275() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_296()) { + jj_scanpos = xsp; + if (jj_3R_297()) { + jj_scanpos = xsp; + if (jj_3R_298()) { + jj_scanpos = xsp; + if (jj_3R_299()) return true; + } + } + } + return false; + } + + private boolean jj_3R_296() { + if (jj_3R_219()) return true; + return false; + } + + private boolean jj_3R_274() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_291()) { + jj_scanpos = xsp; + if (jj_3R_292()) { + jj_scanpos = xsp; + if (jj_3R_293()) { + jj_scanpos = xsp; + if (jj_3R_294()) return true; + } + } + } + return false; + } + + private boolean jj_3R_291() { + if (jj_3R_219()) return true; + return false; + } + + private boolean jj_3R_279() { + if (jj_3R_221()) return true; + return false; + } + + private boolean jj_3R_273() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_284()) { + jj_scanpos = xsp; + if (jj_3R_285()) { + jj_scanpos = xsp; + if (jj_3R_286()) { + jj_scanpos = xsp; + if (jj_3R_287()) return true; + } + } + } + return false; + } + + private boolean jj_3R_284() { + if (jj_3R_219()) return true; + return false; + } + + private boolean jj_3R_293() { + if (jj_3R_222()) return true; + return false; + } + + private boolean jj_3R_281() { + if (jj_3R_222()) return true; + return false; + } + + private boolean jj_3R_286() { + if (jj_3R_222()) return true; + return false; + } + + private boolean jj_3R_272() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_280()) { + jj_scanpos = xsp; + if (jj_3R_281()) { + jj_scanpos = xsp; + if (jj_3R_282()) return true; + } + } + return false; + } + + private boolean jj_3R_277() { + if (jj_3R_220()) return true; + return false; + } + + private boolean jj_3R_280() { + if (jj_3R_220()) return true; + return false; + } + + private boolean jj_3R_259() { + if (jj_scan_token(DOT)) return true; + return false; + } + + private boolean jj_3R_246() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_259()) jj_scanpos = xsp; + if (jj_scan_token(IDENT)) return true; + return false; + } + + private boolean jj_3R_198() { + if (jj_3R_222()) return true; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_3R_275()) { jj_scanpos = xsp; break; } + } + return false; + } + + private boolean jj_3R_245() { + if (jj_scan_token(STRING)) return true; + return false; + } + + private boolean jj_3R_244() { + if (jj_3R_258()) return true; + return false; + } + + private boolean jj_3R_197() { + if (jj_3R_221()) return true; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_3R_274()) { jj_scanpos = xsp; break; } + } + return false; + } + + private boolean jj_3R_201() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_245()) { + jj_scanpos = xsp; + if (jj_3R_246()) { + jj_scanpos = xsp; + if (jj_3R_247()) { + jj_scanpos = xsp; + if (jj_3R_248()) { + jj_scanpos = xsp; + if (jj_3R_249()) return true; + } + } + } + } + return false; + } + + private boolean jj_3R_278() { + if (jj_3R_222()) return true; + return false; + } + + private boolean jj_3R_196() { + if (jj_3R_220()) return true; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_3R_273()) { jj_scanpos = xsp; break; } + } + return false; + } + + private boolean jj_3R_195() { + if (jj_3R_219()) return true; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_3R_272()) { jj_scanpos = xsp; break; } + } + return false; + } + + private boolean jj_3R_271() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_276()) { + jj_scanpos = xsp; + if (jj_3R_277()) { + jj_scanpos = xsp; + if (jj_3R_278()) { + jj_scanpos = xsp; + if (jj_3R_279()) return true; + } + } + } + return false; + } + + private boolean jj_3R_276() { + if (jj_3R_219()) return true; + return false; + } + + private boolean jj_3R_194() { + if (jj_3R_218()) return true; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_3R_271()) { jj_scanpos = xsp; break; } + } + return false; + } + + private boolean jj_3R_180() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_194()) { + jj_scanpos = xsp; + if (jj_3R_195()) { + jj_scanpos = xsp; + if (jj_3R_196()) { + jj_scanpos = xsp; + if (jj_3R_197()) { + jj_scanpos = xsp; + if (jj_3R_198()) return true; + } + } + } + } + return false; + } + + private boolean jj_3R_243() { + if (jj_scan_token(DIMEN)) return true; + return false; + } + + private boolean jj_3R_251() { + if (jj_3R_216()) return true; + if (jj_3R_180()) return true; + return false; + } + + private boolean jj_3R_242() { + if (jj_scan_token(KHZ)) return true; + return false; + } + + private boolean jj_3R_241() { + if (jj_scan_token(HZ)) return true; + return false; + } + + private boolean jj_3R_240() { + if (jj_scan_token(MS)) return true; + return false; + } + + private boolean jj_3R_239() { + if (jj_scan_token(SECOND)) return true; + return false; + } + + private boolean jj_3R_238() { + if (jj_scan_token(GRAD)) return true; + return false; + } + + private boolean jj_3R_237() { + if (jj_scan_token(RAD)) return true; + return false; + } + + private boolean jj_3R_236() { + if (jj_scan_token(DEG)) return true; + return false; + } + + private boolean jj_3R_235() { + if (jj_scan_token(EXS)) return true; + return false; + } + + private boolean jj_3R_234() { + if (jj_scan_token(REM)) return true; + return false; + } + + private boolean jj_3R_233() { + if (jj_scan_token(LEM)) return true; + return false; + } + + private boolean jj_3R_232() { + if (jj_scan_token(EMS)) return true; + return false; + } + + private boolean jj_3_2() { + if (jj_3R_179()) return true; + if (jj_3R_180()) return true; + return false; + } + + private boolean jj_3R_231() { + if (jj_scan_token(PX)) return true; + return false; + } + + private boolean jj_3_1() { + if (jj_3R_178()) return true; + return false; + } + + private boolean jj_3R_230() { + if (jj_scan_token(IN)) return true; + return false; + } + + private boolean jj_3R_203() { + if (jj_scan_token(COMMA)) return true; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } + } + if (jj_3R_202()) return true; + return false; + } + + private boolean jj_3R_250() { + if (jj_3R_180()) return true; + return false; + } + + private boolean jj_3R_229() { + if (jj_scan_token(PC)) return true; + return false; + } + + private boolean jj_3R_228() { + if (jj_scan_token(MM)) return true; + return false; + } + + private boolean jj_3R_202() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_250()) { + jj_scanpos = xsp; + if (jj_3R_251()) return true; + } + while (true) { + xsp = jj_scanpos; + if (jj_3_2()) { jj_scanpos = xsp; break; } + } + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } + } + return false; + } + + private boolean jj_3R_227() { + if (jj_scan_token(CM)) return true; + return false; + } + + private boolean jj_3R_226() { + if (jj_scan_token(PT)) return true; + return false; + } + + private boolean jj_3R_225() { + if (jj_scan_token(PERCENTAGE)) return true; + return false; + } + + private boolean jj_3R_208() { + if (jj_3R_253()) return true; + return false; + } + + private boolean jj_3R_224() { + if (jj_scan_token(NUMBER)) return true; + return false; + } + + private boolean jj_3R_223() { + if (jj_3R_257()) return true; + return false; + } + + private boolean jj_3R_184() { + if (jj_3R_202()) return true; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_3R_203()) { jj_scanpos = xsp; break; } + } + return false; + } + + private boolean jj_3R_200() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_223()) jj_scanpos = xsp; + xsp = jj_scanpos; + if (jj_3R_224()) { + jj_scanpos = xsp; + if (jj_3R_225()) { + jj_scanpos = xsp; + if (jj_3R_226()) { + jj_scanpos = xsp; + if (jj_3R_227()) { + jj_scanpos = xsp; + if (jj_3R_228()) { + jj_scanpos = xsp; + if (jj_3R_229()) { + jj_scanpos = xsp; + if (jj_3R_230()) { + jj_scanpos = xsp; + if (jj_3R_231()) { + jj_scanpos = xsp; + if (jj_3R_232()) { + jj_scanpos = xsp; + if (jj_3R_233()) { + jj_scanpos = xsp; + if (jj_3R_234()) { + jj_scanpos = xsp; + if (jj_3R_235()) { + jj_scanpos = xsp; + if (jj_3R_236()) { + jj_scanpos = xsp; + if (jj_3R_237()) { + jj_scanpos = xsp; + if (jj_3R_238()) { + jj_scanpos = xsp; + if (jj_3R_239()) { + jj_scanpos = xsp; + if (jj_3R_240()) { + jj_scanpos = xsp; + if (jj_3R_241()) { + jj_scanpos = xsp; + if (jj_3R_242()) { + jj_scanpos = xsp; + if (jj_3R_243()) { + jj_scanpos = xsp; + if (jj_3R_244()) return true; + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + return false; + } + + private boolean jj_3R_183() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_200()) { + jj_scanpos = xsp; + if (jj_3R_201()) return true; + } + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } + } + return false; + } + + private boolean jj_3R_260() { + if (jj_scan_token(HASH)) return true; + return false; + } + + private boolean jj_3_4() { + if (jj_3R_181()) return true; + return false; + } + + private boolean jj_3R_253() { + if (jj_3R_188()) return true; + return false; + } + + private boolean jj_3R_261() { + if (jj_scan_token(URL)) return true; + return false; + } + + private boolean jj_3R_207() { + if (jj_3R_183()) return true; + return false; + } + + private boolean jj_3R_186() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_207()) { + jj_scanpos = xsp; + if (jj_3R_208()) return true; + } + return false; + } + + private boolean jj_3R_264() { + if (jj_scan_token(INTERPOLATION)) return true; + return false; + } + + private boolean jj_3_9() { + if (jj_3R_187()) return true; + return false; + } + + private boolean jj_3_3() { + if (jj_3R_178()) return true; + return false; + } + + private boolean jj_3R_267() { + if (jj_scan_token(PLUS)) return true; + return false; + } + + private boolean jj_3R_257() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_266()) { + jj_scanpos = xsp; + if (jj_3R_267()) return true; + } + return false; + } + + private boolean jj_3R_266() { + if (jj_scan_token(MINUS)) return true; + return false; + } + + private boolean jj_3R_262() { + if (jj_scan_token(UNICODERANGE)) return true; + return false; + } + + private boolean jj_3R_191() { + if (jj_scan_token(SEMICOLON)) return true; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } + } + return false; + } + + private boolean jj_3_8() { + Token xsp; + xsp = jj_scanpos; + if (jj_3_9()) jj_scanpos = xsp; + if (jj_3R_186()) return true; + return false; + } + + private boolean jj_3R_189() { + if (jj_3R_186()) return true; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_3_8()) { jj_scanpos = xsp; break; } + } + return false; + } + + private boolean jj_3R_188() { + if (jj_scan_token(VARIABLE)) return true; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_scan_token(1)) { jj_scanpos = xsp; break; } + } + return false; + } + + /** Generated Token Manager. */ + public ParserTokenManager token_source; + /** Current token. */ + public Token token; + /** Next token. */ + public Token jj_nt; + private int jj_ntk; + private Token jj_scanpos, jj_lastpos; + private int jj_la; + private int jj_gen; + final private int[] jj_la1 = new int[261]; + static private int[] jj_la1_0; + static private int[] jj_la1_1; + static private int[] jj_la1_2; + static private int[] jj_la1_3; + static { + jj_la1_init_0(); + jj_la1_init_1(); + jj_la1_init_2(); + jj_la1_init_3(); + } + private static void jj_la1_init_0() { + jj_la1_0 = new int[] {0x0,0xc02,0xc02,0x0,0xc00,0x2,0x2,0x2,0x53100000,0x0,0xc00,0x2,0xc00,0x2,0x0,0x2,0x0,0x2,0x2,0x0,0x0,0x2,0x2,0x0,0x2,0x0,0x2,0x2,0x53100000,0x53100000,0x2,0x2,0x2,0x53f45400,0x53f45400,0x2,0x400000,0x2,0x2,0x2,0x2,0x0,0x0,0x2,0x0,0x800000,0x2,0x0,0x2,0x2,0x2,0x2,0x0,0x800000,0x2,0x0,0x2,0xe45400,0x3100000,0x3100002,0x3100000,0x2,0x2,0x480002,0x480002,0x2,0x0,0x0,0x2,0x2,0x2,0x2,0x53100000,0x53100000,0x2,0x400000,0x2,0x53100000,0x2,0x10000000,0x10000000,0x10000000,0x10000000,0x10000000,0x10000000,0x10000000,0x10000000,0x10000000,0x10000000,0x50000000,0x0,0x0,0x0,0x0,0x40000000,0x2,0x2,0xfc000,0x2,0x0,0x2,0xfc000,0x0,0x2,0x0,0x2,0x0,0x2,0x800000,0x0,0x53100000,0x0,0x4d380002,0x2,0x53100000,0x2,0x0,0x2,0x4d380002,0x0,0x2,0x53100000,0x2,0x4d380002,0x2,0x2,0x2,0x0,0x2,0x53100000,0x2,0x2,0x400000,0x2,0x2,0x2,0x2,0x0,0x2,0x53100000,0x53100000,0x2,0x400000,0x2,0x2,0x2,0x400000,0x0,0x0,0x300000,0x2,0x0,0x400000,0x2,0x300000,0x2,0x0,0x2,0x0,0x2,0x800000,0x2,0x53100000,0x2,0x801000,0x2,0x2,0x0,0x2,0x0,0x2,0x2,0x2,0x400000,0x2,0x2,0x2,0x2,0x2,0x0,0x2,0x2,0x2,0x400000,0x2,0x2,0x2,0x0,0x2,0x2,0x2,0x400000,0x2,0x2,0x0,0x2,0x0,0x2,0x2,0x2,0x400000,0x0,0x2,0x2,0x0,0x2,0x2,0x2,0x800000,0x2,0x2,0x800000,0x2,0x2,0x0,0x800000,0x2,0x0,0x2,0x0,0x53100000,0x2,0x0,0x2,0x0,0x800000,0x2,0x0,0x2,0x301000,0x2,0x0,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0xc8700000,0x300000,0x300000,0x300000,0x0,0x0,0x0,0x300000,0x2,0x2,0x300000,0x2,0x53100000,0x2,0x2,0x2,0x0,0x800000,0x2,0x0,0x2,}; + } + private static void jj_la1_init_1() { + jj_la1_1 = new int[] {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x59800303,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x200,0x200,0x0,0x0,0x480000,0x0,0x480000,0x0,0x0,0x59000303,0x59000303,0x0,0x0,0x0,0x18000703,0x18000703,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x100,0x0,0x200,0x0,0x0,0x200,0x0,0x0,0x0,0x0,0x200,0x0,0x0,0x200,0x0,0x400,0x0,0x0,0x0,0x0,0x0,0x30a,0x30a,0x0,0x200,0x200,0x0,0x0,0x0,0x0,0x59000303,0x59000303,0x0,0x0,0x0,0x303,0x0,0x102,0x102,0x102,0x102,0x102,0x102,0x102,0x102,0x102,0x102,0x303,0x200,0x200,0x200,0x200,0x201,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x100,0x0,0x0,0x0,0x0,0x0,0x0,0x40000000,0x19000303,0x0,0xfc,0x0,0x19000303,0x0,0x0,0x0,0xfc,0x0,0x0,0x19000303,0x0,0xfc,0x0,0x0,0x0,0x0,0x0,0x19000303,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x200,0x0,0x59000303,0x59000303,0x0,0x0,0x0,0x0,0x0,0x0,0x100,0x100,0x102,0x0,0x100,0x0,0x0,0x102,0x0,0x100,0x0,0x200,0x0,0x0,0x0,0x18000303,0x0,0x0,0x0,0x0,0x0,0x0,0x8,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x8,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x8,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x8,0x0,0x0,0x0,0x0,0x18000000,0x0,0x0,0x180000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x200,0x0,0x0,0x200,0x0,0x18000000,0x303,0x0,0x0,0x0,0x200,0x0,0x0,0x200,0x0,0x2,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x2,0x0,0x0,0x2,0x2,0x2,0x0,0x0,0x2,0x0,0x18000303,0x0,0x0,0x0,0x200,0x0,0x0,0x200,0x0,}; + } + private static void jj_la1_init_2() { + jj_la1_2 = new int[] {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x401,0x4000,0x0,0x0,0x0,0x0,0x2200,0x0,0x400,0x0,0x0,0x400,0x400,0x0,0x0,0x8000,0x0,0x8000,0x0,0x0,0x4465,0x4465,0x0,0x0,0x0,0xae00,0xae00,0x0,0x0,0x0,0x0,0x0,0x0,0x400,0x0,0x0,0x400,0x0,0x0,0x400,0x0,0x0,0x0,0x0,0x400,0x0,0x0,0x400,0x0,0xaa00,0x0,0x0,0x0,0x0,0x0,0xe00,0xe00,0x0,0x400,0x400,0x0,0x0,0x0,0x0,0x4465,0x4465,0x0,0x0,0x0,0x400,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x400,0x400,0x400,0x400,0x400,0x400,0x0,0x0,0x0,0x0,0x600,0x0,0x0,0x0,0x0,0x400,0x0,0x100,0x0,0x0,0x1,0x424,0x4000,0x4c00,0x0,0x4424,0x0,0x2,0x0,0x4c00,0x80,0x0,0x4424,0x0,0x4c00,0x0,0x0,0x0,0x4400,0x0,0x4424,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x400,0x0,0x4425,0x4425,0x0,0x0,0x0,0x0,0x0,0x0,0x4000,0x4000,0xffffee00,0x0,0x0,0x0,0x0,0xffffee00,0x0,0x0,0x0,0x4400,0x0,0x0,0x0,0x400,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x4000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x400,0x0,0x0,0x400,0x0,0x0,0x400,0x0,0x0,0x0,0x400,0x0,0x0,0x400,0x0,0xffffee00,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xffffee00,0x0,0xffff8800,0x0,0x2600,0xffffae00,0x0,0x0,0xffffee00,0x0,0x400,0x0,0x0,0x0,0x400,0x0,0x0,0x400,0x0,}; + } + private static void jj_la1_init_3() { + jj_la1_3 = new int[] {0x20,0x200,0x200,0x8,0x200,0x0,0x0,0x0,0x1d4,0x0,0x200,0x0,0x200,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x114,0x114,0x0,0x0,0x0,0x31006fc,0x31006fc,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x31006f8,0x0,0x0,0x0,0x0,0x0,0x1000000,0x1000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x114,0x114,0x0,0x0,0x0,0x4,0x0,0x4,0x4,0x0,0x0,0x4,0x4,0x4,0x4,0x4,0x4,0x4,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1000000,0x0,0x0,0x0,0x0,0x0,0x114,0x0,0x800000,0x0,0x114,0x0,0x0,0x0,0x800000,0x0,0x0,0x114,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x114,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1000000,0x0,0x1d4,0x1d4,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1100007,0x0,0x0,0x0,0x0,0x1100007,0x0,0x0,0x0,0x1000000,0x0,0x0,0x0,0x4,0x0,0x0,0x0,0x0,0xe00000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x4,0x0,0x400,0x0,0x0,0x0,0x0,0x0,0x0,0x1100007,0x0,0x400,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1100007,0x0,0x1000003,0x0,0x100004,0x1100007,0x0,0x0,0x1100007,0x0,0xdc,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,}; + } + final private JJCalls[] jj_2_rtns = new JJCalls[9]; + private boolean jj_rescan = false; + private int jj_gc = 0; + + /** Constructor with user supplied CharStream. */ + public Parser(CharStream stream) { + token_source = new ParserTokenManager(stream); + token = new Token(); + jj_ntk = -1; + jj_gen = 0; + for (int i = 0; i < 261; i++) jj_la1[i] = -1; + for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); + } + + /** Reinitialise. */ + public void ReInit(CharStream stream) { + token_source.ReInit(stream); + token = new Token(); + jj_ntk = -1; + jj_gen = 0; + for (int i = 0; i < 261; i++) jj_la1[i] = -1; + for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); + } + + /** Constructor with generated Token Manager. */ + public Parser(ParserTokenManager tm) { + token_source = tm; + token = new Token(); + jj_ntk = -1; + jj_gen = 0; + for (int i = 0; i < 261; i++) jj_la1[i] = -1; + for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); + } + + /** Reinitialise. */ + public void ReInit(ParserTokenManager tm) { + token_source = tm; + token = new Token(); + jj_ntk = -1; + jj_gen = 0; + for (int i = 0; i < 261; i++) jj_la1[i] = -1; + for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); + } + + private Token jj_consume_token(int kind) throws ParseException { + Token oldToken; + if ((oldToken = token).next != null) token = token.next; + else token = token.next = token_source.getNextToken(); + jj_ntk = -1; + if (token.kind == kind) { + jj_gen++; + if (++jj_gc > 100) { + jj_gc = 0; + for (int i = 0; i < jj_2_rtns.length; i++) { + JJCalls c = jj_2_rtns[i]; + while (c != null) { + if (c.gen < jj_gen) c.first = null; + c = c.next; + } + } + } + return token; + } + token = oldToken; + jj_kind = kind; + throw generateParseException(); + } + + static private final class LookaheadSuccess extends java.lang.Error { } + final private LookaheadSuccess jj_ls = new LookaheadSuccess(); + private boolean jj_scan_token(int kind) { + if (jj_scanpos == jj_lastpos) { + jj_la--; + if (jj_scanpos.next == null) { + jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken(); + } else { + jj_lastpos = jj_scanpos = jj_scanpos.next; + } + } else { + jj_scanpos = jj_scanpos.next; + } + if (jj_rescan) { + int i = 0; Token tok = token; + while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; } + if (tok != null) jj_add_error_token(kind, i); + } + if (jj_scanpos.kind != kind) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) throw jj_ls; + return false; + } + + +/** Get the next Token. */ + final public Token getNextToken() { + if (token.next != null) token = token.next; + else token = token.next = token_source.getNextToken(); + jj_ntk = -1; + jj_gen++; + return token; + } + +/** Get the specific Token. */ + final public Token getToken(int index) { + Token t = token; + for (int i = 0; i < index; i++) { + if (t.next != null) t = t.next; + else t = t.next = token_source.getNextToken(); + } + return t; + } + + private int jj_ntk() { + if ((jj_nt=token.next) == null) + return (jj_ntk = (token.next=token_source.getNextToken()).kind); + else + return (jj_ntk = jj_nt.kind); + } + + private java.util.List jj_expentries = new java.util.ArrayList(); + private int[] jj_expentry; + private int jj_kind = -1; + private int[] jj_lasttokens = new int[100]; + private int jj_endpos; + + private void jj_add_error_token(int kind, int pos) { + if (pos >= 100) return; + if (pos == jj_endpos + 1) { + jj_lasttokens[jj_endpos++] = kind; + } else if (jj_endpos != 0) { + jj_expentry = new int[jj_endpos]; + for (int i = 0; i < jj_endpos; i++) { + jj_expentry[i] = jj_lasttokens[i]; + } + jj_entries_loop: for (java.util.Iterator it = jj_expentries.iterator(); it.hasNext();) { + int[] oldentry = (int[])(it.next()); + if (oldentry.length == jj_expentry.length) { + for (int i = 0; i < jj_expentry.length; i++) { + if (oldentry[i] != jj_expentry[i]) { + continue jj_entries_loop; + } + } + jj_expentries.add(jj_expentry); + break jj_entries_loop; + } + } + if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind; + } + } + + /** Generate ParseException. */ + public ParseException generateParseException() { + jj_expentries.clear(); + boolean[] la1tokens = new boolean[122]; + if (jj_kind >= 0) { + la1tokens[jj_kind] = true; + jj_kind = -1; + } + for (int i = 0; i < 261; i++) { + if (jj_la1[i] == jj_gen) { + for (int j = 0; j < 32; j++) { + if ((jj_la1_0[i] & (1< jj_gen) { + jj_la = p.arg; jj_lastpos = jj_scanpos = p.first; + switch (i) { + case 0: jj_3_1(); break; + case 1: jj_3_2(); break; + case 2: jj_3_3(); break; + case 3: jj_3_4(); break; + case 4: jj_3_5(); break; + case 5: jj_3_6(); break; + case 6: jj_3_7(); break; + case 7: jj_3_8(); break; + case 8: jj_3_9(); break; + } + } + p = p.next; + } while (p != null); + } catch(LookaheadSuccess ls) { } + } + jj_rescan = false; + } + + private void jj_save(int index, int xla) { + JJCalls p = jj_2_rtns[index]; + while (p.gen > jj_gen) { + if (p.next == null) { p = p.next = new JJCalls(); break; } + p = p.next; + } + p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla; + } + + static final class JJCalls { + int gen; + Token first; + int arg; + JJCalls next; + } } diff --git a/theme-compiler/src/com/vaadin/sass/internal/parser/ParserConstants.java b/theme-compiler/src/com/vaadin/sass/internal/parser/ParserConstants.java index b69ee77862..90fe640f8b 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/parser/ParserConstants.java +++ b/theme-compiler/src/com/vaadin/sass/internal/parser/ParserConstants.java @@ -1,293 +1,379 @@ -/* - * Copyright 2000-2013 Vaadin Ltd. - * - * Licensed 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. - */ /* Generated By:JavaCC: Do not edit this line. ParserConstants.java */ package com.vaadin.sass.internal.parser; + /** - * Token literal values and constants. Generated by - * org.javacc.parser.OtherFilesGen#start() + * Token literal values and constants. + * Generated by org.javacc.parser.OtherFilesGen#start() */ public interface ParserConstants { - /** End of File. */ - int EOF = 0; - /** RegularExpression Id. */ - int S = 1; - /** RegularExpression Id. */ - int FORMAL_COMMENT = 7; - /** RegularExpression Id. */ - int MULTI_LINE_COMMENT = 8; - /** RegularExpression Id. */ - int CDO = 10; - /** RegularExpression Id. */ - int CDC = 11; - /** RegularExpression Id. */ - int LBRACE = 12; - /** RegularExpression Id. */ - int RBRACE = 13; - /** RegularExpression Id. */ - int DASHMATCH = 14; - /** RegularExpression Id. */ - int CARETMATCH = 15; - /** RegularExpression Id. */ - int DOLLARMATCH = 16; - /** RegularExpression Id. */ - int STARMATCH = 17; - /** RegularExpression Id. */ - int INCLUDES = 18; - /** RegularExpression Id. */ - int EQ = 19; - /** RegularExpression Id. */ - int PLUS = 20; - /** RegularExpression Id. */ - int MINUS = 21; - /** RegularExpression Id. */ - int COMMA = 22; - /** RegularExpression Id. */ - int SEMICOLON = 23; - /** RegularExpression Id. */ - int PRECEDES = 24; - /** RegularExpression Id. */ - int SIBLING = 25; - /** RegularExpression Id. */ - int SUCCEEDS = 26; - /** RegularExpression Id. */ - int DIV = 27; - /** RegularExpression Id. */ - int LBRACKET = 28; - /** RegularExpression Id. */ - int RBRACKET = 29; - /** RegularExpression Id. */ - int ANY = 30; - /** RegularExpression Id. */ - int MOD = 31; - /** RegularExpression Id. */ - int PARENT = 32; - /** RegularExpression Id. */ - int DOT = 33; - /** RegularExpression Id. */ - int LPARAN = 34; - /** RegularExpression Id. */ - int RPARAN = 35; - /** RegularExpression Id. */ - int COMPARE = 36; - /** RegularExpression Id. */ - int OR = 37; - /** RegularExpression Id. */ - int AND = 38; - /** RegularExpression Id. */ - int NOT_EQ = 39; - /** RegularExpression Id. */ - int COLON = 40; - /** RegularExpression Id. */ - int INTERPOLATION = 41; - /** RegularExpression Id. */ - int NONASCII = 42; - /** RegularExpression Id. */ - int H = 43; - /** RegularExpression Id. */ - int UNICODE = 44; - /** RegularExpression Id. */ - int ESCAPE = 45; - /** RegularExpression Id. */ - int NMSTART = 46; - /** RegularExpression Id. */ - int NMCHAR = 47; - /** RegularExpression Id. */ - int STRINGCHAR = 48; - /** RegularExpression Id. */ - int D = 49; - /** RegularExpression Id. */ - int NAME = 50; - /** RegularExpression Id. */ - int TO = 51; - /** RegularExpression Id. */ - int THROUGH = 52; - /** RegularExpression Id. */ - int EACH_IN = 53; - /** RegularExpression Id. */ - int FROM = 54; - /** RegularExpression Id. */ - int MIXIN_SYM = 55; - /** RegularExpression Id. */ - int INCLUDE_SYM = 56; - /** RegularExpression Id. */ - int FUNCTION_SYM = 57; - /** RegularExpression Id. */ - int RETURN_SYM = 58; - /** RegularExpression Id. */ - int DEBUG_SYM = 59; - /** RegularExpression Id. */ - int WARN_SYM = 60; - /** RegularExpression Id. */ - int FOR_SYM = 61; - /** RegularExpression Id. */ - int EACH_SYM = 62; - /** RegularExpression Id. */ - int WHILE_SYM = 63; - /** RegularExpression Id. */ - int IF_SYM = 64; - /** RegularExpression Id. */ - int ELSE_SYM = 65; - /** RegularExpression Id. */ - int EXTEND_SYM = 66; - /** RegularExpression Id. */ - int MOZ_DOCUMENT_SYM = 67; - /** RegularExpression Id. */ - int SUPPORTS_SYM = 68; - /** RegularExpression Id. */ - int CONTENT_SYM = 69; - /** RegularExpression Id. */ - int MICROSOFT_RULE = 70; - /** RegularExpression Id. */ - int IF = 71; - /** RegularExpression Id. */ - int GUARDED_SYM = 72; - /** RegularExpression Id. */ - int STRING = 73; - /** RegularExpression Id. */ - int IDENT = 74; - /** RegularExpression Id. */ - int NUMBER = 75; - /** RegularExpression Id. */ - int _URL = 76; - /** RegularExpression Id. */ - int URL = 77; - /** RegularExpression Id. */ - int VARIABLE = 78; - /** RegularExpression Id. */ - int PERCENTAGE = 79; - /** RegularExpression Id. */ - int PT = 80; - /** RegularExpression Id. */ - int MM = 81; - /** RegularExpression Id. */ - int CM = 82; - /** RegularExpression Id. */ - int PC = 83; - /** RegularExpression Id. */ - int IN = 84; - /** RegularExpression Id. */ - int PX = 85; - /** RegularExpression Id. */ - int EMS = 86; - /** RegularExpression Id. */ - int LEM = 87; - /** RegularExpression Id. */ - int REM = 88; - /** RegularExpression Id. */ - int EXS = 89; - /** RegularExpression Id. */ - int DEG = 90; - /** RegularExpression Id. */ - int RAD = 91; - /** RegularExpression Id. */ - int GRAD = 92; - /** RegularExpression Id. */ - int MS = 93; - /** RegularExpression Id. */ - int SECOND = 94; - /** RegularExpression Id. */ - int HZ = 95; - /** RegularExpression Id. */ - int KHZ = 96; - /** RegularExpression Id. */ - int DIMEN = 97; - /** RegularExpression Id. */ - int HASH = 98; - /** RegularExpression Id. */ - int IMPORT_SYM = 99; - /** RegularExpression Id. */ - int MEDIA_SYM = 100; - /** RegularExpression Id. */ - int CHARSET_SYM = 101; - /** RegularExpression Id. */ - int PAGE_SYM = 102; - /** RegularExpression Id. */ - int FONT_FACE_SYM = 103; - /** RegularExpression Id. */ - int KEY_FRAME_SYM = 104; - /** RegularExpression Id. */ - int ATKEYWORD = 105; - /** RegularExpression Id. */ - int IMPORTANT_SYM = 106; - /** RegularExpression Id. */ - int RANGE0 = 107; - /** RegularExpression Id. */ - int RANGE1 = 108; - /** RegularExpression Id. */ - int RANGE2 = 109; - /** RegularExpression Id. */ - int RANGE3 = 110; - /** RegularExpression Id. */ - int RANGE4 = 111; - /** RegularExpression Id. */ - int RANGE5 = 112; - /** RegularExpression Id. */ - int RANGE6 = 113; - /** RegularExpression Id. */ - int RANGE = 114; - /** RegularExpression Id. */ - int UNI = 115; - /** RegularExpression Id. */ - int UNICODERANGE = 116; - /** RegularExpression Id. */ - int REMOVE = 117; - /** RegularExpression Id. */ - int APPEND = 118; - /** RegularExpression Id. */ - int CONTAINS = 119; - /** RegularExpression Id. */ - int FUNCTION = 120; - /** RegularExpression Id. */ - int UNKNOWN = 121; + /** End of File. */ + int EOF = 0; + /** RegularExpression Id. */ + int S = 1; + /** RegularExpression Id. */ + int FORMAL_COMMENT = 7; + /** RegularExpression Id. */ + int MULTI_LINE_COMMENT = 8; + /** RegularExpression Id. */ + int CDO = 10; + /** RegularExpression Id. */ + int CDC = 11; + /** RegularExpression Id. */ + int LBRACE = 12; + /** RegularExpression Id. */ + int RBRACE = 13; + /** RegularExpression Id. */ + int DASHMATCH = 14; + /** RegularExpression Id. */ + int CARETMATCH = 15; + /** RegularExpression Id. */ + int DOLLARMATCH = 16; + /** RegularExpression Id. */ + int STARMATCH = 17; + /** RegularExpression Id. */ + int INCLUDES = 18; + /** RegularExpression Id. */ + int EQ = 19; + /** RegularExpression Id. */ + int PLUS = 20; + /** RegularExpression Id. */ + int MINUS = 21; + /** RegularExpression Id. */ + int COMMA = 22; + /** RegularExpression Id. */ + int SEMICOLON = 23; + /** RegularExpression Id. */ + int PRECEDES = 24; + /** RegularExpression Id. */ + int SIBLING = 25; + /** RegularExpression Id. */ + int SUCCEEDS = 26; + /** RegularExpression Id. */ + int DIV = 27; + /** RegularExpression Id. */ + int LBRACKET = 28; + /** RegularExpression Id. */ + int RBRACKET = 29; + /** RegularExpression Id. */ + int ANY = 30; + /** RegularExpression Id. */ + int MOD = 31; + /** RegularExpression Id. */ + int PARENT = 32; + /** RegularExpression Id. */ + int DOT = 33; + /** RegularExpression Id. */ + int LPARAN = 34; + /** RegularExpression Id. */ + int RPARAN = 35; + /** RegularExpression Id. */ + int COMPARE = 36; + /** RegularExpression Id. */ + int OR = 37; + /** RegularExpression Id. */ + int AND = 38; + /** RegularExpression Id. */ + int NOT_EQ = 39; + /** RegularExpression Id. */ + int COLON = 40; + /** RegularExpression Id. */ + int INTERPOLATION = 41; + /** RegularExpression Id. */ + int NONASCII = 42; + /** RegularExpression Id. */ + int H = 43; + /** RegularExpression Id. */ + int UNICODE = 44; + /** RegularExpression Id. */ + int ESCAPE = 45; + /** RegularExpression Id. */ + int NMSTART = 46; + /** RegularExpression Id. */ + int NMCHAR = 47; + /** RegularExpression Id. */ + int STRINGCHAR = 48; + /** RegularExpression Id. */ + int D = 49; + /** RegularExpression Id. */ + int NAME = 50; + /** RegularExpression Id. */ + int TO = 51; + /** RegularExpression Id. */ + int THROUGH = 52; + /** RegularExpression Id. */ + int EACH_IN = 53; + /** RegularExpression Id. */ + int FROM = 54; + /** RegularExpression Id. */ + int MIXIN_SYM = 55; + /** RegularExpression Id. */ + int INCLUDE_SYM = 56; + /** RegularExpression Id. */ + int FUNCTION_SYM = 57; + /** RegularExpression Id. */ + int RETURN_SYM = 58; + /** RegularExpression Id. */ + int DEBUG_SYM = 59; + /** RegularExpression Id. */ + int WARN_SYM = 60; + /** RegularExpression Id. */ + int FOR_SYM = 61; + /** RegularExpression Id. */ + int EACH_SYM = 62; + /** RegularExpression Id. */ + int WHILE_SYM = 63; + /** RegularExpression Id. */ + int IF_SYM = 64; + /** RegularExpression Id. */ + int ELSE_SYM = 65; + /** RegularExpression Id. */ + int EXTEND_SYM = 66; + /** RegularExpression Id. */ + int MOZ_DOCUMENT_SYM = 67; + /** RegularExpression Id. */ + int SUPPORTS_SYM = 68; + /** RegularExpression Id. */ + int CONTENT_SYM = 69; + /** RegularExpression Id. */ + int MICROSOFT_RULE = 70; + /** RegularExpression Id. */ + int IF = 71; + /** RegularExpression Id. */ + int GUARDED_SYM = 72; + /** RegularExpression Id. */ + int STRING = 73; + /** RegularExpression Id. */ + int IDENT = 74; + /** RegularExpression Id. */ + int NUMBER = 75; + /** RegularExpression Id. */ + int _URL = 76; + /** RegularExpression Id. */ + int URL = 77; + /** RegularExpression Id. */ + int VARIABLE = 78; + /** RegularExpression Id. */ + int PERCENTAGE = 79; + /** RegularExpression Id. */ + int PT = 80; + /** RegularExpression Id. */ + int MM = 81; + /** RegularExpression Id. */ + int CM = 82; + /** RegularExpression Id. */ + int PC = 83; + /** RegularExpression Id. */ + int IN = 84; + /** RegularExpression Id. */ + int PX = 85; + /** RegularExpression Id. */ + int EMS = 86; + /** RegularExpression Id. */ + int LEM = 87; + /** RegularExpression Id. */ + int REM = 88; + /** RegularExpression Id. */ + int EXS = 89; + /** RegularExpression Id. */ + int DEG = 90; + /** RegularExpression Id. */ + int RAD = 91; + /** RegularExpression Id. */ + int GRAD = 92; + /** RegularExpression Id. */ + int MS = 93; + /** RegularExpression Id. */ + int SECOND = 94; + /** RegularExpression Id. */ + int HZ = 95; + /** RegularExpression Id. */ + int KHZ = 96; + /** RegularExpression Id. */ + int DIMEN = 97; + /** RegularExpression Id. */ + int HASH = 98; + /** RegularExpression Id. */ + int IMPORT_SYM = 99; + /** RegularExpression Id. */ + int MEDIA_SYM = 100; + /** RegularExpression Id. */ + int CHARSET_SYM = 101; + /** RegularExpression Id. */ + int PAGE_SYM = 102; + /** RegularExpression Id. */ + int FONT_FACE_SYM = 103; + /** RegularExpression Id. */ + int KEY_FRAME_SYM = 104; + /** RegularExpression Id. */ + int ATKEYWORD = 105; + /** RegularExpression Id. */ + int IMPORTANT_SYM = 106; + /** RegularExpression Id. */ + int RANGE0 = 107; + /** RegularExpression Id. */ + int RANGE1 = 108; + /** RegularExpression Id. */ + int RANGE2 = 109; + /** RegularExpression Id. */ + int RANGE3 = 110; + /** RegularExpression Id. */ + int RANGE4 = 111; + /** RegularExpression Id. */ + int RANGE5 = 112; + /** RegularExpression Id. */ + int RANGE6 = 113; + /** RegularExpression Id. */ + int RANGE = 114; + /** RegularExpression Id. */ + int UNI = 115; + /** RegularExpression Id. */ + int UNICODERANGE = 116; + /** RegularExpression Id. */ + int REMOVE = 117; + /** RegularExpression Id. */ + int APPEND = 118; + /** RegularExpression Id. */ + int CONTAINS = 119; + /** RegularExpression Id. */ + int FUNCTION = 120; + /** RegularExpression Id. */ + int UNKNOWN = 121; - /** Lexical state. */ - int DEFAULT = 0; - /** Lexical state. */ - int IN_SINGLE_LINE_COMMENT = 1; - /** Lexical state. */ - int IN_FORMAL_COMMENT = 2; - /** Lexical state. */ - int IN_MULTI_LINE_COMMENT = 3; + /** Lexical state. */ + int DEFAULT = 0; + /** Lexical state. */ + int IN_SINGLE_LINE_COMMENT = 1; + /** Lexical state. */ + int IN_FORMAL_COMMENT = 2; + /** Lexical state. */ + int IN_MULTI_LINE_COMMENT = 3; - /** Literal token values. */ - String[] tokenImage = { "", "", "\"//\"", "", - "", "", "\"/*\"", "\"*/\"", - "\"*/\"", "", "\"\"", "\"{\"", - "\"}\"", "\"|=\"", "\"^=\"", "\"$=\"", "\"*=\"", "\"~=\"", "\"=\"", - "\"+\"", "\"-\"", "\",\"", "\";\"", "\">\"", "\"~\"", "\"<\"", - "\"/\"", "\"[\"", "\"]\"", "\"*\"", "\"%\"", "\"&\"", "\".\"", - "\"(\"", "\")\"", "\"==\"", "\"||\"", "\"&&\"", "\"!=\"", "\":\"", - "", "", "", "", "", - "", "", "", "", "", "\"to\"", - "\"through\"", "\"in\"", "\"from\"", "\"@mixin\"", "\"@include\"", - "\"@function\"", "\"@return\"", "\"@debug\"", "\"@warn\"", - "\"@for\"", "\"@each\"", "\"@while\"", "\"@if\"", "\"@else\"", - "\"@extend\"", "\"@-moz-document\"", "\"@supports\"", - "\"@content\"", "", "\"if\"", "", - "", "", "", "<_URL>", "", "", - "", "", "", "", "", "", "", - "", "", "", "", "", "", "", - "", "", "", "", "", "", - "\"@import\"", "\"@media\"", "\"@charset\"", "\"@page\"", - "\"@font-face\"", "", "", - "", "", "", "", "", - "", "", "", "", "", - "", "", "", "", - "", "", }; + /** Literal token values. */ + String[] tokenImage = { + "", + "", + "\"//\"", + "", + "", + "", + "\"/*\"", + "\"*/\"", + "\"*/\"", + "", + "\"\"", + "\"{\"", + "\"}\"", + "\"|=\"", + "\"^=\"", + "\"$=\"", + "\"*=\"", + "\"~=\"", + "\"=\"", + "\"+\"", + "\"-\"", + "\",\"", + "\";\"", + "\">\"", + "\"~\"", + "\"<\"", + "\"/\"", + "\"[\"", + "\"]\"", + "\"*\"", + "\"%\"", + "\"&\"", + "\".\"", + "\"(\"", + "\")\"", + "\"==\"", + "\"||\"", + "\"&&\"", + "\"!=\"", + "\":\"", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "\"to\"", + "\"through\"", + "\"in\"", + "\"from\"", + "\"@mixin\"", + "\"@include\"", + "\"@function\"", + "\"@return\"", + "\"@debug\"", + "\"@warn\"", + "\"@for\"", + "\"@each\"", + "\"@while\"", + "\"@if\"", + "\"@else\"", + "\"@extend\"", + "\"@-moz-document\"", + "\"@supports\"", + "\"@content\"", + "", + "\"if\"", + "", + "", + "", + "", + "<_URL>", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "\"@import\"", + "\"@media\"", + "\"@charset\"", + "\"@page\"", + "\"@font-face\"", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + }; } diff --git a/theme-compiler/src/com/vaadin/sass/internal/parser/ParserTokenManager.java b/theme-compiler/src/com/vaadin/sass/internal/parser/ParserTokenManager.java index be145628a0..6271673d5d 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/parser/ParserTokenManager.java +++ b/theme-compiler/src/com/vaadin/sass/internal/parser/ParserTokenManager.java @@ -1,6041 +1,5060 @@ -/* - * Copyright 2000-2013 Vaadin Ltd. - * - * Licensed 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. - */ /* Generated By:JavaCC: Do not edit this line. ParserTokenManager.java */ package com.vaadin.sass.internal.parser; +import java.io.*; +import java.net.*; +import java.util.ArrayList; +import java.util.Locale; +import java.util.Map; +import java.util.UUID; +import org.w3c.css.sac.ConditionFactory; +import org.w3c.css.sac.Condition; +import org.w3c.css.sac.SelectorFactory; +import org.w3c.css.sac.SelectorList; +import org.w3c.css.sac.Selector; +import org.w3c.css.sac.SimpleSelector; +import org.w3c.css.sac.DocumentHandler; +import org.w3c.css.sac.InputSource; +import org.w3c.css.sac.ErrorHandler; +import org.w3c.css.sac.CSSException; +import org.w3c.css.sac.CSSParseException; +import org.w3c.css.sac.Locator; +import org.w3c.css.sac.LexicalUnit; +import org.w3c.flute.parser.selectors.SelectorFactoryImpl; +import org.w3c.flute.parser.selectors.ConditionFactoryImpl; +import org.w3c.flute.util.Encoding; +import com.vaadin.sass.internal.handler.*; +import com.vaadin.sass.internal.tree.*; /** Token Manager. */ -public class ParserTokenManager implements ParserConstants { +public class ParserTokenManager implements ParserConstants +{ - /** Debug output. */ - public java.io.PrintStream debugStream = System.out; - - /** Set debug output. */ - public void setDebugStream(java.io.PrintStream ds) { - debugStream = ds; - } - - private final int jjStopStringLiteralDfa_0(int pos, long active0, - long active1) { - switch (pos) { - case 0: - if ((active0 & 0x40000000000000L) != 0L) { - jjmatchedKind = 74; - return 33; - } - if ((active0 & 0x8000000000L) != 0L) { - return 517; - } - if ((active0 & 0x10000L) != 0L) { - return 79; - } - if ((active0 & 0x200800L) != 0L) { - return 42; - } - if ((active0 & 0x8000044L) != 0L) { - return 3; - } - if ((active0 & 0xff80000000000000L) != 0L - || (active1 & 0xf80000003fL) != 0L) { - return 166; - } - if ((active0 & 0x38000000000000L) != 0L || (active1 & 0x80L) != 0L) { - jjmatchedKind = 74; - return 518; - } - if ((active0 & 0x200000000L) != 0L) { - return 519; - } - return -1; - case 1: - if ((active0 & 0x50000000000000L) != 0L) { - jjmatchedKind = 74; - jjmatchedPos = 1; - return 518; - } - if ((active1 & 0x8L) != 0L) { - return 178; - } - if ((active0 & 0xff80000000000000L) != 0L - || (active1 & 0xf800000037L) != 0L) { - jjmatchedKind = 105; - jjmatchedPos = 1; - return 520; - } - if ((active0 & 0x40L) != 0L) { - return 1; - } - if ((active0 & 0x28000000000000L) != 0L || (active1 & 0x80L) != 0L) { - return 518; - } - return -1; - case 2: - if ((active1 & 0x8L) != 0L) { - jjmatchedKind = 105; - jjmatchedPos = 2; - return 177; - } - if ((active1 & 0x1L) != 0L) { - return 520; - } - if ((active0 & 0xff80000000000000L) != 0L - || (active1 & 0xf800000036L) != 0L) { - jjmatchedKind = 105; - jjmatchedPos = 2; - return 520; - } - if ((active0 & 0x50000000000000L) != 0L) { - jjmatchedKind = 74; - jjmatchedPos = 2; - return 518; - } - return -1; - case 3: - if ((active0 & 0x10000000000000L) != 0L) { - jjmatchedKind = 74; - jjmatchedPos = 3; - return 518; - } - if ((active1 & 0x8L) != 0L) { - jjmatchedKind = 105; - jjmatchedPos = 3; - return 176; - } - if ((active0 & 0xdf80000000000000L) != 0L - || (active1 & 0xf800000036L) != 0L) { - jjmatchedKind = 105; - jjmatchedPos = 3; - return 520; - } - if ((active0 & 0x2000000000000000L) != 0L) { - return 520; - } - if ((active0 & 0x40000000000000L) != 0L) { - return 518; - } - return -1; - case 4: - if ((active0 & 0x8f80000000000000L) != 0L - || (active1 & 0xb800000034L) != 0L) { - jjmatchedKind = 105; - jjmatchedPos = 4; - return 520; - } - if ((active0 & 0x5000000000000000L) != 0L - || (active1 & 0x4000000002L) != 0L) { - return 520; - } - if ((active0 & 0x10000000000000L) != 0L) { - jjmatchedKind = 74; - jjmatchedPos = 4; - return 518; - } - if ((active1 & 0x8L) != 0L) { - jjmatchedKind = 105; - jjmatchedPos = 4; - return 175; - } - return -1; - case 5: - if ((active0 & 0x700000000000000L) != 0L - || (active1 & 0xa800000034L) != 0L) { - jjmatchedKind = 105; - jjmatchedPos = 5; - return 520; - } - if ((active0 & 0x10000000000000L) != 0L) { - jjmatchedKind = 74; - jjmatchedPos = 5; - return 518; - } - if ((active1 & 0x8L) != 0L) { - jjmatchedKind = 105; - jjmatchedPos = 5; - return 174; - } - if ((active0 & 0x8880000000000000L) != 0L - || (active1 & 0x1000000000L) != 0L) { - return 520; - } - return -1; - case 6: - if ((active0 & 0x400000000000000L) != 0L - || (active1 & 0x800000004L) != 0L) { - return 520; - } - if ((active0 & 0x300000000000000L) != 0L - || (active1 & 0xa000000038L) != 0L) { - jjmatchedKind = 105; - jjmatchedPos = 6; - return 520; - } - if ((active0 & 0x10000000000000L) != 0L) { - return 518; - } - return -1; - case 7: - if ((active0 & 0x100000000000000L) != 0L - || (active1 & 0x2000000020L) != 0L) { - return 520; - } - if ((active0 & 0x200000000000000L) != 0L - || (active1 & 0x8000000018L) != 0L) { - jjmatchedKind = 105; - jjmatchedPos = 7; - return 520; - } - return -1; - case 8: - if ((active0 & 0x200000000000000L) != 0L || (active1 & 0x10L) != 0L) { - return 520; - } - if ((active1 & 0x8000000008L) != 0L) { - jjmatchedKind = 105; - jjmatchedPos = 8; - return 520; - } - return -1; - case 9: - if ((active1 & 0x8L) != 0L) { - jjmatchedKind = 105; - jjmatchedPos = 9; - return 520; - } - if ((active1 & 0x8000000000L) != 0L) { - return 520; - } - return -1; - case 10: - if ((active1 & 0x8L) != 0L) { - jjmatchedKind = 105; - jjmatchedPos = 10; - return 520; - } - return -1; - case 11: - if ((active1 & 0x8L) != 0L) { - jjmatchedKind = 105; - jjmatchedPos = 11; - return 520; - } - return -1; - case 12: - if ((active1 & 0x8L) != 0L) { - jjmatchedKind = 105; - jjmatchedPos = 12; - return 520; - } - return -1; - default: - return -1; - } - } - - private final int jjStartNfa_0(int pos, long active0, long active1) { - return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0, active1), - pos + 1); - } - - private int jjStopAtPos(int pos, int kind) { - jjmatchedKind = kind; - jjmatchedPos = pos; - return pos + 1; - } - - private int jjMoveStringLiteralDfa0_0() { - switch (curChar) { - case 33: - return jjMoveStringLiteralDfa1_0(0x8000000000L, 0x0L); - case 36: - return jjMoveStringLiteralDfa1_0(0x10000L, 0x0L); - case 37: - return jjStopAtPos(0, 31); - case 38: - jjmatchedKind = 32; - return jjMoveStringLiteralDfa1_0(0x4000000000L, 0x0L); - case 40: - return jjStopAtPos(0, 34); - case 41: - return jjStopAtPos(0, 35); - case 42: - jjmatchedKind = 30; - return jjMoveStringLiteralDfa1_0(0x20000L, 0x0L); - case 43: - return jjStopAtPos(0, 20); - case 44: - return jjStopAtPos(0, 22); - case 45: - jjmatchedKind = 21; - return jjMoveStringLiteralDfa1_0(0x800L, 0x0L); - case 46: - return jjStartNfaWithStates_0(0, 33, 519); - case 47: - jjmatchedKind = 27; - return jjMoveStringLiteralDfa1_0(0x44L, 0x0L); - case 58: - return jjStopAtPos(0, 40); - case 59: - return jjStopAtPos(0, 23); - case 60: - jjmatchedKind = 26; - return jjMoveStringLiteralDfa1_0(0x400L, 0x0L); - case 61: - jjmatchedKind = 19; - return jjMoveStringLiteralDfa1_0(0x1000000000L, 0x0L); - case 62: - return jjStopAtPos(0, 24); - case 64: - return jjMoveStringLiteralDfa1_0(0xff80000000000000L, 0xf80000003fL); - case 91: - return jjStopAtPos(0, 28); - case 93: - return jjStopAtPos(0, 29); - case 94: - return jjMoveStringLiteralDfa1_0(0x8000L, 0x0L); - case 70: - case 102: - return jjMoveStringLiteralDfa1_0(0x40000000000000L, 0x0L); - case 73: - case 105: - return jjMoveStringLiteralDfa1_0(0x20000000000000L, 0x80L); - case 84: - case 116: - return jjMoveStringLiteralDfa1_0(0x18000000000000L, 0x0L); - case 123: - return jjStopAtPos(0, 12); - case 124: - return jjMoveStringLiteralDfa1_0(0x2000004000L, 0x0L); - case 125: - return jjStopAtPos(0, 13); - case 126: - jjmatchedKind = 25; - return jjMoveStringLiteralDfa1_0(0x40000L, 0x0L); - default: - return jjMoveNfa_0(4, 0); - } - } - - private int jjMoveStringLiteralDfa1_0(long active0, long active1) { - try { - curChar = input_stream.readChar(); - } catch (java.io.IOException e) { - jjStopStringLiteralDfa_0(0, active0, active1); - return 1; - } - switch (curChar) { - case 33: - return jjMoveStringLiteralDfa2_0(active0, 0x400L, active1, 0L); - case 38: - if ((active0 & 0x4000000000L) != 0L) { - return jjStopAtPos(1, 38); - } - break; - case 42: - if ((active0 & 0x40L) != 0L) { - return jjStartNfaWithStates_0(1, 6, 1); - } - break; - case 45: - return jjMoveStringLiteralDfa2_0(active0, 0x800L, active1, 0x8L); - case 47: - if ((active0 & 0x4L) != 0L) { - return jjStopAtPos(1, 2); - } - break; - case 61: - if ((active0 & 0x4000L) != 0L) { - return jjStopAtPos(1, 14); - } else if ((active0 & 0x8000L) != 0L) { - return jjStopAtPos(1, 15); - } else if ((active0 & 0x10000L) != 0L) { - return jjStopAtPos(1, 16); - } else if ((active0 & 0x20000L) != 0L) { - return jjStopAtPos(1, 17); - } else if ((active0 & 0x40000L) != 0L) { - return jjStopAtPos(1, 18); - } else if ((active0 & 0x1000000000L) != 0L) { - return jjStopAtPos(1, 36); - } else if ((active0 & 0x8000000000L) != 0L) { - return jjStopAtPos(1, 39); - } - break; - case 67: - case 99: - return jjMoveStringLiteralDfa2_0(active0, 0L, active1, - 0x2000000020L); - case 68: - case 100: - return jjMoveStringLiteralDfa2_0(active0, 0x800000000000000L, - active1, 0L); - case 69: - case 101: - return jjMoveStringLiteralDfa2_0(active0, 0x4000000000000000L, - active1, 0x6L); - case 70: - case 102: - if ((active1 & 0x80L) != 0L) { - return jjStartNfaWithStates_0(1, 71, 518); - } - return jjMoveStringLiteralDfa2_0(active0, 0x2200000000000000L, - active1, 0x8000000000L); - case 72: - case 104: - return jjMoveStringLiteralDfa2_0(active0, 0x10000000000000L, - active1, 0L); - case 73: - case 105: - return jjMoveStringLiteralDfa2_0(active0, 0x100000000000000L, - active1, 0x800000001L); - case 77: - case 109: - return jjMoveStringLiteralDfa2_0(active0, 0x80000000000000L, - active1, 0x1000000000L); - case 78: - case 110: - if ((active0 & 0x20000000000000L) != 0L) { - return jjStartNfaWithStates_0(1, 53, 518); - } - break; - case 79: - case 111: - if ((active0 & 0x8000000000000L) != 0L) { - return jjStartNfaWithStates_0(1, 51, 518); - } - break; - case 80: - case 112: - return jjMoveStringLiteralDfa2_0(active0, 0L, active1, - 0x4000000000L); - case 82: - case 114: - return jjMoveStringLiteralDfa2_0(active0, 0x440000000000000L, - active1, 0L); - case 83: - case 115: - return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x10L); - case 87: - case 119: - return jjMoveStringLiteralDfa2_0(active0, 0x9000000000000000L, - active1, 0L); - case 124: - if ((active0 & 0x2000000000L) != 0L) { - return jjStopAtPos(1, 37); - } - break; - default: - break; - } - return jjStartNfa_0(0, active0, active1); - } - - private int jjMoveStringLiteralDfa2_0(long old0, long active0, long old1, - long active1) { - if (((active0 &= old0) | (active1 &= old1)) == 0L) { - return jjStartNfa_0(0, old0, old1); - } - try { - curChar = input_stream.readChar(); - } catch (java.io.IOException e) { - jjStopStringLiteralDfa_0(1, active0, active1); - return 2; - } - switch (curChar) { - case 45: - return jjMoveStringLiteralDfa3_0(active0, 0x400L, active1, 0L); - case 62: - if ((active0 & 0x800L) != 0L) { - return jjStopAtPos(2, 11); - } - break; - case 65: - case 97: - return jjMoveStringLiteralDfa3_0(active0, 0x5000000000000000L, - active1, 0x4000000000L); - case 69: - case 101: - return jjMoveStringLiteralDfa3_0(active0, 0xc00000000000000L, - active1, 0x1000000000L); - case 70: - case 102: - if ((active1 & 0x1L) != 0L) { - return jjStartNfaWithStates_0(2, 64, 520); - } - break; - case 72: - case 104: - return jjMoveStringLiteralDfa3_0(active0, 0x8000000000000000L, - active1, 0x2000000000L); - case 73: - case 105: - return jjMoveStringLiteralDfa3_0(active0, 0x80000000000000L, - active1, 0L); - case 76: - case 108: - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x2L); - case 77: - case 109: - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x800000008L); - case 78: - case 110: - return jjMoveStringLiteralDfa3_0(active0, 0x100000000000000L, - active1, 0L); - case 79: - case 111: - return jjMoveStringLiteralDfa3_0(active0, 0x2040000000000000L, - active1, 0x8000000020L); - case 82: - case 114: - return jjMoveStringLiteralDfa3_0(active0, 0x10000000000000L, - active1, 0L); - case 85: - case 117: - return jjMoveStringLiteralDfa3_0(active0, 0x200000000000000L, - active1, 0x10L); - case 88: - case 120: - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x4L); - default: - break; - } - return jjStartNfa_0(1, active0, active1); - } - - private int jjMoveStringLiteralDfa3_0(long old0, long active0, long old1, - long active1) { - if (((active0 &= old0) | (active1 &= old1)) == 0L) { - return jjStartNfa_0(1, old0, old1); - } - try { - curChar = input_stream.readChar(); - } catch (java.io.IOException e) { - jjStopStringLiteralDfa_0(2, active0, active1); + /** Debug output. */ + public java.io.PrintStream debugStream = System.out; + /** Set debug output. */ + public void setDebugStream(java.io.PrintStream ds) { debugStream = ds; } +private final int jjStopStringLiteralDfa_0(int pos, long active0, long active1) +{ + switch (pos) + { + case 0: + if ((active0 & 0x40000000000000L) != 0L) + { + jjmatchedKind = 74; + return 33; + } + if ((active0 & 0x8000000000L) != 0L) + return 517; + if ((active0 & 0x10000L) != 0L) + return 79; + if ((active0 & 0x200800L) != 0L) + return 42; + if ((active0 & 0x8000044L) != 0L) return 3; - } - switch (curChar) { - case 45: - if ((active0 & 0x400L) != 0L) { - return jjStopAtPos(3, 10); - } - break; - case 65: - case 97: - return jjMoveStringLiteralDfa4_0(active0, 0L, active1, - 0x2000000000L); - case 66: - case 98: - return jjMoveStringLiteralDfa4_0(active0, 0x800000000000000L, - active1, 0L); - case 67: - case 99: - return jjMoveStringLiteralDfa4_0(active0, 0x4100000000000000L, - active1, 0L); - case 68: - case 100: - return jjMoveStringLiteralDfa4_0(active0, 0L, active1, - 0x1000000000L); - case 71: - case 103: - return jjMoveStringLiteralDfa4_0(active0, 0L, active1, - 0x4000000000L); - case 73: - case 105: - return jjMoveStringLiteralDfa4_0(active0, 0x8000000000000000L, - active1, 0L); - case 77: - case 109: - if ((active0 & 0x40000000000000L) != 0L) { - return jjStartNfaWithStates_0(3, 54, 518); - } - break; - case 78: - case 110: - return jjMoveStringLiteralDfa4_0(active0, 0x200000000000000L, - active1, 0x8000000020L); - case 79: - case 111: - return jjMoveStringLiteralDfa4_0(active0, 0x10000000000000L, - active1, 0x8L); - case 80: - case 112: - return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x800000010L); - case 82: - case 114: - if ((active0 & 0x2000000000000000L) != 0L) { - return jjStartNfaWithStates_0(3, 61, 520); - } - return jjMoveStringLiteralDfa4_0(active0, 0x1000000000000000L, - active1, 0L); - case 83: - case 115: - return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x2L); - case 84: - case 116: - return jjMoveStringLiteralDfa4_0(active0, 0x400000000000000L, - active1, 0x4L); - case 88: - case 120: - return jjMoveStringLiteralDfa4_0(active0, 0x80000000000000L, - active1, 0L); - default: - break; - } - return jjStartNfa_0(2, active0, active1); - } - - private int jjMoveStringLiteralDfa4_0(long old0, long active0, long old1, - long active1) { - if (((active0 &= old0) | (active1 &= old1)) == 0L) { - return jjStartNfa_0(2, old0, old1); - } - try { - curChar = input_stream.readChar(); - } catch (java.io.IOException e) { - jjStopStringLiteralDfa_0(3, active0, active1); - return 4; - } - switch (curChar) { - case 67: - case 99: - return jjMoveStringLiteralDfa5_0(active0, 0x200000000000000L, - active1, 0L); - case 69: - case 101: - if ((active1 & 0x2L) != 0L) { - return jjStartNfaWithStates_0(4, 65, 520); - } else if ((active1 & 0x4000000000L) != 0L) { - return jjStartNfaWithStates_0(4, 102, 520); - } - return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x4L); - case 72: - case 104: - if ((active0 & 0x4000000000000000L) != 0L) { - return jjStartNfaWithStates_0(4, 62, 520); - } - break; - case 73: - case 105: - return jjMoveStringLiteralDfa5_0(active0, 0x80000000000000L, - active1, 0x1000000000L); - case 76: - case 108: - return jjMoveStringLiteralDfa5_0(active0, 0x8100000000000000L, - active1, 0L); - case 78: - case 110: - if ((active0 & 0x1000000000000000L) != 0L) { - return jjStartNfaWithStates_0(4, 60, 520); - } - break; - case 79: - case 111: - return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x800000000L); - case 80: - case 112: - return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x10L); - case 82: - case 114: - return jjMoveStringLiteralDfa5_0(active0, 0L, active1, - 0x2000000000L); - case 84: - case 116: - return jjMoveStringLiteralDfa5_0(active0, 0L, active1, - 0x8000000020L); - case 85: - case 117: - return jjMoveStringLiteralDfa5_0(active0, 0xc10000000000000L, - active1, 0L); - case 90: - case 122: - return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x8L); - default: - break; - } - return jjStartNfa_0(3, active0, active1); - } - - private int jjMoveStringLiteralDfa5_0(long old0, long active0, long old1, - long active1) { - if (((active0 &= old0) | (active1 &= old1)) == 0L) { - return jjStartNfa_0(3, old0, old1); - } - try { - curChar = input_stream.readChar(); - } catch (java.io.IOException e) { - jjStopStringLiteralDfa_0(4, active0, active1); - return 5; - } - switch (curChar) { - case 45: - return jjMoveStringLiteralDfa6_0(active0, 0L, active1, - 0x8000000008L); - case 65: - case 97: - if ((active1 & 0x1000000000L) != 0L) { - return jjStartNfaWithStates_0(5, 100, 520); - } - break; - case 69: - case 101: - if ((active0 & 0x8000000000000000L) != 0L) { - return jjStartNfaWithStates_0(5, 63, 520); - } - return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x20L); - case 71: - case 103: - if ((active0 & 0x800000000000000L) != 0L) { - return jjStartNfaWithStates_0(5, 59, 520); - } - return jjMoveStringLiteralDfa6_0(active0, 0x10000000000000L, - active1, 0L); - case 78: - case 110: - if ((active0 & 0x80000000000000L) != 0L) { - return jjStartNfaWithStates_0(5, 55, 520); - } - return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x4L); - case 79: - case 111: - return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x10L); - case 82: - case 114: - return jjMoveStringLiteralDfa6_0(active0, 0x400000000000000L, - active1, 0x800000000L); - case 83: - case 115: - return jjMoveStringLiteralDfa6_0(active0, 0L, active1, - 0x2000000000L); - case 84: - case 116: - return jjMoveStringLiteralDfa6_0(active0, 0x200000000000000L, - active1, 0L); - case 85: - case 117: - return jjMoveStringLiteralDfa6_0(active0, 0x100000000000000L, - active1, 0L); - default: - break; - } - return jjStartNfa_0(4, active0, active1); - } - - private int jjMoveStringLiteralDfa6_0(long old0, long active0, long old1, - long active1) { - if (((active0 &= old0) | (active1 &= old1)) == 0L) { - return jjStartNfa_0(4, old0, old1); - } - try { - curChar = input_stream.readChar(); - } catch (java.io.IOException e) { - jjStopStringLiteralDfa_0(5, active0, active1); - return 6; - } - switch (curChar) { - case 68: - case 100: - if ((active1 & 0x4L) != 0L) { - return jjStartNfaWithStates_0(6, 66, 520); - } - return jjMoveStringLiteralDfa7_0(active0, 0x100000000000000L, - active1, 0x8L); - case 69: - case 101: - return jjMoveStringLiteralDfa7_0(active0, 0L, active1, - 0x2000000000L); - case 70: - case 102: - return jjMoveStringLiteralDfa7_0(active0, 0L, active1, - 0x8000000000L); - case 72: - case 104: - if ((active0 & 0x10000000000000L) != 0L) { - return jjStartNfaWithStates_0(6, 52, 518); - } - break; - case 73: - case 105: - return jjMoveStringLiteralDfa7_0(active0, 0x200000000000000L, - active1, 0L); - case 78: - case 110: - if ((active0 & 0x400000000000000L) != 0L) { - return jjStartNfaWithStates_0(6, 58, 520); - } - return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x20L); - case 82: - case 114: - return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x10L); - case 84: - case 116: - if ((active1 & 0x800000000L) != 0L) { - return jjStartNfaWithStates_0(6, 99, 520); - } - break; - default: - break; - } - return jjStartNfa_0(5, active0, active1); - } - - private int jjMoveStringLiteralDfa7_0(long old0, long active0, long old1, - long active1) { - if (((active0 &= old0) | (active1 &= old1)) == 0L) { - return jjStartNfa_0(5, old0, old1); - } - try { - curChar = input_stream.readChar(); - } catch (java.io.IOException e) { - jjStopStringLiteralDfa_0(6, active0, active1); - return 7; - } - switch (curChar) { - case 65: - case 97: - return jjMoveStringLiteralDfa8_0(active0, 0L, active1, - 0x8000000000L); - case 69: - case 101: - if ((active0 & 0x100000000000000L) != 0L) { - return jjStartNfaWithStates_0(7, 56, 520); - } - break; - case 79: - case 111: - return jjMoveStringLiteralDfa8_0(active0, 0x200000000000000L, - active1, 0x8L); - case 84: - case 116: - if ((active1 & 0x20L) != 0L) { - return jjStartNfaWithStates_0(7, 69, 520); - } else if ((active1 & 0x2000000000L) != 0L) { - return jjStartNfaWithStates_0(7, 101, 520); - } - return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x10L); - default: - break; - } - return jjStartNfa_0(6, active0, active1); - } - - private int jjMoveStringLiteralDfa8_0(long old0, long active0, long old1, - long active1) { - if (((active0 &= old0) | (active1 &= old1)) == 0L) { - return jjStartNfa_0(6, old0, old1); - } - try { - curChar = input_stream.readChar(); - } catch (java.io.IOException e) { - jjStopStringLiteralDfa_0(7, active0, active1); - return 8; - } - switch (curChar) { - case 67: - case 99: - return jjMoveStringLiteralDfa9_0(active0, 0L, active1, - 0x8000000008L); - case 78: - case 110: - if ((active0 & 0x200000000000000L) != 0L) { - return jjStartNfaWithStates_0(8, 57, 520); - } - break; - case 83: - case 115: - if ((active1 & 0x10L) != 0L) { - return jjStartNfaWithStates_0(8, 68, 520); - } - break; - default: - break; - } - return jjStartNfa_0(7, active0, active1); - } - - private int jjMoveStringLiteralDfa9_0(long old0, long active0, long old1, - long active1) { - if (((active0 &= old0) | (active1 &= old1)) == 0L) { - return jjStartNfa_0(7, old0, old1); - } - try { - curChar = input_stream.readChar(); - } catch (java.io.IOException e) { - jjStopStringLiteralDfa_0(8, 0L, active1); - return 9; - } - switch (curChar) { - case 69: - case 101: - if ((active1 & 0x8000000000L) != 0L) { - return jjStartNfaWithStates_0(9, 103, 520); - } - break; - case 85: - case 117: - return jjMoveStringLiteralDfa10_0(active1, 0x8L); - default: - break; - } - return jjStartNfa_0(8, 0L, active1); - } - - private int jjMoveStringLiteralDfa10_0(long old1, long active1) { - if (((active1 &= old1)) == 0L) { - return jjStartNfa_0(8, 0L, old1); - } - try { - curChar = input_stream.readChar(); - } catch (java.io.IOException e) { - jjStopStringLiteralDfa_0(9, 0L, active1); - return 10; - } - switch (curChar) { - case 77: - case 109: - return jjMoveStringLiteralDfa11_0(active1, 0x8L); - default: - break; - } - return jjStartNfa_0(9, 0L, active1); - } - - private int jjMoveStringLiteralDfa11_0(long old1, long active1) { - if (((active1 &= old1)) == 0L) { - return jjStartNfa_0(9, 0L, old1); - } - try { - curChar = input_stream.readChar(); - } catch (java.io.IOException e) { - jjStopStringLiteralDfa_0(10, 0L, active1); - return 11; - } - switch (curChar) { - case 69: - case 101: - return jjMoveStringLiteralDfa12_0(active1, 0x8L); - default: - break; - } - return jjStartNfa_0(10, 0L, active1); - } - - private int jjMoveStringLiteralDfa12_0(long old1, long active1) { - if (((active1 &= old1)) == 0L) { - return jjStartNfa_0(10, 0L, old1); - } - try { - curChar = input_stream.readChar(); - } catch (java.io.IOException e) { - jjStopStringLiteralDfa_0(11, 0L, active1); - return 12; - } - switch (curChar) { - case 78: - case 110: - return jjMoveStringLiteralDfa13_0(active1, 0x8L); - default: - break; - } - return jjStartNfa_0(11, 0L, active1); - } - - private int jjMoveStringLiteralDfa13_0(long old1, long active1) { - if (((active1 &= old1)) == 0L) { - return jjStartNfa_0(11, 0L, old1); - } - try { - curChar = input_stream.readChar(); - } catch (java.io.IOException e) { - jjStopStringLiteralDfa_0(12, 0L, active1); - return 13; - } - switch (curChar) { - case 84: - case 116: - if ((active1 & 0x8L) != 0L) { - return jjStartNfaWithStates_0(13, 67, 520); - } - break; - default: - break; - } - return jjStartNfa_0(12, 0L, active1); - } - - private int jjStartNfaWithStates_0(int pos, int kind, int state) { - jjmatchedKind = kind; - jjmatchedPos = pos; - try { - curChar = input_stream.readChar(); - } catch (java.io.IOException e) { - return pos + 1; - } - return jjMoveNfa_0(state, pos + 1); - } - - static final long[] jjbitVec0 = { 0x0L, 0x0L, 0xffffffffffffffffL, - 0xffffffffffffffffL }; - - private int jjMoveNfa_0(int startState, int curPos) { - int startsAt = 0; - jjnewStateCnt = 517; - int i = 1; - jjstateSet[0] = startState; - int kind = 0x7fffffff; - for (;;) { - if (++jjround == 0x7fffffff) { - ReInitRounds(); - } - if (curChar < 64) { - long l = 1L << curChar; - do { - switch (jjstateSet[--i]) { - case 520: - case 113: - if ((0x3ff200000000000L & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddTwoStates(113, 114); - break; - case 166: - if (curChar == 45) { - jjstateSet[jjnewStateCnt++] = 112; - } - if (curChar == 45) { - jjstateSet[jjnewStateCnt++] = 217; - } - if (curChar == 45) { - jjstateSet[jjnewStateCnt++] = 205; - } - if (curChar == 45) { - jjstateSet[jjnewStateCnt++] = 189; - } - if (curChar == 45) { - jjstateSet[jjnewStateCnt++] = 178; - } - break; - case 174: - if ((0x3ff200000000000L & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddTwoStates(113, 114); - break; - case 4: - if ((0x3ff000000000000L & l) != 0L) { - if (kind > 75) { - kind = 75; - } - jjCheckNAddStates(0, 81); - } else if ((0x100003600L & l) != 0L) { - if (kind > 1) { - kind = 1; - } - jjCheckNAdd(0); - } else if (curChar == 46) { - jjCheckNAddStates(82, 101); - } else if (curChar == 45) { - jjAddStates(102, 103); - } else if (curChar == 33) { - jjCheckNAddStates(104, 107); - } else if (curChar == 35) { - jjCheckNAddTwoStates(100, 101); - } else if (curChar == 36) { - jjCheckNAddStates(108, 111); - } else if (curChar == 39) { - jjCheckNAddStates(112, 115); - } else if (curChar == 34) { - jjCheckNAddStates(116, 119); - } else if (curChar == 47) { - jjstateSet[jjnewStateCnt++] = 3; - } - if (curChar == 45) { - jjstateSet[jjnewStateCnt++] = 42; - } else if (curChar == 35) { - jjstateSet[jjnewStateCnt++] = 5; - } - break; - case 517: - if ((0x100003600L & l) != 0L) { - jjCheckNAddTwoStates(251, 260); - } - if ((0x100003600L & l) != 0L) { - jjCheckNAddTwoStates(243, 250); - } - break; - case 518: - if ((0x3ff200000000000L & l) != 0L) { - jjCheckNAddStates(120, 123); - } else if ((0x100003600L & l) != 0L) { - jjCheckNAddTwoStates(231, 232); - } else if (curChar == 40) { - if (kind > 120) { - kind = 120; - } - } - if ((0x3ff200000000000L & l) != 0L) { - if (kind > 74) { - kind = 74; - } - jjCheckNAddTwoStates(220, 221); - } - break; - case 175: - if ((0x3ff200000000000L & l) != 0L) { - if (kind > 105) { - kind = 105; - } - jjCheckNAddTwoStates(113, 114); - } - if (curChar == 45) { - jjstateSet[jjnewStateCnt++] = 174; - } - break; - case 33: - if ((0x3ff200000000000L & l) != 0L) { - jjCheckNAddStates(120, 123); - } else if ((0x100003600L & l) != 0L) { - jjCheckNAddTwoStates(231, 232); - } else if (curChar == 40) { - if (kind > 120) { - kind = 120; - } - } - if ((0x3ff200000000000L & l) != 0L) { - if (kind > 74) { - kind = 74; - } - jjCheckNAddTwoStates(220, 221); - } - break; - case 176: - if ((0x3ff200000000000L & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddTwoStates(113, 114); - break; - case 519: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(124, 128); - } - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(322, 325); - } - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(319, 321); - } - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(317, 318); - } - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(314, 316); - } - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(309, 313); - } - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(305, 308); - } - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(301, 304); - } - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(298, 300); - } - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(294, 297); - } - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(290, 293); - } - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(287, 289); - } - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(284, 286); - } - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(281, 283); - } - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(278, 280); - } - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(275, 277); - } - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(272, 274); - } - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(269, 271); - } - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(267, 268); - } - if ((0x3ff000000000000L & l) != 0L) { - if (kind > 75) { - kind = 75; - } - jjCheckNAdd(266); - } - break; - case 177: - if ((0x3ff200000000000L & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddTwoStates(113, 114); - break; - case 79: - if (curChar == 45) { - jjCheckNAdd(80); - } - break; - case 0: - if ((0x100003600L & l) == 0L) { - break; - } - if (kind > 1) { - kind = 1; - } - jjCheckNAdd(0); - break; - case 1: - if (curChar == 42) { - jjstateSet[jjnewStateCnt++] = 2; - } - break; - case 2: - if ((0xffff7fffffffffffL & l) != 0L && kind > 5) { - kind = 5; - } - break; - case 3: - if (curChar == 42) { - jjstateSet[jjnewStateCnt++] = 1; - } - break; - case 6: - if (curChar == 36) { - jjCheckNAddStates(129, 132); - } - break; - case 7: - if (curChar == 45) { - jjCheckNAdd(8); - } - break; - case 9: - if ((0x3ff200000000000L & l) != 0L) { - jjCheckNAddStates(133, 135); - } - break; - case 12: - if ((0xffffffff00000000L & l) != 0L) { - jjCheckNAddStates(133, 135); - } - break; - case 13: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(136, 140); - } - break; - case 14: - if ((0x100003600L & l) != 0L) { - jjCheckNAddStates(133, 135); - } - break; - case 15: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(141, 148); - } - break; - case 16: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(149, 152); - } - break; - case 17: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(153, 157); - } - break; - case 18: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(158, 163); - } - break; - case 19: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(164, 170); - } - break; - case 22: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(171, 175); - } - break; - case 23: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(176, 183); - } - break; - case 24: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(184, 187); - } - break; - case 25: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(188, 192); - } - break; - case 26: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(193, 198); - } - break; - case 27: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(199, 205); - } - break; - case 28: - if (curChar == 35) { - jjstateSet[jjnewStateCnt++] = 5; - } - break; - case 40: - if (curChar == 45) { - jjstateSet[jjnewStateCnt++] = 39; - } - break; - case 43: - if (curChar == 45) { - jjstateSet[jjnewStateCnt++] = 42; - } - break; - case 44: - if (curChar == 34) { - jjCheckNAddStates(116, 119); - } - break; - case 45: - if ((0xfffffffb00000200L & l) != 0L) { - jjCheckNAddStates(116, 119); - } - break; - case 46: - if (curChar == 34 && kind > 73) { - kind = 73; - } - break; - case 48: - if (curChar == 12) { - jjCheckNAddStates(116, 119); - } - break; - case 50: - if ((0xffffffff00000000L & l) != 0L) { - jjCheckNAddStates(116, 119); - } - break; - case 51: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(206, 211); - } - break; - case 52: - if ((0x100003600L & l) != 0L) { - jjCheckNAddStates(116, 119); - } - break; - case 53: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(212, 220); - } - break; - case 54: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(221, 225); - } - break; - case 55: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(226, 231); - } - break; - case 56: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(232, 238); - } - break; - case 57: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(239, 246); - } - break; - case 58: - if (curChar == 13) { - jjCheckNAddStates(116, 119); - } - break; - case 59: - if (curChar == 10) { - jjCheckNAddStates(116, 119); - } - break; - case 60: - if (curChar == 13) { - jjstateSet[jjnewStateCnt++] = 59; - } - break; - case 61: - if (curChar == 39) { - jjCheckNAddStates(112, 115); - } - break; - case 62: - if ((0xffffff7f00000200L & l) != 0L) { - jjCheckNAddStates(112, 115); - } - break; - case 63: - if (curChar == 39 && kind > 73) { - kind = 73; - } - break; - case 65: - if (curChar == 12) { - jjCheckNAddStates(112, 115); - } - break; - case 67: - if ((0xffffffff00000000L & l) != 0L) { - jjCheckNAddStates(112, 115); - } - break; - case 68: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(247, 252); - } - break; - case 69: - if ((0x100003600L & l) != 0L) { - jjCheckNAddStates(112, 115); - } - break; - case 70: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(253, 261); - } - break; - case 71: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(262, 266); - } - break; - case 72: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(267, 272); - } - break; - case 73: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(273, 279); - } - break; - case 74: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(280, 287); - } - break; - case 75: - if (curChar == 13) { - jjCheckNAddStates(112, 115); - } - break; - case 76: - if (curChar == 10) { - jjCheckNAddStates(112, 115); - } - break; - case 77: - if (curChar == 13) { - jjstateSet[jjnewStateCnt++] = 76; - } - break; - case 78: - if (curChar == 36) { - jjCheckNAddStates(108, 111); - } - break; - case 81: - if ((0x3ff200000000000L & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddTwoStates(81, 82); - break; - case 83: - if ((0xffffffff00000000L & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddTwoStates(81, 82); - break; - case 84: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddStates(288, 291); - break; - case 85: - if ((0x100003600L & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddTwoStates(81, 82); - break; - case 86: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddStates(292, 298); - break; - case 87: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddStates(299, 301); - break; - case 88: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddStates(302, 305); - break; - case 89: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddStates(306, 310); - break; - case 90: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddStates(311, 316); - break; - case 93: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddStates(317, 320); - break; - case 94: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddStates(321, 327); - break; - case 95: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddStates(328, 330); - break; - case 96: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddStates(331, 334); - break; - case 97: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddStates(335, 339); - break; - case 98: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddStates(340, 345); - break; - case 99: - if (curChar == 35) { - jjCheckNAddTwoStates(100, 101); - } - break; - case 100: - if ((0x3ff200000000000L & l) == 0L) { - break; - } - if (kind > 98) { - kind = 98; - } - jjCheckNAddTwoStates(100, 101); - break; - case 102: - if ((0xffffffff00000000L & l) == 0L) { - break; - } - if (kind > 98) { - kind = 98; - } - jjCheckNAddTwoStates(100, 101); - break; - case 103: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 98) { - kind = 98; - } - jjCheckNAddStates(346, 349); - break; - case 104: - if ((0x100003600L & l) == 0L) { - break; - } - if (kind > 98) { - kind = 98; - } - jjCheckNAddTwoStates(100, 101); - break; - case 105: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 98) { - kind = 98; - } - jjCheckNAddStates(350, 356); - break; - case 106: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 98) { - kind = 98; - } - jjCheckNAddStates(357, 359); - break; - case 107: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 98) { - kind = 98; - } - jjCheckNAddStates(360, 363); - break; - case 108: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 98) { - kind = 98; - } - jjCheckNAddStates(364, 368); - break; - case 109: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 98) { - kind = 98; - } - jjCheckNAddStates(369, 374); - break; - case 111: - if (curChar == 45) { - jjstateSet[jjnewStateCnt++] = 112; - } - break; - case 115: - if ((0xffffffff00000000L & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddTwoStates(113, 114); - break; - case 116: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddStates(375, 378); - break; - case 117: - if ((0x100003600L & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddTwoStates(113, 114); - break; - case 118: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddStates(379, 385); - break; - case 119: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddStates(386, 388); - break; - case 120: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddStates(389, 392); - break; - case 121: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddStates(393, 397); - break; - case 122: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddStates(398, 403); - break; - case 125: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddStates(404, 407); - break; - case 126: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddStates(408, 414); - break; - case 127: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddStates(415, 417); - break; - case 128: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddStates(418, 421); - break; - case 129: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddStates(422, 426); - break; - case 130: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddStates(427, 432); - break; - case 132: - if ((0x100003600L & l) != 0L) { - jjAddStates(433, 434); - } - break; - case 133: - if (curChar == 40 && kind > 117) { - kind = 117; - } - break; - case 140: - if ((0x100003600L & l) != 0L) { - jjAddStates(435, 436); - } - break; - case 141: - if (curChar == 40 && kind > 118) { - kind = 118; - } - break; - case 148: - if ((0x100003600L & l) != 0L) { - jjAddStates(437, 438); - } - break; - case 149: - if (curChar == 40 && kind > 119) { - kind = 119; - } - break; - case 179: - if (curChar == 45) { - jjstateSet[jjnewStateCnt++] = 178; - } - break; - case 188: - if (curChar == 45) { - jjstateSet[jjnewStateCnt++] = 187; - } - break; - case 190: - if (curChar == 45) { - jjstateSet[jjnewStateCnt++] = 189; - } - break; - case 199: - if (curChar == 45) { - jjstateSet[jjnewStateCnt++] = 198; - } - break; - case 206: - if (curChar == 45) { - jjstateSet[jjnewStateCnt++] = 205; - } - break; - case 215: - if (curChar == 45) { - jjstateSet[jjnewStateCnt++] = 214; - } - break; - case 218: - if (curChar == 45) { - jjstateSet[jjnewStateCnt++] = 217; - } - break; - case 220: - if ((0x3ff200000000000L & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddTwoStates(220, 221); - break; - case 222: - if ((0xffffffff00000000L & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddTwoStates(220, 221); - break; - case 223: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddStates(439, 442); - break; - case 224: - if ((0x100003600L & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddTwoStates(220, 221); - break; - case 225: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddStates(443, 449); - break; - case 226: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddStates(450, 452); - break; - case 227: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddStates(453, 456); - break; - case 228: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddStates(457, 461); - break; - case 229: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddStates(462, 467); - break; - case 230: - if ((0x3ff200000000000L & l) != 0L) { - jjCheckNAddStates(120, 123); - } - break; - case 231: - if ((0x100003600L & l) != 0L) { - jjCheckNAddTwoStates(231, 232); - } - break; - case 232: - if (curChar == 40 && kind > 120) { - kind = 120; - } - break; - case 234: - if ((0xffffffff00000000L & l) != 0L) { - jjCheckNAddStates(120, 123); - } - break; - case 235: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(468, 472); - } - break; - case 236: - if ((0x100003600L & l) != 0L) { - jjCheckNAddStates(120, 123); - } - break; - case 237: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(473, 480); - } - break; - case 238: - case 452: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(481, 484); - } - break; - case 239: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(485, 489); - } - break; - case 240: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(490, 495); - } - break; - case 241: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(496, 502); - } - break; - case 242: - if (curChar == 33) { - jjCheckNAddStates(104, 107); - } - break; - case 243: - if ((0x100003600L & l) != 0L) { - jjCheckNAddTwoStates(243, 250); - } - break; - case 251: - if ((0x100003600L & l) != 0L) { - jjCheckNAddTwoStates(251, 260); - } - break; - case 261: - if (curChar == 45) { - jjAddStates(102, 103); - } - break; - case 265: - if (curChar == 46) { - jjCheckNAddStates(82, 101); - } - break; - case 266: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 75) { - kind = 75; - } - jjCheckNAdd(266); - break; - case 267: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(267, 268); - } - break; - case 268: - if (curChar == 37 && kind > 79) { - kind = 79; - } - break; - case 269: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(269, 271); - } - break; - case 272: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(272, 274); - } - break; - case 275: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(275, 277); - } - break; - case 278: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(278, 280); - } - break; - case 281: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(281, 283); - } - break; - case 284: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(284, 286); - } - break; - case 287: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(287, 289); - } - break; - case 290: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(290, 293); - } - break; - case 294: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(294, 297); - } - break; - case 298: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(298, 300); - } - break; - case 301: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(301, 304); - } - break; - case 305: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(305, 308); - } - break; - case 309: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(309, 313); - } - break; - case 314: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(314, 316); - } - break; - case 317: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(317, 318); - } - break; - case 319: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(319, 321); - } - break; - case 322: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(322, 325); - } - break; - case 326: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(124, 128); - } - break; - case 327: - if (curChar == 45) { - jjCheckNAdd(328); - } - break; - case 329: - if ((0x3ff200000000000L & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddTwoStates(329, 330); - break; - case 331: - if ((0xffffffff00000000L & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddTwoStates(329, 330); - break; - case 332: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddStates(503, 506); - break; - case 333: - if ((0x100003600L & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddTwoStates(329, 330); - break; - case 334: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddStates(507, 513); - break; - case 335: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddStates(514, 516); - break; - case 336: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddStates(517, 520); - break; - case 337: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddStates(521, 525); - break; - case 338: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddStates(526, 531); - break; - case 341: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddStates(532, 535); - break; - case 342: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddStates(536, 542); - break; - case 343: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddStates(543, 545); - break; - case 344: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddStates(546, 549); - break; - case 345: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddStates(550, 554); - break; - case 346: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddStates(555, 560); - break; - case 348: - if (curChar == 40) { - jjCheckNAddStates(561, 566); - } - break; - case 349: - if ((0xfffffc7a00000000L & l) != 0L) { - jjCheckNAddStates(567, 570); - } - break; - case 350: - if ((0x100003600L & l) != 0L) { - jjCheckNAddTwoStates(350, 351); - } - break; - case 351: - if (curChar == 41 && kind > 77) { - kind = 77; - } - break; - case 353: - if ((0xffffffff00000000L & l) != 0L) { - jjCheckNAddStates(567, 570); - } - break; - case 354: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(571, 575); - } - break; - case 355: - if ((0x100003600L & l) != 0L) { - jjCheckNAddStates(567, 570); - } - break; - case 356: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(576, 583); - } - break; - case 357: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(584, 587); - } - break; - case 358: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(588, 592); - } - break; - case 359: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(593, 598); - } - break; - case 360: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(599, 605); - } - break; - case 361: - if (curChar == 39) { - jjCheckNAddStates(606, 609); - } - break; - case 362: - if ((0xffffff7f00000200L & l) != 0L) { - jjCheckNAddStates(606, 609); - } - break; - case 363: - if (curChar == 39) { - jjCheckNAddTwoStates(350, 351); - } - break; - case 365: - if (curChar == 12) { - jjCheckNAddStates(606, 609); - } - break; - case 367: - if ((0xffffffff00000000L & l) != 0L) { - jjCheckNAddStates(606, 609); - } - break; - case 368: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(610, 615); - } - break; - case 369: - if ((0x100003600L & l) != 0L) { - jjCheckNAddStates(606, 609); - } - break; - case 370: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(616, 624); - } - break; - case 371: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(625, 629); - } - break; - case 372: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(630, 635); - } - break; - case 373: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(636, 642); - } - break; - case 374: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(643, 650); - } - break; - case 375: - if (curChar == 13) { - jjCheckNAddStates(606, 609); - } - break; - case 376: - if (curChar == 10) { - jjCheckNAddStates(606, 609); - } - break; - case 377: - if (curChar == 13) { - jjstateSet[jjnewStateCnt++] = 376; - } - break; - case 378: - if (curChar == 34) { - jjCheckNAddStates(651, 654); - } - break; - case 379: - if ((0xfffffffb00000200L & l) != 0L) { - jjCheckNAddStates(651, 654); - } - break; - case 380: - if (curChar == 34) { - jjCheckNAddTwoStates(350, 351); - } - break; - case 382: - if (curChar == 12) { - jjCheckNAddStates(651, 654); - } - break; - case 384: - if ((0xffffffff00000000L & l) != 0L) { - jjCheckNAddStates(651, 654); - } - break; - case 385: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(655, 660); - } - break; - case 386: - if ((0x100003600L & l) != 0L) { - jjCheckNAddStates(651, 654); - } - break; - case 387: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(661, 669); - } - break; - case 388: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(670, 674); - } - break; - case 389: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(675, 680); - } - break; - case 390: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(681, 687); - } - break; - case 391: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(688, 695); - } - break; - case 392: - if (curChar == 13) { - jjCheckNAddStates(651, 654); - } - break; - case 393: - if (curChar == 10) { - jjCheckNAddStates(651, 654); - } - break; - case 394: - if (curChar == 13) { - jjstateSet[jjnewStateCnt++] = 393; - } - break; - case 395: - if ((0x100003600L & l) != 0L) { - jjCheckNAddStates(696, 702); - } - break; - case 398: - if (curChar == 43) { - jjAddStates(703, 704); - } - break; - case 399: - if (curChar != 63) { - break; - } - if (kind > 116) { - kind = 116; - } - jjstateSet[jjnewStateCnt++] = 400; - break; - case 400: - if (curChar != 63) { - break; - } - if (kind > 116) { - kind = 116; - } - jjCheckNAddStates(705, 708); - break; - case 401: - if (curChar == 63 && kind > 116) { - kind = 116; - } - break; - case 402: - case 417: - case 421: - case 424: - case 427: - if (curChar != 63) { - break; - } - if (kind > 116) { - kind = 116; - } - jjCheckNAdd(401); - break; - case 403: - if (curChar != 63) { - break; - } - if (kind > 116) { - kind = 116; - } - jjCheckNAddTwoStates(401, 402); - break; - case 404: - if (curChar != 63) { - break; - } - if (kind > 116) { - kind = 116; - } - jjCheckNAddStates(709, 711); - break; - case 405: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 116) { - kind = 116; - } - jjAddStates(712, 717); - break; - case 406: - if ((0x3ff000000000000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 407; - } - break; - case 407: - if ((0x3ff000000000000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 408; - } - break; - case 408: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAdd(409); - } - break; - case 409: - if ((0x3ff000000000000L & l) != 0L && kind > 116) { - kind = 116; - } - break; - case 410: - if ((0x3ff000000000000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 411; - } - break; - case 411: - if ((0x3ff000000000000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 412; - } - break; - case 412: - if ((0x3ff000000000000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 413; - } - break; - case 413: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 116) { - kind = 116; - } - jjCheckNAdd(401); - break; - case 414: - if ((0x3ff000000000000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 415; - } - break; - case 415: - if ((0x3ff000000000000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 416; - } - break; - case 416: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 116) { - kind = 116; - } - jjstateSet[jjnewStateCnt++] = 417; - break; - case 418: - if ((0x3ff000000000000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 419; - } - break; - case 419: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 116) { - kind = 116; - } - jjstateSet[jjnewStateCnt++] = 420; - break; - case 420: - if (curChar != 63) { - break; - } - if (kind > 116) { - kind = 116; - } - jjCheckNAddTwoStates(401, 421); - break; - case 422: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 116) { - kind = 116; - } - jjstateSet[jjnewStateCnt++] = 423; - break; - case 423: - if (curChar != 63) { - break; - } - if (kind > 116) { - kind = 116; - } - jjCheckNAddStates(718, 720); - break; - case 425: - if (curChar != 63) { - break; - } - if (kind > 116) { - kind = 116; - } - jjCheckNAddTwoStates(401, 424); - break; - case 426: - if (curChar != 63) { - break; - } - if (kind > 116) { - kind = 116; - } - jjCheckNAddStates(721, 724); - break; - case 428: - if (curChar != 63) { - break; - } - if (kind > 116) { - kind = 116; - } - jjCheckNAddTwoStates(401, 427); - break; - case 429: - if (curChar != 63) { - break; - } - if (kind > 116) { - kind = 116; - } - jjCheckNAddStates(725, 727); - break; - case 430: - if (curChar == 43) { - jjstateSet[jjnewStateCnt++] = 431; - } - break; - case 431: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(432, 438); - } - break; - case 432: - if (curChar == 45) { - jjstateSet[jjnewStateCnt++] = 433; - } - break; - case 433: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 116) { - kind = 116; - } - jjstateSet[jjnewStateCnt++] = 434; - break; - case 434: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 116) { - kind = 116; - } - jjCheckNAddStates(728, 731); - break; - case 435: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 116) { - kind = 116; - } - jjCheckNAdd(409); - break; - case 436: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 116) { - kind = 116; - } - jjCheckNAddTwoStates(409, 435); - break; - case 437: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 116) { - kind = 116; - } - jjCheckNAddStates(732, 734); - break; - case 438: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(735, 739); - } - break; - case 439: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAdd(432); - } - break; - case 440: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(439, 432); - } - break; - case 441: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(740, 742); - } - break; - case 442: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(743, 746); - } - break; - case 444: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddStates(747, 750); - break; - case 445: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddStates(751, 757); - break; - case 446: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddStates(758, 760); - break; - case 447: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddStates(761, 764); - break; - case 448: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddStates(765, 769); - break; - case 449: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddStates(770, 775); - break; - case 450: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(776, 780); - } - break; - case 451: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(781, 788); - } - break; - case 453: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(789, 793); - } - break; - case 454: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(794, 799); - } - break; - case 455: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(800, 806); - } - break; - case 456: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 75) { - kind = 75; - } - jjCheckNAddStates(0, 81); - break; - case 457: - if ((0x3ff000000000000L & l) == 0L) { - break; - } - if (kind > 75) { - kind = 75; - } - jjCheckNAdd(457); - break; - case 458: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(458, 459); - } - break; - case 459: - if (curChar == 46) { - jjCheckNAdd(266); - } - break; - case 460: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(460, 268); - } - break; - case 461: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(461, 462); - } - break; - case 462: - if (curChar == 46) { - jjCheckNAdd(267); - } - break; - case 463: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(463, 271); - } - break; - case 464: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(464, 465); - } - break; - case 465: - if (curChar == 46) { - jjCheckNAdd(269); - } - break; - case 466: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(466, 274); - } - break; - case 467: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(467, 468); - } - break; - case 468: - if (curChar == 46) { - jjCheckNAdd(272); - } - break; - case 469: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(469, 277); - } - break; - case 470: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(470, 471); - } - break; - case 471: - if (curChar == 46) { - jjCheckNAdd(275); - } - break; - case 472: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(472, 280); - } - break; - case 473: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(473, 474); - } - break; - case 474: - if (curChar == 46) { - jjCheckNAdd(278); - } - break; - case 475: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(475, 283); - } - break; - case 476: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(476, 477); - } - break; - case 477: - if (curChar == 46) { - jjCheckNAdd(281); - } - break; - case 478: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(478, 286); - } - break; - case 479: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(479, 480); - } - break; - case 480: - if (curChar == 46) { - jjCheckNAdd(284); - } - break; - case 481: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(481, 289); - } - break; - case 482: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(482, 483); - } - break; - case 483: - if (curChar == 46) { - jjCheckNAdd(287); - } - break; - case 484: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(484, 293); - } - break; - case 485: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(485, 486); - } - break; - case 486: - if (curChar == 46) { - jjCheckNAdd(290); - } - break; - case 487: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(487, 297); - } - break; - case 488: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(488, 489); - } - break; - case 489: - if (curChar == 46) { - jjCheckNAdd(294); - } - break; - case 490: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(490, 300); - } - break; - case 491: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(491, 492); - } - break; - case 492: - if (curChar == 46) { - jjCheckNAdd(298); - } - break; - case 493: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(493, 304); - } - break; - case 494: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(494, 495); - } - break; - case 495: - if (curChar == 46) { - jjCheckNAdd(301); - } - break; - case 496: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(496, 308); - } - break; - case 497: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(497, 498); - } - break; - case 498: - if (curChar == 46) { - jjCheckNAdd(305); - } - break; - case 499: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(499, 313); - } - break; - case 500: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(500, 501); - } - break; - case 501: - if (curChar == 46) { - jjCheckNAdd(309); - } - break; - case 502: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(502, 316); - } - break; - case 503: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(503, 504); - } - break; - case 504: - if (curChar == 46) { - jjCheckNAdd(314); - } - break; - case 505: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(505, 318); - } - break; - case 506: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(506, 507); - } - break; - case 507: - if (curChar == 46) { - jjCheckNAdd(317); - } - break; - case 508: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(508, 321); - } - break; - case 509: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(509, 510); - } - break; - case 510: - if (curChar == 46) { - jjCheckNAdd(319); - } - break; - case 511: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(511, 325); - } - break; - case 512: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(512, 513); - } - break; - case 513: - if (curChar == 46) { - jjCheckNAdd(322); - } - break; - case 514: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddStates(807, 811); - } - break; - case 515: - if ((0x3ff000000000000L & l) != 0L) { - jjCheckNAddTwoStates(515, 516); - } - break; - case 516: - if (curChar == 46) { - jjCheckNAdd(326); - } - break; - default: - break; - } - } while (i != startsAt); - } else if (curChar < 128) { - long l = 1L << (curChar & 077); - do { - switch (jjstateSet[--i]) { - case 520: - if ((0x7fffffe87fffffeL & l) != 0L) { - if (kind > 105) { - kind = 105; - } - jjCheckNAddTwoStates(113, 114); - } else if (curChar == 92) { - jjCheckNAddTwoStates(115, 116); - } - break; - case 166: - if ((0x7fffffe07fffffeL & l) != 0L) { - if (kind > 105) { - kind = 105; - } - jjCheckNAddTwoStates(113, 114); - } else if (curChar == 92) { - jjCheckNAddTwoStates(115, 125); - } - if ((0x80000000800L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 165; - } - break; - case 174: - if ((0x7fffffe87fffffeL & l) != 0L) { - if (kind > 105) { - kind = 105; - } - jjCheckNAddTwoStates(113, 114); - } else if (curChar == 92) { - jjCheckNAddTwoStates(115, 116); - } - if ((0x80000000800L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 173; - } - break; - case 4: - if ((0x7fffffe07fffffeL & l) != 0L) { - if (kind > 74) { - kind = 74; - } - jjCheckNAddStates(812, 817); - } else if (curChar == 92) { - jjCheckNAddStates(818, 821); - } else if (curChar == 64) { - jjAddStates(822, 826); - } - if ((0x20000000200000L & l) != 0L) { - jjAddStates(827, 829); - } else if ((0x800000008L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 155; - } else if ((0x200000002L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 145; - } else if ((0x4000000040000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 137; - } else if ((0x4000000040L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 33; - } else if (curChar == 64) { - jjAddStates(830, 833); - } - break; - case 517: - if ((0x20000000200L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 259; - } else if ((0x1000000010L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 249; - } - break; - case 178: - if ((0x7fffffe07fffffeL & l) != 0L) { - if (kind > 105) { - kind = 105; - } - jjCheckNAddTwoStates(113, 114); - } - if ((0x200000002000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 216; - } else if ((0x80000000800000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 204; - } else if ((0x800000008000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 188; - } - if ((0x200000002000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 177; - } - break; - case 518: - if ((0x7fffffe87fffffeL & l) != 0L) { - jjCheckNAddStates(120, 123); - } else if (curChar == 92) { - jjCheckNAddTwoStates(222, 223); - } - if ((0x7fffffe87fffffeL & l) != 0L) { - if (kind > 74) { - kind = 74; - } - jjCheckNAddTwoStates(220, 221); - } else if (curChar == 92) { - jjCheckNAddTwoStates(234, 235); - } - break; - case 175: - if ((0x7fffffe87fffffeL & l) != 0L) { - if (kind > 105) { - kind = 105; - } - jjCheckNAddTwoStates(113, 114); - } else if (curChar == 92) { - jjCheckNAddTwoStates(115, 116); - } - break; - case 33: - if ((0x7fffffe87fffffeL & l) != 0L) { - jjCheckNAddStates(120, 123); - } else if (curChar == 92) { - jjCheckNAddTwoStates(222, 223); - } - if ((0x7fffffe87fffffeL & l) != 0L) { - if (kind > 74) { - kind = 74; - } - jjCheckNAddTwoStates(220, 221); - } else if (curChar == 92) { - jjCheckNAddTwoStates(234, 235); - } - if ((0x20000000200L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 32; - } - break; - case 176: - if ((0x7fffffe87fffffeL & l) != 0L) { - if (kind > 105) { - kind = 105; - } - jjCheckNAddTwoStates(113, 114); - } else if (curChar == 92) { - jjCheckNAddTwoStates(115, 116); - } - if ((0x400000004000000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 175; - } - break; - case 42: - if ((0x7fffffe07fffffeL & l) != 0L) { - jjCheckNAddStates(120, 123); - } - if ((0x7fffffe07fffffeL & l) != 0L) { - if (kind > 74) { - kind = 74; - } - jjCheckNAddTwoStates(220, 221); - } - if ((0x200000002000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 41; - } - break; - case 177: - if ((0x7fffffe87fffffeL & l) != 0L) { - if (kind > 105) { - kind = 105; - } - jjCheckNAddTwoStates(113, 114); - } else if (curChar == 92) { - jjCheckNAddTwoStates(115, 116); - } - if ((0x8000000080000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 215; - } else if ((0x800000008000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 176; - } - break; - case 79: - if ((0x7fffffe07fffffeL & l) != 0L) { - if (kind > 78) { - kind = 78; - } - jjCheckNAddTwoStates(81, 82); - } else if (curChar == 92) { - jjCheckNAddTwoStates(83, 93); - } - break; - case 2: - if (kind > 5) { - kind = 5; - } - break; - case 5: - if (curChar == 123) { - jjstateSet[jjnewStateCnt++] = 6; - } - break; - case 8: - if ((0x7fffffe07fffffeL & l) != 0L) { - jjCheckNAddStates(133, 135); - } - break; - case 9: - if ((0x7fffffe87fffffeL & l) != 0L) { - jjCheckNAddStates(133, 135); - } - break; - case 10: - if (curChar == 125 && kind > 41) { - kind = 41; - } - break; - case 11: - if (curChar == 92) { - jjCheckNAddTwoStates(12, 13); - } - break; - case 12: - if ((0x7fffffffffffffffL & l) != 0L) { - jjCheckNAddStates(133, 135); - } - break; - case 13: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(136, 140); - } - break; - case 15: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(141, 148); - } - break; - case 16: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(149, 152); - } - break; - case 17: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(153, 157); - } - break; - case 18: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(158, 163); - } - break; - case 19: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(164, 170); - } - break; - case 21: - if (curChar == 92) { - jjCheckNAddTwoStates(12, 22); - } - break; - case 22: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(171, 175); - } - break; - case 23: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(176, 183); - } - break; - case 24: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(184, 187); - } - break; - case 25: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(188, 192); - } - break; - case 26: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(193, 198); - } - break; - case 27: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(199, 205); - } - break; - case 29: - if ((0x4000000040000L & l) != 0L && kind > 70) { - kind = 70; - } - break; - case 30: - case 35: - if ((0x2000000020L & l) != 0L) { - jjCheckNAdd(29); - } - break; - case 31: - if ((0x10000000100000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 30; - } - break; - case 32: - if ((0x100000001000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 31; - } - break; - case 34: - if ((0x4000000040L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 33; - } - break; - case 36: - if ((0x10000000100000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 35; - } - break; - case 37: - if ((0x100000001000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 36; - } - break; - case 38: - if ((0x20000000200L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 37; - } - break; - case 39: - if ((0x4000000040L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 38; - } - break; - case 41: - if ((0x8000000080000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 40; - } - break; - case 45: - case 50: - if ((0x7fffffffffffffffL & l) != 0L) { - jjCheckNAddStates(116, 119); - } - break; - case 47: - if (curChar == 92) { - jjAddStates(834, 837); - } - break; - case 49: - if (curChar == 92) { - jjAddStates(838, 839); - } - break; - case 51: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(206, 211); - } - break; - case 53: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(212, 220); - } - break; - case 54: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(221, 225); - } - break; - case 55: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(226, 231); - } - break; - case 56: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(232, 238); - } - break; - case 57: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(239, 246); - } - break; - case 62: - case 67: - if ((0x7fffffffffffffffL & l) != 0L) { - jjCheckNAddStates(112, 115); - } - break; - case 64: - if (curChar == 92) { - jjAddStates(840, 843); - } - break; - case 66: - if (curChar == 92) { - jjAddStates(844, 845); - } - break; - case 68: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(247, 252); - } - break; - case 70: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(253, 261); - } - break; - case 71: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(262, 266); - } - break; - case 72: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(267, 272); - } - break; - case 73: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(273, 279); - } - break; - case 74: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(280, 287); - } - break; - case 80: - if ((0x7fffffe07fffffeL & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddTwoStates(81, 82); - break; - case 81: - if ((0x7fffffe87fffffeL & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddTwoStates(81, 82); - break; - case 82: - if (curChar == 92) { - jjCheckNAddTwoStates(83, 84); - } - break; - case 83: - if ((0x7fffffffffffffffL & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddTwoStates(81, 82); - break; - case 84: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddStates(288, 291); - break; - case 86: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddStates(292, 298); - break; - case 87: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddStates(299, 301); - break; - case 88: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddStates(302, 305); - break; - case 89: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddStates(306, 310); - break; - case 90: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddStates(311, 316); - break; - case 92: - if (curChar == 92) { - jjCheckNAddTwoStates(83, 93); - } - break; - case 93: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddStates(317, 320); - break; - case 94: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddStates(321, 327); - break; - case 95: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddStates(328, 330); - break; - case 96: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddStates(331, 334); - break; - case 97: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddStates(335, 339); - break; - case 98: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddStates(340, 345); - break; - case 100: - if ((0x7fffffe87fffffeL & l) == 0L) { - break; - } - if (kind > 98) { - kind = 98; - } - jjCheckNAddTwoStates(100, 101); - break; - case 101: - if (curChar == 92) { - jjAddStates(846, 847); - } - break; - case 102: - if ((0x7fffffffffffffffL & l) == 0L) { - break; - } - if (kind > 98) { - kind = 98; - } - jjCheckNAddTwoStates(100, 101); - break; - case 103: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 98) { - kind = 98; - } - jjCheckNAddStates(346, 349); - break; - case 105: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 98) { - kind = 98; - } - jjCheckNAddStates(350, 356); - break; - case 106: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 98) { - kind = 98; - } - jjCheckNAddStates(357, 359); - break; - case 107: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 98) { - kind = 98; - } - jjCheckNAddStates(360, 363); - break; - case 108: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 98) { - kind = 98; - } - jjCheckNAddStates(364, 368); - break; - case 109: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 98) { - kind = 98; - } - jjCheckNAddStates(369, 374); - break; - case 110: - if (curChar == 64) { - jjAddStates(830, 833); - } - break; - case 112: - if ((0x7fffffe07fffffeL & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddTwoStates(113, 114); - break; - case 113: - if ((0x7fffffe87fffffeL & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddTwoStates(113, 114); - break; - case 114: - if (curChar == 92) { - jjCheckNAddTwoStates(115, 116); - } - break; - case 115: - if ((0x7fffffffffffffffL & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddTwoStates(113, 114); - break; - case 116: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddStates(375, 378); - break; - case 118: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddStates(379, 385); - break; - case 119: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddStates(386, 388); - break; - case 120: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddStates(389, 392); - break; - case 121: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddStates(393, 397); - break; - case 122: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddStates(398, 403); - break; - case 124: - if (curChar == 92) { - jjCheckNAddTwoStates(115, 125); - } - break; - case 125: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddStates(404, 407); - break; - case 126: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddStates(408, 414); - break; - case 127: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddStates(415, 417); - break; - case 128: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddStates(418, 421); - break; - case 129: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddStates(422, 426); - break; - case 130: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddStates(427, 432); - break; - case 131: - if ((0x2000000020L & l) != 0L) { - jjAddStates(433, 434); - } - break; - case 134: - if ((0x40000000400000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 131; - } - break; - case 135: - if ((0x800000008000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 134; - } - break; - case 136: - if ((0x200000002000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 135; - } - break; - case 137: - if ((0x2000000020L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 136; - } - break; - case 138: - if ((0x4000000040000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 137; - } - break; - case 139: - if ((0x1000000010L & l) != 0L) { - jjAddStates(435, 436); - } - break; - case 142: - if ((0x400000004000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 139; - } - break; - case 143: - if ((0x2000000020L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 142; - } - break; - case 144: - if ((0x1000000010000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 143; - } - break; - case 145: - if ((0x1000000010000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 144; - } - break; - case 146: - if ((0x200000002L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 145; - } - break; - case 147: - if ((0x8000000080000L & l) != 0L) { - jjAddStates(437, 438); - } - break; - case 150: - if ((0x400000004000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 147; - } - break; - case 151: - if ((0x20000000200L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 150; - } - break; - case 152: - if ((0x200000002L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 151; - } - break; - case 153: - if ((0x10000000100000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 152; - } - break; - case 154: - if ((0x400000004000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 153; - } - break; - case 155: - if ((0x800000008000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 154; - } - break; - case 156: - if ((0x800000008L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 155; - } - break; - case 157: - if (curChar == 64) { - jjAddStates(822, 826); - } - break; - case 158: - if ((0x8000000080000L & l) != 0L && kind > 104) { - kind = 104; - } - break; - case 159: - case 167: - case 180: - case 191: - case 207: - if ((0x2000000020L & l) != 0L) { - jjCheckNAdd(158); - } - break; - case 160: - if ((0x200000002000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 159; - } - break; - case 161: - if ((0x200000002L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 160; - } - break; - case 162: - if ((0x4000000040000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 161; - } - break; - case 163: - if ((0x4000000040L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 162; - } - break; - case 164: - if ((0x200000002000000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 163; - } - break; - case 165: - if ((0x2000000020L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 164; - } - break; - case 168: - if ((0x200000002000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 167; - } - break; - case 169: - if ((0x200000002L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 168; - } - break; - case 170: - if ((0x4000000040000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 169; - } - break; - case 171: - if ((0x4000000040L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 170; - } - break; - case 172: - if ((0x200000002000000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 171; - } - break; - case 173: - if ((0x2000000020L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 172; - } - break; - case 181: - if ((0x200000002000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 180; - } - break; - case 182: - if ((0x200000002L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 181; - } - break; - case 183: - if ((0x4000000040000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 182; - } - break; - case 184: - if ((0x4000000040L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 183; - } - break; - case 185: - if ((0x200000002000000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 184; - } - break; - case 186: - if ((0x2000000020L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 185; - } - break; - case 187: - if ((0x80000000800L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 186; - } - break; - case 189: - if ((0x800000008000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 188; - } - break; - case 192: - if ((0x200000002000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 191; - } - break; - case 193: - if ((0x200000002L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 192; - } - break; - case 194: - if ((0x4000000040000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 193; - } - break; - case 195: - if ((0x4000000040L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 194; - } - break; - case 196: - if ((0x200000002000000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 195; - } - break; - case 197: - if ((0x2000000020L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 196; - } - break; - case 198: - if ((0x80000000800L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 197; - } - break; - case 200: - if ((0x10000000100000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 199; - } - break; - case 201: - if ((0x20000000200L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 200; - } - break; - case 202: - if ((0x80000000800L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 201; - } - break; - case 203: - if ((0x400000004L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 202; - } - break; - case 204: - if ((0x2000000020L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 203; - } - break; - case 205: - if ((0x80000000800000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 204; - } - break; - case 208: - if ((0x200000002000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 207; - } - break; - case 209: - if ((0x200000002L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 208; - } - break; - case 210: - if ((0x4000000040000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 209; - } - break; - case 211: - if ((0x4000000040L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 210; - } - break; - case 212: - if ((0x200000002000000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 211; - } - break; - case 213: - if ((0x2000000020L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 212; - } - break; - case 214: - if ((0x80000000800L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 213; - } - break; - case 216: - if ((0x8000000080000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 215; - } - break; - case 217: - if ((0x200000002000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 216; - } - break; - case 220: - if ((0x7fffffe87fffffeL & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddTwoStates(220, 221); - break; - case 221: - if (curChar == 92) { - jjCheckNAddTwoStates(222, 223); - } - break; - case 222: - if ((0x7fffffffffffffffL & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddTwoStates(220, 221); - break; - case 223: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddStates(439, 442); - break; - case 225: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddStates(443, 449); - break; - case 226: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddStates(450, 452); - break; - case 227: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddStates(453, 456); - break; - case 228: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddStates(457, 461); - break; - case 229: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddStates(462, 467); - break; - case 230: - if ((0x7fffffe87fffffeL & l) != 0L) { - jjCheckNAddStates(120, 123); - } - break; - case 233: - if (curChar == 92) { - jjCheckNAddTwoStates(234, 235); - } - break; - case 234: - if ((0x7fffffffffffffffL & l) != 0L) { - jjCheckNAddStates(120, 123); - } - break; - case 235: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(468, 472); - } - break; - case 237: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(473, 480); - } - break; - case 238: - case 452: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(481, 484); - } - break; - case 239: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(485, 489); - } - break; - case 240: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(490, 495); - } - break; - case 241: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(496, 502); - } - break; - case 244: - if ((0x10000000100000L & l) != 0L && kind > 72) { - kind = 72; - } - break; - case 245: - if ((0x100000001000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 244; - } - break; - case 246: - if ((0x20000000200000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 245; - } - break; - case 247: - if ((0x200000002L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 246; - } - break; - case 248: - if ((0x4000000040L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 247; - } - break; - case 249: - if ((0x2000000020L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 248; - } - break; - case 250: - if ((0x1000000010L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 249; - } - break; - case 252: - if ((0x10000000100000L & l) != 0L && kind > 106) { - kind = 106; - } - break; - case 253: - if ((0x400000004000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 252; - } - break; - case 254: - if ((0x200000002L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 253; - } - break; - case 255: - if ((0x10000000100000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 254; - } - break; - case 256: - if ((0x4000000040000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 255; - } - break; - case 257: - if ((0x800000008000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 256; - } - break; - case 258: - if ((0x1000000010000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 257; - } - break; - case 259: - if ((0x200000002000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 258; - } - break; - case 260: - if ((0x20000000200L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 259; - } - break; - case 262: - if ((0x7fffffe07fffffeL & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddTwoStates(220, 221); - break; - case 263: - if ((0x7fffffe07fffffeL & l) != 0L) { - jjCheckNAddStates(120, 123); - } - break; - case 264: - if ((0x7fffffe07fffffeL & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddStates(812, 817); - break; - case 270: - if ((0x10000000100000L & l) != 0L && kind > 80) { - kind = 80; - } - break; - case 271: - if ((0x1000000010000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 270; - } - break; - case 273: - if ((0x200000002000L & l) != 0L && kind > 81) { - kind = 81; - } - break; - case 274: - if ((0x200000002000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 273; - } - break; - case 276: - if ((0x200000002000L & l) != 0L && kind > 82) { - kind = 82; - } - break; - case 277: - if ((0x800000008L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 276; - } - break; - case 279: - if ((0x800000008L & l) != 0L && kind > 83) { - kind = 83; - } - break; - case 280: - if ((0x1000000010000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 279; - } - break; - case 282: - if ((0x400000004000L & l) != 0L && kind > 84) { - kind = 84; - } - break; - case 283: - if ((0x20000000200L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 282; - } - break; - case 285: - if ((0x100000001000000L & l) != 0L && kind > 85) { - kind = 85; - } - break; - case 286: - if ((0x1000000010000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 285; - } - break; - case 288: - if ((0x200000002000L & l) != 0L && kind > 86) { - kind = 86; - } - break; - case 289: - if ((0x2000000020L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 288; - } - break; - case 291: - if ((0x200000002000L & l) != 0L && kind > 87) { - kind = 87; - } - break; - case 292: - if ((0x2000000020L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 291; - } - break; - case 293: - if ((0x100000001000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 292; - } - break; - case 295: - if ((0x200000002000L & l) != 0L && kind > 88) { - kind = 88; - } - break; - case 296: - if ((0x2000000020L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 295; - } - break; - case 297: - if ((0x4000000040000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 296; - } - break; - case 299: - if ((0x100000001000000L & l) != 0L && kind > 89) { - kind = 89; - } - break; - case 300: - if ((0x2000000020L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 299; - } - break; - case 302: - if ((0x8000000080L & l) != 0L && kind > 90) { - kind = 90; - } - break; - case 303: - if ((0x2000000020L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 302; - } - break; - case 304: - if ((0x1000000010L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 303; - } - break; - case 306: - if ((0x1000000010L & l) != 0L && kind > 91) { - kind = 91; - } - break; - case 307: - if ((0x200000002L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 306; - } - break; - case 308: - if ((0x4000000040000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 307; - } - break; - case 310: - if ((0x1000000010L & l) != 0L && kind > 92) { - kind = 92; - } - break; - case 311: - if ((0x200000002L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 310; - } - break; - case 312: - if ((0x4000000040000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 311; - } - break; - case 313: - if ((0x8000000080L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 312; - } - break; - case 315: - if ((0x8000000080000L & l) != 0L && kind > 93) { - kind = 93; - } - break; - case 316: - if ((0x200000002000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 315; - } - break; - case 318: - if ((0x8000000080000L & l) != 0L && kind > 94) { - kind = 94; - } - break; - case 320: - if ((0x400000004000000L & l) != 0L && kind > 95) { - kind = 95; - } - break; - case 321: - if ((0x10000000100L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 320; - } - break; - case 323: - if ((0x400000004000000L & l) != 0L && kind > 96) { - kind = 96; - } - break; - case 324: - if ((0x10000000100L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 323; - } - break; - case 325: - if ((0x80000000800L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 324; - } - break; - case 328: - if ((0x7fffffe07fffffeL & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddTwoStates(329, 330); - break; - case 329: - if ((0x7fffffe87fffffeL & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddTwoStates(329, 330); - break; - case 330: - if (curChar == 92) { - jjCheckNAddTwoStates(331, 332); - } - break; - case 331: - if ((0x7fffffffffffffffL & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddTwoStates(329, 330); - break; - case 332: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddStates(503, 506); - break; - case 334: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddStates(507, 513); - break; - case 335: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddStates(514, 516); - break; - case 336: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddStates(517, 520); - break; - case 337: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddStates(521, 525); - break; - case 338: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddStates(526, 531); - break; - case 340: - if (curChar == 92) { - jjCheckNAddTwoStates(331, 341); - } - break; - case 341: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddStates(532, 535); - break; - case 342: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddStates(536, 542); - break; - case 343: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddStates(543, 545); - break; - case 344: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddStates(546, 549); - break; - case 345: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddStates(550, 554); - break; - case 346: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddStates(555, 560); - break; - case 347: - if ((0x20000000200000L & l) != 0L) { - jjAddStates(827, 829); - } - break; - case 349: - case 353: - if ((0x7fffffffffffffffL & l) != 0L) { - jjCheckNAddStates(567, 570); - } - break; - case 352: - if (curChar == 92) { - jjAddStates(848, 849); - } - break; - case 354: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(571, 575); - } - break; - case 356: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(576, 583); - } - break; - case 357: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(584, 587); - } - break; - case 358: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(588, 592); - } - break; - case 359: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(593, 598); - } - break; - case 360: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(599, 605); - } - break; - case 362: - case 367: - if ((0x7fffffffffffffffL & l) != 0L) { - jjCheckNAddStates(606, 609); - } - break; - case 364: - if (curChar == 92) { - jjAddStates(850, 853); - } - break; - case 366: - if (curChar == 92) { - jjAddStates(854, 855); - } - break; - case 368: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(610, 615); - } - break; - case 370: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(616, 624); - } - break; - case 371: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(625, 629); - } - break; - case 372: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(630, 635); - } - break; - case 373: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(636, 642); - } - break; - case 374: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(643, 650); - } - break; - case 379: - case 384: - if ((0x7fffffffffffffffL & l) != 0L) { - jjCheckNAddStates(651, 654); - } - break; - case 381: - if (curChar == 92) { - jjAddStates(856, 859); - } - break; - case 383: - if (curChar == 92) { - jjAddStates(860, 861); - } - break; - case 385: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(655, 660); - } - break; - case 387: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(661, 669); - } - break; - case 388: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(670, 674); - } - break; - case 389: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(675, 680); - } - break; - case 390: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(681, 687); - } - break; - case 391: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(688, 695); - } - break; - case 396: - if ((0x100000001000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 348; - } - break; - case 397: - if ((0x4000000040000L & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 396; - } - break; - case 405: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 116) { - kind = 116; - } - jjAddStates(712, 717); - break; - case 406: - if ((0x7e0000007eL & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 407; - } - break; - case 407: - if ((0x7e0000007eL & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 408; - } - break; - case 408: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAdd(409); - } - break; - case 409: - if ((0x7e0000007eL & l) != 0L && kind > 116) { - kind = 116; - } - break; - case 410: - if ((0x7e0000007eL & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 411; - } - break; - case 411: - if ((0x7e0000007eL & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 412; - } - break; - case 412: - if ((0x7e0000007eL & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 413; - } - break; - case 413: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 116) { - kind = 116; - } - jjstateSet[jjnewStateCnt++] = 401; - break; - case 414: - if ((0x7e0000007eL & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 415; - } - break; - case 415: - if ((0x7e0000007eL & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 416; - } - break; - case 416: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 116) { - kind = 116; - } - jjstateSet[jjnewStateCnt++] = 417; - break; - case 418: - if ((0x7e0000007eL & l) != 0L) { - jjstateSet[jjnewStateCnt++] = 419; - } - break; - case 419: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 116) { - kind = 116; - } - jjstateSet[jjnewStateCnt++] = 420; - break; - case 422: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 116) { - kind = 116; - } - jjstateSet[jjnewStateCnt++] = 423; - break; - case 431: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddTwoStates(432, 438); - } - break; - case 433: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 116) { - kind = 116; - } - jjstateSet[jjnewStateCnt++] = 434; - break; - case 434: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 116) { - kind = 116; - } - jjCheckNAddStates(728, 731); - break; - case 435: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 116) { - kind = 116; - } - jjCheckNAdd(409); - break; - case 436: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 116) { - kind = 116; - } - jjCheckNAddTwoStates(409, 435); - break; - case 437: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 116) { - kind = 116; - } - jjCheckNAddStates(732, 734); - break; - case 438: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(735, 739); - } - break; - case 439: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAdd(432); - } - break; - case 440: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddTwoStates(439, 432); - } - break; - case 441: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(740, 742); - } - break; - case 442: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(743, 746); - } - break; - case 443: - if (curChar == 92) { - jjCheckNAddStates(818, 821); - } - break; - case 444: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddStates(747, 750); - break; - case 445: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddStates(751, 757); - break; - case 446: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddStates(758, 760); - break; - case 447: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddStates(761, 764); - break; - case 448: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddStates(765, 769); - break; - case 449: - if ((0x7e0000007eL & l) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddStates(770, 775); - break; - case 450: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(776, 780); - } - break; - case 451: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(781, 788); - } - break; - case 453: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(789, 793); - } - break; - case 454: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(794, 799); - } - break; - case 455: - if ((0x7e0000007eL & l) != 0L) { - jjCheckNAddStates(800, 806); - } - break; - default: - break; - } - } while (i != startsAt); - } else { - int i2 = (curChar & 0xff) >> 6; - long l2 = 1L << (curChar & 077); - do { - switch (jjstateSet[--i]) { - case 520: - case 113: - case 115: - if ((jjbitVec0[i2] & l2) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddTwoStates(113, 114); - break; - case 166: - if ((jjbitVec0[i2] & l2) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddTwoStates(113, 114); - break; - case 174: - if ((jjbitVec0[i2] & l2) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddTwoStates(113, 114); - break; - case 4: - if ((jjbitVec0[i2] & l2) == 0L) { - break; - } - if (kind > 42) { - kind = 42; - } - jjCheckNAddStates(812, 817); - break; - case 518: - if ((jjbitVec0[i2] & l2) != 0L) { - if (kind > 74) { - kind = 74; - } - jjCheckNAddTwoStates(220, 221); - } - if ((jjbitVec0[i2] & l2) != 0L) { - jjCheckNAddStates(120, 123); - } - break; - case 175: - if ((jjbitVec0[i2] & l2) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddTwoStates(113, 114); - break; - case 33: - if ((jjbitVec0[i2] & l2) != 0L) { - if (kind > 74) { - kind = 74; - } - jjCheckNAddTwoStates(220, 221); - } - if ((jjbitVec0[i2] & l2) != 0L) { - jjCheckNAddStates(120, 123); - } - break; - case 176: - if ((jjbitVec0[i2] & l2) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddTwoStates(113, 114); - break; - case 177: - if ((jjbitVec0[i2] & l2) == 0L) { - break; - } - if (kind > 105) { - kind = 105; - } - jjCheckNAddTwoStates(113, 114); - break; - case 79: - case 81: - case 83: - if ((jjbitVec0[i2] & l2) == 0L) { - break; - } - if (kind > 78) { - kind = 78; - } - jjCheckNAddTwoStates(81, 82); - break; - case 2: - if ((jjbitVec0[i2] & l2) != 0L && kind > 5) { - kind = 5; - } - break; - case 9: - case 12: - case 20: - if ((jjbitVec0[i2] & l2) != 0L) { - jjCheckNAddStates(133, 135); - } - break; - case 45: - case 50: - if ((jjbitVec0[i2] & l2) != 0L) { - jjCheckNAddStates(116, 119); - } - break; - case 62: - case 67: - if ((jjbitVec0[i2] & l2) != 0L) { - jjCheckNAddStates(112, 115); - } - break; - case 100: - case 102: - if ((jjbitVec0[i2] & l2) == 0L) { - break; - } - if (kind > 98) { - kind = 98; - } - jjCheckNAddTwoStates(100, 101); - break; - case 220: - case 222: - if ((jjbitVec0[i2] & l2) == 0L) { - break; - } - if (kind > 74) { - kind = 74; - } - jjCheckNAddTwoStates(220, 221); - break; - case 230: - case 234: - if ((jjbitVec0[i2] & l2) != 0L) { - jjCheckNAddStates(120, 123); - } - break; - case 329: - case 331: - case 339: - if ((jjbitVec0[i2] & l2) == 0L) { - break; - } - if (kind > 97) { - kind = 97; - } - jjCheckNAddTwoStates(329, 330); - break; - case 349: - case 353: - if ((jjbitVec0[i2] & l2) != 0L) { - jjCheckNAddStates(567, 570); - } - break; - case 362: - case 367: - if ((jjbitVec0[i2] & l2) != 0L) { - jjCheckNAddStates(606, 609); - } - break; - case 379: - case 384: - if ((jjbitVec0[i2] & l2) != 0L) { - jjCheckNAddStates(651, 654); - } - break; - default: - break; - } - } while (i != startsAt); - } - if (kind != 0x7fffffff) { - jjmatchedKind = kind; - jjmatchedPos = curPos; - kind = 0x7fffffff; - } - ++curPos; - if ((i = jjnewStateCnt) == (startsAt = 517 - (jjnewStateCnt = startsAt))) { - return curPos; - } - try { - curChar = input_stream.readChar(); - } catch (java.io.IOException e) { - return curPos; - } - } - } - - private int jjMoveStringLiteralDfa0_3() { - switch (curChar) { - case 42: - return jjMoveStringLiteralDfa1_3(0x100L); - default: + if ((active0 & 0xff80000000000000L) != 0L || (active1 & 0xf80000003fL) != 0L) + return 166; + if ((active0 & 0x38000000000000L) != 0L || (active1 & 0x80L) != 0L) + { + jjmatchedKind = 74; + return 518; + } + if ((active0 & 0x200000000L) != 0L) + return 519; + return -1; + case 1: + if ((active0 & 0x50000000000000L) != 0L) + { + jjmatchedKind = 74; + jjmatchedPos = 1; + return 518; + } + if ((active1 & 0x8L) != 0L) + return 178; + if ((active0 & 0xff80000000000000L) != 0L || (active1 & 0xf800000037L) != 0L) + { + jjmatchedKind = 105; + jjmatchedPos = 1; + return 520; + } + if ((active0 & 0x40L) != 0L) return 1; - } - } - - private int jjMoveStringLiteralDfa1_3(long active0) { - try { - curChar = input_stream.readChar(); - } catch (java.io.IOException e) { - return 1; - } - switch (curChar) { - case 47: - if ((active0 & 0x100L) != 0L) { - return jjStopAtPos(1, 8); - } - break; - default: - return 2; - } - return 2; - } - - private int jjMoveStringLiteralDfa0_1() { - return jjMoveNfa_1(0, 0); - } - - private int jjMoveNfa_1(int startState, int curPos) { - int startsAt = 0; - jjnewStateCnt = 4; - int i = 1; - jjstateSet[0] = startState; - int kind = 0x7fffffff; - for (;;) { - if (++jjround == 0x7fffffff) { - ReInitRounds(); + if ((active0 & 0x28000000000000L) != 0L || (active1 & 0x80L) != 0L) + return 518; + return -1; + case 2: + if ((active1 & 0x8L) != 0L) + { + jjmatchedKind = 105; + jjmatchedPos = 2; + return 177; + } + if ((active1 & 0x1L) != 0L) + return 520; + if ((active0 & 0xff80000000000000L) != 0L || (active1 & 0xf800000036L) != 0L) + { + jjmatchedKind = 105; + jjmatchedPos = 2; + return 520; + } + if ((active0 & 0x50000000000000L) != 0L) + { + jjmatchedKind = 74; + jjmatchedPos = 2; + return 518; + } + return -1; + case 3: + if ((active0 & 0x10000000000000L) != 0L) + { + jjmatchedKind = 74; + jjmatchedPos = 3; + return 518; + } + if ((active1 & 0x8L) != 0L) + { + jjmatchedKind = 105; + jjmatchedPos = 3; + return 176; + } + if ((active0 & 0xdf80000000000000L) != 0L || (active1 & 0xf800000036L) != 0L) + { + jjmatchedKind = 105; + jjmatchedPos = 3; + return 520; + } + if ((active0 & 0x2000000000000000L) != 0L) + return 520; + if ((active0 & 0x40000000000000L) != 0L) + return 518; + return -1; + case 4: + if ((active0 & 0x8f80000000000000L) != 0L || (active1 & 0xb800000034L) != 0L) + { + jjmatchedKind = 105; + jjmatchedPos = 4; + return 520; + } + if ((active0 & 0x5000000000000000L) != 0L || (active1 & 0x4000000002L) != 0L) + return 520; + if ((active0 & 0x10000000000000L) != 0L) + { + jjmatchedKind = 74; + jjmatchedPos = 4; + return 518; + } + if ((active1 & 0x8L) != 0L) + { + jjmatchedKind = 105; + jjmatchedPos = 4; + return 175; + } + return -1; + case 5: + if ((active0 & 0x700000000000000L) != 0L || (active1 & 0xa800000034L) != 0L) + { + jjmatchedKind = 105; + jjmatchedPos = 5; + return 520; + } + if ((active0 & 0x10000000000000L) != 0L) + { + jjmatchedKind = 74; + jjmatchedPos = 5; + return 518; + } + if ((active1 & 0x8L) != 0L) + { + jjmatchedKind = 105; + jjmatchedPos = 5; + return 174; + } + if ((active0 & 0x8880000000000000L) != 0L || (active1 & 0x1000000000L) != 0L) + return 520; + return -1; + case 6: + if ((active0 & 0x400000000000000L) != 0L || (active1 & 0x800000004L) != 0L) + return 520; + if ((active0 & 0x300000000000000L) != 0L || (active1 & 0xa000000038L) != 0L) + { + jjmatchedKind = 105; + jjmatchedPos = 6; + return 520; + } + if ((active0 & 0x10000000000000L) != 0L) + return 518; + return -1; + case 7: + if ((active0 & 0x100000000000000L) != 0L || (active1 & 0x2000000020L) != 0L) + return 520; + if ((active0 & 0x200000000000000L) != 0L || (active1 & 0x8000000018L) != 0L) + { + jjmatchedKind = 105; + jjmatchedPos = 7; + return 520; + } + return -1; + case 8: + if ((active0 & 0x200000000000000L) != 0L || (active1 & 0x10L) != 0L) + return 520; + if ((active1 & 0x8000000008L) != 0L) + { + jjmatchedKind = 105; + jjmatchedPos = 8; + return 520; + } + return -1; + case 9: + if ((active1 & 0x8L) != 0L) + { + jjmatchedKind = 105; + jjmatchedPos = 9; + return 520; + } + if ((active1 & 0x8000000000L) != 0L) + return 520; + return -1; + case 10: + if ((active1 & 0x8L) != 0L) + { + jjmatchedKind = 105; + jjmatchedPos = 10; + return 520; + } + return -1; + case 11: + if ((active1 & 0x8L) != 0L) + { + jjmatchedKind = 105; + jjmatchedPos = 11; + return 520; + } + return -1; + case 12: + if ((active1 & 0x8L) != 0L) + { + jjmatchedKind = 105; + jjmatchedPos = 12; + return 520; + } + return -1; + default : + return -1; + } +} +private final int jjStartNfa_0(int pos, long active0, long active1) +{ + return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0, active1), pos + 1); +} +private int jjStopAtPos(int pos, int kind) +{ + jjmatchedKind = kind; + jjmatchedPos = pos; + return pos + 1; +} +private int jjMoveStringLiteralDfa0_0() +{ + switch(curChar) + { + case 33: + return jjMoveStringLiteralDfa1_0(0x8000000000L, 0x0L); + case 36: + return jjMoveStringLiteralDfa1_0(0x10000L, 0x0L); + case 37: + return jjStopAtPos(0, 31); + case 38: + jjmatchedKind = 32; + return jjMoveStringLiteralDfa1_0(0x4000000000L, 0x0L); + case 40: + return jjStopAtPos(0, 34); + case 41: + return jjStopAtPos(0, 35); + case 42: + jjmatchedKind = 30; + return jjMoveStringLiteralDfa1_0(0x20000L, 0x0L); + case 43: + return jjStopAtPos(0, 20); + case 44: + return jjStopAtPos(0, 22); + case 45: + jjmatchedKind = 21; + return jjMoveStringLiteralDfa1_0(0x800L, 0x0L); + case 46: + return jjStartNfaWithStates_0(0, 33, 519); + case 47: + jjmatchedKind = 27; + return jjMoveStringLiteralDfa1_0(0x44L, 0x0L); + case 58: + return jjStopAtPos(0, 40); + case 59: + return jjStopAtPos(0, 23); + case 60: + jjmatchedKind = 26; + return jjMoveStringLiteralDfa1_0(0x400L, 0x0L); + case 61: + jjmatchedKind = 19; + return jjMoveStringLiteralDfa1_0(0x1000000000L, 0x0L); + case 62: + return jjStopAtPos(0, 24); + case 64: + return jjMoveStringLiteralDfa1_0(0xff80000000000000L, 0xf80000003fL); + case 91: + return jjStopAtPos(0, 28); + case 93: + return jjStopAtPos(0, 29); + case 94: + return jjMoveStringLiteralDfa1_0(0x8000L, 0x0L); + case 70: + case 102: + return jjMoveStringLiteralDfa1_0(0x40000000000000L, 0x0L); + case 73: + case 105: + return jjMoveStringLiteralDfa1_0(0x20000000000000L, 0x80L); + case 84: + case 116: + return jjMoveStringLiteralDfa1_0(0x18000000000000L, 0x0L); + case 123: + return jjStopAtPos(0, 12); + case 124: + return jjMoveStringLiteralDfa1_0(0x2000004000L, 0x0L); + case 125: + return jjStopAtPos(0, 13); + case 126: + jjmatchedKind = 25; + return jjMoveStringLiteralDfa1_0(0x40000L, 0x0L); + default : + return jjMoveNfa_0(4, 0); + } +} +private int jjMoveStringLiteralDfa1_0(long active0, long active1) +{ + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_0(0, active0, active1); + return 1; + } + switch(curChar) + { + case 33: + return jjMoveStringLiteralDfa2_0(active0, 0x400L, active1, 0L); + case 38: + if ((active0 & 0x4000000000L) != 0L) + return jjStopAtPos(1, 38); + break; + case 42: + if ((active0 & 0x40L) != 0L) + return jjStartNfaWithStates_0(1, 6, 1); + break; + case 45: + return jjMoveStringLiteralDfa2_0(active0, 0x800L, active1, 0x8L); + case 47: + if ((active0 & 0x4L) != 0L) + return jjStopAtPos(1, 2); + break; + case 61: + if ((active0 & 0x4000L) != 0L) + return jjStopAtPos(1, 14); + else if ((active0 & 0x8000L) != 0L) + return jjStopAtPos(1, 15); + else if ((active0 & 0x10000L) != 0L) + return jjStopAtPos(1, 16); + else if ((active0 & 0x20000L) != 0L) + return jjStopAtPos(1, 17); + else if ((active0 & 0x40000L) != 0L) + return jjStopAtPos(1, 18); + else if ((active0 & 0x1000000000L) != 0L) + return jjStopAtPos(1, 36); + else if ((active0 & 0x8000000000L) != 0L) + return jjStopAtPos(1, 39); + break; + case 67: + case 99: + return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x2000000020L); + case 68: + case 100: + return jjMoveStringLiteralDfa2_0(active0, 0x800000000000000L, active1, 0L); + case 69: + case 101: + return jjMoveStringLiteralDfa2_0(active0, 0x4000000000000000L, active1, 0x6L); + case 70: + case 102: + if ((active1 & 0x80L) != 0L) + return jjStartNfaWithStates_0(1, 71, 518); + return jjMoveStringLiteralDfa2_0(active0, 0x2200000000000000L, active1, 0x8000000000L); + case 72: + case 104: + return jjMoveStringLiteralDfa2_0(active0, 0x10000000000000L, active1, 0L); + case 73: + case 105: + return jjMoveStringLiteralDfa2_0(active0, 0x100000000000000L, active1, 0x800000001L); + case 77: + case 109: + return jjMoveStringLiteralDfa2_0(active0, 0x80000000000000L, active1, 0x1000000000L); + case 78: + case 110: + if ((active0 & 0x20000000000000L) != 0L) + return jjStartNfaWithStates_0(1, 53, 518); + break; + case 79: + case 111: + if ((active0 & 0x8000000000000L) != 0L) + return jjStartNfaWithStates_0(1, 51, 518); + break; + case 80: + case 112: + return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x4000000000L); + case 82: + case 114: + return jjMoveStringLiteralDfa2_0(active0, 0x440000000000000L, active1, 0L); + case 83: + case 115: + return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x10L); + case 87: + case 119: + return jjMoveStringLiteralDfa2_0(active0, 0x9000000000000000L, active1, 0L); + case 124: + if ((active0 & 0x2000000000L) != 0L) + return jjStopAtPos(1, 37); + break; + default : + break; + } + return jjStartNfa_0(0, active0, active1); +} +private int jjMoveStringLiteralDfa2_0(long old0, long active0, long old1, long active1) +{ + if (((active0 &= old0) | (active1 &= old1)) == 0L) + return jjStartNfa_0(0, old0, old1); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_0(1, active0, active1); + return 2; + } + switch(curChar) + { + case 45: + return jjMoveStringLiteralDfa3_0(active0, 0x400L, active1, 0L); + case 62: + if ((active0 & 0x800L) != 0L) + return jjStopAtPos(2, 11); + break; + case 65: + case 97: + return jjMoveStringLiteralDfa3_0(active0, 0x5000000000000000L, active1, 0x4000000000L); + case 69: + case 101: + return jjMoveStringLiteralDfa3_0(active0, 0xc00000000000000L, active1, 0x1000000000L); + case 70: + case 102: + if ((active1 & 0x1L) != 0L) + return jjStartNfaWithStates_0(2, 64, 520); + break; + case 72: + case 104: + return jjMoveStringLiteralDfa3_0(active0, 0x8000000000000000L, active1, 0x2000000000L); + case 73: + case 105: + return jjMoveStringLiteralDfa3_0(active0, 0x80000000000000L, active1, 0L); + case 76: + case 108: + return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x2L); + case 77: + case 109: + return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x800000008L); + case 78: + case 110: + return jjMoveStringLiteralDfa3_0(active0, 0x100000000000000L, active1, 0L); + case 79: + case 111: + return jjMoveStringLiteralDfa3_0(active0, 0x2040000000000000L, active1, 0x8000000020L); + case 82: + case 114: + return jjMoveStringLiteralDfa3_0(active0, 0x10000000000000L, active1, 0L); + case 85: + case 117: + return jjMoveStringLiteralDfa3_0(active0, 0x200000000000000L, active1, 0x10L); + case 88: + case 120: + return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x4L); + default : + break; + } + return jjStartNfa_0(1, active0, active1); +} +private int jjMoveStringLiteralDfa3_0(long old0, long active0, long old1, long active1) +{ + if (((active0 &= old0) | (active1 &= old1)) == 0L) + return jjStartNfa_0(1, old0, old1); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_0(2, active0, active1); + return 3; + } + switch(curChar) + { + case 45: + if ((active0 & 0x400L) != 0L) + return jjStopAtPos(3, 10); + break; + case 65: + case 97: + return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x2000000000L); + case 66: + case 98: + return jjMoveStringLiteralDfa4_0(active0, 0x800000000000000L, active1, 0L); + case 67: + case 99: + return jjMoveStringLiteralDfa4_0(active0, 0x4100000000000000L, active1, 0L); + case 68: + case 100: + return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x1000000000L); + case 71: + case 103: + return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x4000000000L); + case 73: + case 105: + return jjMoveStringLiteralDfa4_0(active0, 0x8000000000000000L, active1, 0L); + case 77: + case 109: + if ((active0 & 0x40000000000000L) != 0L) + return jjStartNfaWithStates_0(3, 54, 518); + break; + case 78: + case 110: + return jjMoveStringLiteralDfa4_0(active0, 0x200000000000000L, active1, 0x8000000020L); + case 79: + case 111: + return jjMoveStringLiteralDfa4_0(active0, 0x10000000000000L, active1, 0x8L); + case 80: + case 112: + return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x800000010L); + case 82: + case 114: + if ((active0 & 0x2000000000000000L) != 0L) + return jjStartNfaWithStates_0(3, 61, 520); + return jjMoveStringLiteralDfa4_0(active0, 0x1000000000000000L, active1, 0L); + case 83: + case 115: + return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x2L); + case 84: + case 116: + return jjMoveStringLiteralDfa4_0(active0, 0x400000000000000L, active1, 0x4L); + case 88: + case 120: + return jjMoveStringLiteralDfa4_0(active0, 0x80000000000000L, active1, 0L); + default : + break; + } + return jjStartNfa_0(2, active0, active1); +} +private int jjMoveStringLiteralDfa4_0(long old0, long active0, long old1, long active1) +{ + if (((active0 &= old0) | (active1 &= old1)) == 0L) + return jjStartNfa_0(2, old0, old1); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_0(3, active0, active1); + return 4; + } + switch(curChar) + { + case 67: + case 99: + return jjMoveStringLiteralDfa5_0(active0, 0x200000000000000L, active1, 0L); + case 69: + case 101: + if ((active1 & 0x2L) != 0L) + return jjStartNfaWithStates_0(4, 65, 520); + else if ((active1 & 0x4000000000L) != 0L) + return jjStartNfaWithStates_0(4, 102, 520); + return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x4L); + case 72: + case 104: + if ((active0 & 0x4000000000000000L) != 0L) + return jjStartNfaWithStates_0(4, 62, 520); + break; + case 73: + case 105: + return jjMoveStringLiteralDfa5_0(active0, 0x80000000000000L, active1, 0x1000000000L); + case 76: + case 108: + return jjMoveStringLiteralDfa5_0(active0, 0x8100000000000000L, active1, 0L); + case 78: + case 110: + if ((active0 & 0x1000000000000000L) != 0L) + return jjStartNfaWithStates_0(4, 60, 520); + break; + case 79: + case 111: + return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x800000000L); + case 80: + case 112: + return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x10L); + case 82: + case 114: + return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x2000000000L); + case 84: + case 116: + return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x8000000020L); + case 85: + case 117: + return jjMoveStringLiteralDfa5_0(active0, 0xc10000000000000L, active1, 0L); + case 90: + case 122: + return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x8L); + default : + break; + } + return jjStartNfa_0(3, active0, active1); +} +private int jjMoveStringLiteralDfa5_0(long old0, long active0, long old1, long active1) +{ + if (((active0 &= old0) | (active1 &= old1)) == 0L) + return jjStartNfa_0(3, old0, old1); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_0(4, active0, active1); + return 5; + } + switch(curChar) + { + case 45: + return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x8000000008L); + case 65: + case 97: + if ((active1 & 0x1000000000L) != 0L) + return jjStartNfaWithStates_0(5, 100, 520); + break; + case 69: + case 101: + if ((active0 & 0x8000000000000000L) != 0L) + return jjStartNfaWithStates_0(5, 63, 520); + return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x20L); + case 71: + case 103: + if ((active0 & 0x800000000000000L) != 0L) + return jjStartNfaWithStates_0(5, 59, 520); + return jjMoveStringLiteralDfa6_0(active0, 0x10000000000000L, active1, 0L); + case 78: + case 110: + if ((active0 & 0x80000000000000L) != 0L) + return jjStartNfaWithStates_0(5, 55, 520); + return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x4L); + case 79: + case 111: + return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x10L); + case 82: + case 114: + return jjMoveStringLiteralDfa6_0(active0, 0x400000000000000L, active1, 0x800000000L); + case 83: + case 115: + return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x2000000000L); + case 84: + case 116: + return jjMoveStringLiteralDfa6_0(active0, 0x200000000000000L, active1, 0L); + case 85: + case 117: + return jjMoveStringLiteralDfa6_0(active0, 0x100000000000000L, active1, 0L); + default : + break; + } + return jjStartNfa_0(4, active0, active1); +} +private int jjMoveStringLiteralDfa6_0(long old0, long active0, long old1, long active1) +{ + if (((active0 &= old0) | (active1 &= old1)) == 0L) + return jjStartNfa_0(4, old0, old1); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_0(5, active0, active1); + return 6; + } + switch(curChar) + { + case 68: + case 100: + if ((active1 & 0x4L) != 0L) + return jjStartNfaWithStates_0(6, 66, 520); + return jjMoveStringLiteralDfa7_0(active0, 0x100000000000000L, active1, 0x8L); + case 69: + case 101: + return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x2000000000L); + case 70: + case 102: + return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x8000000000L); + case 72: + case 104: + if ((active0 & 0x10000000000000L) != 0L) + return jjStartNfaWithStates_0(6, 52, 518); + break; + case 73: + case 105: + return jjMoveStringLiteralDfa7_0(active0, 0x200000000000000L, active1, 0L); + case 78: + case 110: + if ((active0 & 0x400000000000000L) != 0L) + return jjStartNfaWithStates_0(6, 58, 520); + return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x20L); + case 82: + case 114: + return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x10L); + case 84: + case 116: + if ((active1 & 0x800000000L) != 0L) + return jjStartNfaWithStates_0(6, 99, 520); + break; + default : + break; + } + return jjStartNfa_0(5, active0, active1); +} +private int jjMoveStringLiteralDfa7_0(long old0, long active0, long old1, long active1) +{ + if (((active0 &= old0) | (active1 &= old1)) == 0L) + return jjStartNfa_0(5, old0, old1); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_0(6, active0, active1); + return 7; + } + switch(curChar) + { + case 65: + case 97: + return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x8000000000L); + case 69: + case 101: + if ((active0 & 0x100000000000000L) != 0L) + return jjStartNfaWithStates_0(7, 56, 520); + break; + case 79: + case 111: + return jjMoveStringLiteralDfa8_0(active0, 0x200000000000000L, active1, 0x8L); + case 84: + case 116: + if ((active1 & 0x20L) != 0L) + return jjStartNfaWithStates_0(7, 69, 520); + else if ((active1 & 0x2000000000L) != 0L) + return jjStartNfaWithStates_0(7, 101, 520); + return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x10L); + default : + break; + } + return jjStartNfa_0(6, active0, active1); +} +private int jjMoveStringLiteralDfa8_0(long old0, long active0, long old1, long active1) +{ + if (((active0 &= old0) | (active1 &= old1)) == 0L) + return jjStartNfa_0(6, old0, old1); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_0(7, active0, active1); + return 8; + } + switch(curChar) + { + case 67: + case 99: + return jjMoveStringLiteralDfa9_0(active0, 0L, active1, 0x8000000008L); + case 78: + case 110: + if ((active0 & 0x200000000000000L) != 0L) + return jjStartNfaWithStates_0(8, 57, 520); + break; + case 83: + case 115: + if ((active1 & 0x10L) != 0L) + return jjStartNfaWithStates_0(8, 68, 520); + break; + default : + break; + } + return jjStartNfa_0(7, active0, active1); +} +private int jjMoveStringLiteralDfa9_0(long old0, long active0, long old1, long active1) +{ + if (((active0 &= old0) | (active1 &= old1)) == 0L) + return jjStartNfa_0(7, old0, old1); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_0(8, 0L, active1); + return 9; + } + switch(curChar) + { + case 69: + case 101: + if ((active1 & 0x8000000000L) != 0L) + return jjStartNfaWithStates_0(9, 103, 520); + break; + case 85: + case 117: + return jjMoveStringLiteralDfa10_0(active1, 0x8L); + default : + break; + } + return jjStartNfa_0(8, 0L, active1); +} +private int jjMoveStringLiteralDfa10_0(long old1, long active1) +{ + if (((active1 &= old1)) == 0L) + return jjStartNfa_0(8, 0L, old1); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_0(9, 0L, active1); + return 10; + } + switch(curChar) + { + case 77: + case 109: + return jjMoveStringLiteralDfa11_0(active1, 0x8L); + default : + break; + } + return jjStartNfa_0(9, 0L, active1); +} +private int jjMoveStringLiteralDfa11_0(long old1, long active1) +{ + if (((active1 &= old1)) == 0L) + return jjStartNfa_0(9, 0L, old1); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_0(10, 0L, active1); + return 11; + } + switch(curChar) + { + case 69: + case 101: + return jjMoveStringLiteralDfa12_0(active1, 0x8L); + default : + break; + } + return jjStartNfa_0(10, 0L, active1); +} +private int jjMoveStringLiteralDfa12_0(long old1, long active1) +{ + if (((active1 &= old1)) == 0L) + return jjStartNfa_0(10, 0L, old1); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_0(11, 0L, active1); + return 12; + } + switch(curChar) + { + case 78: + case 110: + return jjMoveStringLiteralDfa13_0(active1, 0x8L); + default : + break; + } + return jjStartNfa_0(11, 0L, active1); +} +private int jjMoveStringLiteralDfa13_0(long old1, long active1) +{ + if (((active1 &= old1)) == 0L) + return jjStartNfa_0(11, 0L, old1); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_0(12, 0L, active1); + return 13; + } + switch(curChar) + { + case 84: + case 116: + if ((active1 & 0x8L) != 0L) + return jjStartNfaWithStates_0(13, 67, 520); + break; + default : + break; + } + return jjStartNfa_0(12, 0L, active1); +} +private int jjStartNfaWithStates_0(int pos, int kind, int state) +{ + jjmatchedKind = kind; + jjmatchedPos = pos; + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { return pos + 1; } + return jjMoveNfa_0(state, pos + 1); +} +static final long[] jjbitVec0 = { + 0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL +}; +private int jjMoveNfa_0(int startState, int curPos) +{ + int startsAt = 0; + jjnewStateCnt = 517; + int i = 1; + jjstateSet[0] = startState; + int kind = 0x7fffffff; + for (;;) + { + if (++jjround == 0x7fffffff) + ReInitRounds(); + if (curChar < 64) + { + long l = 1L << curChar; + do + { + switch(jjstateSet[--i]) + { + case 520: + case 113: + if ((0x3ff200000000000L & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddTwoStates(113, 114); + break; + case 166: + if (curChar == 45) + jjstateSet[jjnewStateCnt++] = 112; + if (curChar == 45) + jjstateSet[jjnewStateCnt++] = 217; + if (curChar == 45) + jjstateSet[jjnewStateCnt++] = 205; + if (curChar == 45) + jjstateSet[jjnewStateCnt++] = 189; + if (curChar == 45) + jjstateSet[jjnewStateCnt++] = 178; + break; + case 174: + if ((0x3ff200000000000L & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddTwoStates(113, 114); + break; + case 4: + if ((0x3ff000000000000L & l) != 0L) + { + if (kind > 75) + kind = 75; + jjCheckNAddStates(0, 81); + } + else if ((0x100003600L & l) != 0L) + { + if (kind > 1) + kind = 1; + jjCheckNAdd(0); + } + else if (curChar == 46) + jjCheckNAddStates(82, 101); + else if (curChar == 45) + jjAddStates(102, 103); + else if (curChar == 33) + jjCheckNAddStates(104, 107); + else if (curChar == 35) + jjCheckNAddTwoStates(100, 101); + else if (curChar == 36) + jjCheckNAddStates(108, 111); + else if (curChar == 39) + jjCheckNAddStates(112, 115); + else if (curChar == 34) + jjCheckNAddStates(116, 119); + else if (curChar == 47) + jjstateSet[jjnewStateCnt++] = 3; + if (curChar == 45) + jjstateSet[jjnewStateCnt++] = 42; + else if (curChar == 35) + jjstateSet[jjnewStateCnt++] = 5; + break; + case 517: + if ((0x100003600L & l) != 0L) + jjCheckNAddTwoStates(251, 260); + if ((0x100003600L & l) != 0L) + jjCheckNAddTwoStates(243, 250); + break; + case 518: + if ((0x3ff200000000000L & l) != 0L) + jjCheckNAddStates(120, 123); + else if ((0x100003600L & l) != 0L) + jjCheckNAddTwoStates(231, 232); + else if (curChar == 40) + { + if (kind > 120) + kind = 120; + } + if ((0x3ff200000000000L & l) != 0L) + { + if (kind > 74) + kind = 74; + jjCheckNAddTwoStates(220, 221); + } + break; + case 175: + if ((0x3ff200000000000L & l) != 0L) + { + if (kind > 105) + kind = 105; + jjCheckNAddTwoStates(113, 114); + } + if (curChar == 45) + jjstateSet[jjnewStateCnt++] = 174; + break; + case 33: + if ((0x3ff200000000000L & l) != 0L) + jjCheckNAddStates(120, 123); + else if ((0x100003600L & l) != 0L) + jjCheckNAddTwoStates(231, 232); + else if (curChar == 40) + { + if (kind > 120) + kind = 120; + } + if ((0x3ff200000000000L & l) != 0L) + { + if (kind > 74) + kind = 74; + jjCheckNAddTwoStates(220, 221); + } + break; + case 176: + if ((0x3ff200000000000L & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddTwoStates(113, 114); + break; + case 519: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(124, 128); + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(322, 325); + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(319, 321); + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(317, 318); + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(314, 316); + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(309, 313); + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(305, 308); + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(301, 304); + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(298, 300); + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(294, 297); + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(290, 293); + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(287, 289); + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(284, 286); + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(281, 283); + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(278, 280); + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(275, 277); + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(272, 274); + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(269, 271); + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(267, 268); + if ((0x3ff000000000000L & l) != 0L) + { + if (kind > 75) + kind = 75; + jjCheckNAdd(266); + } + break; + case 177: + if ((0x3ff200000000000L & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddTwoStates(113, 114); + break; + case 79: + if (curChar == 45) + jjCheckNAdd(80); + break; + case 0: + if ((0x100003600L & l) == 0L) + break; + if (kind > 1) + kind = 1; + jjCheckNAdd(0); + break; + case 1: + if (curChar == 42) + jjstateSet[jjnewStateCnt++] = 2; + break; + case 2: + if ((0xffff7fffffffffffL & l) != 0L && kind > 5) + kind = 5; + break; + case 3: + if (curChar == 42) + jjstateSet[jjnewStateCnt++] = 1; + break; + case 6: + if (curChar == 36) + jjCheckNAddStates(129, 132); + break; + case 7: + if (curChar == 45) + jjCheckNAdd(8); + break; + case 9: + if ((0x3ff200000000000L & l) != 0L) + jjCheckNAddStates(133, 135); + break; + case 12: + if ((0xffffffff00000000L & l) != 0L) + jjCheckNAddStates(133, 135); + break; + case 13: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(136, 140); + break; + case 14: + if ((0x100003600L & l) != 0L) + jjCheckNAddStates(133, 135); + break; + case 15: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(141, 148); + break; + case 16: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(149, 152); + break; + case 17: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(153, 157); + break; + case 18: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(158, 163); + break; + case 19: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(164, 170); + break; + case 22: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(171, 175); + break; + case 23: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(176, 183); + break; + case 24: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(184, 187); + break; + case 25: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(188, 192); + break; + case 26: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(193, 198); + break; + case 27: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(199, 205); + break; + case 28: + if (curChar == 35) + jjstateSet[jjnewStateCnt++] = 5; + break; + case 40: + if (curChar == 45) + jjstateSet[jjnewStateCnt++] = 39; + break; + case 43: + if (curChar == 45) + jjstateSet[jjnewStateCnt++] = 42; + break; + case 44: + if (curChar == 34) + jjCheckNAddStates(116, 119); + break; + case 45: + if ((0xfffffffb00000200L & l) != 0L) + jjCheckNAddStates(116, 119); + break; + case 46: + if (curChar == 34 && kind > 73) + kind = 73; + break; + case 48: + if (curChar == 12) + jjCheckNAddStates(116, 119); + break; + case 50: + if ((0xffffffff00000000L & l) != 0L) + jjCheckNAddStates(116, 119); + break; + case 51: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(206, 211); + break; + case 52: + if ((0x100003600L & l) != 0L) + jjCheckNAddStates(116, 119); + break; + case 53: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(212, 220); + break; + case 54: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(221, 225); + break; + case 55: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(226, 231); + break; + case 56: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(232, 238); + break; + case 57: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(239, 246); + break; + case 58: + if (curChar == 13) + jjCheckNAddStates(116, 119); + break; + case 59: + if (curChar == 10) + jjCheckNAddStates(116, 119); + break; + case 60: + if (curChar == 13) + jjstateSet[jjnewStateCnt++] = 59; + break; + case 61: + if (curChar == 39) + jjCheckNAddStates(112, 115); + break; + case 62: + if ((0xffffff7f00000200L & l) != 0L) + jjCheckNAddStates(112, 115); + break; + case 63: + if (curChar == 39 && kind > 73) + kind = 73; + break; + case 65: + if (curChar == 12) + jjCheckNAddStates(112, 115); + break; + case 67: + if ((0xffffffff00000000L & l) != 0L) + jjCheckNAddStates(112, 115); + break; + case 68: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(247, 252); + break; + case 69: + if ((0x100003600L & l) != 0L) + jjCheckNAddStates(112, 115); + break; + case 70: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(253, 261); + break; + case 71: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(262, 266); + break; + case 72: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(267, 272); + break; + case 73: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(273, 279); + break; + case 74: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(280, 287); + break; + case 75: + if (curChar == 13) + jjCheckNAddStates(112, 115); + break; + case 76: + if (curChar == 10) + jjCheckNAddStates(112, 115); + break; + case 77: + if (curChar == 13) + jjstateSet[jjnewStateCnt++] = 76; + break; + case 78: + if (curChar == 36) + jjCheckNAddStates(108, 111); + break; + case 81: + if ((0x3ff200000000000L & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddTwoStates(81, 82); + break; + case 83: + if ((0xffffffff00000000L & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddTwoStates(81, 82); + break; + case 84: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddStates(288, 291); + break; + case 85: + if ((0x100003600L & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddTwoStates(81, 82); + break; + case 86: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddStates(292, 298); + break; + case 87: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddStates(299, 301); + break; + case 88: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddStates(302, 305); + break; + case 89: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddStates(306, 310); + break; + case 90: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddStates(311, 316); + break; + case 93: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddStates(317, 320); + break; + case 94: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddStates(321, 327); + break; + case 95: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddStates(328, 330); + break; + case 96: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddStates(331, 334); + break; + case 97: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddStates(335, 339); + break; + case 98: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddStates(340, 345); + break; + case 99: + if (curChar == 35) + jjCheckNAddTwoStates(100, 101); + break; + case 100: + if ((0x3ff200000000000L & l) == 0L) + break; + if (kind > 98) + kind = 98; + jjCheckNAddTwoStates(100, 101); + break; + case 102: + if ((0xffffffff00000000L & l) == 0L) + break; + if (kind > 98) + kind = 98; + jjCheckNAddTwoStates(100, 101); + break; + case 103: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 98) + kind = 98; + jjCheckNAddStates(346, 349); + break; + case 104: + if ((0x100003600L & l) == 0L) + break; + if (kind > 98) + kind = 98; + jjCheckNAddTwoStates(100, 101); + break; + case 105: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 98) + kind = 98; + jjCheckNAddStates(350, 356); + break; + case 106: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 98) + kind = 98; + jjCheckNAddStates(357, 359); + break; + case 107: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 98) + kind = 98; + jjCheckNAddStates(360, 363); + break; + case 108: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 98) + kind = 98; + jjCheckNAddStates(364, 368); + break; + case 109: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 98) + kind = 98; + jjCheckNAddStates(369, 374); + break; + case 111: + if (curChar == 45) + jjstateSet[jjnewStateCnt++] = 112; + break; + case 115: + if ((0xffffffff00000000L & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddTwoStates(113, 114); + break; + case 116: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddStates(375, 378); + break; + case 117: + if ((0x100003600L & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddTwoStates(113, 114); + break; + case 118: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddStates(379, 385); + break; + case 119: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddStates(386, 388); + break; + case 120: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddStates(389, 392); + break; + case 121: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddStates(393, 397); + break; + case 122: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddStates(398, 403); + break; + case 125: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddStates(404, 407); + break; + case 126: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddStates(408, 414); + break; + case 127: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddStates(415, 417); + break; + case 128: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddStates(418, 421); + break; + case 129: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddStates(422, 426); + break; + case 130: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddStates(427, 432); + break; + case 132: + if ((0x100003600L & l) != 0L) + jjAddStates(433, 434); + break; + case 133: + if (curChar == 40 && kind > 117) + kind = 117; + break; + case 140: + if ((0x100003600L & l) != 0L) + jjAddStates(435, 436); + break; + case 141: + if (curChar == 40 && kind > 118) + kind = 118; + break; + case 148: + if ((0x100003600L & l) != 0L) + jjAddStates(437, 438); + break; + case 149: + if (curChar == 40 && kind > 119) + kind = 119; + break; + case 179: + if (curChar == 45) + jjstateSet[jjnewStateCnt++] = 178; + break; + case 188: + if (curChar == 45) + jjstateSet[jjnewStateCnt++] = 187; + break; + case 190: + if (curChar == 45) + jjstateSet[jjnewStateCnt++] = 189; + break; + case 199: + if (curChar == 45) + jjstateSet[jjnewStateCnt++] = 198; + break; + case 206: + if (curChar == 45) + jjstateSet[jjnewStateCnt++] = 205; + break; + case 215: + if (curChar == 45) + jjstateSet[jjnewStateCnt++] = 214; + break; + case 218: + if (curChar == 45) + jjstateSet[jjnewStateCnt++] = 217; + break; + case 220: + if ((0x3ff200000000000L & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddTwoStates(220, 221); + break; + case 222: + if ((0xffffffff00000000L & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddTwoStates(220, 221); + break; + case 223: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddStates(439, 442); + break; + case 224: + if ((0x100003600L & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddTwoStates(220, 221); + break; + case 225: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddStates(443, 449); + break; + case 226: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddStates(450, 452); + break; + case 227: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddStates(453, 456); + break; + case 228: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddStates(457, 461); + break; + case 229: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddStates(462, 467); + break; + case 230: + if ((0x3ff200000000000L & l) != 0L) + jjCheckNAddStates(120, 123); + break; + case 231: + if ((0x100003600L & l) != 0L) + jjCheckNAddTwoStates(231, 232); + break; + case 232: + if (curChar == 40 && kind > 120) + kind = 120; + break; + case 234: + if ((0xffffffff00000000L & l) != 0L) + jjCheckNAddStates(120, 123); + break; + case 235: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(468, 472); + break; + case 236: + if ((0x100003600L & l) != 0L) + jjCheckNAddStates(120, 123); + break; + case 237: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(473, 480); + break; + case 238: + case 452: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(481, 484); + break; + case 239: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(485, 489); + break; + case 240: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(490, 495); + break; + case 241: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(496, 502); + break; + case 242: + if (curChar == 33) + jjCheckNAddStates(104, 107); + break; + case 243: + if ((0x100003600L & l) != 0L) + jjCheckNAddTwoStates(243, 250); + break; + case 251: + if ((0x100003600L & l) != 0L) + jjCheckNAddTwoStates(251, 260); + break; + case 261: + if (curChar == 45) + jjAddStates(102, 103); + break; + case 265: + if (curChar == 46) + jjCheckNAddStates(82, 101); + break; + case 266: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 75) + kind = 75; + jjCheckNAdd(266); + break; + case 267: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(267, 268); + break; + case 268: + if (curChar == 37 && kind > 79) + kind = 79; + break; + case 269: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(269, 271); + break; + case 272: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(272, 274); + break; + case 275: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(275, 277); + break; + case 278: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(278, 280); + break; + case 281: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(281, 283); + break; + case 284: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(284, 286); + break; + case 287: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(287, 289); + break; + case 290: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(290, 293); + break; + case 294: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(294, 297); + break; + case 298: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(298, 300); + break; + case 301: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(301, 304); + break; + case 305: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(305, 308); + break; + case 309: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(309, 313); + break; + case 314: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(314, 316); + break; + case 317: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(317, 318); + break; + case 319: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(319, 321); + break; + case 322: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(322, 325); + break; + case 326: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(124, 128); + break; + case 327: + if (curChar == 45) + jjCheckNAdd(328); + break; + case 329: + if ((0x3ff200000000000L & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddTwoStates(329, 330); + break; + case 331: + if ((0xffffffff00000000L & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddTwoStates(329, 330); + break; + case 332: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddStates(503, 506); + break; + case 333: + if ((0x100003600L & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddTwoStates(329, 330); + break; + case 334: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddStates(507, 513); + break; + case 335: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddStates(514, 516); + break; + case 336: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddStates(517, 520); + break; + case 337: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddStates(521, 525); + break; + case 338: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddStates(526, 531); + break; + case 341: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddStates(532, 535); + break; + case 342: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddStates(536, 542); + break; + case 343: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddStates(543, 545); + break; + case 344: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddStates(546, 549); + break; + case 345: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddStates(550, 554); + break; + case 346: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddStates(555, 560); + break; + case 348: + if (curChar == 40) + jjCheckNAddStates(561, 566); + break; + case 349: + if ((0xfffffc7a00000000L & l) != 0L) + jjCheckNAddStates(567, 570); + break; + case 350: + if ((0x100003600L & l) != 0L) + jjCheckNAddTwoStates(350, 351); + break; + case 351: + if (curChar == 41 && kind > 77) + kind = 77; + break; + case 353: + if ((0xffffffff00000000L & l) != 0L) + jjCheckNAddStates(567, 570); + break; + case 354: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(571, 575); + break; + case 355: + if ((0x100003600L & l) != 0L) + jjCheckNAddStates(567, 570); + break; + case 356: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(576, 583); + break; + case 357: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(584, 587); + break; + case 358: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(588, 592); + break; + case 359: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(593, 598); + break; + case 360: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(599, 605); + break; + case 361: + if (curChar == 39) + jjCheckNAddStates(606, 609); + break; + case 362: + if ((0xffffff7f00000200L & l) != 0L) + jjCheckNAddStates(606, 609); + break; + case 363: + if (curChar == 39) + jjCheckNAddTwoStates(350, 351); + break; + case 365: + if (curChar == 12) + jjCheckNAddStates(606, 609); + break; + case 367: + if ((0xffffffff00000000L & l) != 0L) + jjCheckNAddStates(606, 609); + break; + case 368: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(610, 615); + break; + case 369: + if ((0x100003600L & l) != 0L) + jjCheckNAddStates(606, 609); + break; + case 370: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(616, 624); + break; + case 371: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(625, 629); + break; + case 372: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(630, 635); + break; + case 373: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(636, 642); + break; + case 374: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(643, 650); + break; + case 375: + if (curChar == 13) + jjCheckNAddStates(606, 609); + break; + case 376: + if (curChar == 10) + jjCheckNAddStates(606, 609); + break; + case 377: + if (curChar == 13) + jjstateSet[jjnewStateCnt++] = 376; + break; + case 378: + if (curChar == 34) + jjCheckNAddStates(651, 654); + break; + case 379: + if ((0xfffffffb00000200L & l) != 0L) + jjCheckNAddStates(651, 654); + break; + case 380: + if (curChar == 34) + jjCheckNAddTwoStates(350, 351); + break; + case 382: + if (curChar == 12) + jjCheckNAddStates(651, 654); + break; + case 384: + if ((0xffffffff00000000L & l) != 0L) + jjCheckNAddStates(651, 654); + break; + case 385: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(655, 660); + break; + case 386: + if ((0x100003600L & l) != 0L) + jjCheckNAddStates(651, 654); + break; + case 387: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(661, 669); + break; + case 388: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(670, 674); + break; + case 389: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(675, 680); + break; + case 390: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(681, 687); + break; + case 391: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(688, 695); + break; + case 392: + if (curChar == 13) + jjCheckNAddStates(651, 654); + break; + case 393: + if (curChar == 10) + jjCheckNAddStates(651, 654); + break; + case 394: + if (curChar == 13) + jjstateSet[jjnewStateCnt++] = 393; + break; + case 395: + if ((0x100003600L & l) != 0L) + jjCheckNAddStates(696, 702); + break; + case 398: + if (curChar == 43) + jjAddStates(703, 704); + break; + case 399: + if (curChar != 63) + break; + if (kind > 116) + kind = 116; + jjstateSet[jjnewStateCnt++] = 400; + break; + case 400: + if (curChar != 63) + break; + if (kind > 116) + kind = 116; + jjCheckNAddStates(705, 708); + break; + case 401: + if (curChar == 63 && kind > 116) + kind = 116; + break; + case 402: + case 417: + case 421: + case 424: + case 427: + if (curChar != 63) + break; + if (kind > 116) + kind = 116; + jjCheckNAdd(401); + break; + case 403: + if (curChar != 63) + break; + if (kind > 116) + kind = 116; + jjCheckNAddTwoStates(401, 402); + break; + case 404: + if (curChar != 63) + break; + if (kind > 116) + kind = 116; + jjCheckNAddStates(709, 711); + break; + case 405: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 116) + kind = 116; + jjAddStates(712, 717); + break; + case 406: + if ((0x3ff000000000000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 407; + break; + case 407: + if ((0x3ff000000000000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 408; + break; + case 408: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAdd(409); + break; + case 409: + if ((0x3ff000000000000L & l) != 0L && kind > 116) + kind = 116; + break; + case 410: + if ((0x3ff000000000000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 411; + break; + case 411: + if ((0x3ff000000000000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 412; + break; + case 412: + if ((0x3ff000000000000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 413; + break; + case 413: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 116) + kind = 116; + jjCheckNAdd(401); + break; + case 414: + if ((0x3ff000000000000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 415; + break; + case 415: + if ((0x3ff000000000000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 416; + break; + case 416: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 116) + kind = 116; + jjstateSet[jjnewStateCnt++] = 417; + break; + case 418: + if ((0x3ff000000000000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 419; + break; + case 419: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 116) + kind = 116; + jjstateSet[jjnewStateCnt++] = 420; + break; + case 420: + if (curChar != 63) + break; + if (kind > 116) + kind = 116; + jjCheckNAddTwoStates(401, 421); + break; + case 422: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 116) + kind = 116; + jjstateSet[jjnewStateCnt++] = 423; + break; + case 423: + if (curChar != 63) + break; + if (kind > 116) + kind = 116; + jjCheckNAddStates(718, 720); + break; + case 425: + if (curChar != 63) + break; + if (kind > 116) + kind = 116; + jjCheckNAddTwoStates(401, 424); + break; + case 426: + if (curChar != 63) + break; + if (kind > 116) + kind = 116; + jjCheckNAddStates(721, 724); + break; + case 428: + if (curChar != 63) + break; + if (kind > 116) + kind = 116; + jjCheckNAddTwoStates(401, 427); + break; + case 429: + if (curChar != 63) + break; + if (kind > 116) + kind = 116; + jjCheckNAddStates(725, 727); + break; + case 430: + if (curChar == 43) + jjstateSet[jjnewStateCnt++] = 431; + break; + case 431: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(432, 438); + break; + case 432: + if (curChar == 45) + jjstateSet[jjnewStateCnt++] = 433; + break; + case 433: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 116) + kind = 116; + jjstateSet[jjnewStateCnt++] = 434; + break; + case 434: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 116) + kind = 116; + jjCheckNAddStates(728, 731); + break; + case 435: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 116) + kind = 116; + jjCheckNAdd(409); + break; + case 436: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 116) + kind = 116; + jjCheckNAddTwoStates(409, 435); + break; + case 437: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 116) + kind = 116; + jjCheckNAddStates(732, 734); + break; + case 438: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(735, 739); + break; + case 439: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAdd(432); + break; + case 440: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(439, 432); + break; + case 441: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(740, 742); + break; + case 442: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(743, 746); + break; + case 444: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddStates(747, 750); + break; + case 445: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddStates(751, 757); + break; + case 446: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddStates(758, 760); + break; + case 447: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddStates(761, 764); + break; + case 448: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddStates(765, 769); + break; + case 449: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddStates(770, 775); + break; + case 450: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(776, 780); + break; + case 451: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(781, 788); + break; + case 453: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(789, 793); + break; + case 454: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(794, 799); + break; + case 455: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(800, 806); + break; + case 456: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 75) + kind = 75; + jjCheckNAddStates(0, 81); + break; + case 457: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 75) + kind = 75; + jjCheckNAdd(457); + break; + case 458: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(458, 459); + break; + case 459: + if (curChar == 46) + jjCheckNAdd(266); + break; + case 460: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(460, 268); + break; + case 461: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(461, 462); + break; + case 462: + if (curChar == 46) + jjCheckNAdd(267); + break; + case 463: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(463, 271); + break; + case 464: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(464, 465); + break; + case 465: + if (curChar == 46) + jjCheckNAdd(269); + break; + case 466: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(466, 274); + break; + case 467: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(467, 468); + break; + case 468: + if (curChar == 46) + jjCheckNAdd(272); + break; + case 469: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(469, 277); + break; + case 470: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(470, 471); + break; + case 471: + if (curChar == 46) + jjCheckNAdd(275); + break; + case 472: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(472, 280); + break; + case 473: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(473, 474); + break; + case 474: + if (curChar == 46) + jjCheckNAdd(278); + break; + case 475: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(475, 283); + break; + case 476: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(476, 477); + break; + case 477: + if (curChar == 46) + jjCheckNAdd(281); + break; + case 478: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(478, 286); + break; + case 479: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(479, 480); + break; + case 480: + if (curChar == 46) + jjCheckNAdd(284); + break; + case 481: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(481, 289); + break; + case 482: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(482, 483); + break; + case 483: + if (curChar == 46) + jjCheckNAdd(287); + break; + case 484: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(484, 293); + break; + case 485: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(485, 486); + break; + case 486: + if (curChar == 46) + jjCheckNAdd(290); + break; + case 487: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(487, 297); + break; + case 488: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(488, 489); + break; + case 489: + if (curChar == 46) + jjCheckNAdd(294); + break; + case 490: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(490, 300); + break; + case 491: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(491, 492); + break; + case 492: + if (curChar == 46) + jjCheckNAdd(298); + break; + case 493: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(493, 304); + break; + case 494: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(494, 495); + break; + case 495: + if (curChar == 46) + jjCheckNAdd(301); + break; + case 496: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(496, 308); + break; + case 497: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(497, 498); + break; + case 498: + if (curChar == 46) + jjCheckNAdd(305); + break; + case 499: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(499, 313); + break; + case 500: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(500, 501); + break; + case 501: + if (curChar == 46) + jjCheckNAdd(309); + break; + case 502: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(502, 316); + break; + case 503: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(503, 504); + break; + case 504: + if (curChar == 46) + jjCheckNAdd(314); + break; + case 505: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(505, 318); + break; + case 506: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(506, 507); + break; + case 507: + if (curChar == 46) + jjCheckNAdd(317); + break; + case 508: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(508, 321); + break; + case 509: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(509, 510); + break; + case 510: + if (curChar == 46) + jjCheckNAdd(319); + break; + case 511: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(511, 325); + break; + case 512: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(512, 513); + break; + case 513: + if (curChar == 46) + jjCheckNAdd(322); + break; + case 514: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddStates(807, 811); + break; + case 515: + if ((0x3ff000000000000L & l) != 0L) + jjCheckNAddTwoStates(515, 516); + break; + case 516: + if (curChar == 46) + jjCheckNAdd(326); + break; + default : break; } - if (curChar < 64) { - long l = 1L << curChar; - do { - switch (jjstateSet[--i]) { - case 0: - if ((0xffffffffffffdbffL & l) != 0L) { - if (kind > 3) { - kind = 3; - } - } else if ((0x2400L & l) != 0L) { - if (kind > 4) { - kind = 4; - } - } - if (curChar == 13) { - jjstateSet[jjnewStateCnt++] = 2; - } - break; - case 1: - if ((0x2400L & l) != 0L && kind > 4) { - kind = 4; - } - break; - case 2: - if (curChar == 10 && kind > 4) { - kind = 4; - } - break; - case 3: - if (curChar == 13) { - jjstateSet[jjnewStateCnt++] = 2; - } - break; - default: - break; - } - } while (i != startsAt); - } else if (curChar < 128) { - long l = 1L << (curChar & 077); - do { - switch (jjstateSet[--i]) { - case 0: - kind = 3; - break; - default: - break; - } - } while (i != startsAt); - } else { - int i2 = (curChar & 0xff) >> 6; - long l2 = 1L << (curChar & 077); - do { - switch (jjstateSet[--i]) { - case 0: - if ((jjbitVec0[i2] & l2) != 0L && kind > 3) { - kind = 3; - } - break; - default: - break; - } - } while (i != startsAt); + } while(i != startsAt); + } + else if (curChar < 128) + { + long l = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + case 520: + if ((0x7fffffe87fffffeL & l) != 0L) + { + if (kind > 105) + kind = 105; + jjCheckNAddTwoStates(113, 114); + } + else if (curChar == 92) + jjCheckNAddTwoStates(115, 116); + break; + case 166: + if ((0x7fffffe07fffffeL & l) != 0L) + { + if (kind > 105) + kind = 105; + jjCheckNAddTwoStates(113, 114); + } + else if (curChar == 92) + jjCheckNAddTwoStates(115, 125); + if ((0x80000000800L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 165; + break; + case 174: + if ((0x7fffffe87fffffeL & l) != 0L) + { + if (kind > 105) + kind = 105; + jjCheckNAddTwoStates(113, 114); + } + else if (curChar == 92) + jjCheckNAddTwoStates(115, 116); + if ((0x80000000800L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 173; + break; + case 4: + if ((0x7fffffe07fffffeL & l) != 0L) + { + if (kind > 74) + kind = 74; + jjCheckNAddStates(812, 817); + } + else if (curChar == 92) + jjCheckNAddStates(818, 821); + else if (curChar == 64) + jjAddStates(822, 826); + if ((0x20000000200000L & l) != 0L) + jjAddStates(827, 829); + else if ((0x800000008L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 155; + else if ((0x200000002L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 145; + else if ((0x4000000040000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 137; + else if ((0x4000000040L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 33; + else if (curChar == 64) + jjAddStates(830, 833); + break; + case 517: + if ((0x20000000200L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 259; + else if ((0x1000000010L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 249; + break; + case 178: + if ((0x7fffffe07fffffeL & l) != 0L) + { + if (kind > 105) + kind = 105; + jjCheckNAddTwoStates(113, 114); + } + if ((0x200000002000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 216; + else if ((0x80000000800000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 204; + else if ((0x800000008000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 188; + if ((0x200000002000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 177; + break; + case 518: + if ((0x7fffffe87fffffeL & l) != 0L) + jjCheckNAddStates(120, 123); + else if (curChar == 92) + jjCheckNAddTwoStates(222, 223); + if ((0x7fffffe87fffffeL & l) != 0L) + { + if (kind > 74) + kind = 74; + jjCheckNAddTwoStates(220, 221); + } + else if (curChar == 92) + jjCheckNAddTwoStates(234, 235); + break; + case 175: + if ((0x7fffffe87fffffeL & l) != 0L) + { + if (kind > 105) + kind = 105; + jjCheckNAddTwoStates(113, 114); + } + else if (curChar == 92) + jjCheckNAddTwoStates(115, 116); + break; + case 33: + if ((0x7fffffe87fffffeL & l) != 0L) + jjCheckNAddStates(120, 123); + else if (curChar == 92) + jjCheckNAddTwoStates(222, 223); + if ((0x7fffffe87fffffeL & l) != 0L) + { + if (kind > 74) + kind = 74; + jjCheckNAddTwoStates(220, 221); + } + else if (curChar == 92) + jjCheckNAddTwoStates(234, 235); + if ((0x20000000200L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 32; + break; + case 176: + if ((0x7fffffe87fffffeL & l) != 0L) + { + if (kind > 105) + kind = 105; + jjCheckNAddTwoStates(113, 114); + } + else if (curChar == 92) + jjCheckNAddTwoStates(115, 116); + if ((0x400000004000000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 175; + break; + case 42: + if ((0x7fffffe07fffffeL & l) != 0L) + jjCheckNAddStates(120, 123); + if ((0x7fffffe07fffffeL & l) != 0L) + { + if (kind > 74) + kind = 74; + jjCheckNAddTwoStates(220, 221); + } + if ((0x200000002000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 41; + break; + case 177: + if ((0x7fffffe87fffffeL & l) != 0L) + { + if (kind > 105) + kind = 105; + jjCheckNAddTwoStates(113, 114); + } + else if (curChar == 92) + jjCheckNAddTwoStates(115, 116); + if ((0x8000000080000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 215; + else if ((0x800000008000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 176; + break; + case 79: + if ((0x7fffffe07fffffeL & l) != 0L) + { + if (kind > 78) + kind = 78; + jjCheckNAddTwoStates(81, 82); + } + else if (curChar == 92) + jjCheckNAddTwoStates(83, 93); + break; + case 2: + if (kind > 5) + kind = 5; + break; + case 5: + if (curChar == 123) + jjstateSet[jjnewStateCnt++] = 6; + break; + case 8: + if ((0x7fffffe07fffffeL & l) != 0L) + jjCheckNAddStates(133, 135); + break; + case 9: + if ((0x7fffffe87fffffeL & l) != 0L) + jjCheckNAddStates(133, 135); + break; + case 10: + if (curChar == 125 && kind > 41) + kind = 41; + break; + case 11: + if (curChar == 92) + jjCheckNAddTwoStates(12, 13); + break; + case 12: + if ((0x7fffffffffffffffL & l) != 0L) + jjCheckNAddStates(133, 135); + break; + case 13: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(136, 140); + break; + case 15: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(141, 148); + break; + case 16: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(149, 152); + break; + case 17: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(153, 157); + break; + case 18: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(158, 163); + break; + case 19: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(164, 170); + break; + case 21: + if (curChar == 92) + jjCheckNAddTwoStates(12, 22); + break; + case 22: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(171, 175); + break; + case 23: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(176, 183); + break; + case 24: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(184, 187); + break; + case 25: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(188, 192); + break; + case 26: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(193, 198); + break; + case 27: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(199, 205); + break; + case 29: + if ((0x4000000040000L & l) != 0L && kind > 70) + kind = 70; + break; + case 30: + case 35: + if ((0x2000000020L & l) != 0L) + jjCheckNAdd(29); + break; + case 31: + if ((0x10000000100000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 30; + break; + case 32: + if ((0x100000001000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 31; + break; + case 34: + if ((0x4000000040L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 33; + break; + case 36: + if ((0x10000000100000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 35; + break; + case 37: + if ((0x100000001000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 36; + break; + case 38: + if ((0x20000000200L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 37; + break; + case 39: + if ((0x4000000040L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 38; + break; + case 41: + if ((0x8000000080000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 40; + break; + case 45: + case 50: + if ((0x7fffffffffffffffL & l) != 0L) + jjCheckNAddStates(116, 119); + break; + case 47: + if (curChar == 92) + jjAddStates(834, 837); + break; + case 49: + if (curChar == 92) + jjAddStates(838, 839); + break; + case 51: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(206, 211); + break; + case 53: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(212, 220); + break; + case 54: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(221, 225); + break; + case 55: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(226, 231); + break; + case 56: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(232, 238); + break; + case 57: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(239, 246); + break; + case 62: + case 67: + if ((0x7fffffffffffffffL & l) != 0L) + jjCheckNAddStates(112, 115); + break; + case 64: + if (curChar == 92) + jjAddStates(840, 843); + break; + case 66: + if (curChar == 92) + jjAddStates(844, 845); + break; + case 68: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(247, 252); + break; + case 70: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(253, 261); + break; + case 71: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(262, 266); + break; + case 72: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(267, 272); + break; + case 73: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(273, 279); + break; + case 74: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(280, 287); + break; + case 80: + if ((0x7fffffe07fffffeL & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddTwoStates(81, 82); + break; + case 81: + if ((0x7fffffe87fffffeL & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddTwoStates(81, 82); + break; + case 82: + if (curChar == 92) + jjCheckNAddTwoStates(83, 84); + break; + case 83: + if ((0x7fffffffffffffffL & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddTwoStates(81, 82); + break; + case 84: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddStates(288, 291); + break; + case 86: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddStates(292, 298); + break; + case 87: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddStates(299, 301); + break; + case 88: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddStates(302, 305); + break; + case 89: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddStates(306, 310); + break; + case 90: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddStates(311, 316); + break; + case 92: + if (curChar == 92) + jjCheckNAddTwoStates(83, 93); + break; + case 93: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddStates(317, 320); + break; + case 94: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddStates(321, 327); + break; + case 95: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddStates(328, 330); + break; + case 96: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddStates(331, 334); + break; + case 97: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddStates(335, 339); + break; + case 98: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddStates(340, 345); + break; + case 100: + if ((0x7fffffe87fffffeL & l) == 0L) + break; + if (kind > 98) + kind = 98; + jjCheckNAddTwoStates(100, 101); + break; + case 101: + if (curChar == 92) + jjAddStates(846, 847); + break; + case 102: + if ((0x7fffffffffffffffL & l) == 0L) + break; + if (kind > 98) + kind = 98; + jjCheckNAddTwoStates(100, 101); + break; + case 103: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 98) + kind = 98; + jjCheckNAddStates(346, 349); + break; + case 105: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 98) + kind = 98; + jjCheckNAddStates(350, 356); + break; + case 106: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 98) + kind = 98; + jjCheckNAddStates(357, 359); + break; + case 107: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 98) + kind = 98; + jjCheckNAddStates(360, 363); + break; + case 108: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 98) + kind = 98; + jjCheckNAddStates(364, 368); + break; + case 109: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 98) + kind = 98; + jjCheckNAddStates(369, 374); + break; + case 110: + if (curChar == 64) + jjAddStates(830, 833); + break; + case 112: + if ((0x7fffffe07fffffeL & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddTwoStates(113, 114); + break; + case 113: + if ((0x7fffffe87fffffeL & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddTwoStates(113, 114); + break; + case 114: + if (curChar == 92) + jjCheckNAddTwoStates(115, 116); + break; + case 115: + if ((0x7fffffffffffffffL & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddTwoStates(113, 114); + break; + case 116: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddStates(375, 378); + break; + case 118: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddStates(379, 385); + break; + case 119: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddStates(386, 388); + break; + case 120: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddStates(389, 392); + break; + case 121: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddStates(393, 397); + break; + case 122: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddStates(398, 403); + break; + case 124: + if (curChar == 92) + jjCheckNAddTwoStates(115, 125); + break; + case 125: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddStates(404, 407); + break; + case 126: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddStates(408, 414); + break; + case 127: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddStates(415, 417); + break; + case 128: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddStates(418, 421); + break; + case 129: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddStates(422, 426); + break; + case 130: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddStates(427, 432); + break; + case 131: + if ((0x2000000020L & l) != 0L) + jjAddStates(433, 434); + break; + case 134: + if ((0x40000000400000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 131; + break; + case 135: + if ((0x800000008000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 134; + break; + case 136: + if ((0x200000002000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 135; + break; + case 137: + if ((0x2000000020L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 136; + break; + case 138: + if ((0x4000000040000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 137; + break; + case 139: + if ((0x1000000010L & l) != 0L) + jjAddStates(435, 436); + break; + case 142: + if ((0x400000004000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 139; + break; + case 143: + if ((0x2000000020L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 142; + break; + case 144: + if ((0x1000000010000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 143; + break; + case 145: + if ((0x1000000010000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 144; + break; + case 146: + if ((0x200000002L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 145; + break; + case 147: + if ((0x8000000080000L & l) != 0L) + jjAddStates(437, 438); + break; + case 150: + if ((0x400000004000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 147; + break; + case 151: + if ((0x20000000200L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 150; + break; + case 152: + if ((0x200000002L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 151; + break; + case 153: + if ((0x10000000100000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 152; + break; + case 154: + if ((0x400000004000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 153; + break; + case 155: + if ((0x800000008000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 154; + break; + case 156: + if ((0x800000008L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 155; + break; + case 157: + if (curChar == 64) + jjAddStates(822, 826); + break; + case 158: + if ((0x8000000080000L & l) != 0L && kind > 104) + kind = 104; + break; + case 159: + case 167: + case 180: + case 191: + case 207: + if ((0x2000000020L & l) != 0L) + jjCheckNAdd(158); + break; + case 160: + if ((0x200000002000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 159; + break; + case 161: + if ((0x200000002L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 160; + break; + case 162: + if ((0x4000000040000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 161; + break; + case 163: + if ((0x4000000040L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 162; + break; + case 164: + if ((0x200000002000000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 163; + break; + case 165: + if ((0x2000000020L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 164; + break; + case 168: + if ((0x200000002000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 167; + break; + case 169: + if ((0x200000002L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 168; + break; + case 170: + if ((0x4000000040000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 169; + break; + case 171: + if ((0x4000000040L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 170; + break; + case 172: + if ((0x200000002000000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 171; + break; + case 173: + if ((0x2000000020L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 172; + break; + case 181: + if ((0x200000002000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 180; + break; + case 182: + if ((0x200000002L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 181; + break; + case 183: + if ((0x4000000040000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 182; + break; + case 184: + if ((0x4000000040L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 183; + break; + case 185: + if ((0x200000002000000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 184; + break; + case 186: + if ((0x2000000020L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 185; + break; + case 187: + if ((0x80000000800L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 186; + break; + case 189: + if ((0x800000008000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 188; + break; + case 192: + if ((0x200000002000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 191; + break; + case 193: + if ((0x200000002L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 192; + break; + case 194: + if ((0x4000000040000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 193; + break; + case 195: + if ((0x4000000040L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 194; + break; + case 196: + if ((0x200000002000000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 195; + break; + case 197: + if ((0x2000000020L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 196; + break; + case 198: + if ((0x80000000800L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 197; + break; + case 200: + if ((0x10000000100000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 199; + break; + case 201: + if ((0x20000000200L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 200; + break; + case 202: + if ((0x80000000800L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 201; + break; + case 203: + if ((0x400000004L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 202; + break; + case 204: + if ((0x2000000020L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 203; + break; + case 205: + if ((0x80000000800000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 204; + break; + case 208: + if ((0x200000002000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 207; + break; + case 209: + if ((0x200000002L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 208; + break; + case 210: + if ((0x4000000040000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 209; + break; + case 211: + if ((0x4000000040L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 210; + break; + case 212: + if ((0x200000002000000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 211; + break; + case 213: + if ((0x2000000020L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 212; + break; + case 214: + if ((0x80000000800L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 213; + break; + case 216: + if ((0x8000000080000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 215; + break; + case 217: + if ((0x200000002000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 216; + break; + case 220: + if ((0x7fffffe87fffffeL & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddTwoStates(220, 221); + break; + case 221: + if (curChar == 92) + jjCheckNAddTwoStates(222, 223); + break; + case 222: + if ((0x7fffffffffffffffL & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddTwoStates(220, 221); + break; + case 223: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddStates(439, 442); + break; + case 225: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddStates(443, 449); + break; + case 226: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddStates(450, 452); + break; + case 227: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddStates(453, 456); + break; + case 228: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddStates(457, 461); + break; + case 229: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddStates(462, 467); + break; + case 230: + if ((0x7fffffe87fffffeL & l) != 0L) + jjCheckNAddStates(120, 123); + break; + case 233: + if (curChar == 92) + jjCheckNAddTwoStates(234, 235); + break; + case 234: + if ((0x7fffffffffffffffL & l) != 0L) + jjCheckNAddStates(120, 123); + break; + case 235: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(468, 472); + break; + case 237: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(473, 480); + break; + case 238: + case 452: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(481, 484); + break; + case 239: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(485, 489); + break; + case 240: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(490, 495); + break; + case 241: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(496, 502); + break; + case 244: + if ((0x10000000100000L & l) != 0L && kind > 72) + kind = 72; + break; + case 245: + if ((0x100000001000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 244; + break; + case 246: + if ((0x20000000200000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 245; + break; + case 247: + if ((0x200000002L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 246; + break; + case 248: + if ((0x4000000040L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 247; + break; + case 249: + if ((0x2000000020L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 248; + break; + case 250: + if ((0x1000000010L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 249; + break; + case 252: + if ((0x10000000100000L & l) != 0L && kind > 106) + kind = 106; + break; + case 253: + if ((0x400000004000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 252; + break; + case 254: + if ((0x200000002L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 253; + break; + case 255: + if ((0x10000000100000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 254; + break; + case 256: + if ((0x4000000040000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 255; + break; + case 257: + if ((0x800000008000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 256; + break; + case 258: + if ((0x1000000010000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 257; + break; + case 259: + if ((0x200000002000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 258; + break; + case 260: + if ((0x20000000200L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 259; + break; + case 262: + if ((0x7fffffe07fffffeL & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddTwoStates(220, 221); + break; + case 263: + if ((0x7fffffe07fffffeL & l) != 0L) + jjCheckNAddStates(120, 123); + break; + case 264: + if ((0x7fffffe07fffffeL & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddStates(812, 817); + break; + case 270: + if ((0x10000000100000L & l) != 0L && kind > 80) + kind = 80; + break; + case 271: + if ((0x1000000010000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 270; + break; + case 273: + if ((0x200000002000L & l) != 0L && kind > 81) + kind = 81; + break; + case 274: + if ((0x200000002000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 273; + break; + case 276: + if ((0x200000002000L & l) != 0L && kind > 82) + kind = 82; + break; + case 277: + if ((0x800000008L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 276; + break; + case 279: + if ((0x800000008L & l) != 0L && kind > 83) + kind = 83; + break; + case 280: + if ((0x1000000010000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 279; + break; + case 282: + if ((0x400000004000L & l) != 0L && kind > 84) + kind = 84; + break; + case 283: + if ((0x20000000200L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 282; + break; + case 285: + if ((0x100000001000000L & l) != 0L && kind > 85) + kind = 85; + break; + case 286: + if ((0x1000000010000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 285; + break; + case 288: + if ((0x200000002000L & l) != 0L && kind > 86) + kind = 86; + break; + case 289: + if ((0x2000000020L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 288; + break; + case 291: + if ((0x200000002000L & l) != 0L && kind > 87) + kind = 87; + break; + case 292: + if ((0x2000000020L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 291; + break; + case 293: + if ((0x100000001000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 292; + break; + case 295: + if ((0x200000002000L & l) != 0L && kind > 88) + kind = 88; + break; + case 296: + if ((0x2000000020L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 295; + break; + case 297: + if ((0x4000000040000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 296; + break; + case 299: + if ((0x100000001000000L & l) != 0L && kind > 89) + kind = 89; + break; + case 300: + if ((0x2000000020L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 299; + break; + case 302: + if ((0x8000000080L & l) != 0L && kind > 90) + kind = 90; + break; + case 303: + if ((0x2000000020L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 302; + break; + case 304: + if ((0x1000000010L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 303; + break; + case 306: + if ((0x1000000010L & l) != 0L && kind > 91) + kind = 91; + break; + case 307: + if ((0x200000002L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 306; + break; + case 308: + if ((0x4000000040000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 307; + break; + case 310: + if ((0x1000000010L & l) != 0L && kind > 92) + kind = 92; + break; + case 311: + if ((0x200000002L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 310; + break; + case 312: + if ((0x4000000040000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 311; + break; + case 313: + if ((0x8000000080L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 312; + break; + case 315: + if ((0x8000000080000L & l) != 0L && kind > 93) + kind = 93; + break; + case 316: + if ((0x200000002000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 315; + break; + case 318: + if ((0x8000000080000L & l) != 0L && kind > 94) + kind = 94; + break; + case 320: + if ((0x400000004000000L & l) != 0L && kind > 95) + kind = 95; + break; + case 321: + if ((0x10000000100L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 320; + break; + case 323: + if ((0x400000004000000L & l) != 0L && kind > 96) + kind = 96; + break; + case 324: + if ((0x10000000100L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 323; + break; + case 325: + if ((0x80000000800L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 324; + break; + case 328: + if ((0x7fffffe07fffffeL & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddTwoStates(329, 330); + break; + case 329: + if ((0x7fffffe87fffffeL & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddTwoStates(329, 330); + break; + case 330: + if (curChar == 92) + jjCheckNAddTwoStates(331, 332); + break; + case 331: + if ((0x7fffffffffffffffL & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddTwoStates(329, 330); + break; + case 332: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddStates(503, 506); + break; + case 334: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddStates(507, 513); + break; + case 335: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddStates(514, 516); + break; + case 336: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddStates(517, 520); + break; + case 337: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddStates(521, 525); + break; + case 338: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddStates(526, 531); + break; + case 340: + if (curChar == 92) + jjCheckNAddTwoStates(331, 341); + break; + case 341: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddStates(532, 535); + break; + case 342: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddStates(536, 542); + break; + case 343: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddStates(543, 545); + break; + case 344: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddStates(546, 549); + break; + case 345: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddStates(550, 554); + break; + case 346: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddStates(555, 560); + break; + case 347: + if ((0x20000000200000L & l) != 0L) + jjAddStates(827, 829); + break; + case 349: + case 353: + if ((0x7fffffffffffffffL & l) != 0L) + jjCheckNAddStates(567, 570); + break; + case 352: + if (curChar == 92) + jjAddStates(848, 849); + break; + case 354: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(571, 575); + break; + case 356: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(576, 583); + break; + case 357: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(584, 587); + break; + case 358: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(588, 592); + break; + case 359: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(593, 598); + break; + case 360: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(599, 605); + break; + case 362: + case 367: + if ((0x7fffffffffffffffL & l) != 0L) + jjCheckNAddStates(606, 609); + break; + case 364: + if (curChar == 92) + jjAddStates(850, 853); + break; + case 366: + if (curChar == 92) + jjAddStates(854, 855); + break; + case 368: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(610, 615); + break; + case 370: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(616, 624); + break; + case 371: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(625, 629); + break; + case 372: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(630, 635); + break; + case 373: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(636, 642); + break; + case 374: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(643, 650); + break; + case 379: + case 384: + if ((0x7fffffffffffffffL & l) != 0L) + jjCheckNAddStates(651, 654); + break; + case 381: + if (curChar == 92) + jjAddStates(856, 859); + break; + case 383: + if (curChar == 92) + jjAddStates(860, 861); + break; + case 385: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(655, 660); + break; + case 387: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(661, 669); + break; + case 388: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(670, 674); + break; + case 389: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(675, 680); + break; + case 390: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(681, 687); + break; + case 391: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(688, 695); + break; + case 396: + if ((0x100000001000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 348; + break; + case 397: + if ((0x4000000040000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 396; + break; + case 405: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 116) + kind = 116; + jjAddStates(712, 717); + break; + case 406: + if ((0x7e0000007eL & l) != 0L) + jjstateSet[jjnewStateCnt++] = 407; + break; + case 407: + if ((0x7e0000007eL & l) != 0L) + jjstateSet[jjnewStateCnt++] = 408; + break; + case 408: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAdd(409); + break; + case 409: + if ((0x7e0000007eL & l) != 0L && kind > 116) + kind = 116; + break; + case 410: + if ((0x7e0000007eL & l) != 0L) + jjstateSet[jjnewStateCnt++] = 411; + break; + case 411: + if ((0x7e0000007eL & l) != 0L) + jjstateSet[jjnewStateCnt++] = 412; + break; + case 412: + if ((0x7e0000007eL & l) != 0L) + jjstateSet[jjnewStateCnt++] = 413; + break; + case 413: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 116) + kind = 116; + jjstateSet[jjnewStateCnt++] = 401; + break; + case 414: + if ((0x7e0000007eL & l) != 0L) + jjstateSet[jjnewStateCnt++] = 415; + break; + case 415: + if ((0x7e0000007eL & l) != 0L) + jjstateSet[jjnewStateCnt++] = 416; + break; + case 416: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 116) + kind = 116; + jjstateSet[jjnewStateCnt++] = 417; + break; + case 418: + if ((0x7e0000007eL & l) != 0L) + jjstateSet[jjnewStateCnt++] = 419; + break; + case 419: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 116) + kind = 116; + jjstateSet[jjnewStateCnt++] = 420; + break; + case 422: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 116) + kind = 116; + jjstateSet[jjnewStateCnt++] = 423; + break; + case 431: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddTwoStates(432, 438); + break; + case 433: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 116) + kind = 116; + jjstateSet[jjnewStateCnt++] = 434; + break; + case 434: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 116) + kind = 116; + jjCheckNAddStates(728, 731); + break; + case 435: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 116) + kind = 116; + jjCheckNAdd(409); + break; + case 436: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 116) + kind = 116; + jjCheckNAddTwoStates(409, 435); + break; + case 437: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 116) + kind = 116; + jjCheckNAddStates(732, 734); + break; + case 438: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(735, 739); + break; + case 439: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAdd(432); + break; + case 440: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddTwoStates(439, 432); + break; + case 441: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(740, 742); + break; + case 442: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(743, 746); + break; + case 443: + if (curChar == 92) + jjCheckNAddStates(818, 821); + break; + case 444: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddStates(747, 750); + break; + case 445: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddStates(751, 757); + break; + case 446: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddStates(758, 760); + break; + case 447: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddStates(761, 764); + break; + case 448: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddStates(765, 769); + break; + case 449: + if ((0x7e0000007eL & l) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddStates(770, 775); + break; + case 450: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(776, 780); + break; + case 451: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(781, 788); + break; + case 453: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(789, 793); + break; + case 454: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(794, 799); + break; + case 455: + if ((0x7e0000007eL & l) != 0L) + jjCheckNAddStates(800, 806); + break; + default : break; } - if (kind != 0x7fffffff) { - jjmatchedKind = kind; - jjmatchedPos = curPos; - kind = 0x7fffffff; + } while(i != startsAt); + } + else + { + int i2 = (curChar & 0xff) >> 6; + long l2 = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + case 520: + case 113: + case 115: + if ((jjbitVec0[i2] & l2) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddTwoStates(113, 114); + break; + case 166: + if ((jjbitVec0[i2] & l2) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddTwoStates(113, 114); + break; + case 174: + if ((jjbitVec0[i2] & l2) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddTwoStates(113, 114); + break; + case 4: + if ((jjbitVec0[i2] & l2) == 0L) + break; + if (kind > 42) + kind = 42; + jjCheckNAddStates(812, 817); + break; + case 518: + if ((jjbitVec0[i2] & l2) != 0L) + { + if (kind > 74) + kind = 74; + jjCheckNAddTwoStates(220, 221); + } + if ((jjbitVec0[i2] & l2) != 0L) + jjCheckNAddStates(120, 123); + break; + case 175: + if ((jjbitVec0[i2] & l2) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddTwoStates(113, 114); + break; + case 33: + if ((jjbitVec0[i2] & l2) != 0L) + { + if (kind > 74) + kind = 74; + jjCheckNAddTwoStates(220, 221); + } + if ((jjbitVec0[i2] & l2) != 0L) + jjCheckNAddStates(120, 123); + break; + case 176: + if ((jjbitVec0[i2] & l2) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddTwoStates(113, 114); + break; + case 177: + if ((jjbitVec0[i2] & l2) == 0L) + break; + if (kind > 105) + kind = 105; + jjCheckNAddTwoStates(113, 114); + break; + case 79: + case 81: + case 83: + if ((jjbitVec0[i2] & l2) == 0L) + break; + if (kind > 78) + kind = 78; + jjCheckNAddTwoStates(81, 82); + break; + case 2: + if ((jjbitVec0[i2] & l2) != 0L && kind > 5) + kind = 5; + break; + case 9: + case 12: + case 20: + if ((jjbitVec0[i2] & l2) != 0L) + jjCheckNAddStates(133, 135); + break; + case 45: + case 50: + if ((jjbitVec0[i2] & l2) != 0L) + jjCheckNAddStates(116, 119); + break; + case 62: + case 67: + if ((jjbitVec0[i2] & l2) != 0L) + jjCheckNAddStates(112, 115); + break; + case 100: + case 102: + if ((jjbitVec0[i2] & l2) == 0L) + break; + if (kind > 98) + kind = 98; + jjCheckNAddTwoStates(100, 101); + break; + case 220: + case 222: + if ((jjbitVec0[i2] & l2) == 0L) + break; + if (kind > 74) + kind = 74; + jjCheckNAddTwoStates(220, 221); + break; + case 230: + case 234: + if ((jjbitVec0[i2] & l2) != 0L) + jjCheckNAddStates(120, 123); + break; + case 329: + case 331: + case 339: + if ((jjbitVec0[i2] & l2) == 0L) + break; + if (kind > 97) + kind = 97; + jjCheckNAddTwoStates(329, 330); + break; + case 349: + case 353: + if ((jjbitVec0[i2] & l2) != 0L) + jjCheckNAddStates(567, 570); + break; + case 362: + case 367: + if ((jjbitVec0[i2] & l2) != 0L) + jjCheckNAddStates(606, 609); + break; + case 379: + case 384: + if ((jjbitVec0[i2] & l2) != 0L) + jjCheckNAddStates(651, 654); + break; + default : break; } - ++curPos; - if ((i = jjnewStateCnt) == (startsAt = 4 - (jjnewStateCnt = startsAt))) { - return curPos; + } while(i != startsAt); + } + if (kind != 0x7fffffff) + { + jjmatchedKind = kind; + jjmatchedPos = curPos; + kind = 0x7fffffff; + } + ++curPos; + if ((i = jjnewStateCnt) == (startsAt = 517 - (jjnewStateCnt = startsAt))) + return curPos; + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { return curPos; } + } +} +private int jjMoveStringLiteralDfa0_3() +{ + switch(curChar) + { + case 42: + return jjMoveStringLiteralDfa1_3(0x100L); + default : + return 1; + } +} +private int jjMoveStringLiteralDfa1_3(long active0) +{ + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + return 1; + } + switch(curChar) + { + case 47: + if ((active0 & 0x100L) != 0L) + return jjStopAtPos(1, 8); + break; + default : + return 2; + } + return 2; +} +private int jjMoveStringLiteralDfa0_1() +{ + return jjMoveNfa_1(0, 0); +} +private int jjMoveNfa_1(int startState, int curPos) +{ + int startsAt = 0; + jjnewStateCnt = 4; + int i = 1; + jjstateSet[0] = startState; + int kind = 0x7fffffff; + for (;;) + { + if (++jjround == 0x7fffffff) + ReInitRounds(); + if (curChar < 64) + { + long l = 1L << curChar; + do + { + switch(jjstateSet[--i]) + { + case 0: + if ((0xffffffffffffdbffL & l) != 0L) + { + if (kind > 3) + kind = 3; + } + else if ((0x2400L & l) != 0L) + { + if (kind > 4) + kind = 4; + } + if (curChar == 13) + jjstateSet[jjnewStateCnt++] = 2; + break; + case 1: + if ((0x2400L & l) != 0L && kind > 4) + kind = 4; + break; + case 2: + if (curChar == 10 && kind > 4) + kind = 4; + break; + case 3: + if (curChar == 13) + jjstateSet[jjnewStateCnt++] = 2; + break; + default : break; } - try { - curChar = input_stream.readChar(); - } catch (java.io.IOException e) { - return curPos; + } while(i != startsAt); + } + else if (curChar < 128) + { + long l = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + case 0: + kind = 3; + break; + default : break; } - } - } - - private int jjMoveStringLiteralDfa0_2() { - switch (curChar) { - case 42: - return jjMoveStringLiteralDfa1_2(0x80L); - default: - return 1; - } - } - - private int jjMoveStringLiteralDfa1_2(long active0) { - try { - curChar = input_stream.readChar(); - } catch (java.io.IOException e) { - return 1; - } - switch (curChar) { - case 47: - if ((active0 & 0x80L) != 0L) { - return jjStopAtPos(1, 7); + } while(i != startsAt); + } + else + { + int i2 = (curChar & 0xff) >> 6; + long l2 = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + case 0: + if ((jjbitVec0[i2] & l2) != 0L && kind > 3) + kind = 3; + break; + default : break; } - break; - default: - return 2; - } - return 2; - } - - static final int[] jjnextStates = { 457, 458, 459, 460, 461, 462, 268, 463, - 464, 465, 271, 466, 467, 468, 274, 469, 470, 471, 277, 472, 473, - 474, 280, 475, 476, 477, 283, 478, 479, 480, 286, 481, 482, 483, - 289, 484, 485, 486, 293, 487, 488, 489, 297, 490, 491, 492, 300, - 493, 494, 495, 304, 496, 497, 498, 308, 499, 500, 501, 313, 502, - 503, 504, 316, 505, 506, 507, 318, 508, 509, 510, 321, 511, 512, - 513, 325, 514, 515, 516, 327, 328, 339, 340, 266, 267, 269, 272, - 275, 278, 281, 284, 287, 290, 294, 298, 301, 305, 309, 314, 317, - 319, 322, 326, 262, 263, 243, 250, 251, 260, 79, 80, 91, 92, 62, - 63, 64, 66, 45, 46, 47, 49, 230, 231, 232, 233, 326, 327, 328, 339, - 340, 7, 8, 20, 21, 9, 10, 11, 9, 14, 10, 11, 15, 9, 16, 14, 10, 11, - 17, 18, 19, 9, 14, 10, 11, 9, 16, 14, 10, 11, 9, 16, 14, 10, 11, - 17, 9, 16, 14, 10, 11, 17, 18, 14, 9, 10, 11, 23, 24, 14, 9, 10, - 11, 25, 26, 27, 14, 9, 10, 11, 24, 14, 9, 10, 11, 24, 14, 9, 10, - 11, 25, 24, 14, 9, 10, 11, 25, 26, 45, 52, 46, 47, 49, 53, 45, 54, - 52, 46, 47, 49, 55, 56, 57, 45, 52, 46, 47, 49, 45, 54, 52, 46, 47, - 49, 45, 54, 52, 46, 47, 49, 55, 45, 54, 52, 46, 47, 49, 55, 56, 62, - 69, 63, 64, 66, 70, 62, 71, 69, 63, 64, 66, 72, 73, 74, 62, 69, 63, - 64, 66, 62, 71, 69, 63, 64, 66, 62, 71, 69, 63, 64, 66, 72, 62, 71, - 69, 63, 64, 66, 72, 73, 81, 85, 82, 86, 81, 87, 85, 82, 88, 89, 90, - 81, 85, 82, 81, 87, 85, 82, 81, 87, 85, 82, 88, 81, 87, 85, 82, 88, - 89, 85, 81, 82, 94, 95, 85, 81, 82, 96, 97, 98, 85, 81, 82, 95, 85, - 81, 82, 95, 85, 81, 82, 96, 95, 85, 81, 82, 96, 97, 100, 104, 101, - 105, 100, 106, 104, 101, 107, 108, 109, 100, 104, 101, 100, 106, - 104, 101, 100, 106, 104, 101, 107, 100, 106, 104, 101, 107, 108, - 113, 117, 114, 118, 113, 119, 117, 114, 120, 121, 122, 113, 117, - 114, 113, 119, 117, 114, 113, 119, 117, 114, 120, 113, 119, 117, - 114, 120, 121, 117, 113, 114, 126, 127, 117, 113, 114, 128, 129, - 130, 117, 113, 114, 127, 117, 113, 114, 127, 117, 113, 114, 128, - 127, 117, 113, 114, 128, 129, 132, 133, 140, 141, 148, 149, 220, - 224, 221, 225, 220, 226, 224, 221, 227, 228, 229, 220, 224, 221, - 220, 226, 224, 221, 220, 226, 224, 221, 227, 220, 226, 224, 221, - 227, 228, 230, 232, 233, 236, 237, 230, 238, 232, 233, 236, 239, - 240, 241, 230, 232, 233, 236, 230, 238, 232, 233, 236, 230, 238, - 232, 233, 236, 239, 230, 238, 232, 233, 236, 239, 240, 329, 333, - 330, 334, 329, 335, 333, 330, 336, 337, 338, 329, 333, 330, 329, - 335, 333, 330, 329, 335, 333, 330, 336, 329, 335, 333, 330, 336, - 337, 333, 329, 330, 342, 343, 333, 329, 330, 344, 345, 346, 333, - 329, 330, 343, 333, 329, 330, 343, 333, 329, 330, 344, 343, 333, - 329, 330, 344, 345, 349, 361, 378, 351, 352, 395, 349, 350, 351, - 352, 349, 351, 352, 355, 356, 349, 357, 351, 352, 355, 358, 359, - 360, 349, 351, 352, 355, 349, 357, 351, 352, 355, 349, 357, 351, - 352, 355, 358, 349, 357, 351, 352, 355, 358, 359, 362, 363, 364, - 366, 362, 369, 363, 364, 366, 370, 362, 371, 369, 363, 364, 366, - 372, 373, 374, 362, 369, 363, 364, 366, 362, 371, 369, 363, 364, - 366, 362, 371, 369, 363, 364, 366, 372, 362, 371, 369, 363, 364, - 366, 372, 373, 379, 380, 381, 383, 379, 386, 380, 381, 383, 387, - 379, 388, 386, 380, 381, 383, 389, 390, 391, 379, 386, 380, 381, - 383, 379, 388, 386, 380, 381, 383, 379, 388, 386, 380, 381, 383, - 389, 379, 388, 386, 380, 381, 383, 389, 390, 349, 361, 378, 350, - 351, 352, 395, 399, 405, 401, 402, 403, 404, 401, 402, 403, 406, - 410, 414, 418, 422, 426, 401, 424, 425, 401, 427, 428, 429, 401, - 427, 428, 409, 435, 436, 437, 409, 435, 436, 439, 432, 440, 441, - 442, 439, 432, 440, 439, 432, 440, 441, 224, 220, 221, 445, 446, - 224, 220, 221, 447, 448, 449, 224, 220, 221, 446, 224, 220, 221, - 446, 224, 220, 221, 447, 446, 224, 220, 221, 447, 448, 230, 232, - 233, 236, 451, 452, 230, 232, 233, 236, 453, 454, 455, 452, 230, - 232, 233, 236, 452, 230, 232, 233, 236, 453, 452, 230, 232, 233, - 236, 453, 454, 514, 327, 328, 339, 340, 220, 230, 231, 232, 233, - 221, 222, 444, 234, 450, 166, 179, 190, 206, 218, 397, 398, 430, - 111, 112, 123, 124, 48, 58, 60, 59, 50, 51, 65, 75, 77, 76, 67, 68, - 102, 103, 353, 354, 365, 375, 377, 376, 367, 368, 382, 392, 394, - 393, 384, 385, }; - - /** Token literal values. */ - public static final String[] jjstrLiteralImages = { "", null, null, null, - null, null, null, null, null, null, "\74\41\55\55", "\55\55\76", - "\173", "\175", "\174\75", "\136\75", "\44\75", "\52\75", - "\176\75", "\75", "\53", "\55", "\54", "\73", "\76", "\176", "\74", - "\57", "\133", "\135", "\52", "\45", "\46", "\56", "\50", "\51", - "\75\75", "\174\174", "\46\46", "\41\75", "\72", null, null, null, - null, null, null, null, null, null, null, null, null, null, null, - null, null, null, null, null, null, null, null, null, null, null, - null, null, null, null, null, null, null, null, null, null, null, - null, null, null, null, null, null, null, null, null, null, null, - null, null, null, null, null, null, null, null, null, null, null, - null, null, null, null, null, null, null, null, null, null, null, - null, null, null, null, null, null, null, null, null, null, null, - null, }; - - /** Lexer state names. */ - public static final String[] lexStateNames = { "DEFAULT", - "IN_SINGLE_LINE_COMMENT", "IN_FORMAL_COMMENT", - "IN_MULTI_LINE_COMMENT", }; - - /** Lex State array. */ - public static final int[] jjnewLexState = { -1, -1, 1, -1, 0, 2, 3, 0, 0, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, }; - static final long[] jjtoToken = { 0xfff807fffffffc03L, 0x3f007ffffffefffL, }; - static final long[] jjtoSkip = { 0x190L, 0x0L, }; - static final long[] jjtoSpecial = { 0x80L, 0x0L, }; - static final long[] jjtoMore = { 0x26cL, 0x0L, }; - protected CharStream input_stream; - private final int[] jjrounds = new int[517]; - private final int[] jjstateSet = new int[1034]; - private final StringBuilder jjimage = new StringBuilder(); - private StringBuilder image = jjimage; - private int jjimageLen; - private int lengthOfMatch; - protected char curChar; + } while(i != startsAt); + } + if (kind != 0x7fffffff) + { + jjmatchedKind = kind; + jjmatchedPos = curPos; + kind = 0x7fffffff; + } + ++curPos; + if ((i = jjnewStateCnt) == (startsAt = 4 - (jjnewStateCnt = startsAt))) + return curPos; + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { return curPos; } + } +} +private int jjMoveStringLiteralDfa0_2() +{ + switch(curChar) + { + case 42: + return jjMoveStringLiteralDfa1_2(0x80L); + default : + return 1; + } +} +private int jjMoveStringLiteralDfa1_2(long active0) +{ + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + return 1; + } + switch(curChar) + { + case 47: + if ((active0 & 0x80L) != 0L) + return jjStopAtPos(1, 7); + break; + default : + return 2; + } + return 2; +} +static final int[] jjnextStates = { + 457, 458, 459, 460, 461, 462, 268, 463, 464, 465, 271, 466, 467, 468, 274, 469, + 470, 471, 277, 472, 473, 474, 280, 475, 476, 477, 283, 478, 479, 480, 286, 481, + 482, 483, 289, 484, 485, 486, 293, 487, 488, 489, 297, 490, 491, 492, 300, 493, + 494, 495, 304, 496, 497, 498, 308, 499, 500, 501, 313, 502, 503, 504, 316, 505, + 506, 507, 318, 508, 509, 510, 321, 511, 512, 513, 325, 514, 515, 516, 327, 328, + 339, 340, 266, 267, 269, 272, 275, 278, 281, 284, 287, 290, 294, 298, 301, 305, + 309, 314, 317, 319, 322, 326, 262, 263, 243, 250, 251, 260, 79, 80, 91, 92, + 62, 63, 64, 66, 45, 46, 47, 49, 230, 231, 232, 233, 326, 327, 328, 339, + 340, 7, 8, 20, 21, 9, 10, 11, 9, 14, 10, 11, 15, 9, 16, 14, + 10, 11, 17, 18, 19, 9, 14, 10, 11, 9, 16, 14, 10, 11, 9, 16, + 14, 10, 11, 17, 9, 16, 14, 10, 11, 17, 18, 14, 9, 10, 11, 23, + 24, 14, 9, 10, 11, 25, 26, 27, 14, 9, 10, 11, 24, 14, 9, 10, + 11, 24, 14, 9, 10, 11, 25, 24, 14, 9, 10, 11, 25, 26, 45, 52, + 46, 47, 49, 53, 45, 54, 52, 46, 47, 49, 55, 56, 57, 45, 52, 46, + 47, 49, 45, 54, 52, 46, 47, 49, 45, 54, 52, 46, 47, 49, 55, 45, + 54, 52, 46, 47, 49, 55, 56, 62, 69, 63, 64, 66, 70, 62, 71, 69, + 63, 64, 66, 72, 73, 74, 62, 69, 63, 64, 66, 62, 71, 69, 63, 64, + 66, 62, 71, 69, 63, 64, 66, 72, 62, 71, 69, 63, 64, 66, 72, 73, + 81, 85, 82, 86, 81, 87, 85, 82, 88, 89, 90, 81, 85, 82, 81, 87, + 85, 82, 81, 87, 85, 82, 88, 81, 87, 85, 82, 88, 89, 85, 81, 82, + 94, 95, 85, 81, 82, 96, 97, 98, 85, 81, 82, 95, 85, 81, 82, 95, + 85, 81, 82, 96, 95, 85, 81, 82, 96, 97, 100, 104, 101, 105, 100, 106, + 104, 101, 107, 108, 109, 100, 104, 101, 100, 106, 104, 101, 100, 106, 104, 101, + 107, 100, 106, 104, 101, 107, 108, 113, 117, 114, 118, 113, 119, 117, 114, 120, + 121, 122, 113, 117, 114, 113, 119, 117, 114, 113, 119, 117, 114, 120, 113, 119, + 117, 114, 120, 121, 117, 113, 114, 126, 127, 117, 113, 114, 128, 129, 130, 117, + 113, 114, 127, 117, 113, 114, 127, 117, 113, 114, 128, 127, 117, 113, 114, 128, + 129, 132, 133, 140, 141, 148, 149, 220, 224, 221, 225, 220, 226, 224, 221, 227, + 228, 229, 220, 224, 221, 220, 226, 224, 221, 220, 226, 224, 221, 227, 220, 226, + 224, 221, 227, 228, 230, 232, 233, 236, 237, 230, 238, 232, 233, 236, 239, 240, + 241, 230, 232, 233, 236, 230, 238, 232, 233, 236, 230, 238, 232, 233, 236, 239, + 230, 238, 232, 233, 236, 239, 240, 329, 333, 330, 334, 329, 335, 333, 330, 336, + 337, 338, 329, 333, 330, 329, 335, 333, 330, 329, 335, 333, 330, 336, 329, 335, + 333, 330, 336, 337, 333, 329, 330, 342, 343, 333, 329, 330, 344, 345, 346, 333, + 329, 330, 343, 333, 329, 330, 343, 333, 329, 330, 344, 343, 333, 329, 330, 344, + 345, 349, 361, 378, 351, 352, 395, 349, 350, 351, 352, 349, 351, 352, 355, 356, + 349, 357, 351, 352, 355, 358, 359, 360, 349, 351, 352, 355, 349, 357, 351, 352, + 355, 349, 357, 351, 352, 355, 358, 349, 357, 351, 352, 355, 358, 359, 362, 363, + 364, 366, 362, 369, 363, 364, 366, 370, 362, 371, 369, 363, 364, 366, 372, 373, + 374, 362, 369, 363, 364, 366, 362, 371, 369, 363, 364, 366, 362, 371, 369, 363, + 364, 366, 372, 362, 371, 369, 363, 364, 366, 372, 373, 379, 380, 381, 383, 379, + 386, 380, 381, 383, 387, 379, 388, 386, 380, 381, 383, 389, 390, 391, 379, 386, + 380, 381, 383, 379, 388, 386, 380, 381, 383, 379, 388, 386, 380, 381, 383, 389, + 379, 388, 386, 380, 381, 383, 389, 390, 349, 361, 378, 350, 351, 352, 395, 399, + 405, 401, 402, 403, 404, 401, 402, 403, 406, 410, 414, 418, 422, 426, 401, 424, + 425, 401, 427, 428, 429, 401, 427, 428, 409, 435, 436, 437, 409, 435, 436, 439, + 432, 440, 441, 442, 439, 432, 440, 439, 432, 440, 441, 224, 220, 221, 445, 446, + 224, 220, 221, 447, 448, 449, 224, 220, 221, 446, 224, 220, 221, 446, 224, 220, + 221, 447, 446, 224, 220, 221, 447, 448, 230, 232, 233, 236, 451, 452, 230, 232, + 233, 236, 453, 454, 455, 452, 230, 232, 233, 236, 452, 230, 232, 233, 236, 453, + 452, 230, 232, 233, 236, 453, 454, 514, 327, 328, 339, 340, 220, 230, 231, 232, + 233, 221, 222, 444, 234, 450, 166, 179, 190, 206, 218, 397, 398, 430, 111, 112, + 123, 124, 48, 58, 60, 59, 50, 51, 65, 75, 77, 76, 67, 68, 102, 103, + 353, 354, 365, 375, 377, 376, 367, 368, 382, 392, 394, 393, 384, 385, +}; - /** Constructor. */ - public ParserTokenManager(CharStream stream) { - input_stream = stream; - } +/** Token literal values. */ +public static final String[] jjstrLiteralImages = { +"", null, null, null, null, null, null, null, null, null, "\74\41\55\55", +"\55\55\76", "\173", "\175", "\174\75", "\136\75", "\44\75", "\52\75", "\176\75", "\75", +"\53", "\55", "\54", "\73", "\76", "\176", "\74", "\57", "\133", "\135", "\52", +"\45", "\46", "\56", "\50", "\51", "\75\75", "\174\174", "\46\46", "\41\75", "\72", +null, null, null, null, null, null, null, null, null, null, null, null, null, null, +null, null, null, null, null, null, null, null, null, null, null, null, null, null, +null, null, null, null, null, null, null, null, null, null, null, null, null, null, +null, null, null, null, null, null, null, null, null, null, null, null, null, null, +null, null, null, null, null, null, null, null, null, null, null, null, null, null, +null, null, null, null, null, null, null, null, null, null, null, }; - /** Constructor. */ - public ParserTokenManager(CharStream stream, int lexState) { - this(stream); - SwitchTo(lexState); - } +/** Lexer state names. */ +public static final String[] lexStateNames = { + "DEFAULT", + "IN_SINGLE_LINE_COMMENT", + "IN_FORMAL_COMMENT", + "IN_MULTI_LINE_COMMENT", +}; - /** Reinitialise parser. */ - public void ReInit(CharStream stream) { - jjmatchedPos = jjnewStateCnt = 0; - curLexState = defaultLexState; - input_stream = stream; - ReInitRounds(); - } +/** Lex State array. */ +public static final int[] jjnewLexState = { + -1, -1, 1, -1, 0, 2, 3, 0, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, +}; +static final long[] jjtoToken = { + 0xfff807fffffffc03L, 0x3f007ffffffefffL, +}; +static final long[] jjtoSkip = { + 0x190L, 0x0L, +}; +static final long[] jjtoSpecial = { + 0x80L, 0x0L, +}; +static final long[] jjtoMore = { + 0x26cL, 0x0L, +}; +protected CharStream input_stream; +private final int[] jjrounds = new int[517]; +private final int[] jjstateSet = new int[1034]; +private final StringBuilder jjimage = new StringBuilder(); +private StringBuilder image = jjimage; +private int jjimageLen; +private int lengthOfMatch; +protected char curChar; +/** Constructor. */ +public ParserTokenManager(CharStream stream){ + input_stream = stream; +} - private void ReInitRounds() { - int i; - jjround = 0x80000001; - for (i = 517; i-- > 0;) { - jjrounds[i] = 0x80000000; - } - } +/** Constructor. */ +public ParserTokenManager(CharStream stream, int lexState){ + this(stream); + SwitchTo(lexState); +} - /** Reinitialise parser. */ - public void ReInit(CharStream stream, int lexState) { - ReInit(stream); - SwitchTo(lexState); - } +/** Reinitialise parser. */ +public void ReInit(CharStream stream) +{ + jjmatchedPos = jjnewStateCnt = 0; + curLexState = defaultLexState; + input_stream = stream; + ReInitRounds(); +} +private void ReInitRounds() +{ + int i; + jjround = 0x80000001; + for (i = 517; i-- > 0;) + jjrounds[i] = 0x80000000; +} - /** Switch to specified lex state. */ - public void SwitchTo(int lexState) { - if (lexState >= 4 || lexState < 0) { - throw new TokenMgrError("Error: Ignoring invalid lexical state : " - + lexState + ". State unchanged.", - TokenMgrError.INVALID_LEXICAL_STATE); - } else { - curLexState = lexState; - } - } +/** Reinitialise parser. */ +public void ReInit(CharStream stream, int lexState) +{ + ReInit(stream); + SwitchTo(lexState); +} - protected Token jjFillToken() { - final Token t; - final String curTokenImage; - final int beginLine; - final int endLine; - final int beginColumn; - final int endColumn; - String im = jjstrLiteralImages[jjmatchedKind]; - curTokenImage = (im == null) ? input_stream.GetImage() : im; - beginLine = input_stream.getBeginLine(); - beginColumn = input_stream.getBeginColumn(); - endLine = input_stream.getEndLine(); - endColumn = input_stream.getEndColumn(); - t = Token.newToken(jjmatchedKind, curTokenImage); +/** Switch to specified lex state. */ +public void SwitchTo(int lexState) +{ + if (lexState >= 4 || lexState < 0) + throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE); + else + curLexState = lexState; +} - t.beginLine = beginLine; - t.endLine = endLine; - t.beginColumn = beginColumn; - t.endColumn = endColumn; +protected Token jjFillToken() +{ + final Token t; + final String curTokenImage; + final int beginLine; + final int endLine; + final int beginColumn; + final int endColumn; + String im = jjstrLiteralImages[jjmatchedKind]; + curTokenImage = (im == null) ? input_stream.GetImage() : im; + beginLine = input_stream.getBeginLine(); + beginColumn = input_stream.getBeginColumn(); + endLine = input_stream.getEndLine(); + endColumn = input_stream.getEndColumn(); + t = Token.newToken(jjmatchedKind, curTokenImage); - return t; - } + t.beginLine = beginLine; + t.endLine = endLine; + t.beginColumn = beginColumn; + t.endColumn = endColumn; - int curLexState = 0; - int defaultLexState = 0; - int jjnewStateCnt; - int jjround; - int jjmatchedPos; - int jjmatchedKind; + return t; +} - /** Get the next Token. */ - public Token getNextToken() { - Token specialToken = null; - Token matchedToken; - int curPos = 0; +int curLexState = 0; +int defaultLexState = 0; +int jjnewStateCnt; +int jjround; +int jjmatchedPos; +int jjmatchedKind; - EOFLoop: for (;;) { - try { - curChar = input_stream.BeginToken(); - } catch (java.io.IOException e) { - jjmatchedKind = 0; - matchedToken = jjFillToken(); - matchedToken.specialToken = specialToken; - return matchedToken; - } - image = jjimage; - image.setLength(0); - jjimageLen = 0; +/** Get the next Token. */ +public Token getNextToken() +{ + Token specialToken = null; + Token matchedToken; + int curPos = 0; - for (;;) { - switch (curLexState) { - case 0: - jjmatchedKind = 0x7fffffff; - jjmatchedPos = 0; - curPos = jjMoveStringLiteralDfa0_0(); - if (jjmatchedPos == 0 && jjmatchedKind > 121) { - jjmatchedKind = 121; - } - break; - case 1: - jjmatchedKind = 0x7fffffff; - jjmatchedPos = 0; - curPos = jjMoveStringLiteralDfa0_1(); - break; - case 2: - jjmatchedKind = 0x7fffffff; - jjmatchedPos = 0; - curPos = jjMoveStringLiteralDfa0_2(); - if (jjmatchedPos == 0 && jjmatchedKind > 9) { - jjmatchedKind = 9; - } - break; - case 3: - jjmatchedKind = 0x7fffffff; - jjmatchedPos = 0; - curPos = jjMoveStringLiteralDfa0_3(); - if (jjmatchedPos == 0 && jjmatchedKind > 9) { - jjmatchedKind = 9; - } - break; - } - if (jjmatchedKind != 0x7fffffff) { - if (jjmatchedPos + 1 < curPos) { - input_stream.backup(curPos - jjmatchedPos - 1); - } - if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) { - matchedToken = jjFillToken(); - matchedToken.specialToken = specialToken; - TokenLexicalActions(matchedToken); - if (jjnewLexState[jjmatchedKind] != -1) { - curLexState = jjnewLexState[jjmatchedKind]; - } - return matchedToken; - } else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) { - if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) { - matchedToken = jjFillToken(); - if (specialToken == null) { - specialToken = matchedToken; - } else { - matchedToken.specialToken = specialToken; - specialToken = (specialToken.next = matchedToken); - } - SkipLexicalActions(matchedToken); - } else { - SkipLexicalActions(null); - } - if (jjnewLexState[jjmatchedKind] != -1) { - curLexState = jjnewLexState[jjmatchedKind]; - } - continue EOFLoop; - } - MoreLexicalActions(); - if (jjnewLexState[jjmatchedKind] != -1) { - curLexState = jjnewLexState[jjmatchedKind]; - } - curPos = 0; - jjmatchedKind = 0x7fffffff; - try { - curChar = input_stream.readChar(); - continue; - } catch (java.io.IOException e1) { - } - } - int error_line = input_stream.getEndLine(); - int error_column = input_stream.getEndColumn(); - String error_after = null; - boolean EOFSeen = false; - try { - input_stream.readChar(); - input_stream.backup(1); - } catch (java.io.IOException e1) { - EOFSeen = true; - error_after = curPos <= 1 ? "" : input_stream.GetImage(); - if (curChar == '\n' || curChar == '\r') { - error_line++; - error_column = 0; - } else { - error_column++; - } - } - if (!EOFSeen) { - input_stream.backup(1); - error_after = curPos <= 1 ? "" : input_stream.GetImage(); - } - throw new TokenMgrError(EOFSeen, curLexState, error_line, - error_column, error_after, curChar, - TokenMgrError.LEXICAL_ERROR); - } - } - } + EOFLoop : + for (;;) + { + try + { + curChar = input_stream.BeginToken(); + } + catch(java.io.IOException e) + { + jjmatchedKind = 0; + matchedToken = jjFillToken(); + matchedToken.specialToken = specialToken; + return matchedToken; + } + image = jjimage; + image.setLength(0); + jjimageLen = 0; - void SkipLexicalActions(Token matchedToken) { - switch (jjmatchedKind) { - default: - break; + for (;;) + { + switch(curLexState) + { + case 0: + jjmatchedKind = 0x7fffffff; + jjmatchedPos = 0; + curPos = jjMoveStringLiteralDfa0_0(); + if (jjmatchedPos == 0 && jjmatchedKind > 121) + { + jjmatchedKind = 121; + } + break; + case 1: + jjmatchedKind = 0x7fffffff; + jjmatchedPos = 0; + curPos = jjMoveStringLiteralDfa0_1(); + break; + case 2: + jjmatchedKind = 0x7fffffff; + jjmatchedPos = 0; + curPos = jjMoveStringLiteralDfa0_2(); + if (jjmatchedPos == 0 && jjmatchedKind > 9) + { + jjmatchedKind = 9; + } + break; + case 3: + jjmatchedKind = 0x7fffffff; + jjmatchedPos = 0; + curPos = jjMoveStringLiteralDfa0_3(); + if (jjmatchedPos == 0 && jjmatchedKind > 9) + { + jjmatchedKind = 9; + } + break; + } + if (jjmatchedKind != 0x7fffffff) + { + if (jjmatchedPos + 1 < curPos) + input_stream.backup(curPos - jjmatchedPos - 1); + if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) + { + matchedToken = jjFillToken(); + matchedToken.specialToken = specialToken; + TokenLexicalActions(matchedToken); + if (jjnewLexState[jjmatchedKind] != -1) + curLexState = jjnewLexState[jjmatchedKind]; + return matchedToken; } - } - - void MoreLexicalActions() { - jjimageLen += (lengthOfMatch = jjmatchedPos + 1); - switch (jjmatchedKind) { - case 5: - image.append(input_stream.GetSuffix(jjimageLen)); - jjimageLen = 0; - input_stream.backup(1); - break; - default: - break; + else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) + { + if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) + { + matchedToken = jjFillToken(); + if (specialToken == null) + specialToken = matchedToken; + else + { + matchedToken.specialToken = specialToken; + specialToken = (specialToken.next = matchedToken); + } + SkipLexicalActions(matchedToken); + } + else + SkipLexicalActions(null); + if (jjnewLexState[jjmatchedKind] != -1) + curLexState = jjnewLexState[jjmatchedKind]; + continue EOFLoop; } - } - - void TokenLexicalActions(Token matchedToken) { - switch (jjmatchedKind) { - case 1: - image.append(input_stream.GetSuffix(jjimageLen - + (lengthOfMatch = jjmatchedPos + 1))); - image = Parser.SPACE; - break; - default: - break; + MoreLexicalActions(); + if (jjnewLexState[jjmatchedKind] != -1) + curLexState = jjnewLexState[jjmatchedKind]; + curPos = 0; + jjmatchedKind = 0x7fffffff; + try { + curChar = input_stream.readChar(); + continue; } - } - - private void jjCheckNAdd(int state) { - if (jjrounds[state] != jjround) { - jjstateSet[jjnewStateCnt++] = state; - jjrounds[state] = jjround; + catch (java.io.IOException e1) { } + } + int error_line = input_stream.getEndLine(); + int error_column = input_stream.getEndColumn(); + String error_after = null; + boolean EOFSeen = false; + try { input_stream.readChar(); input_stream.backup(1); } + catch (java.io.IOException e1) { + EOFSeen = true; + error_after = curPos <= 1 ? "" : input_stream.GetImage(); + if (curChar == '\n' || curChar == '\r') { + error_line++; + error_column = 0; } - } - - private void jjAddStates(int start, int end) { - do { - jjstateSet[jjnewStateCnt++] = jjnextStates[start]; - } while (start++ != end); - } + else + error_column++; + } + if (!EOFSeen) { + input_stream.backup(1); + error_after = curPos <= 1 ? "" : input_stream.GetImage(); + } + throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR); + } + } +} - private void jjCheckNAddTwoStates(int state1, int state2) { - jjCheckNAdd(state1); - jjCheckNAdd(state2); - } +void SkipLexicalActions(Token matchedToken) +{ + switch(jjmatchedKind) + { + default : + break; + } +} +void MoreLexicalActions() +{ + jjimageLen += (lengthOfMatch = jjmatchedPos + 1); + switch(jjmatchedKind) + { + case 5 : + image.append(input_stream.GetSuffix(jjimageLen)); + jjimageLen = 0; + input_stream.backup(1); + break; + default : + break; + } +} +void TokenLexicalActions(Token matchedToken) +{ + switch(jjmatchedKind) + { + case 1 : + image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); + image = Parser.SPACE; + break; + default : + break; + } +} +private void jjCheckNAdd(int state) +{ + if (jjrounds[state] != jjround) + { + jjstateSet[jjnewStateCnt++] = state; + jjrounds[state] = jjround; + } +} +private void jjAddStates(int start, int end) +{ + do { + jjstateSet[jjnewStateCnt++] = jjnextStates[start]; + } while (start++ != end); +} +private void jjCheckNAddTwoStates(int state1, int state2) +{ + jjCheckNAdd(state1); + jjCheckNAdd(state2); +} - private void jjCheckNAddStates(int start, int end) { - do { - jjCheckNAdd(jjnextStates[start]); - } while (start++ != end); - } +private void jjCheckNAddStates(int start, int end) +{ + do { + jjCheckNAdd(jjnextStates[start]); + } while (start++ != end); +} } -- cgit v1.2.3 From c926a09f54cd08856c8cd7a15fd00cf0b62b63b5 Mon Sep 17 00:00:00 2001 From: Leif Åstrand Date: Fri, 5 Apr 2013 16:53:19 +0300 Subject: Global code reformat Change-Id: I4b3c74ede518aa2712038d1451974a93cdecabc2 --- .../themeutils/SASSAddonImportFileCreator.java | 7 +- .../server/widgetsetutils/ClassPathExplorer.java | 7 +- client/src/com/vaadin/client/ComponentLocator.java | 6 +- .../client/ConnectorHierarchyChangeEvent.java | 10 +- .../com/vaadin/client/HasComponentsConnector.java | 1 + client/src/com/vaadin/client/Util.java | 1 - .../client/debug/internal/HierarchySection.java | 1 + .../client/debug/internal/NetworkSection.java | 1 + .../JavaScriptManagerConnector.java | 2 +- .../client/ui/AbstractComponentConnector.java | 2 - .../com/vaadin/client/ui/AbstractConnector.java | 1 + .../client/ui/AbstractHasComponentsConnector.java | 2 +- .../src/com/vaadin/client/ui/VAbsoluteLayout.java | 8 +- client/src/com/vaadin/client/ui/VCalendar.java | 2 + .../src/com/vaadin/client/ui/VColorPickerArea.java | 1 + .../src/com/vaadin/client/ui/VOptionGroupBase.java | 2 + client/src/com/vaadin/client/ui/VScrollTable.java | 8 +- .../ui/absolutelayout/AbsoluteLayoutConnector.java | 3 +- .../client/ui/calendar/CalendarConnector.java | 18 +++- .../client/ui/calendar/schedule/DateCell.java | 46 ++++---- .../ui/calendar/schedule/DateCellContainer.java | 9 +- .../ui/calendar/schedule/DateCellDayEvent.java | 116 +++++++++------------ .../client/ui/calendar/schedule/DateCellGroup.java | 1 - .../client/ui/calendar/schedule/DayToolbar.java | 2 + .../calendar/schedule/FocusableComplexPanel.java | 5 + .../client/ui/calendar/schedule/FocusableGrid.java | 5 + .../client/ui/calendar/schedule/FocusableHTML.java | 5 + .../client/ui/calendar/schedule/MonthGrid.java | 1 + .../client/ui/calendar/schedule/SimpleDayCell.java | 5 + .../ui/calendar/schedule/SimpleWeekToolbar.java | 1 + .../client/ui/calendar/schedule/WeekGrid.java | 1 + .../calendar/schedule/WeekGridMinuteTimeRange.java | 11 +- .../ui/calendar/schedule/WeeklyLongEvents.java | 3 +- .../calendar/schedule/dd/CalendarDropHandler.java | 1 + .../schedule/dd/CalendarMonthDropHandler.java | 1 + .../schedule/dd/CalendarWeekDropHandler.java | 1 + .../src/com/vaadin/client/ui/ui/UIConnector.java | 4 +- .../src/com/vaadin/data/fieldgroup/FieldGroup.java | 3 +- .../src/com/vaadin/server/BrowserWindowOpener.java | 3 +- .../communication/AbstractStreamingEvent.java | 1 - .../communication/ConnectorHierarchyWriter.java | 2 +- .../communication/PortletListenerNotifier.java | 2 +- .../server/communication/ResourceWriter.java | 2 +- .../communication/StreamingEndEventImpl.java | 1 - .../communication/StreamingErrorEventImpl.java | 1 - .../communication/StreamingProgressEventImpl.java | 1 - .../communication/StreamingStartEventImpl.java | 1 - server/src/com/vaadin/ui/AbstractColorPicker.java | 1 + .../src/com/vaadin/ui/AbstractOrderedLayout.java | 1 + server/src/com/vaadin/ui/Calendar.java | 27 ++++- server/src/com/vaadin/ui/GridLayout.java | 1 + server/src/com/vaadin/ui/Window.java | 6 +- .../calendar/ContainerEventProvider.java | 11 ++ .../ui/components/calendar/event/BasicEvent.java | 14 +++ .../calendar/event/BasicEventProvider.java | 6 ++ .../calendar/handler/BasicBackwardHandler.java | 1 + .../calendar/handler/BasicDateClickHandler.java | 1 + .../calendar/handler/BasicEventMoveHandler.java | 1 + .../calendar/handler/BasicEventResizeHandler.java | 1 + .../calendar/handler/BasicForwardHandler.java | 1 + .../calendar/handler/BasicWeekClickHandler.java | 1 + .../ui/components/colorpicker/ColorPickerGrid.java | 2 + .../components/colorpicker/ColorPickerHistory.java | 2 + .../components/colorpicker/ColorPickerPopup.java | 8 ++ .../vaadin/data/util/AbstractContainerTest.java | 1 - .../data/util/ReflectToolsGetSuperField.java | 11 +- .../data/validator/TestStringLengthValidator.java | 2 +- .../abstractfield/RemoveListenersOnDetach.java | 3 +- .../fieldgroup/CaseInsensitiveBinding.java | 3 +- .../tests/server/component/tree/TreeTest.java | 3 +- .../util/ReflectToolsGetFieldValueByType.java | 4 +- .../util/ReflectToolsGetPrimitiveFieldValue.java | 4 +- .../src/com/vaadin/sass/SassCompiler.java | 5 +- .../scss/AbstractDirectoryScanningSassTests.java | 2 +- .../vaadin/launcher/DevelopmentServerLauncher.java | 3 +- .../button/ButtonWithShortcutNotRendered.java | 2 + .../calendar/BeanItemContainerTestUI.java | 3 + .../components/calendar/CalendarActionsUI.java | 3 + .../tests/components/calendar/CalendarTest.java | 19 +++- .../components/calendar/NotificationTestUI.java | 3 + .../checkbox/CheckBoxRevertValueChange.java | 2 + .../combobox/ComboBoxDuplicateCaption.java | 1 + .../ComboBoxSQLContainerFilteredValueChange.java | 5 +- .../VerticalRelativeSizeWithoutExpand.java | 1 + .../richtextarea/RichTextAreaEmptyString.java | 1 + .../RichTextAreaPreventsTextFieldAccess.java | 4 + .../components/select/OptionGroupBaseSelects.java | 2 + .../components/table/EmptyRowsWhenScrolling.java | 3 + .../components/table/LargeSelectionCausesNPE.java | 3 + .../table/TableColumnWidthsAndExpandRatios.java | 9 +- .../table/TableInSubWindowMemoryLeak.java | 4 + .../components/table/TableRowScrolledBottom.java | 1 - .../TableWithBrokenGeneratorAndContainer.java | 3 + .../table/ValueAfterClearingContainer.java | 9 ++ .../components/table/ViewPortCalculation.java | 2 + .../tabsheet/ExtraScrollbarsInTabSheet.java | 1 + .../tabsheet/HiddenTabSheetBrowserResize.java | 1 + .../tests/components/textarea/ScrollCursor.java | 5 + .../TextFieldMaxLengthRemovedFromDOM.java | 1 + .../treetable/TreeTableCacheOnPartialUpdates.java | 2 + .../treetable/TreeTableExtraScrollbar.java | 3 + .../TreeTableExtraScrollbarWithChildren.java | 3 + .../treetable/TreeTableInternalError.java | 3 + .../tests/components/uitest/BackButtonTest.java | 3 + .../components/upload/TestFileUploadSize.java | 4 + .../components/window/LegacyWindowOpenTest.java | 6 ++ .../tests/components/window/PageOpenTest.java | 6 ++ .../TableQueryWithNonUniqueFirstPrimaryKey.java | 1 + .../tests/minitutorials/v70/SimpleLoginUI.java | 10 +- .../tests/minitutorials/v70/SimpleLoginView.java | 8 +- .../v71beta/CSSInjectWithColorpicker.java | 54 +++++----- .../minitutorials/v7a1/AutoGeneratingForm.java | 2 +- .../tests/minitutorials/v7b6/OpeningUIInPopup.java | 7 +- .../vaadin/tests/minitutorials/v7b9/CountView.java | 1 + .../vaadin/tests/minitutorials/v7b9/LoginView.java | 1 + .../vaadin/tests/minitutorials/v7b9/MainView.java | 1 + .../minitutorials/v7b9/MainViewEarlierExample.java | 1 + .../tests/minitutorials/v7b9/SettingsView.java | 5 + 118 files changed, 436 insertions(+), 217 deletions(-) (limited to 'theme-compiler/src') diff --git a/client-compiler/src/com/vaadin/server/themeutils/SASSAddonImportFileCreator.java b/client-compiler/src/com/vaadin/server/themeutils/SASSAddonImportFileCreator.java index 1fa259c06b..98ce639d16 100644 --- a/client-compiler/src/com/vaadin/server/themeutils/SASSAddonImportFileCreator.java +++ b/client-compiler/src/com/vaadin/server/themeutils/SASSAddonImportFileCreator.java @@ -43,7 +43,6 @@ public class SASSAddonImportFileCreator { private static final String ADDON_IMPORTS_FILE_TEXT = "This file is managed by the Eclipse plug-in and " + "will be overwritten from time to time. Do not manually edit this file."; - /** * @@ -78,7 +77,8 @@ public class SASSAddonImportFileCreator { addonImports.createNewFile(); } - LocationInfo info = ClassPathExplorer.getAvailableWidgetSetsAndStylesheets(); + LocationInfo info = ClassPathExplorer + .getAvailableWidgetSetsAndStylesheets(); try { PrintStream printStream = new PrintStream(new FileOutputStream( @@ -113,8 +113,7 @@ public class SASSAddonImportFileCreator { // Convention is to name the mixing after the stylesheet. Strip // .scss from filename String mixin = file.substring(file.lastIndexOf("/") + 1, - file.length() - - ".scss".length()); + file.length() - ".scss".length()); stream.print("@include " + mixin + ";"); } diff --git a/client-compiler/src/com/vaadin/server/widgetsetutils/ClassPathExplorer.java b/client-compiler/src/com/vaadin/server/widgetsetutils/ClassPathExplorer.java index 018e19049b..5bc5c0d0ab 100644 --- a/client-compiler/src/com/vaadin/server/widgetsetutils/ClassPathExplorer.java +++ b/client-compiler/src/com/vaadin/server/widgetsetutils/ClassPathExplorer.java @@ -84,7 +84,7 @@ public class ClassPathExplorer { public LocationInfo(Map widgetsets, Map themes) { this.widgetsets = widgetsets; - this.addonStyles = themes; + addonStyles = themes; } public Map getWidgetsets() { @@ -186,8 +186,9 @@ public class ClassPathExplorer { * separators) to a URL (see {@link #classpathLocations}) - new * entries are added to this map */ - private static void searchForWidgetSetsAndAddonStyles(String locationString, - Map widgetsets, Map addonStyles) { + private static void searchForWidgetSetsAndAddonStyles( + String locationString, Map widgetsets, + Map addonStyles) { URL location = classpathLocations.get(locationString); File directory = new File(location.getFile()); diff --git a/client/src/com/vaadin/client/ComponentLocator.java b/client/src/com/vaadin/client/ComponentLocator.java index 543877448a..551f7bafcb 100644 --- a/client/src/com/vaadin/client/ComponentLocator.java +++ b/client/src/com/vaadin/client/ComponentLocator.java @@ -566,8 +566,7 @@ public class ComponentLocator { // ChildComponentContainer and VOrderedLayout$Slot have been // replaced with Slot if (w instanceof VAbstractOrderedLayout - && ("ChildComponentContainer" - .equals(widgetClassName) || "VOrderedLayout$Slot" + && ("ChildComponentContainer".equals(widgetClassName) || "VOrderedLayout$Slot" .equals(widgetClassName))) { widgetClassName = "Slot"; } @@ -592,8 +591,7 @@ public class ComponentLocator { * ChildComponentContainer) */ if ((w instanceof VGridLayout) - && "ChildComponentContainer" - .equals(widgetClassName) + && "ChildComponentContainer".equals(widgetClassName) && i + 1 < parts.length) { HasWidgets layout = (HasWidgets) w; diff --git a/client/src/com/vaadin/client/ConnectorHierarchyChangeEvent.java b/client/src/com/vaadin/client/ConnectorHierarchyChangeEvent.java index 56ae7c44ac..2896386933 100644 --- a/client/src/com/vaadin/client/ConnectorHierarchyChangeEvent.java +++ b/client/src/com/vaadin/client/ConnectorHierarchyChangeEvent.java @@ -67,19 +67,17 @@ public class ConnectorHierarchyChangeEvent extends } /** - * Returns the {@link HasComponentsConnector} for which this event - * occurred. + * Returns the {@link HasComponentsConnector} for which this event occurred. * - * @return The {@link HasComponentsConnector} whose child collection - * has changed. Never returns null. + * @return The {@link HasComponentsConnector} whose child collection has + * changed. Never returns null. */ public HasComponentsConnector getParent() { return parent; } /** - * Sets the {@link HasComponentsConnector} for which this event - * occurred. + * Sets the {@link HasComponentsConnector} for which this event occurred. * * @param The * {@link HasComponentsConnector} whose child collection has diff --git a/client/src/com/vaadin/client/HasComponentsConnector.java b/client/src/com/vaadin/client/HasComponentsConnector.java index 0a1a7be97b..ebc6dbcd2a 100644 --- a/client/src/com/vaadin/client/HasComponentsConnector.java +++ b/client/src/com/vaadin/client/HasComponentsConnector.java @@ -21,6 +21,7 @@ import java.util.List; import com.google.gwt.event.shared.HandlerRegistration; import com.google.gwt.user.client.ui.HasWidgets; import com.vaadin.client.ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler; +import com.vaadin.ui.HasComponents; /** * An interface used by client-side connectors whose widget is a component diff --git a/client/src/com/vaadin/client/Util.java b/client/src/com/vaadin/client/Util.java index 049a689cb6..9810156bcc 100644 --- a/client/src/com/vaadin/client/Util.java +++ b/client/src/com/vaadin/client/Util.java @@ -1347,5 +1347,4 @@ public class Util { } } - } diff --git a/client/src/com/vaadin/client/debug/internal/HierarchySection.java b/client/src/com/vaadin/client/debug/internal/HierarchySection.java index 3c2b7251f3..776ba9326d 100644 --- a/client/src/com/vaadin/client/debug/internal/HierarchySection.java +++ b/client/src/com/vaadin/client/debug/internal/HierarchySection.java @@ -246,6 +246,7 @@ class HierarchySection implements Section { } } + @Override public void meta(ApplicationConnection ac, ValueMap meta) { content.clear(); JsArray valueMapArray = meta diff --git a/client/src/com/vaadin/client/debug/internal/NetworkSection.java b/client/src/com/vaadin/client/debug/internal/NetworkSection.java index ff6466651b..ebdeff810f 100644 --- a/client/src/com/vaadin/client/debug/internal/NetworkSection.java +++ b/client/src/com/vaadin/client/debug/internal/NetworkSection.java @@ -77,6 +77,7 @@ public class NetworkSection implements Section { // NOP } + @Override public void uidl(ApplicationConnection ac, ValueMap uidl) { int sinceStart = VDebugWindow.getMillisSinceStart(); int sinceReset = VDebugWindow.getMillisSinceReset(); diff --git a/client/src/com/vaadin/client/extensions/javascriptmanager/JavaScriptManagerConnector.java b/client/src/com/vaadin/client/extensions/javascriptmanager/JavaScriptManagerConnector.java index ce79b4c64c..8e6ad25407 100644 --- a/client/src/com/vaadin/client/extensions/javascriptmanager/JavaScriptManagerConnector.java +++ b/client/src/com/vaadin/client/extensions/javascriptmanager/JavaScriptManagerConnector.java @@ -23,8 +23,8 @@ import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.core.client.JsArray; import com.google.gwt.json.client.JSONArray; import com.vaadin.client.ServerConnector; -import com.vaadin.client.communication.StateChangeEvent; import com.vaadin.client.communication.JavaScriptMethodInvocation; +import com.vaadin.client.communication.StateChangeEvent; import com.vaadin.client.extensions.AbstractExtensionConnector; import com.vaadin.shared.extension.javascriptmanager.ExecuteJavaScriptRpc; import com.vaadin.shared.extension.javascriptmanager.JavaScriptManagerState; diff --git a/client/src/com/vaadin/client/ui/AbstractComponentConnector.java b/client/src/com/vaadin/client/ui/AbstractComponentConnector.java index dcb159985c..5475c128c1 100644 --- a/client/src/com/vaadin/client/ui/AbstractComponentConnector.java +++ b/client/src/com/vaadin/client/ui/AbstractComponentConnector.java @@ -36,8 +36,6 @@ import com.vaadin.client.metadata.NoDataException; import com.vaadin.client.metadata.Type; import com.vaadin.client.metadata.TypeData; import com.vaadin.client.metadata.TypeDataStore; -import com.vaadin.client.ui.AbstractFieldConnector; -import com.vaadin.client.ui.ManagedLayout; import com.vaadin.client.ui.datefield.PopupDateFieldConnector; import com.vaadin.client.ui.ui.UIConnector; import com.vaadin.shared.AbstractComponentState; diff --git a/client/src/com/vaadin/client/ui/AbstractConnector.java b/client/src/com/vaadin/client/ui/AbstractConnector.java index 2c76aa93fe..6855c5cd2d 100644 --- a/client/src/com/vaadin/client/ui/AbstractConnector.java +++ b/client/src/com/vaadin/client/ui/AbstractConnector.java @@ -439,6 +439,7 @@ public abstract class AbstractConnector implements ServerConnector, * * @see com.vaadin.client.ServerConnector#hasEventListener(java.lang.String) */ + @Override public boolean hasEventListener(String eventIdentifier) { Set reg = getState().registeredEventListeners; return (reg != null && reg.contains(eventIdentifier)); diff --git a/client/src/com/vaadin/client/ui/AbstractHasComponentsConnector.java b/client/src/com/vaadin/client/ui/AbstractHasComponentsConnector.java index 4a6aefd082..d833f076e4 100644 --- a/client/src/com/vaadin/client/ui/AbstractHasComponentsConnector.java +++ b/client/src/com/vaadin/client/ui/AbstractHasComponentsConnector.java @@ -20,9 +20,9 @@ import java.util.List; import com.google.gwt.event.shared.HandlerRegistration; import com.vaadin.client.ComponentConnector; -import com.vaadin.client.HasComponentsConnector; import com.vaadin.client.ConnectorHierarchyChangeEvent; import com.vaadin.client.ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler; +import com.vaadin.client.HasComponentsConnector; public abstract class AbstractHasComponentsConnector extends AbstractComponentConnector implements HasComponentsConnector, diff --git a/client/src/com/vaadin/client/ui/VAbsoluteLayout.java b/client/src/com/vaadin/client/ui/VAbsoluteLayout.java index ee5d1f039a..dc080bcf7d 100644 --- a/client/src/com/vaadin/client/ui/VAbsoluteLayout.java +++ b/client/src/com/vaadin/client/ui/VAbsoluteLayout.java @@ -322,7 +322,7 @@ public class VAbsoluteLayout extends ComplexPanel { } } } - + /** * Cleanup old wrappers which have been left empty by other inner layouts * moving the widget from the wrapper into their own hierarchy. This usually @@ -330,7 +330,7 @@ public class VAbsoluteLayout extends ComplexPanel { * automatically detaches the widget from the parent, in this case the * wrapper, and re-attaches it somewhere else. This has to be done in the * layout phase since the order of the hierarchy events are not defined. - */ + */ public void cleanupWrappers() { for (Widget widget : getChildren()) { if (widget instanceof AbsoluteWrapper) { @@ -339,9 +339,9 @@ public class VAbsoluteLayout extends ComplexPanel { wrapper.destroy(); super.remove(wrapper); continue; - } + } } - } + } } /** diff --git a/client/src/com/vaadin/client/ui/VCalendar.java b/client/src/com/vaadin/client/ui/VCalendar.java index e66a2d7552..c5c12f2d72 100644 --- a/client/src/com/vaadin/client/ui/VCalendar.java +++ b/client/src/com/vaadin/client/ui/VCalendar.java @@ -590,6 +590,7 @@ public class VCalendar extends Composite { cell.setMonthGrid(monthGrid); cell.setDate(d); cell.addDomHandler(new ContextMenuHandler() { + @Override public void onContextMenu(ContextMenuEvent event) { if (mouseEventListener != null) { event.preventDefault(); @@ -827,6 +828,7 @@ public class VCalendar extends Composite { public static Comparator getEventComparator() { return new Comparator() { + @Override public int compare(CalendarEvent o1, CalendarEvent o2) { if (o1.isAllDay() != o2.isAllDay()) { if (o2.isAllDay()) { diff --git a/client/src/com/vaadin/client/ui/VColorPickerArea.java b/client/src/com/vaadin/client/ui/VColorPickerArea.java index bdae65438f..81f2c8fcc7 100644 --- a/client/src/com/vaadin/client/ui/VColorPickerArea.java +++ b/client/src/com/vaadin/client/ui/VColorPickerArea.java @@ -67,6 +67,7 @@ public class VColorPickerArea extends Widget implements ClickHandler, HasHTML, * @param handler * @return HandlerRegistration used to remove the handler */ + @Override public HandlerRegistration addClickHandler(ClickHandler handler) { return addDomHandler(handler, ClickEvent.getType()); } diff --git a/client/src/com/vaadin/client/ui/VOptionGroupBase.java b/client/src/com/vaadin/client/ui/VOptionGroupBase.java index 4d60b2eba8..cc691130ad 100644 --- a/client/src/com/vaadin/client/ui/VOptionGroupBase.java +++ b/client/src/com/vaadin/client/ui/VOptionGroupBase.java @@ -118,6 +118,7 @@ public abstract class VOptionGroupBase extends Composite implements Field, return multiselect; } + @Override public boolean isEnabled() { return enabled; } @@ -190,6 +191,7 @@ public abstract class VOptionGroupBase extends Composite implements Field, } } + @Override public void setEnabled(boolean enabled) { if (this.enabled != enabled) { this.enabled = enabled; diff --git a/client/src/com/vaadin/client/ui/VScrollTable.java b/client/src/com/vaadin/client/ui/VScrollTable.java index 4d61fba429..d9dd542b15 100644 --- a/client/src/com/vaadin/client/ui/VScrollTable.java +++ b/client/src/com/vaadin/client/ui/VScrollTable.java @@ -1113,10 +1113,10 @@ public class VScrollTable extends FlowPanel implements HasWidgets, if (firstvisible != lastRequestedFirstvisible && scrollBody != null) { // received 'surprising' firstvisible from server: scroll there firstRowInViewPort = firstvisible; - + /* - * Schedule the scrolling to be executed last so no updates to the rows - * affect scrolling measurements. + * Schedule the scrolling to be executed last so no updates to the + * rows affect scrolling measurements. */ Scheduler.get().scheduleFinally(lazyScroller); } @@ -3056,7 +3056,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets, .hasNext(); columnIndex++) { if (it.next() == this) { break; - } + } } } final int cw = scrollBody.getColWidth(columnIndex); diff --git a/client/src/com/vaadin/client/ui/absolutelayout/AbsoluteLayoutConnector.java b/client/src/com/vaadin/client/ui/absolutelayout/AbsoluteLayoutConnector.java index cba9cc2fa1..da79639dcd 100644 --- a/client/src/com/vaadin/client/ui/absolutelayout/AbsoluteLayoutConnector.java +++ b/client/src/com/vaadin/client/ui/absolutelayout/AbsoluteLayoutConnector.java @@ -100,8 +100,7 @@ public class AbsoluteLayoutConnector extends /* * (non-Javadoc) * - * @see - * com.vaadin.client.HasComponentsConnector#updateCaption(com.vaadin + * @see com.vaadin.client.HasComponentsConnector#updateCaption(com.vaadin * .client.ComponentConnector) */ @Override diff --git a/client/src/com/vaadin/client/ui/calendar/CalendarConnector.java b/client/src/com/vaadin/client/ui/calendar/CalendarConnector.java index 120a65d842..c36521b3ac 100644 --- a/client/src/com/vaadin/client/ui/calendar/CalendarConnector.java +++ b/client/src/com/vaadin/client/ui/calendar/CalendarConnector.java @@ -54,8 +54,8 @@ import com.vaadin.client.ui.calendar.schedule.CalendarDay; import com.vaadin.client.ui.calendar.schedule.CalendarEvent; import com.vaadin.client.ui.calendar.schedule.DateCell; import com.vaadin.client.ui.calendar.schedule.DateCell.DateCellSlot; -import com.vaadin.client.ui.calendar.schedule.DateUtil; import com.vaadin.client.ui.calendar.schedule.DateCellDayEvent; +import com.vaadin.client.ui.calendar.schedule.DateUtil; import com.vaadin.client.ui.calendar.schedule.HasTooltipKey; import com.vaadin.client.ui.calendar.schedule.SimpleDayCell; import com.vaadin.client.ui.calendar.schedule.dd.CalendarDropHandler; @@ -131,6 +131,7 @@ public class CalendarConnector extends AbstractComponentConnector implements */ protected void registerListeners() { getWidget().setListener(new DateClickListener() { + @Override public void dateClick(String date) { if (!getWidget().isDisabledOrReadOnly() && hasEventListener(CalendarEventId.DATECLICK)) { @@ -139,6 +140,7 @@ public class CalendarConnector extends AbstractComponentConnector implements } }); getWidget().setListener(new ForwardListener() { + @Override public void forward() { if (hasEventListener(CalendarEventId.FORWARD)) { rpc.forward(); @@ -146,6 +148,7 @@ public class CalendarConnector extends AbstractComponentConnector implements } }); getWidget().setListener(new BackwardListener() { + @Override public void backward() { if (hasEventListener(CalendarEventId.BACKWARD)) { rpc.backward(); @@ -153,6 +156,7 @@ public class CalendarConnector extends AbstractComponentConnector implements } }); getWidget().setListener(new RangeSelectListener() { + @Override public void rangeSelected(String value) { if (hasEventListener(CalendarEventId.RANGESELECT)) { rpc.rangeSelect(value); @@ -160,6 +164,7 @@ public class CalendarConnector extends AbstractComponentConnector implements } }); getWidget().setListener(new WeekClickListener() { + @Override public void weekClick(String event) { if (!getWidget().isDisabledOrReadOnly() && hasEventListener(CalendarEventId.WEEKCLICK)) { @@ -168,6 +173,7 @@ public class CalendarConnector extends AbstractComponentConnector implements } }); getWidget().setListener(new EventMovedListener() { + @Override public void eventMoved(CalendarEvent event) { if (hasEventListener(CalendarEventId.EVENTMOVE)) { StringBuilder sb = new StringBuilder(); @@ -180,6 +186,7 @@ public class CalendarConnector extends AbstractComponentConnector implements } }); getWidget().setListener(new EventResizeListener() { + @Override public void eventResized(CalendarEvent event) { if (hasEventListener(CalendarEventId.EVENTRESIZE)) { StringBuilder buffer = new StringBuilder(); @@ -205,12 +212,14 @@ public class CalendarConnector extends AbstractComponentConnector implements } }); getWidget().setListener(new VCalendar.ScrollListener() { + @Override public void scroll(int scrollPosition) { // This call is @Delayed (== non-immediate) rpc.scroll(scrollPosition); } }); getWidget().setListener(new EventClickListener() { + @Override public void eventClick(CalendarEvent event) { if (hasEventListener(CalendarEventId.EVENTCLICK)) { rpc.eventClick(event.getIndex()); @@ -218,6 +227,7 @@ public class CalendarConnector extends AbstractComponentConnector implements } }); getWidget().setListener(new MouseEventListener() { + @Override public void contextMenu(ContextMenuEvent event, final Widget widget) { final NativeEvent ne = event.getNativeEvent(); int left = ne.getClientX(); @@ -225,14 +235,17 @@ public class CalendarConnector extends AbstractComponentConnector implements top += Window.getScrollTop(); left += Window.getScrollLeft(); getClient().getContextMenu().showAt(new ActionOwner() { + @Override public String getPaintableId() { return CalendarConnector.this.getPaintableId(); } + @Override public ApplicationConnection getClient() { return CalendarConnector.this.getClient(); } + @Override @SuppressWarnings("deprecation") public Action[] getActions() { if (widget instanceof SimpleDayCell) { @@ -423,6 +436,7 @@ public class CalendarConnector extends AbstractComponentConnector implements * @see * com.vaadin.terminal.gwt.client.ui.dd.VHasDropHandler#getDropHandler() */ + @Override public CalendarDropHandler getDropHandler() { return dropHandler; } @@ -548,6 +562,7 @@ public class CalendarConnector extends AbstractComponentConnector implements * Returns ALL currently registered events. Use {@link #getActions(Date)} to * get the actions for a specific date */ + @Override public Action[] getActions() { List actions = new ArrayList(); for (int i = 0; i < actionKeys.size(); i++) { @@ -573,6 +588,7 @@ public class CalendarConnector extends AbstractComponentConnector implements * * @see com.vaadin.terminal.gwt.client.ui.ActionOwner#getPaintableId() */ + @Override public String getPaintableId() { return getConnectorId(); } diff --git a/client/src/com/vaadin/client/ui/calendar/schedule/DateCell.java b/client/src/com/vaadin/client/ui/calendar/schedule/DateCell.java index 05e2a808fe..516447153e 100644 --- a/client/src/com/vaadin/client/ui/calendar/schedule/DateCell.java +++ b/client/src/com/vaadin/client/ui/calendar/schedule/DateCell.java @@ -122,8 +122,8 @@ public class DateCell extends FocusableComplexPanel implements long start = getDate().getTime() + firstHour * 3600000; long end = start + slotTime; for (int i = 0; i < numberOfSlots; i++) { - DateCellSlot slot = new DateCellSlot(this, new Date( - start), new Date(end)); + DateCellSlot slot = new DateCellSlot(this, new Date(start), + new Date(end)); if (i % 2 == 0) { slot.setStyleName("v-datecellslot-even"); } else { @@ -177,8 +177,7 @@ public class DateCell extends FocusableComplexPanel implements } } - throw new IllegalArgumentException( - "Element not found in this DateCell"); + throw new IllegalArgumentException("Element not found in this DateCell"); } public DateCellSlot getSlot(int index) { @@ -271,8 +270,7 @@ public class DateCell extends FocusableComplexPanel implements private void recalculateEventPositions() { for (int i = 0; i < getWidgetCount(); i++) { DateCellDayEvent dayEvent = (DateCellDayEvent) getWidget(i); - updatePositionFor(dayEvent, getDate(), - dayEvent.getCalendarEvent()); + updatePositionFor(dayEvent, getDate(), dayEvent.getCalendarEvent()); } } @@ -325,8 +323,8 @@ public class DateCell extends FocusableComplexPanel implements startingSlotHeight = height / numberOfSlots; for (int i = 0; i < slotElements.length; i++) { - slotElements[i].getStyle().setHeight(slotElementHeights[i], - Unit.PX); + slotElements[i].getStyle() + .setHeight(slotElementHeights[i], Unit.PX); } Iterator it = iterator(); @@ -412,8 +410,8 @@ public class DateCell extends FocusableComplexPanel implements DateCellDayEvent d = (DateCellDayEvent) getWidget(eventIndex); WeekGridMinuteTimeRange nextRange = new WeekGridMinuteTimeRange(d - .getCalendarEvent().getStartTime(), d - .getCalendarEvent().getEndTime()); + .getCalendarEvent().getStartTime(), d.getCalendarEvent() + .getEndTime()); if (WeekGridMinuteTimeRange.doesOverlap(dateRange, nextRange)) { skipIndex = col; @@ -459,9 +457,9 @@ public class DateCell extends FocusableComplexPanel implements int count = getWidgetCount(); DateCellDayEvent target = (DateCellDayEvent) getWidget(targetIndex); - WeekGridMinuteTimeRange targetRange = new WeekGridMinuteTimeRange(target - .getCalendarEvent().getStartTime(), target - .getCalendarEvent().getEndTime()); + WeekGridMinuteTimeRange targetRange = new WeekGridMinuteTimeRange( + target.getCalendarEvent().getStartTime(), target + .getCalendarEvent().getEndTime()); Date groupStart = targetRange.getStart(); Date groupEnd = targetRange.getEnd(); @@ -472,8 +470,8 @@ public class DateCell extends FocusableComplexPanel implements DateCellDayEvent d = (DateCellDayEvent) getWidget(i); WeekGridMinuteTimeRange nextRange = new WeekGridMinuteTimeRange(d - .getCalendarEvent().getStartTime(), d - .getCalendarEvent().getEndTime()); + .getCalendarEvent().getStartTime(), d.getCalendarEvent() + .getEndTime()); if (WeekGridMinuteTimeRange.doesOverlap(targetRange, nextRange)) { g.add(i); @@ -497,7 +495,8 @@ public class DateCell extends FocusableComplexPanel implements public void addEvent(Date targetDay, CalendarEvent calendarEvent) { Element main = getElement(); - DateCellDayEvent dayEvent = new DateCellDayEvent(this, weekgrid, calendarEvent); + DateCellDayEvent dayEvent = new DateCellDayEvent(this, weekgrid, + calendarEvent); dayEvent.setSlotHeightInPX(getSlotHeight()); dayEvent.setDisabled(isDisabled()); @@ -562,8 +561,8 @@ public class DateCell extends FocusableComplexPanel implements } index++; } - this.insert(dayEvent, (com.google.gwt.user.client.Element) main, - index, true); + this.insert(dayEvent, (com.google.gwt.user.client.Element) main, index, + true); } public void removeEvent(DateCellDayEvent dayEvent) { @@ -584,10 +583,10 @@ public class DateCell extends FocusableComplexPanel implements int eventStartHours = eventStart.getHours(); int eventEndHours = eventEnd.getHours(); - return (eventStartHours <= lastHour) - && (eventEndHours >= firstHour); + return (eventStartHours <= lastHour) && (eventEndHours >= firstHour); } + @Override public void onKeyDown(KeyDownEvent event) { int keycode = event.getNativeEvent().getKeyCode(); if (keycode == KeyCodes.KEY_ESCAPE && eventRangeStart > -1) { @@ -595,6 +594,7 @@ public class DateCell extends FocusableComplexPanel implements } } + @Override public void onMouseDown(MouseDownEvent event) { if (event.getNativeButton() == NativeEvent.BUTTON_LEFT) { Element e = Element.as(event.getNativeEvent().getEventTarget()); @@ -610,6 +610,7 @@ public class DateCell extends FocusableComplexPanel implements } } + @Override @SuppressWarnings("deprecation") public void onMouseUp(MouseUpEvent event) { if (event.getNativeButton() != NativeEvent.BUTTON_LEFT) { @@ -676,6 +677,7 @@ public class DateCell extends FocusableComplexPanel implements } } + @Override public void onMouseMove(MouseMoveEvent event) { if (event.getNativeButton() != NativeEvent.BUTTON_LEFT) { return; @@ -782,8 +784,7 @@ public class DateCell extends FocusableComplexPanel implements return today != null; } - public void addEmphasisStyle( - com.google.gwt.user.client.Element elementOver) { + public void addEmphasisStyle(com.google.gwt.user.client.Element elementOver) { String originalStylename = getStyleName(elementOver); setStyleName(elementOver, originalStylename + DRAGEMPHASISSTYLE); } @@ -797,6 +798,7 @@ public class DateCell extends FocusableComplexPanel implements - DRAGEMPHASISSTYLE.length())); } + @Override public void onContextMenu(ContextMenuEvent event) { if (weekgrid.getCalendar().getMouseEventListener() != null) { event.preventDefault(); diff --git a/client/src/com/vaadin/client/ui/calendar/schedule/DateCellContainer.java b/client/src/com/vaadin/client/ui/calendar/schedule/DateCellContainer.java index f1b45c83c5..04e6bb7df6 100644 --- a/client/src/com/vaadin/client/ui/calendar/schedule/DateCellContainer.java +++ b/client/src/com/vaadin/client/ui/calendar/schedule/DateCellContainer.java @@ -31,8 +31,8 @@ import com.vaadin.client.ui.VCalendar; * * since 7.1 */ -public class DateCellContainer extends FlowPanel implements - MouseDownHandler, MouseUpHandler { +public class DateCellContainer extends FlowPanel implements MouseDownHandler, + MouseUpHandler { private Date date; @@ -67,7 +67,8 @@ public class DateCellContainer extends FlowPanel implements public boolean hasEvent(int slotIndex) { return hasDateCell(slotIndex) - && ((WeeklyLongEventsDateCell) getChildren().get(slotIndex)).getEvent() != null; + && ((WeeklyLongEventsDateCell) getChildren().get(slotIndex)) + .getEvent() != null; } public boolean hasDateCell(int slotIndex) { @@ -94,12 +95,14 @@ public class DateCellContainer extends FlowPanel implements add(dateCell); } + @Override public void onMouseDown(MouseDownEvent event) { clickTargetWidget = (Widget) event.getSource(); event.stopPropagation(); } + @Override public void onMouseUp(MouseUpEvent event) { if (event.getSource() == clickTargetWidget && clickTargetWidget instanceof WeeklyLongEventsDateCell diff --git a/client/src/com/vaadin/client/ui/calendar/schedule/DateCellDayEvent.java b/client/src/com/vaadin/client/ui/calendar/schedule/DateCellDayEvent.java index 039a00e25a..c56566bf25 100644 --- a/client/src/com/vaadin/client/ui/calendar/schedule/DateCellDayEvent.java +++ b/client/src/com/vaadin/client/ui/calendar/schedule/DateCellDayEvent.java @@ -51,8 +51,8 @@ import com.vaadin.shared.ui.calendar.DateConstants; * @since 7.1 */ public class DateCellDayEvent extends FocusableHTML implements - MouseDownHandler, MouseUpHandler, MouseMoveHandler, - KeyDownHandler, ContextMenuHandler, HasTooltipKey { + MouseDownHandler, MouseUpHandler, MouseMoveHandler, KeyDownHandler, + ContextMenuHandler, HasTooltipKey { private final DateCell dateCell; private Element caption = null; @@ -79,7 +79,8 @@ public class DateCellDayEvent extends FocusableHTML implements private final List handlers; private boolean mouseMoveCanceled; - public DateCellDayEvent(DateCell dateCell, WeekGrid parent, CalendarEvent event) { + public DateCellDayEvent(DateCell dateCell, WeekGrid parent, + CalendarEvent event) { super(); this.dateCell = dateCell; @@ -110,8 +111,7 @@ public class DateCellDayEvent extends FocusableHTML implements bottomResizeBar = DOM.createDiv(); topResizeBar.addClassName("v-calendar-event-resizetop"); - bottomResizeBar - .addClassName("v-calendar-event-resizebottom"); + bottomResizeBar.addClassName("v-calendar-event-resizebottom"); getElement().appendChild(topResizeBar); getElement().appendChild(bottomResizeBar); @@ -142,8 +142,7 @@ public class DateCellDayEvent extends FocusableHTML implements this.slotHeight = slotHeight; } - public void updatePosition(long startFromMinutes, - long durationInMinutes) { + public void updatePosition(long startFromMinutes, long durationInMinutes) { if (startFromMinutes < 0) { startFromMinutes = 0; } @@ -183,8 +182,7 @@ public class DateCellDayEvent extends FocusableHTML implements /** * @param bigMode - * If false, event is so small that caption must be in - * time-row + * If false, event is so small that caption must be in time-row */ private void updateCaptions(boolean bigMode) { String separator = bigMode ? "
" : ": "; @@ -194,6 +192,7 @@ public class DateCellDayEvent extends FocusableHTML implements eventContent.setInnerHTML(""); } + @Override public void onKeyDown(KeyDownEvent event) { int keycode = event.getNativeEvent().getKeyCode(); if (keycode == KeyCodes.KEY_ESCAPE && mouseMoveStarted) { @@ -201,38 +200,31 @@ public class DateCellDayEvent extends FocusableHTML implements } } + @Override public void onMouseDown(MouseDownEvent event) { startX = event.getClientX(); startY = event.getClientY(); - if (isDisabled() - || event.getNativeButton() != NativeEvent.BUTTON_LEFT) { + if (isDisabled() || event.getNativeButton() != NativeEvent.BUTTON_LEFT) { return; } - clickTarget = Element.as(event.getNativeEvent() - .getEventTarget()); + clickTarget = Element.as(event.getNativeEvent().getEventTarget()); mouseMoveCanceled = false; - if (weekGrid.getCalendar().isEventMoveAllowed() - || clickTargetsResize()) { + if (weekGrid.getCalendar().isEventMoveAllowed() || clickTargetsResize()) { moveRegistration = addMouseMoveHandler(this); setFocus(true); try { - startYrelative = (int) ((double) event - .getRelativeY(caption) % slotHeight); - startXrelative = (event.getRelativeX(weekGrid - .getElement()) - weekGrid.timebar - .getOffsetWidth()) - % getDateCellWidth(); + startYrelative = (int) ((double) event.getRelativeY(caption) % slotHeight); + startXrelative = (event.getRelativeX(weekGrid.getElement()) - weekGrid.timebar + .getOffsetWidth()) % getDateCellWidth(); } catch (Exception e) { - GWT.log("Exception calculating relative start position", - e); + GWT.log("Exception calculating relative start position", e); } mouseMoveStarted = false; Style s = getElement().getStyle(); s.setZIndex(1000); - startDatetimeFrom = (Date) calendarEvent.getStartTime() - .clone(); + startDatetimeFrom = (Date) calendarEvent.getStartTime().clone(); startDatetimeTo = (Date) calendarEvent.getEndTime().clone(); Event.setCapture(getElement()); } @@ -243,13 +235,14 @@ public class DateCellDayEvent extends FocusableHTML implements } /* - * We need to stop the event propagation or else the WeekGrid - * range select will kick in + * We need to stop the event propagation or else the WeekGrid range + * select will kick in */ event.stopPropagation(); event.preventDefault(); } + @Override public void onMouseUp(MouseUpEvent event) { if (mouseMoveCanceled) { return; @@ -274,8 +267,7 @@ public class DateCellDayEvent extends FocusableHTML implements // check if mouse has moved over threshold of 3 pixels boolean mouseMoved = (xDiff < -3 || xDiff > 3 || yDiff < -3 || yDiff > 3); - if (!weekGrid.getCalendar().isDisabledOrReadOnly() - && mouseMoved) { + if (!weekGrid.getCalendar().isDisabledOrReadOnly() && mouseMoved) { // Event Move: // - calendar must be enabled // - calendar must not be in read-only mode @@ -283,8 +275,7 @@ public class DateCellDayEvent extends FocusableHTML implements } else if (!weekGrid.getCalendar().isDisabled()) { // Event Click: // - calendar must be enabled (read-only is allowed) - EventTarget et = event.getNativeEvent() - .getEventTarget(); + EventTarget et = event.getNativeEvent().getEventTarget(); Element e = Element.as(et); if (e == caption || e == eventContent || e.getParentElement() == caption) { @@ -304,6 +295,7 @@ public class DateCellDayEvent extends FocusableHTML implements } } + @Override @SuppressWarnings("deprecation") public void onMouseMove(MouseMoveEvent event) { if (startY < 0 && startX < 0) { @@ -330,8 +322,7 @@ public class DateCellDayEvent extends FocusableHTML implements mouseMoveStarted = true; } - HorizontalPanel parent = (HorizontalPanel) getParent() - .getParent(); + HorizontalPanel parent = (HorizontalPanel) getParent().getParent(); int relativeX = event.getRelativeX(parent.getElement()) - weekGrid.timebar.getOffsetWidth(); int halfHourDiff = 0; @@ -362,10 +353,9 @@ public class DateCellDayEvent extends FocusableHTML implements int dayOffsetPx = calculateDateCellOffsetPx(dayOffset) + weekGrid.timebar.getOffsetWidth(); - GWT.log("DateCellWidth: " + dateCellWidth + " dayDiff: " - + dayDiff + " dayOffset: " + dayOffset - + " dayOffsetPx: " + dayOffsetPx + " startXrelative: " - + startXrelative + " moveX: " + moveX); + GWT.log("DateCellWidth: " + dateCellWidth + " dayDiff: " + dayDiff + + " dayOffset: " + dayOffset + " dayOffsetPx: " + dayOffsetPx + + " startXrelative: " + startXrelative + " moveX: " + moveX); if (relativeX < 0 || relativeX >= getDatesWidth()) { return; @@ -391,11 +381,10 @@ public class DateCellDayEvent extends FocusableHTML implements calendarEvent.setEnd(new Date(to.getTime())); // Set new position for the event - long startFromMinutes = (from.getHours() * 60) - + from.getMinutes(); + long startFromMinutes = (from.getHours() * 60) + from.getMinutes(); long range = calendarEvent.getRangeInMinutes(); - startFromMinutes = calculateStartFromMinute( - startFromMinutes, from, to, dayOffsetPx); + startFromMinutes = calculateStartFromMinute(startFromMinutes, from, + to, dayOffsetPx); if (startFromMinutes < 0) { range += startFromMinutes; } @@ -404,8 +393,7 @@ public class DateCellDayEvent extends FocusableHTML implements s.setLeft(dayOffsetPx, Unit.PX); if (weekGrid.getDateCellWidths() != null) { - s.setWidth(weekGrid.getDateCellWidths()[dayOffset], - Unit.PX); + s.setWidth(weekGrid.getDateCellWidths()[dayOffset], Unit.PX); } else { setWidth(moveWidth); } @@ -415,10 +403,8 @@ public class DateCellDayEvent extends FocusableHTML implements long newStartTime = oldStartTime + ((long) halfHourInMilliSeconds * halfHourDiff); - if (!isTimeRangeTooSmall(newStartTime, - startDatetimeTo.getTime())) { - newStartTime = startDatetimeTo.getTime() - - getMinTimeRange(); + if (!isTimeRangeTooSmall(newStartTime, startDatetimeTo.getTime())) { + newStartTime = startDatetimeTo.getTime() - getMinTimeRange(); } from.setTime(newStartTime); @@ -427,8 +413,7 @@ public class DateCellDayEvent extends FocusableHTML implements calendarEvent.setStart(new Date(from.getTime())); // Set new position for the event - long startFromMinutes = (from.getHours() * 60) - + from.getMinutes(); + long startFromMinutes = (from.getHours() * 60) + from.getMinutes(); long range = calendarEvent.getRangeInMinutes(); updatePosition(startFromMinutes, range); @@ -438,10 +423,8 @@ public class DateCellDayEvent extends FocusableHTML implements long newEndTime = oldEndTime + ((long) halfHourInMilliSeconds * halfHourDiff); - if (!isTimeRangeTooSmall(startDatetimeFrom.getTime(), - newEndTime)) { - newEndTime = startDatetimeFrom.getTime() - + getMinTimeRange(); + if (!isTimeRangeTooSmall(startDatetimeFrom.getTime(), newEndTime)) { + newEndTime = startDatetimeFrom.getTime() + getMinTimeRange(); } to.setTime(newEndTime); @@ -453,8 +436,8 @@ public class DateCellDayEvent extends FocusableHTML implements long startFromMinutes = (startDatetimeFrom.getHours() * 60) + startDatetimeFrom.getMinutes(); long range = calendarEvent.getRangeInMinutes(); - startFromMinutes = calculateStartFromMinute( - startFromMinutes, from, to, dayOffsetPx); + startFromMinutes = calculateStartFromMinute(startFromMinutes, from, + to, dayOffsetPx); if (startFromMinutes < 0) { range += startFromMinutes; } @@ -509,14 +492,12 @@ public class DateCellDayEvent extends FocusableHTML implements // date methods are not deprecated in GWT @SuppressWarnings("deprecation") - private long calculateStartFromMinute(long startFromMinutes, - Date from, Date to, int dayOffset) { - boolean eventStartAtDifferentDay = from.getDate() != to - .getDate(); + private long calculateStartFromMinute(long startFromMinutes, Date from, + Date to, int dayOffset) { + boolean eventStartAtDifferentDay = from.getDate() != to.getDate(); if (eventStartAtDifferentDay) { - long minutesOnPrevDay = (getTargetDateByCurrentPosition( - dayOffset).getTime() - from.getTime()) - / DateConstants.MINUTEINMILLIS; + long minutesOnPrevDay = (getTargetDateByCurrentPosition(dayOffset) + .getTime() - from.getTime()) / DateConstants.MINUTEINMILLIS; startFromMinutes = -1 * minutesOnPrevDay; } @@ -554,8 +535,7 @@ public class DateCellDayEvent extends FocusableHTML implements } /** - * @return the minimum amount of ms that an event must last when - * resized + * @return the minimum amount of ms that an event must last when resized */ private long getMinTimeRange() { return DateConstants.MINUTEINMILLIS * 30; @@ -573,8 +553,7 @@ public class DateCellDayEvent extends FocusableHTML implements buffer.append(","); buffer.append(DateUtil.formatClientSideDate(event.getStart())); buffer.append("-"); - buffer.append(DateUtil.formatClientSideTime(event - .getStartTime())); + buffer.append(DateUtil.formatClientSideTime(event.getStartTime())); buffer.append(","); buffer.append(DateUtil.formatClientSideDate(event.getEnd())); buffer.append("-"); @@ -643,11 +622,12 @@ public class DateCellDayEvent extends FocusableHTML implements return disabled; } + @Override public void onContextMenu(ContextMenuEvent event) { - if (this.dateCell.weekgrid.getCalendar().getMouseEventListener() != null) { + if (dateCell.weekgrid.getCalendar().getMouseEventListener() != null) { event.preventDefault(); event.stopPropagation(); - this.dateCell.weekgrid.getCalendar().getMouseEventListener() + dateCell.weekgrid.getCalendar().getMouseEventListener() .contextMenu(event, this); } } diff --git a/client/src/com/vaadin/client/ui/calendar/schedule/DateCellGroup.java b/client/src/com/vaadin/client/ui/calendar/schedule/DateCellGroup.java index d2add53389..79276eab7b 100644 --- a/client/src/com/vaadin/client/ui/calendar/schedule/DateCellGroup.java +++ b/client/src/com/vaadin/client/ui/calendar/schedule/DateCellGroup.java @@ -19,7 +19,6 @@ import java.util.ArrayList; import java.util.Date; import java.util.List; - /** * Internally used by the calendar * diff --git a/client/src/com/vaadin/client/ui/calendar/schedule/DayToolbar.java b/client/src/com/vaadin/client/ui/calendar/schedule/DayToolbar.java index bb0155d892..6233e8111e 100644 --- a/client/src/com/vaadin/client/ui/calendar/schedule/DayToolbar.java +++ b/client/src/com/vaadin/client/ui/calendar/schedule/DayToolbar.java @@ -109,6 +109,7 @@ public class DayToolbar extends HorizontalPanel implements ClickHandler { } l.addClickHandler(new ClickHandler() { + @Override public void onClick(ClickEvent event) { if (calendar.getDateClickListener() != null) { calendar.getDateClickListener().dateClick(date); @@ -133,6 +134,7 @@ public class DayToolbar extends HorizontalPanel implements ClickHandler { add(nextLabel); } + @Override public void onClick(ClickEvent event) { if (!calendar.isDisabledOrReadOnly()) { if (event.getSource() == nextLabel) { diff --git a/client/src/com/vaadin/client/ui/calendar/schedule/FocusableComplexPanel.java b/client/src/com/vaadin/client/ui/calendar/schedule/FocusableComplexPanel.java index 62332385d2..6b42caec10 100644 --- a/client/src/com/vaadin/client/ui/calendar/schedule/FocusableComplexPanel.java +++ b/client/src/com/vaadin/client/ui/calendar/schedule/FocusableComplexPanel.java @@ -56,6 +56,7 @@ public class FocusableComplexPanel extends ComplexPanel implements * com.google.gwt.event.dom.client.HasFocusHandlers#addFocusHandler(com. * google.gwt.event.dom.client.FocusHandler) */ + @Override public HandlerRegistration addFocusHandler(FocusHandler handler) { return addDomHandler(handler, FocusEvent.getType()); } @@ -67,6 +68,7 @@ public class FocusableComplexPanel extends ComplexPanel implements * com.google.gwt.event.dom.client.HasBlurHandlers#addBlurHandler(com.google * .gwt.event.dom.client.BlurHandler) */ + @Override public HandlerRegistration addBlurHandler(BlurHandler handler) { return addDomHandler(handler, BlurEvent.getType()); } @@ -78,6 +80,7 @@ public class FocusableComplexPanel extends ComplexPanel implements * com.google.gwt.event.dom.client.HasKeyDownHandlers#addKeyDownHandler( * com.google.gwt.event.dom.client.KeyDownHandler) */ + @Override public HandlerRegistration addKeyDownHandler(KeyDownHandler handler) { return addDomHandler(handler, KeyDownEvent.getType()); } @@ -89,6 +92,7 @@ public class FocusableComplexPanel extends ComplexPanel implements * com.google.gwt.event.dom.client.HasKeyPressHandlers#addKeyPressHandler * (com.google.gwt.event.dom.client.KeyPressHandler) */ + @Override public HandlerRegistration addKeyPressHandler(KeyPressHandler handler) { return addDomHandler(handler, KeyPressEvent.getType()); } @@ -111,6 +115,7 @@ public class FocusableComplexPanel extends ComplexPanel implements /** * Focus the panel */ + @Override public void focus() { setFocus(true); } diff --git a/client/src/com/vaadin/client/ui/calendar/schedule/FocusableGrid.java b/client/src/com/vaadin/client/ui/calendar/schedule/FocusableGrid.java index d3177362bf..b40f1c3652 100644 --- a/client/src/com/vaadin/client/ui/calendar/schedule/FocusableGrid.java +++ b/client/src/com/vaadin/client/ui/calendar/schedule/FocusableGrid.java @@ -68,6 +68,7 @@ public class FocusableGrid extends Grid implements HasFocusHandlers, * com.google.gwt.event.dom.client.HasFocusHandlers#addFocusHandler(com. * google.gwt.event.dom.client.FocusHandler) */ + @Override public HandlerRegistration addFocusHandler(FocusHandler handler) { return addDomHandler(handler, FocusEvent.getType()); } @@ -79,6 +80,7 @@ public class FocusableGrid extends Grid implements HasFocusHandlers, * com.google.gwt.event.dom.client.HasBlurHandlers#addBlurHandler(com.google * .gwt.event.dom.client.BlurHandler) */ + @Override public HandlerRegistration addBlurHandler(BlurHandler handler) { return addDomHandler(handler, BlurEvent.getType()); } @@ -90,6 +92,7 @@ public class FocusableGrid extends Grid implements HasFocusHandlers, * com.google.gwt.event.dom.client.HasKeyDownHandlers#addKeyDownHandler( * com.google.gwt.event.dom.client.KeyDownHandler) */ + @Override public HandlerRegistration addKeyDownHandler(KeyDownHandler handler) { return addDomHandler(handler, KeyDownEvent.getType()); } @@ -101,6 +104,7 @@ public class FocusableGrid extends Grid implements HasFocusHandlers, * com.google.gwt.event.dom.client.HasKeyPressHandlers#addKeyPressHandler * (com.google.gwt.event.dom.client.KeyPressHandler) */ + @Override public HandlerRegistration addKeyPressHandler(KeyPressHandler handler) { return addDomHandler(handler, KeyPressEvent.getType()); } @@ -123,6 +127,7 @@ public class FocusableGrid extends Grid implements HasFocusHandlers, /** * Focus the panel */ + @Override public void focus() { setFocus(true); } diff --git a/client/src/com/vaadin/client/ui/calendar/schedule/FocusableHTML.java b/client/src/com/vaadin/client/ui/calendar/schedule/FocusableHTML.java index c3fe1958f0..31d810608a 100644 --- a/client/src/com/vaadin/client/ui/calendar/schedule/FocusableHTML.java +++ b/client/src/com/vaadin/client/ui/calendar/schedule/FocusableHTML.java @@ -58,6 +58,7 @@ public class FocusableHTML extends HTML implements HasFocusHandlers, * com.google.gwt.event.dom.client.HasFocusHandlers#addFocusHandler(com. * google.gwt.event.dom.client.FocusHandler) */ + @Override public HandlerRegistration addFocusHandler(FocusHandler handler) { return addDomHandler(handler, FocusEvent.getType()); } @@ -69,6 +70,7 @@ public class FocusableHTML extends HTML implements HasFocusHandlers, * com.google.gwt.event.dom.client.HasBlurHandlers#addBlurHandler(com.google * .gwt.event.dom.client.BlurHandler) */ + @Override public HandlerRegistration addBlurHandler(BlurHandler handler) { return addDomHandler(handler, BlurEvent.getType()); } @@ -80,6 +82,7 @@ public class FocusableHTML extends HTML implements HasFocusHandlers, * com.google.gwt.event.dom.client.HasKeyDownHandlers#addKeyDownHandler( * com.google.gwt.event.dom.client.KeyDownHandler) */ + @Override public HandlerRegistration addKeyDownHandler(KeyDownHandler handler) { return addDomHandler(handler, KeyDownEvent.getType()); } @@ -91,6 +94,7 @@ public class FocusableHTML extends HTML implements HasFocusHandlers, * com.google.gwt.event.dom.client.HasKeyPressHandlers#addKeyPressHandler * (com.google.gwt.event.dom.client.KeyPressHandler) */ + @Override public HandlerRegistration addKeyPressHandler(KeyPressHandler handler) { return addDomHandler(handler, KeyPressEvent.getType()); } @@ -113,6 +117,7 @@ public class FocusableHTML extends HTML implements HasFocusHandlers, /** * Focus the panel */ + @Override public void focus() { setFocus(true); } diff --git a/client/src/com/vaadin/client/ui/calendar/schedule/MonthGrid.java b/client/src/com/vaadin/client/ui/calendar/schedule/MonthGrid.java index f5afd12e42..df9bc42d2a 100644 --- a/client/src/com/vaadin/client/ui/calendar/schedule/MonthGrid.java +++ b/client/src/com/vaadin/client/ui/calendar/schedule/MonthGrid.java @@ -191,6 +191,7 @@ public class MonthGrid extends FocusableGrid implements KeyDownHandler { return enabled; } + @Override public void onKeyDown(KeyDownEvent event) { int keycode = event.getNativeKeyCode(); if (KeyCodes.KEY_ESCAPE == keycode && selectionStart != null) { diff --git a/client/src/com/vaadin/client/ui/calendar/schedule/SimpleDayCell.java b/client/src/com/vaadin/client/ui/calendar/schedule/SimpleDayCell.java index 8d1ca0fcda..a2bd008d01 100644 --- a/client/src/com/vaadin/client/ui/calendar/schedule/SimpleDayCell.java +++ b/client/src/com/vaadin/client/ui/calendar/schedule/SimpleDayCell.java @@ -361,6 +361,7 @@ public class SimpleDayCell extends FocusableFlowPanel implements super.onDetach(); } + @Override public void onMouseUp(MouseUpEvent event) { if (event.getNativeButton() != NativeEvent.BUTTON_LEFT) { return; @@ -415,6 +416,7 @@ public class SimpleDayCell extends FocusableFlowPanel implements clickedWidget = null; } + @Override public void onMouseDown(MouseDownEvent event) { if (calendar.isDisabled() || event.getNativeButton() != NativeEvent.BUTTON_LEFT) { @@ -456,11 +458,13 @@ public class SimpleDayCell extends FocusableFlowPanel implements event.preventDefault(); } + @Override public void onMouseOver(MouseOverEvent event) { event.preventDefault(); getMonthGrid().setSelectionEnd(this); } + @Override public void onMouseMove(MouseMoveEvent event) { if (clickedWidget instanceof MonthEventLabel && !monthEventMouseDown || (startY < 0 && startX < 0)) { @@ -566,6 +570,7 @@ public class SimpleDayCell extends FocusableFlowPanel implements Event.setCapture(getElement()); keyDownHandler = addKeyDownHandler(new KeyDownHandler() { + @Override public void onKeyDown(KeyDownEvent event) { if (event.getNativeKeyCode() == KeyCodes.KEY_ESCAPE) { cancelEventDrag(w); diff --git a/client/src/com/vaadin/client/ui/calendar/schedule/SimpleWeekToolbar.java b/client/src/com/vaadin/client/ui/calendar/schedule/SimpleWeekToolbar.java index f86ba03053..59902811cd 100644 --- a/client/src/com/vaadin/client/ui/calendar/schedule/SimpleWeekToolbar.java +++ b/client/src/com/vaadin/client/ui/calendar/schedule/SimpleWeekToolbar.java @@ -98,6 +98,7 @@ public class SimpleWeekToolbar extends FlexTable implements ClickHandler { } } + @Override public void onClick(ClickEvent event) { WeekLabel wl = (WeekLabel) event.getSource(); if (calendar.getWeekClickListener() != null) { diff --git a/client/src/com/vaadin/client/ui/calendar/schedule/WeekGrid.java b/client/src/com/vaadin/client/ui/calendar/schedule/WeekGrid.java index c5646f97ae..450ea29549 100644 --- a/client/src/com/vaadin/client/ui/calendar/schedule/WeekGrid.java +++ b/client/src/com/vaadin/client/ui/calendar/schedule/WeekGrid.java @@ -83,6 +83,7 @@ public class WeekGrid extends SimplePanel { scrollPanel.setWidget(content); scrollPanel.addScrollHandler(new ScrollHandler() { + @Override public void onScroll(ScrollEvent event) { if (calendar.getScrollListener() != null) { calendar.getScrollListener().scroll( diff --git a/client/src/com/vaadin/client/ui/calendar/schedule/WeekGridMinuteTimeRange.java b/client/src/com/vaadin/client/ui/calendar/schedule/WeekGridMinuteTimeRange.java index 27ace91c4e..e634735be7 100644 --- a/client/src/com/vaadin/client/ui/calendar/schedule/WeekGridMinuteTimeRange.java +++ b/client/src/com/vaadin/client/ui/calendar/schedule/WeekGridMinuteTimeRange.java @@ -27,16 +27,16 @@ public class WeekGridMinuteTimeRange { private final Date end; /** - * Creates a Date time range between start and end date. Drops seconds - * from the range. + * Creates a Date time range between start and end date. Drops seconds from + * the range. * * @param start * Start time of the range * @param end * End time of the range * @param clearSeconds - * Boolean Indicates, if seconds should be dropped from the - * range start and end + * Boolean Indicates, if seconds should be dropped from the range + * start and end */ public WeekGridMinuteTimeRange(Date start, Date end) { this.start = new Date(start.getTime()); @@ -53,7 +53,8 @@ public class WeekGridMinuteTimeRange { return end; } - public static boolean doesOverlap(WeekGridMinuteTimeRange a, WeekGridMinuteTimeRange b) { + public static boolean doesOverlap(WeekGridMinuteTimeRange a, + WeekGridMinuteTimeRange b) { boolean overlaps = a.getStart().compareTo(b.getEnd()) < 0 && a.getEnd().compareTo(b.getStart()) > 0; return overlaps; diff --git a/client/src/com/vaadin/client/ui/calendar/schedule/WeeklyLongEvents.java b/client/src/com/vaadin/client/ui/calendar/schedule/WeeklyLongEvents.java index e3b7d5d7fe..f7c5c0dac4 100644 --- a/client/src/com/vaadin/client/ui/calendar/schedule/WeeklyLongEvents.java +++ b/client/src/com/vaadin/client/ui/calendar/schedule/WeeklyLongEvents.java @@ -78,7 +78,8 @@ public class WeeklyLongEvents extends HorizontalPanel implements HasTooltipKey { Date dcDate = dc.getDate(); int comp = dcDate.compareTo(from); int comp2 = dcDate.compareTo(to); - WeeklyLongEventsDateCell eventLabel = dc.getDateCell(calendarEvent.getSlotIndex()); + WeeklyLongEventsDateCell eventLabel = dc.getDateCell(calendarEvent + .getSlotIndex()); eventLabel.setStylePrimaryName("v-calendar-event"); if (comp >= 0 && comp2 <= 0) { eventLabel.setEvent(calendarEvent); diff --git a/client/src/com/vaadin/client/ui/calendar/schedule/dd/CalendarDropHandler.java b/client/src/com/vaadin/client/ui/calendar/schedule/dd/CalendarDropHandler.java index 03db4d091e..aab9ca9c38 100644 --- a/client/src/com/vaadin/client/ui/calendar/schedule/dd/CalendarDropHandler.java +++ b/client/src/com/vaadin/client/ui/calendar/schedule/dd/CalendarDropHandler.java @@ -57,6 +57,7 @@ public abstract class CalendarDropHandler extends VAbstractDropHandler { * com.vaadin.terminal.gwt.client.ui.dd.VDropHandler#getApplicationConnection * () */ + @Override public ApplicationConnection getApplicationConnection() { return calendarConnector.getClient(); } diff --git a/client/src/com/vaadin/client/ui/calendar/schedule/dd/CalendarMonthDropHandler.java b/client/src/com/vaadin/client/ui/calendar/schedule/dd/CalendarMonthDropHandler.java index 6e57fb6fef..913477ee14 100644 --- a/client/src/com/vaadin/client/ui/calendar/schedule/dd/CalendarMonthDropHandler.java +++ b/client/src/com/vaadin/client/ui/calendar/schedule/dd/CalendarMonthDropHandler.java @@ -81,6 +81,7 @@ public class CalendarMonthDropHandler extends CalendarDropHandler { public void dragOver(final VDragEvent drag) { if (isLocationValid(drag.getElementOver())) { validate(new VAcceptCallback() { + @Override public void accepted(VDragEvent event) { dragAccepted(drag); } diff --git a/client/src/com/vaadin/client/ui/calendar/schedule/dd/CalendarWeekDropHandler.java b/client/src/com/vaadin/client/ui/calendar/schedule/dd/CalendarWeekDropHandler.java index fa7aaa428b..0ea683dc3c 100644 --- a/client/src/com/vaadin/client/ui/calendar/schedule/dd/CalendarWeekDropHandler.java +++ b/client/src/com/vaadin/client/ui/calendar/schedule/dd/CalendarWeekDropHandler.java @@ -80,6 +80,7 @@ public class CalendarWeekDropHandler extends CalendarDropHandler { public void dragOver(final VDragEvent drag) { if (isLocationValid(drag.getElementOver())) { validate(new VAcceptCallback() { + @Override public void accepted(VDragEvent event) { dragAccepted(drag); } diff --git a/client/src/com/vaadin/client/ui/ui/UIConnector.java b/client/src/com/vaadin/client/ui/ui/UIConnector.java index 69296b537c..0843b3069d 100644 --- a/client/src/com/vaadin/client/ui/ui/UIConnector.java +++ b/client/src/com/vaadin/client/ui/ui/UIConnector.java @@ -338,8 +338,8 @@ public class UIConnector extends AbstractSingleComponentContainerConnector } /** - * Reads CSS strings and resources injected by {@link Styles#inject} - * from the UIDL stream. + * Reads CSS strings and resources injected by {@link Styles#inject} from + * the UIDL stream. * * @param uidl * The uidl which contains "css-resource" and "css-string" tags diff --git a/server/src/com/vaadin/data/fieldgroup/FieldGroup.java b/server/src/com/vaadin/data/fieldgroup/FieldGroup.java index 6c515dbdee..981aea387d 100644 --- a/server/src/com/vaadin/data/fieldgroup/FieldGroup.java +++ b/server/src/com/vaadin/data/fieldgroup/FieldGroup.java @@ -919,7 +919,8 @@ public class FieldGroup implements Serializable { for (Object itemPropertyId : dataSource.getItemPropertyIds()) { if (itemPropertyId instanceof String) { String itemPropertyName = (String) itemPropertyId; - if (minifiedFieldName.equals(minifyFieldName(itemPropertyName))) { + if (minifiedFieldName + .equals(minifyFieldName(itemPropertyName))) { return itemPropertyName; } } diff --git a/server/src/com/vaadin/server/BrowserWindowOpener.java b/server/src/com/vaadin/server/BrowserWindowOpener.java index 8e049ca454..a6e420f89c 100644 --- a/server/src/com/vaadin/server/BrowserWindowOpener.java +++ b/server/src/com/vaadin/server/BrowserWindowOpener.java @@ -38,7 +38,8 @@ public class BrowserWindowOpener extends AbstractExtension { private final String path; private final Class uiClass; - public BrowserWindowOpenerUIProvider(Class uiClass, String path) { + public BrowserWindowOpenerUIProvider(Class uiClass, + String path) { this.path = ensureInitialSlash(path); this.uiClass = uiClass; } diff --git a/server/src/com/vaadin/server/communication/AbstractStreamingEvent.java b/server/src/com/vaadin/server/communication/AbstractStreamingEvent.java index 054bc14f2d..b97a60fd56 100644 --- a/server/src/com/vaadin/server/communication/AbstractStreamingEvent.java +++ b/server/src/com/vaadin/server/communication/AbstractStreamingEvent.java @@ -15,7 +15,6 @@ */ package com.vaadin.server.communication; -import com.vaadin.server.StreamVariable; import com.vaadin.server.StreamVariable.StreamingEvent; /** diff --git a/server/src/com/vaadin/server/communication/ConnectorHierarchyWriter.java b/server/src/com/vaadin/server/communication/ConnectorHierarchyWriter.java index 963886edbb..467bddbdce 100644 --- a/server/src/com/vaadin/server/communication/ConnectorHierarchyWriter.java +++ b/server/src/com/vaadin/server/communication/ConnectorHierarchyWriter.java @@ -26,8 +26,8 @@ import org.json.JSONException; import org.json.JSONObject; import com.vaadin.server.AbstractClientConnector; -import com.vaadin.server.LegacyCommunicationManager; import com.vaadin.server.ClientConnector; +import com.vaadin.server.LegacyCommunicationManager; import com.vaadin.server.PaintException; import com.vaadin.ui.UI; diff --git a/server/src/com/vaadin/server/communication/PortletListenerNotifier.java b/server/src/com/vaadin/server/communication/PortletListenerNotifier.java index c64819ca44..5c03a6f4dc 100644 --- a/server/src/com/vaadin/server/communication/PortletListenerNotifier.java +++ b/server/src/com/vaadin/server/communication/PortletListenerNotifier.java @@ -29,8 +29,8 @@ import javax.portlet.RenderResponse; import javax.portlet.ResourceRequest; import javax.portlet.ResourceResponse; -import com.vaadin.server.SynchronizedRequestHandler; import com.vaadin.server.ServletPortletHelper; +import com.vaadin.server.SynchronizedRequestHandler; import com.vaadin.server.VaadinPortletRequest; import com.vaadin.server.VaadinPortletResponse; import com.vaadin.server.VaadinPortletSession; diff --git a/server/src/com/vaadin/server/communication/ResourceWriter.java b/server/src/com/vaadin/server/communication/ResourceWriter.java index 86f8dd3b36..080027943f 100644 --- a/server/src/com/vaadin/server/communication/ResourceWriter.java +++ b/server/src/com/vaadin/server/communication/ResourceWriter.java @@ -25,8 +25,8 @@ import java.util.Iterator; import java.util.logging.Level; import java.util.logging.Logger; -import com.vaadin.server.LegacyCommunicationManager; import com.vaadin.server.JsonPaintTarget; +import com.vaadin.server.LegacyCommunicationManager; import com.vaadin.ui.CustomLayout; import com.vaadin.ui.UI; diff --git a/server/src/com/vaadin/server/communication/StreamingEndEventImpl.java b/server/src/com/vaadin/server/communication/StreamingEndEventImpl.java index e241bbbfaf..f8cfb160be 100644 --- a/server/src/com/vaadin/server/communication/StreamingEndEventImpl.java +++ b/server/src/com/vaadin/server/communication/StreamingEndEventImpl.java @@ -15,7 +15,6 @@ */ package com.vaadin.server.communication; -import com.vaadin.server.StreamVariable; import com.vaadin.server.StreamVariable.StreamingEndEvent; @SuppressWarnings("serial") diff --git a/server/src/com/vaadin/server/communication/StreamingErrorEventImpl.java b/server/src/com/vaadin/server/communication/StreamingErrorEventImpl.java index 1ee74c68b6..9d9a19e4fe 100644 --- a/server/src/com/vaadin/server/communication/StreamingErrorEventImpl.java +++ b/server/src/com/vaadin/server/communication/StreamingErrorEventImpl.java @@ -15,7 +15,6 @@ */ package com.vaadin.server.communication; -import com.vaadin.server.StreamVariable; import com.vaadin.server.StreamVariable.StreamingErrorEvent; @SuppressWarnings("serial") diff --git a/server/src/com/vaadin/server/communication/StreamingProgressEventImpl.java b/server/src/com/vaadin/server/communication/StreamingProgressEventImpl.java index c07e37e196..69f3bfb29c 100644 --- a/server/src/com/vaadin/server/communication/StreamingProgressEventImpl.java +++ b/server/src/com/vaadin/server/communication/StreamingProgressEventImpl.java @@ -15,7 +15,6 @@ */ package com.vaadin.server.communication; -import com.vaadin.server.StreamVariable; import com.vaadin.server.StreamVariable.StreamingProgressEvent; @SuppressWarnings("serial") diff --git a/server/src/com/vaadin/server/communication/StreamingStartEventImpl.java b/server/src/com/vaadin/server/communication/StreamingStartEventImpl.java index a7f13be499..bd16f08801 100644 --- a/server/src/com/vaadin/server/communication/StreamingStartEventImpl.java +++ b/server/src/com/vaadin/server/communication/StreamingStartEventImpl.java @@ -15,7 +15,6 @@ */ package com.vaadin.server.communication; -import com.vaadin.server.StreamVariable; import com.vaadin.server.StreamVariable.StreamingStartEvent; @SuppressWarnings("serial") diff --git a/server/src/com/vaadin/ui/AbstractColorPicker.java b/server/src/com/vaadin/ui/AbstractColorPicker.java index d7037e366d..c3bdd49155 100644 --- a/server/src/com/vaadin/ui/AbstractColorPicker.java +++ b/server/src/com/vaadin/ui/AbstractColorPicker.java @@ -405,6 +405,7 @@ public abstract class AbstractColorPicker extends AbstractComponent implements window.setImmediate(true); window.addCloseListener(this); window.addColorChangeListener(new ColorChangeListener() { + @Override public void colorChanged(ColorChangeEvent event) { AbstractColorPicker.this.colorChanged(event); } diff --git a/server/src/com/vaadin/ui/AbstractOrderedLayout.java b/server/src/com/vaadin/ui/AbstractOrderedLayout.java index b06b2e0871..c9eb756daa 100644 --- a/server/src/com/vaadin/ui/AbstractOrderedLayout.java +++ b/server/src/com/vaadin/ui/AbstractOrderedLayout.java @@ -439,6 +439,7 @@ public abstract class AbstractOrderedLayout extends AbstractLayout implements * com.vaadin.ui.Layout.AlignmentHandler#setDefaultComponentAlignment(com * .vaadin.ui.Alignment) */ + @Override public void setDefaultComponentAlignment(Alignment defaultAlignment) { defaultComponentAlignment = defaultAlignment; } diff --git a/server/src/com/vaadin/ui/Calendar.java b/server/src/com/vaadin/ui/Calendar.java index 4bf2885a8c..38fa355dd8 100644 --- a/server/src/com/vaadin/ui/Calendar.java +++ b/server/src/com/vaadin/ui/Calendar.java @@ -1206,14 +1206,16 @@ public class Calendar extends AbstractComponent implements // remove old listener if (getEventProvider() instanceof EventSetChangeNotifier) { - ((EventSetChangeNotifier) getEventProvider()).removeEventSetChangeListener(this); + ((EventSetChangeNotifier) getEventProvider()) + .removeEventSetChangeListener(this); } this.calendarEventProvider = calendarEventProvider; // add new listener if (calendarEventProvider instanceof EventSetChangeNotifier) { - ((EventSetChangeNotifier) calendarEventProvider).addEventSetChangeListener(this); + ((EventSetChangeNotifier) calendarEventProvider) + .addEventSetChangeListener(this); } } @@ -1232,6 +1234,7 @@ public class Calendar extends AbstractComponent implements * com.vaadin.addon.calendar.ui.CalendarEvents.EventChangeListener#eventChange * (com.vaadin.addon.calendar.ui.CalendarEvents.EventChange) */ + @Override public void eventSetChange(EventSetChangeEvent changeEvent) { // sanity check if (calendarEventProvider == changeEvent.getProvider()) { @@ -1276,6 +1279,7 @@ public class Calendar extends AbstractComponent implements * #addListener * (com.vaadin.addon.calendar.ui.CalendarComponentEvents.ForwardHandler) */ + @Override public void setHandler(ForwardHandler listener) { setHandler(ForwardEvent.EVENT_ID, ForwardEvent.class, listener, ForwardHandler.forwardMethod); @@ -1289,6 +1293,7 @@ public class Calendar extends AbstractComponent implements * #addListener * (com.vaadin.addon.calendar.ui.CalendarComponentEvents.BackwardHandler) */ + @Override public void setHandler(BackwardHandler listener) { setHandler(BackwardEvent.EVENT_ID, BackwardEvent.class, listener, BackwardHandler.backwardMethod); @@ -1302,6 +1307,7 @@ public class Calendar extends AbstractComponent implements * #addListener * (com.vaadin.addon.calendar.ui.CalendarComponentEvents.DateClickHandler) */ + @Override public void setHandler(DateClickHandler listener) { setHandler(DateClickEvent.EVENT_ID, DateClickEvent.class, listener, DateClickHandler.dateClickMethod); @@ -1315,6 +1321,7 @@ public class Calendar extends AbstractComponent implements * #addListener * (com.vaadin.addon.calendar.ui.CalendarComponentEvents.EventClickHandler) */ + @Override public void setHandler(EventClickHandler listener) { setHandler(EventClick.EVENT_ID, EventClick.class, listener, EventClickHandler.eventClickMethod); @@ -1328,6 +1335,7 @@ public class Calendar extends AbstractComponent implements * #addListener * (com.vaadin.addon.calendar.ui.CalendarComponentEvents.WeekClickHandler) */ + @Override public void setHandler(WeekClickHandler listener) { setHandler(WeekClick.EVENT_ID, WeekClick.class, listener, WeekClickHandler.weekClickMethod); @@ -1342,6 +1350,7 @@ public class Calendar extends AbstractComponent implements * (com.vaadin.addon.calendar.ui.CalendarComponentEvents.EventResizeHandler * ) */ + @Override public void setHandler(EventResizeHandler listener) { setHandler(EventResize.EVENT_ID, EventResize.class, listener, EventResizeHandler.eventResizeMethod); @@ -1356,6 +1365,7 @@ public class Calendar extends AbstractComponent implements * (com.vaadin.addon.calendar.ui.CalendarComponentEvents.RangeSelectHandler * ) */ + @Override public void setHandler(RangeSelectHandler listener) { setHandler(RangeSelectEvent.EVENT_ID, RangeSelectEvent.class, listener, RangeSelectHandler.rangeSelectMethod); @@ -1370,6 +1380,7 @@ public class Calendar extends AbstractComponent implements * #addListener * (com.vaadin.addon.calendar.ui.CalendarComponentEvents.EventMoveHandler) */ + @Override public void setHandler(EventMoveHandler listener) { setHandler(MoveEvent.EVENT_ID, MoveEvent.class, listener, EventMoveHandler.eventMoveMethod); @@ -1382,6 +1393,7 @@ public class Calendar extends AbstractComponent implements * com.vaadin.addon.calendar.ui.CalendarComponentEvents.CalendarEventNotifier * #getHandler(java.lang.String) */ + @Override public EventListener getHandler(String eventId) { return handlers.get(eventId); } @@ -1389,6 +1401,7 @@ public class Calendar extends AbstractComponent implements /** * Get the currently active drop handler */ + @Override public DropHandler getDropHandler() { return dropHandler; } @@ -1410,6 +1423,7 @@ public class Calendar extends AbstractComponent implements * @see * com.vaadin.event.dd.DropTarget#translateDropTargetDetails(java.util.Map) */ + @Override public TargetDetails translateDropTargetDetails( Map clientVariables) { Map serverVariables = new HashMap(1); @@ -1458,12 +1472,14 @@ public class Calendar extends AbstractComponent implements public void setContainerDataSource(Container.Indexed container) { ContainerEventProvider provider = new ContainerEventProvider(container); provider.addEventSetChangeListener(new CalendarEventProvider.EventSetChangeListener() { + @Override public void eventSetChange(EventSetChangeEvent changeEvent) { // Repaint if events change markAsDirty(); } }); provider.addEventChangeListener(new EventChangeListener() { + @Override public void eventChange(EventChangeEvent changeEvent) { // Repaint if event changes markAsDirty(); @@ -1506,12 +1522,14 @@ public class Calendar extends AbstractComponent implements provider.setEndDateProperty(endDateProperty); provider.setStyleNameProperty(styleNameProperty); provider.addEventSetChangeListener(new CalendarEventProvider.EventSetChangeListener() { + @Override public void eventSetChange(EventSetChangeEvent changeEvent) { // Repaint if events change markAsDirty(); } }); provider.addEventChangeListener(new EventChangeListener() { + @Override public void eventChange(EventChangeEvent changeEvent) { // Repaint if event changes markAsDirty(); @@ -1527,6 +1545,7 @@ public class Calendar extends AbstractComponent implements * com.vaadin.addon.calendar.event.CalendarEventProvider#getEvents(java. * util.Date, java.util.Date) */ + @Override public List getEvents(Date startDate, Date endDate) { return getEventProvider().getEvents(startDate, endDate); } @@ -1538,6 +1557,7 @@ public class Calendar extends AbstractComponent implements * com.vaadin.addon.calendar.event.CalendarEditableEventProvider#addEvent * (com.vaadin.addon.calendar.event.CalendarEvent) */ + @Override public void addEvent(CalendarEvent event) { if (getEventProvider() instanceof CalendarEditableEventProvider) { CalendarEditableEventProvider provider = (CalendarEditableEventProvider) getEventProvider(); @@ -1556,6 +1576,7 @@ public class Calendar extends AbstractComponent implements * com.vaadin.addon.calendar.event.CalendarEditableEventProvider#removeEvent * (com.vaadin.addon.calendar.event.CalendarEvent) */ + @Override public void removeEvent(CalendarEvent event) { if (getEventProvider() instanceof CalendarEditableEventProvider) { CalendarEditableEventProvider provider = (CalendarEditableEventProvider) getEventProvider(); @@ -1599,6 +1620,7 @@ public class Calendar extends AbstractComponent implements * *

*/ + @Override public void addActionHandler(Handler actionHandler) { if (actionHandler != null) { if (actionHandlers == null) { @@ -1635,6 +1657,7 @@ public class Calendar extends AbstractComponent implements * com.vaadin.event.Action.Container#removeActionHandler(com.vaadin.event * .Action.Handler) */ + @Override public void removeActionHandler(Handler actionHandler) { if (actionHandlers != null && actionHandlers.contains(actionHandler)) { actionHandlers.remove(actionHandler); diff --git a/server/src/com/vaadin/ui/GridLayout.java b/server/src/com/vaadin/ui/GridLayout.java index 60664c8937..53a25c1c83 100644 --- a/server/src/com/vaadin/ui/GridLayout.java +++ b/server/src/com/vaadin/ui/GridLayout.java @@ -1245,6 +1245,7 @@ public class GridLayout extends AbstractLayout implements * com.vaadin.ui.Layout.AlignmentHandler#setDefaultComponentAlignment(com * .vaadin.ui.Alignment) */ + @Override public void setDefaultComponentAlignment(Alignment defaultAlignment) { defaultComponentAlignment = defaultAlignment; } diff --git a/server/src/com/vaadin/ui/Window.java b/server/src/com/vaadin/ui/Window.java index 0c1509663a..479992d084 100644 --- a/server/src/com/vaadin/ui/Window.java +++ b/server/src/com/vaadin/ui/Window.java @@ -489,7 +489,8 @@ public class Window extends Panel implements FocusNotifier, BlurNotifier, * @param listener * the DisplayStateChangeListener to add. */ - public void addDisplayStateChangeListener(DisplayStateChangeListener listener) { + public void addDisplayStateChangeListener( + DisplayStateChangeListener listener) { addListener(DisplayStateChangeEvent.class, listener, DisplayStateChangeListener.displayStateChangeMethod); } @@ -500,7 +501,8 @@ public class Window extends Panel implements FocusNotifier, BlurNotifier, * @param listener * the DisplayStateChangeListener to remove. */ - public void removeDisplayStateChangeListener(DisplayStateChangeListener listener) { + public void removeDisplayStateChangeListener( + DisplayStateChangeListener listener) { removeListener(DisplayStateChangeEvent.class, listener, DisplayStateChangeListener.displayStateChangeMethod); } diff --git a/server/src/com/vaadin/ui/components/calendar/ContainerEventProvider.java b/server/src/com/vaadin/ui/components/calendar/ContainerEventProvider.java index b01140eb88..37ea255d27 100644 --- a/server/src/com/vaadin/ui/components/calendar/ContainerEventProvider.java +++ b/server/src/com/vaadin/ui/components/calendar/ContainerEventProvider.java @@ -239,6 +239,7 @@ public class ContainerEventProvider implements CalendarEditableEventProvider, * com.vaadin.addon.calendar.event.CalendarEventProvider#getEvents(java. * util.Date, java.util.Date) */ + @Override public List getEvents(Date startDate, Date endDate) { eventCache.clear(); @@ -315,6 +316,7 @@ public class ContainerEventProvider implements CalendarEditableEventProvider, * #addListener(com.vaadin.addon.calendar.event.CalendarEventProvider. * EventSetChangeListener) */ + @Override public void addEventSetChangeListener(EventSetChangeListener listener) { if (!eventSetChangeListeners.contains(listener)) { eventSetChangeListeners.add(listener); @@ -329,6 +331,7 @@ public class ContainerEventProvider implements CalendarEditableEventProvider, * #removeListener(com.vaadin.addon.calendar.event.CalendarEventProvider. * EventSetChangeListener) */ + @Override public void removeEventSetChangeListener(EventSetChangeListener listener) { eventSetChangeListeners.remove(listener); } @@ -340,6 +343,7 @@ public class ContainerEventProvider implements CalendarEditableEventProvider, * com.vaadin.addon.calendar.event.CalendarEvent.EventChangeNotifier#addListener * (com.vaadin.addon.calendar.event.CalendarEvent.EventChangeListener) */ + @Override public void addEventChangeListener(EventChangeListener listener) { if (eventChangeListeners.contains(listener)) { eventChangeListeners.add(listener); @@ -353,6 +357,7 @@ public class ContainerEventProvider implements CalendarEditableEventProvider, * removeListener * (com.vaadin.addon.calendar.event.CalendarEvent.EventChangeListener) */ + @Override public void removeEventChangeListener(EventChangeListener listener) { eventChangeListeners.remove(listener); } @@ -434,6 +439,7 @@ public class ContainerEventProvider implements CalendarEditableEventProvider, * com.vaadin.data.Container.ItemSetChangeListener#containerItemSetChange * (com.vaadin.data.Container.ItemSetChangeEvent) */ + @Override public void containerItemSetChange(ItemSetChangeEvent event) { if (event.getContainer() == container) { // Trigger an eventset change event when the itemset changes @@ -450,6 +456,7 @@ public class ContainerEventProvider implements CalendarEditableEventProvider, * com.vaadin.data.Property.ValueChangeListener#valueChange(com.vaadin.data * .Property.ValueChangeEvent) */ + @Override public void valueChange(ValueChangeEvent event) { /* * TODO Need to figure out how to get the item which triggered the the @@ -466,6 +473,7 @@ public class ContainerEventProvider implements CalendarEditableEventProvider, * #eventMove * (com.vaadin.addon.calendar.ui.CalendarComponentEvents.MoveEvent) */ + @Override public void eventMove(MoveEvent event) { CalendarEvent ce = event.getCalendarEvent(); if (eventCache.contains(ce)) { @@ -496,6 +504,7 @@ public class ContainerEventProvider implements CalendarEditableEventProvider, * #eventResize * (com.vaadin.addon.calendar.ui.CalendarComponentEvents.EventResize) */ + @Override public void eventResize(EventResize event) { CalendarEvent ce = event.getCalendarEvent(); if (eventCache.contains(ce)) { @@ -531,6 +540,7 @@ public class ContainerEventProvider implements CalendarEditableEventProvider, * com.vaadin.addon.calendar.event.CalendarEditableEventProvider#addEvent * (com.vaadin.addon.calendar.event.CalendarEvent) */ + @Override public void addEvent(CalendarEvent event) { Item item; try { @@ -560,6 +570,7 @@ public class ContainerEventProvider implements CalendarEditableEventProvider, * com.vaadin.addon.calendar.event.CalendarEditableEventProvider#removeEvent * (com.vaadin.addon.calendar.event.CalendarEvent) */ + @Override public void removeEvent(CalendarEvent event) { container.removeItem(event); } diff --git a/server/src/com/vaadin/ui/components/calendar/event/BasicEvent.java b/server/src/com/vaadin/ui/components/calendar/event/BasicEvent.java index ab342dfabf..3f14145f0c 100644 --- a/server/src/com/vaadin/ui/components/calendar/event/BasicEvent.java +++ b/server/src/com/vaadin/ui/components/calendar/event/BasicEvent.java @@ -91,6 +91,7 @@ public class BasicEvent implements EditableCalendarEvent, EventChangeNotifier { * * @see com.vaadin.addon.calendar.event.CalendarEvent#getCaption() */ + @Override public String getCaption() { return caption; } @@ -100,6 +101,7 @@ public class BasicEvent implements EditableCalendarEvent, EventChangeNotifier { * * @see com.vaadin.addon.calendar.event.CalendarEvent#getDescription() */ + @Override public String getDescription() { return description; } @@ -109,6 +111,7 @@ public class BasicEvent implements EditableCalendarEvent, EventChangeNotifier { * * @see com.vaadin.addon.calendar.event.CalendarEvent#getEnd() */ + @Override public Date getEnd() { return end; } @@ -118,6 +121,7 @@ public class BasicEvent implements EditableCalendarEvent, EventChangeNotifier { * * @see com.vaadin.addon.calendar.event.CalendarEvent#getStart() */ + @Override public Date getStart() { return start; } @@ -127,6 +131,7 @@ public class BasicEvent implements EditableCalendarEvent, EventChangeNotifier { * * @see com.vaadin.addon.calendar.event.CalendarEvent#getStyleName() */ + @Override public String getStyleName() { return styleName; } @@ -136,6 +141,7 @@ public class BasicEvent implements EditableCalendarEvent, EventChangeNotifier { * * @see com.vaadin.addon.calendar.event.CalendarEvent#isAllDay() */ + @Override public boolean isAllDay() { return isAllDay; } @@ -147,6 +153,7 @@ public class BasicEvent implements EditableCalendarEvent, EventChangeNotifier { * com.vaadin.addon.calendar.event.CalendarEventEditor#setCaption(java.lang * .String) */ + @Override public void setCaption(String caption) { this.caption = caption; fireEventChange(); @@ -159,6 +166,7 @@ public class BasicEvent implements EditableCalendarEvent, EventChangeNotifier { * com.vaadin.addon.calendar.event.CalendarEventEditor#setDescription(java * .lang.String) */ + @Override public void setDescription(String description) { this.description = description; fireEventChange(); @@ -171,6 +179,7 @@ public class BasicEvent implements EditableCalendarEvent, EventChangeNotifier { * com.vaadin.addon.calendar.event.CalendarEventEditor#setEnd(java.util. * Date) */ + @Override public void setEnd(Date end) { this.end = end; fireEventChange(); @@ -183,6 +192,7 @@ public class BasicEvent implements EditableCalendarEvent, EventChangeNotifier { * com.vaadin.addon.calendar.event.CalendarEventEditor#setStart(java.util * .Date) */ + @Override public void setStart(Date start) { this.start = start; fireEventChange(); @@ -195,6 +205,7 @@ public class BasicEvent implements EditableCalendarEvent, EventChangeNotifier { * com.vaadin.addon.calendar.event.CalendarEventEditor#setStyleName(java * .lang.String) */ + @Override public void setStyleName(String styleName) { this.styleName = styleName; fireEventChange(); @@ -206,6 +217,7 @@ public class BasicEvent implements EditableCalendarEvent, EventChangeNotifier { * @see * com.vaadin.addon.calendar.event.CalendarEventEditor#setAllDay(boolean) */ + @Override public void setAllDay(boolean isAllDay) { this.isAllDay = isAllDay; fireEventChange(); @@ -220,6 +232,7 @@ public class BasicEvent implements EditableCalendarEvent, EventChangeNotifier { * (com.vaadin.addon.calendar.ui.CalendarComponentEvents.EventChangeListener * ) */ + @Override public void addEventChangeListener(EventChangeListener listener) { listeners.add(listener); } @@ -233,6 +246,7 @@ public class BasicEvent implements EditableCalendarEvent, EventChangeNotifier { * (com.vaadin.addon.calendar.ui.CalendarComponentEvents.EventChangeListener * ) */ + @Override public void removeEventChangeListener(EventChangeListener listener) { listeners.remove(listener); } diff --git a/server/src/com/vaadin/ui/components/calendar/event/BasicEventProvider.java b/server/src/com/vaadin/ui/components/calendar/event/BasicEventProvider.java index 0314652245..b2b74a5e52 100644 --- a/server/src/com/vaadin/ui/components/calendar/event/BasicEventProvider.java +++ b/server/src/com/vaadin/ui/components/calendar/event/BasicEventProvider.java @@ -56,6 +56,7 @@ public class BasicEventProvider implements CalendarEditableEventProvider, * com.vaadin.addon.calendar.event.CalendarEventProvider#getEvents(java. * util.Date, java.util.Date) */ + @Override public List getEvents(Date startDate, Date endDate) { ArrayList activeEvents = new ArrayList(); @@ -98,6 +99,7 @@ public class BasicEventProvider implements CalendarEditableEventProvider, * (com.vaadin.addon.calendar.ui.CalendarComponentEvents.EventSetChangeListener * ) */ + @Override public void addEventSetChangeListener(EventSetChangeListener listener) { listeners.add(listener); @@ -112,6 +114,7 @@ public class BasicEventProvider implements CalendarEditableEventProvider, * (com.vaadin.addon.calendar.ui.CalendarComponentEvents.EventSetChangeListener * ) */ + @Override public void removeEventSetChangeListener(EventSetChangeListener listener) { listeners.remove(listener); } @@ -136,6 +139,7 @@ public class BasicEventProvider implements CalendarEditableEventProvider, * #eventChange * (com.vaadin.addon.calendar.ui.CalendarComponentEvents.EventSetChange) */ + @Override public void eventChange(EventChangeEvent changeEvent) { // naive implementation fireEventSetChange(); @@ -148,6 +152,7 @@ public class BasicEventProvider implements CalendarEditableEventProvider, * com.vaadin.addon.calendar.event.CalendarEditableEventProvider#addEvent * (com.vaadin.addon.calendar.event.CalendarEvent) */ + @Override public void addEvent(CalendarEvent event) { eventList.add(event); if (event instanceof BasicEvent) { @@ -163,6 +168,7 @@ public class BasicEventProvider implements CalendarEditableEventProvider, * com.vaadin.addon.calendar.event.CalendarEditableEventProvider#removeEvent * (com.vaadin.addon.calendar.event.CalendarEvent) */ + @Override public void removeEvent(CalendarEvent event) { eventList.remove(event); if (event instanceof BasicEvent) { diff --git a/server/src/com/vaadin/ui/components/calendar/handler/BasicBackwardHandler.java b/server/src/com/vaadin/ui/components/calendar/handler/BasicBackwardHandler.java index fc2bfd6df4..65e9c94dec 100644 --- a/server/src/com/vaadin/ui/components/calendar/handler/BasicBackwardHandler.java +++ b/server/src/com/vaadin/ui/components/calendar/handler/BasicBackwardHandler.java @@ -39,6 +39,7 @@ public class BasicBackwardHandler implements BackwardHandler { * backward * (com.vaadin.addon.calendar.ui.CalendarComponentEvents.BackwardEvent) */ + @Override public void backward(BackwardEvent event) { Date start = event.getComponent().getStartDate(); Date end = event.getComponent().getEndDate(); diff --git a/server/src/com/vaadin/ui/components/calendar/handler/BasicDateClickHandler.java b/server/src/com/vaadin/ui/components/calendar/handler/BasicDateClickHandler.java index c91a238b86..ac2470e008 100644 --- a/server/src/com/vaadin/ui/components/calendar/handler/BasicDateClickHandler.java +++ b/server/src/com/vaadin/ui/components/calendar/handler/BasicDateClickHandler.java @@ -39,6 +39,7 @@ public class BasicDateClickHandler implements DateClickHandler { * #dateClick * (com.vaadin.addon.calendar.ui.CalendarComponentEvents.DateClickEvent) */ + @Override public void dateClick(DateClickEvent event) { Date clickedDate = event.getDate(); diff --git a/server/src/com/vaadin/ui/components/calendar/handler/BasicEventMoveHandler.java b/server/src/com/vaadin/ui/components/calendar/handler/BasicEventMoveHandler.java index 139837f339..ae4c5fcc12 100644 --- a/server/src/com/vaadin/ui/components/calendar/handler/BasicEventMoveHandler.java +++ b/server/src/com/vaadin/ui/components/calendar/handler/BasicEventMoveHandler.java @@ -39,6 +39,7 @@ public class BasicEventMoveHandler implements EventMoveHandler { * #eventMove * (com.vaadin.addon.calendar.ui.CalendarComponentEvents.MoveEvent) */ + @Override public void eventMove(MoveEvent event) { CalendarEvent calendarEvent = event.getCalendarEvent(); diff --git a/server/src/com/vaadin/ui/components/calendar/handler/BasicEventResizeHandler.java b/server/src/com/vaadin/ui/components/calendar/handler/BasicEventResizeHandler.java index c052d0d77b..ee7fc27360 100644 --- a/server/src/com/vaadin/ui/components/calendar/handler/BasicEventResizeHandler.java +++ b/server/src/com/vaadin/ui/components/calendar/handler/BasicEventResizeHandler.java @@ -39,6 +39,7 @@ public class BasicEventResizeHandler implements EventResizeHandler { * #eventResize * (com.vaadin.addon.calendar.ui.CalendarComponentEvents.EventResize) */ + @Override public void eventResize(EventResize event) { CalendarEvent calendarEvent = event.getCalendarEvent(); diff --git a/server/src/com/vaadin/ui/components/calendar/handler/BasicForwardHandler.java b/server/src/com/vaadin/ui/components/calendar/handler/BasicForwardHandler.java index a5307ffd5c..e36c9e5756 100644 --- a/server/src/com/vaadin/ui/components/calendar/handler/BasicForwardHandler.java +++ b/server/src/com/vaadin/ui/components/calendar/handler/BasicForwardHandler.java @@ -38,6 +38,7 @@ public class BasicForwardHandler implements ForwardHandler { * com.vaadin.addon.calendar.ui.CalendarComponentEvents.ForwardHandler#forward * (com.vaadin.addon.calendar.ui.CalendarComponentEvents.ForwardEvent) */ + @Override public void forward(ForwardEvent event) { Date start = event.getComponent().getStartDate(); Date end = event.getComponent().getEndDate(); diff --git a/server/src/com/vaadin/ui/components/calendar/handler/BasicWeekClickHandler.java b/server/src/com/vaadin/ui/components/calendar/handler/BasicWeekClickHandler.java index 49efe49e48..846fd7dd53 100644 --- a/server/src/com/vaadin/ui/components/calendar/handler/BasicWeekClickHandler.java +++ b/server/src/com/vaadin/ui/components/calendar/handler/BasicWeekClickHandler.java @@ -40,6 +40,7 @@ public class BasicWeekClickHandler implements WeekClickHandler { * #weekClick * (com.vaadin.addon.calendar.ui.CalendarComponentEvents.WeekClick) */ + @Override public void weekClick(WeekClick event) { int week = event.getWeek(); int year = event.getYear(); diff --git a/server/src/com/vaadin/ui/components/colorpicker/ColorPickerGrid.java b/server/src/com/vaadin/ui/components/colorpicker/ColorPickerGrid.java index 9e9855afdd..9123245033 100644 --- a/server/src/com/vaadin/ui/components/colorpicker/ColorPickerGrid.java +++ b/server/src/com/vaadin/ui/components/colorpicker/ColorPickerGrid.java @@ -187,6 +187,7 @@ public class ColorPickerGrid extends AbstractComponent implements ColorSelector * @param listener * The color change listener */ + @Override public void addColorChangeListener(ColorChangeListener listener) { addListener(ColorChangeEvent.class, listener, COLOR_CHANGE_METHOD); } @@ -202,6 +203,7 @@ public class ColorPickerGrid extends AbstractComponent implements ColorSelector * @param listener * The listener */ + @Override public void removeColorChangeListener(ColorChangeListener listener) { removeListener(ColorChangeEvent.class, listener); } diff --git a/server/src/com/vaadin/ui/components/colorpicker/ColorPickerHistory.java b/server/src/com/vaadin/ui/components/colorpicker/ColorPickerHistory.java index e6edbcf40e..2902585f56 100644 --- a/server/src/com/vaadin/ui/components/colorpicker/ColorPickerHistory.java +++ b/server/src/com/vaadin/ui/components/colorpicker/ColorPickerHistory.java @@ -194,6 +194,7 @@ public class ColorPickerHistory extends CustomComponent implements * @param listener * The listener */ + @Override public void addColorChangeListener(ColorChangeListener listener) { addListener(ColorChangeEvent.class, listener, COLOR_CHANGE_METHOD); } @@ -204,6 +205,7 @@ public class ColorPickerHistory extends CustomComponent implements * @param listener * The listener */ + @Override public void removeColorChangeListener(ColorChangeListener listener) { removeListener(ColorChangeEvent.class, listener); } diff --git a/server/src/com/vaadin/ui/components/colorpicker/ColorPickerPopup.java b/server/src/com/vaadin/ui/components/colorpicker/ColorPickerPopup.java index c06ae9f6ff..fee52d1a24 100644 --- a/server/src/com/vaadin/ui/components/colorpicker/ColorPickerPopup.java +++ b/server/src/com/vaadin/ui/components/colorpicker/ColorPickerPopup.java @@ -283,6 +283,7 @@ public class ColorPickerPopup extends Window implements ClickListener, } redSlider.addValueChangeListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { double red = (Double) event.getProperty().getValue(); if (!updatingColors) { @@ -303,6 +304,7 @@ public class ColorPickerPopup extends Window implements ClickListener, } greenSlider.addValueChangeListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { double green = (Double) event.getProperty().getValue(); if (!updatingColors) { @@ -322,6 +324,7 @@ public class ColorPickerPopup extends Window implements ClickListener, } blueSlider.addValueChangeListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { double blue = (Double) event.getProperty().getValue(); if (!updatingColors) { @@ -380,6 +383,7 @@ public class ColorPickerPopup extends Window implements ClickListener, hueSlider.setWidth("220px"); hueSlider.setImmediate(true); hueSlider.addValueChangeListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if (!updatingColors) { float hue = (Float.parseFloat(event.getProperty() @@ -417,6 +421,7 @@ public class ColorPickerPopup extends Window implements ClickListener, saturationSlider.setWidth("220px"); saturationSlider.setImmediate(true); saturationSlider.addValueChangeListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if (!updatingColors) { float hue = (Float.parseFloat(hueSlider.getValue() @@ -444,6 +449,7 @@ public class ColorPickerPopup extends Window implements ClickListener, valueSlider.setWidth("220px"); valueSlider.setImmediate(true); valueSlider.addValueChangeListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if (!updatingColors) { float hue = (Float.parseFloat(hueSlider.getValue() @@ -754,6 +760,7 @@ public class ColorPickerPopup extends Window implements ClickListener, /** HSV color converter */ Coordinates2Color HSVConverter = new Coordinates2Color() { + @Override public int[] calculate(Color color) { float[] hsv = color.getHSV(); @@ -769,6 +776,7 @@ public class ColorPickerPopup extends Window implements ClickListener, return new int[] { x, y }; } + @Override public Color calculate(int x, int y) { float saturation = 1f - (y / 220.0f); float value = (x / 220.0f); diff --git a/server/tests/src/com/vaadin/data/util/AbstractContainerTest.java b/server/tests/src/com/vaadin/data/util/AbstractContainerTest.java index 3d9909c42c..64db805623 100644 --- a/server/tests/src/com/vaadin/data/util/AbstractContainerTest.java +++ b/server/tests/src/com/vaadin/data/util/AbstractContainerTest.java @@ -324,7 +324,6 @@ public abstract class AbstractContainerTest extends TestCase { "com.vaadin.terminal.gwt.client.Focusable", "com.vaadin.data.Buffered", isFilteredOutItemNull(), 20); - // Filter by "contains da" (reversed as ad here) container.removeAllContainerFilters(); diff --git a/server/tests/src/com/vaadin/data/util/ReflectToolsGetSuperField.java b/server/tests/src/com/vaadin/data/util/ReflectToolsGetSuperField.java index efba6085ac..dc828689a8 100644 --- a/server/tests/src/com/vaadin/data/util/ReflectToolsGetSuperField.java +++ b/server/tests/src/com/vaadin/data/util/ReflectToolsGetSuperField.java @@ -19,15 +19,16 @@ public class ReflectToolsGetSuperField { class MySubClass extends MyClass { // no fields here } - + PropertysetItem item = new PropertysetItem(); - item.addItemProperty("testProperty", new ObjectProperty("Value of testProperty")); - + item.addItemProperty("testProperty", new ObjectProperty( + "Value of testProperty")); + MySubClass form = new MySubClass(); - + FieldGroup binder = new FieldGroup(item); binder.bindMemberFields(form); - + assertTrue("Value of testProperty".equals(form.test.getValue())); } diff --git a/server/tests/src/com/vaadin/tests/data/validator/TestStringLengthValidator.java b/server/tests/src/com/vaadin/tests/data/validator/TestStringLengthValidator.java index 032b8b6d14..6b4b2b0d51 100644 --- a/server/tests/src/com/vaadin/tests/data/validator/TestStringLengthValidator.java +++ b/server/tests/src/com/vaadin/tests/data/validator/TestStringLengthValidator.java @@ -45,7 +45,7 @@ public class TestStringLengthValidator extends TestCase { validatorMinValue .isValid("This is a really long string to test that no upper bound exists")); } - + public void testNoLowerBound() { assertTrue("Didn't accept short string", validatorMaxValue.isValid("")); assertTrue("Didn't accept short string", validatorMaxValue.isValid("1")); diff --git a/server/tests/src/com/vaadin/tests/server/component/abstractfield/RemoveListenersOnDetach.java b/server/tests/src/com/vaadin/tests/server/component/abstractfield/RemoveListenersOnDetach.java index 6dfd50c44c..731387d203 100644 --- a/server/tests/src/com/vaadin/tests/server/component/abstractfield/RemoveListenersOnDetach.java +++ b/server/tests/src/com/vaadin/tests/server/component/abstractfield/RemoveListenersOnDetach.java @@ -19,7 +19,8 @@ public class RemoveListenersOnDetach { int numReadOnlyChanges = 0; AbstractField field = new AbstractField() { - final private VaadinSession application = new AlwaysLockedVaadinSession(null); + final private VaadinSession application = new AlwaysLockedVaadinSession( + null); private UI uI = new UI() { @Override diff --git a/server/tests/src/com/vaadin/tests/server/component/fieldgroup/CaseInsensitiveBinding.java b/server/tests/src/com/vaadin/tests/server/component/fieldgroup/CaseInsensitiveBinding.java index 3f4368c295..e571576990 100644 --- a/server/tests/src/com/vaadin/tests/server/component/fieldgroup/CaseInsensitiveBinding.java +++ b/server/tests/src/com/vaadin/tests/server/component/fieldgroup/CaseInsensitiveBinding.java @@ -68,7 +68,8 @@ public class CaseInsensitiveBinding { TextField firstName = new TextField("First name"); public MyForm() { - // should bind to the firstName property, not first_name property + // should bind to the firstName property, not first_name + // property addComponent(firstName); } } diff --git a/server/tests/src/com/vaadin/tests/server/component/tree/TreeTest.java b/server/tests/src/com/vaadin/tests/server/component/tree/TreeTest.java index a0d57c4d59..3c9fc4c0cd 100644 --- a/server/tests/src/com/vaadin/tests/server/component/tree/TreeTest.java +++ b/server/tests/src/com/vaadin/tests/server/component/tree/TreeTest.java @@ -88,8 +88,7 @@ public class TreeTest { tree.expandItem("parent"); tree.expandItem("child"); - Field expandedField = tree.getClass() - .getDeclaredField("expanded"); + Field expandedField = tree.getClass().getDeclaredField("expanded"); Field expandedItemIdField = tree.getClass().getDeclaredField( "expandedItemId"); diff --git a/server/tests/src/com/vaadin/util/ReflectToolsGetFieldValueByType.java b/server/tests/src/com/vaadin/util/ReflectToolsGetFieldValueByType.java index 718a76804f..540ffb852d 100644 --- a/server/tests/src/com/vaadin/util/ReflectToolsGetFieldValueByType.java +++ b/server/tests/src/com/vaadin/util/ReflectToolsGetFieldValueByType.java @@ -54,8 +54,8 @@ public class ReflectToolsGetFieldValueByType { memberField = myInstance.getClass().getField("field"); // Should throw an IllegalArgument exception as the mySubClass class // doesn't have an Integer field. - ReflectTools.getJavaFieldValue(myInstance, - memberField, Integer.class); + ReflectTools.getJavaFieldValue(myInstance, memberField, + Integer.class); fail("Previous method call should have thrown an exception"); } catch (Exception e) { } diff --git a/server/tests/src/com/vaadin/util/ReflectToolsGetPrimitiveFieldValue.java b/server/tests/src/com/vaadin/util/ReflectToolsGetPrimitiveFieldValue.java index df192c51f2..1e1fafe31c 100644 --- a/server/tests/src/com/vaadin/util/ReflectToolsGetPrimitiveFieldValue.java +++ b/server/tests/src/com/vaadin/util/ReflectToolsGetPrimitiveFieldValue.java @@ -17,8 +17,8 @@ public class ReflectToolsGetPrimitiveFieldValue { Object fieldValue = new Boolean(false); try { memberField = myInstance.getClass().getField("field"); - fieldValue = ReflectTools.getJavaFieldValue(myInstance, - memberField); + fieldValue = ReflectTools + .getJavaFieldValue(myInstance, memberField); } catch (Exception e) { } assertFalse(fieldValue instanceof Boolean); diff --git a/theme-compiler/src/com/vaadin/sass/SassCompiler.java b/theme-compiler/src/com/vaadin/sass/SassCompiler.java index 48b2d24c46..6a83425ca1 100644 --- a/theme-compiler/src/com/vaadin/sass/SassCompiler.java +++ b/theme-compiler/src/com/vaadin/sass/SassCompiler.java @@ -17,7 +17,6 @@ package com.vaadin.sass; import java.io.File; -import java.io.FileNotFoundException; import java.io.FileWriter; import java.io.IOException; @@ -49,12 +48,12 @@ public class SassCompiler { // ScssStylesheet.setStylesheetResolvers(new VaadinResolver()); ScssStylesheet scss = ScssStylesheet.get(input); - if(scss == null){ + if (scss == null) { System.err.println("The scss file " + input + " could not be found."); return; } - + scss.compile(); if (output == null) { System.out.println(scss.toString()); diff --git a/theme-compiler/tests/src/com/vaadin/sass/testcases/scss/AbstractDirectoryScanningSassTests.java b/theme-compiler/tests/src/com/vaadin/sass/testcases/scss/AbstractDirectoryScanningSassTests.java index 47657f805c..d60756a2c9 100644 --- a/theme-compiler/tests/src/com/vaadin/sass/testcases/scss/AbstractDirectoryScanningSassTests.java +++ b/theme-compiler/tests/src/com/vaadin/sass/testcases/scss/AbstractDirectoryScanningSassTests.java @@ -33,7 +33,7 @@ import org.junit.Assert; import com.vaadin.sass.internal.ScssStylesheet; import com.vaadin.sass.testcases.scss.SassTestRunner.FactoryTest; -public abstract class AbstractDirectoryScanningSassTests { +public abstract class AbstractDirectoryScanningSassTests { public static Collection getScssResourceNames(URL directoryUrl) throws URISyntaxException { diff --git a/uitest/src/com/vaadin/launcher/DevelopmentServerLauncher.java b/uitest/src/com/vaadin/launcher/DevelopmentServerLauncher.java index 444a70348c..ad372bd5bc 100644 --- a/uitest/src/com/vaadin/launcher/DevelopmentServerLauncher.java +++ b/uitest/src/com/vaadin/launcher/DevelopmentServerLauncher.java @@ -58,8 +58,9 @@ public class DevelopmentServerLauncher { // Pass-through of arguments for Jetty final Map serverArgs = parseArguments(args); - if (!serverArgs.containsKey("shutdownPort")) + if (!serverArgs.containsKey("shutdownPort")) { serverArgs.put("shutdownPort", "8889"); + } int port = Integer.parseInt(serverArgs.get("shutdownPort")); if (port > 0) { diff --git a/uitest/src/com/vaadin/tests/components/button/ButtonWithShortcutNotRendered.java b/uitest/src/com/vaadin/tests/components/button/ButtonWithShortcutNotRendered.java index b01e0a85d0..f866928054 100644 --- a/uitest/src/com/vaadin/tests/components/button/ButtonWithShortcutNotRendered.java +++ b/uitest/src/com/vaadin/tests/components/button/ButtonWithShortcutNotRendered.java @@ -83,6 +83,7 @@ public class ButtonWithShortcutNotRendered extends AbstractTestUI { addValueChangeListener(new Property.ValueChangeListener() { + @Override public void valueChange( com.vaadin.data.Property.ValueChangeEvent event) { final Item item = getItem(getValue()); @@ -162,6 +163,7 @@ public class ButtonWithShortcutNotRendered extends AbstractTestUI { } } + @Override public void buttonClick(ClickEvent event) { // NOP } diff --git a/uitest/src/com/vaadin/tests/components/calendar/BeanItemContainerTestUI.java b/uitest/src/com/vaadin/tests/components/calendar/BeanItemContainerTestUI.java index 4e0b963534..83fc4a03cb 100644 --- a/uitest/src/com/vaadin/tests/components/calendar/BeanItemContainerTestUI.java +++ b/uitest/src/com/vaadin/tests/components/calendar/BeanItemContainerTestUI.java @@ -85,6 +85,7 @@ public class BeanItemContainerTestUI extends UI { private final Action EDIT = new Action("Edit event"); private final Action REMOVE = new Action("Remove event"); + @Override public void handleAction(Action action, Object sender, Object target) { if (action == ADD) { BasicEvent event = new BasicEvent(); @@ -98,6 +99,7 @@ public class BeanItemContainerTestUI extends UI { } } + @Override public Action[] getActions(Object target, Object sender) { if (target == null) { return new Action[] { ADD }; @@ -153,6 +155,7 @@ public class BeanItemContainerTestUI extends UI { ContainerEventProvider.ENDDATE_PROPERTY))); modal.setContent(formLayout); modal.addCloseListener(new Window.CloseListener() { + @Override public void windowClose(CloseEvent e) { // Commit changes to bean try { diff --git a/uitest/src/com/vaadin/tests/components/calendar/CalendarActionsUI.java b/uitest/src/com/vaadin/tests/components/calendar/CalendarActionsUI.java index f5c2d9da7e..ee898e0790 100644 --- a/uitest/src/com/vaadin/tests/components/calendar/CalendarActionsUI.java +++ b/uitest/src/com/vaadin/tests/components/calendar/CalendarActionsUI.java @@ -57,6 +57,7 @@ public class CalendarActionsUI extends UI { * com.vaadin.event.Action.Handler#handleAction(com.vaadin.event * .Action, java.lang.Object, java.lang.Object) */ + @Override public void handleAction(Action action, Object sender, Object target) { Date date = (Date) target; if (action == NEW_EVENT) { @@ -72,6 +73,7 @@ public class CalendarActionsUI extends UI { * @see com.vaadin.event.Action.Handler#getActions(java.lang.Object, * java.lang.Object) */ + @Override public Action[] getActions(Object target, Object sender) { CalendarDateRange date = (CalendarDateRange) target; @@ -96,6 +98,7 @@ public class CalendarActionsUI extends UI { content.addComponent(new Button("Set week view", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { calendar.setEndDate(new Date(100, 1, 7)); } diff --git a/uitest/src/com/vaadin/tests/components/calendar/CalendarTest.java b/uitest/src/com/vaadin/tests/components/calendar/CalendarTest.java index 530e47f1e0..a1bcca2e4e 100644 --- a/uitest/src/com/vaadin/tests/components/calendar/CalendarTest.java +++ b/uitest/src/com/vaadin/tests/components/calendar/CalendarTest.java @@ -260,9 +260,9 @@ public class CalendarTest extends UI { private void addInitialEvents() { Date originalDate = calendar.getTime(); Date today = getToday(); - + // Add a event that last a whole week - + Date start = resolveFirstDateOfWeek(today, calendar); Date end = resolveLastDateOfWeek(today, calendar); CalendarTestEvent event = getNewEvent("Whole week event", start, end); @@ -388,6 +388,7 @@ public class CalendarTest extends UI { private static final long serialVersionUID = 1L; + @Override public void buttonClick(ClickEvent event) { switchToMonthView(); } @@ -397,6 +398,7 @@ public class CalendarTest extends UI { private static final long serialVersionUID = 1L; + @Override public void buttonClick(ClickEvent event) { // simulate week click WeekClickHandler handler = (WeekClickHandler) calendarComponent @@ -410,6 +412,7 @@ public class CalendarTest extends UI { nextButton = new Button("Next", new Button.ClickListener() { private static final long serialVersionUID = 1L; + @Override public void buttonClick(ClickEvent event) { handleNextButtonClick(); } @@ -418,6 +421,7 @@ public class CalendarTest extends UI { prevButton = new Button("Prev", new Button.ClickListener() { private static final long serialVersionUID = 1L; + @Override public void buttonClick(ClickEvent event) { handlePreviousButtonClick(); } @@ -488,6 +492,7 @@ public class CalendarTest extends UI { private static final long serialVersionUID = -8307244759142541067L; + @Override public void buttonClick(ClickEvent event) { Date start = getToday(); start.setHours(0); @@ -512,6 +517,7 @@ public class CalendarTest extends UI { private static final long serialVersionUID = -7104996493482558021L; + @Override public void valueChange(ValueChangeEvent event) { Object value = event.getProperty().getValue(); if (value instanceof Boolean && Boolean.TRUE.equals(value)) { @@ -675,6 +681,7 @@ public class CalendarTest extends UI { calendarComponent.setHandler(new EventClickHandler() { + @Override public void eventClick(EventClick event) { showEventPopup(event.getCalendarEvent(), false); } @@ -693,6 +700,7 @@ public class CalendarTest extends UI { calendarComponent.setHandler(new RangeSelectHandler() { + @Override public void rangeSelect(RangeSelectEvent event) { handleRangeSelect(event); } @@ -725,6 +733,7 @@ public class CalendarTest extends UI { private static final long serialVersionUID = 1L; + @Override public void valueChange(ValueChangeEvent event) { updateCalendarTimeZone(event.getProperty().getValue()); @@ -752,6 +761,7 @@ public class CalendarTest extends UI { private static final long serialVersionUID = 1L; + @Override public void valueChange(ValueChangeEvent event) { updateCalendarFormat(event.getProperty().getValue()); } @@ -779,6 +789,7 @@ public class CalendarTest extends UI { private static final long serialVersionUID = 1L; + @Override public void valueChange(ValueChangeEvent event) { updateCalendarLocale((Locale) event.getProperty().getValue()); } @@ -933,6 +944,7 @@ public class CalendarTest extends UI { private static final long serialVersionUID = 1L; + @Override public void buttonClick(ClickEvent event) { try { commitCalendarEvent(); @@ -945,6 +957,7 @@ public class CalendarTest extends UI { private static final long serialVersionUID = 1L; + @Override public void buttonClick(ClickEvent event) { discardCalendarEvent(); } @@ -953,6 +966,7 @@ public class CalendarTest extends UI { private static final long serialVersionUID = 1L; + @Override public void buttonClick(ClickEvent event) { deleteCalendarEvent(); } @@ -961,6 +975,7 @@ public class CalendarTest extends UI { private static final long serialVersionUID = 1L; + @Override public void windowClose(Window.CloseEvent e) { discardCalendarEvent(); } diff --git a/uitest/src/com/vaadin/tests/components/calendar/NotificationTestUI.java b/uitest/src/com/vaadin/tests/components/calendar/NotificationTestUI.java index 0bd327da18..6e5718a652 100644 --- a/uitest/src/com/vaadin/tests/components/calendar/NotificationTestUI.java +++ b/uitest/src/com/vaadin/tests/components/calendar/NotificationTestUI.java @@ -50,6 +50,7 @@ public class NotificationTestUI extends UI { events.add(e); } + @Override public List getEvents(Date startDate, Date endDate) { return events; } @@ -64,6 +65,7 @@ public class NotificationTestUI extends UI { setContent(content); final Button btn = new Button("Show working notification", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Notification .show("This will disappear when you move your mouse!"); @@ -76,6 +78,7 @@ public class NotificationTestUI extends UI { cal.setLocale(Locale.US); cal.setSizeFull(); cal.setHandler(new DateClickHandler() { + @Override public void dateClick(DateClickEvent event) { provider.addEvent(event.getDate()); Notification diff --git a/uitest/src/com/vaadin/tests/components/checkbox/CheckBoxRevertValueChange.java b/uitest/src/com/vaadin/tests/components/checkbox/CheckBoxRevertValueChange.java index 5b086fb935..cc26cf8845 100644 --- a/uitest/src/com/vaadin/tests/components/checkbox/CheckBoxRevertValueChange.java +++ b/uitest/src/com/vaadin/tests/components/checkbox/CheckBoxRevertValueChange.java @@ -29,6 +29,7 @@ public class CheckBoxRevertValueChange extends AbstractTestUIWithLog { final CheckBox alwaysUnchecked = new CheckBox("You may not check me"); alwaysUnchecked .addValueChangeListener(new Property.ValueChangeListener() { + @Override public void valueChange(Property.ValueChangeEvent event) { if (alwaysUnchecked.getValue()) { log("I said no checking!"); @@ -40,6 +41,7 @@ public class CheckBoxRevertValueChange extends AbstractTestUIWithLog { alwaysChecked.setValue(true); alwaysChecked .addValueChangeListener(new Property.ValueChangeListener() { + @Override public void valueChange(Property.ValueChangeEvent event) { if (!alwaysChecked.getValue()) { log("I said no unchecking!"); diff --git a/uitest/src/com/vaadin/tests/components/combobox/ComboBoxDuplicateCaption.java b/uitest/src/com/vaadin/tests/components/combobox/ComboBoxDuplicateCaption.java index 3c1e8a27d6..bd71850a89 100644 --- a/uitest/src/com/vaadin/tests/components/combobox/ComboBoxDuplicateCaption.java +++ b/uitest/src/com/vaadin/tests/components/combobox/ComboBoxDuplicateCaption.java @@ -38,6 +38,7 @@ public class ComboBoxDuplicateCaption extends TestBase { box.setImmediate(true); box.addValueChangeListener(new ValueChangeListener() { + @Override public void valueChange( com.vaadin.data.Property.ValueChangeEvent event) { Person p = (Person) event.getProperty().getValue(); diff --git a/uitest/src/com/vaadin/tests/components/combobox/ComboBoxSQLContainerFilteredValueChange.java b/uitest/src/com/vaadin/tests/components/combobox/ComboBoxSQLContainerFilteredValueChange.java index 23a75ae56e..75010f0ea9 100644 --- a/uitest/src/com/vaadin/tests/components/combobox/ComboBoxSQLContainerFilteredValueChange.java +++ b/uitest/src/com/vaadin/tests/components/combobox/ComboBoxSQLContainerFilteredValueChange.java @@ -53,6 +53,7 @@ public class ComboBoxSQLContainerFilteredValueChange extends TestBase { myCombo.setWidth("100.0%"); myCombo.setHeight("-1px"); myCombo.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { selectedLabel.setValue("Selected: " + event.getProperty().getValue()); @@ -72,6 +73,7 @@ public class ComboBoxSQLContainerFilteredValueChange extends TestBase { /** * (Re)creates the test table + * * @param connectionPool */ private void createTestTable(JDBCConnectionPool connectionPool) { @@ -97,6 +99,7 @@ public class ComboBoxSQLContainerFilteredValueChange extends TestBase { /** * Adds test data to the test table + * * @param connectionPool * @throws SQLException */ @@ -111,7 +114,7 @@ public class ComboBoxSQLContainerFilteredValueChange extends TestBase { statement.executeUpdate("INSERT INTO mytable VALUES(2, 'A1')"); statement.executeUpdate("INSERT INTO mytable VALUES(3, 'B0')"); statement.executeUpdate("INSERT INTO mytable VALUES(4, 'B1')"); - + statement.close(); conn.commit(); } catch (SQLException e) { diff --git a/uitest/src/com/vaadin/tests/components/orderedlayout/VerticalRelativeSizeWithoutExpand.java b/uitest/src/com/vaadin/tests/components/orderedlayout/VerticalRelativeSizeWithoutExpand.java index 86525da3ef..0ac9a008d2 100755 --- a/uitest/src/com/vaadin/tests/components/orderedlayout/VerticalRelativeSizeWithoutExpand.java +++ b/uitest/src/com/vaadin/tests/components/orderedlayout/VerticalRelativeSizeWithoutExpand.java @@ -1,4 +1,5 @@ package com.vaadin.tests.components.orderedlayout; + import com.vaadin.data.util.BeanItemContainer; import com.vaadin.server.VaadinRequest; import com.vaadin.ui.Panel; diff --git a/uitest/src/com/vaadin/tests/components/richtextarea/RichTextAreaEmptyString.java b/uitest/src/com/vaadin/tests/components/richtextarea/RichTextAreaEmptyString.java index 5eddf9dc6d..01dc10220f 100644 --- a/uitest/src/com/vaadin/tests/components/richtextarea/RichTextAreaEmptyString.java +++ b/uitest/src/com/vaadin/tests/components/richtextarea/RichTextAreaEmptyString.java @@ -29,6 +29,7 @@ public class RichTextAreaEmptyString extends TestBase { final Button b = new Button("get area value", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { l.setValue(area.getValue()); } diff --git a/uitest/src/com/vaadin/tests/components/richtextarea/RichTextAreaPreventsTextFieldAccess.java b/uitest/src/com/vaadin/tests/components/richtextarea/RichTextAreaPreventsTextFieldAccess.java index f4ad149dd1..c3433c3054 100644 --- a/uitest/src/com/vaadin/tests/components/richtextarea/RichTextAreaPreventsTextFieldAccess.java +++ b/uitest/src/com/vaadin/tests/components/richtextarea/RichTextAreaPreventsTextFieldAccess.java @@ -50,6 +50,7 @@ public class RichTextAreaPreventsTextFieldAccess extends TestBase { Button addWindowButton = new Button("Open RichTextArea-Dialog"); addWindowButton.addClickListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { getMainWindow().addWindow(subWindow); @@ -60,6 +61,7 @@ public class RichTextAreaPreventsTextFieldAccess extends TestBase { Button removeWindowButton = new Button("removeWindowButton"); removeWindowButton.addClickListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { getMainWindow().removeWindow(subWindow); @@ -70,6 +72,7 @@ public class RichTextAreaPreventsTextFieldAccess extends TestBase { Button focusButton = new Button("Set focus on TextField"); focusButton.addClickListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { testField.focus(); @@ -80,6 +83,7 @@ public class RichTextAreaPreventsTextFieldAccess extends TestBase { Button removeRTA = new Button("Remove RTA"); removeRTA.addClickListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { wLayout.removeComponent(rText); diff --git a/uitest/src/com/vaadin/tests/components/select/OptionGroupBaseSelects.java b/uitest/src/com/vaadin/tests/components/select/OptionGroupBaseSelects.java index f2dee69cbf..0df82688d1 100644 --- a/uitest/src/com/vaadin/tests/components/select/OptionGroupBaseSelects.java +++ b/uitest/src/com/vaadin/tests/components/select/OptionGroupBaseSelects.java @@ -29,6 +29,7 @@ public class OptionGroupBaseSelects extends ComponentTestCase CheckBox cb = new CheckBox("Switch Selects ReadOnly", false); cb.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { for (Iterator it = layout.getComponentIterator(); it .hasNext();) { @@ -42,6 +43,7 @@ public class OptionGroupBaseSelects extends ComponentTestCase CheckBox cb2 = new CheckBox("Switch Selects Enabled", true); cb2.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { for (Iterator it = layout.getComponentIterator(); it .hasNext();) { diff --git a/uitest/src/com/vaadin/tests/components/table/EmptyRowsWhenScrolling.java b/uitest/src/com/vaadin/tests/components/table/EmptyRowsWhenScrolling.java index c1ae9b4118..3bc0d3dd1f 100644 --- a/uitest/src/com/vaadin/tests/components/table/EmptyRowsWhenScrolling.java +++ b/uitest/src/com/vaadin/tests/components/table/EmptyRowsWhenScrolling.java @@ -93,6 +93,7 @@ public class EmptyRowsWhenScrolling extends UI { table.setVisibleColumns(new String[] { "image", "id", "col1", "col2", "col3", "col4" }); table.addGeneratedColumn("image", new ColumnGenerator() { + @Override public Object generateCell(Table source, Object itemId, Object columnId) { int imgNum = new Random().nextInt(5) + 1; @@ -112,6 +113,7 @@ public class EmptyRowsWhenScrolling extends UI { image.setWidth("50px"); image.setHeight("50px"); image.addClickListener(new com.vaadin.event.MouseEvents.ClickListener() { + @Override public void click( com.vaadin.event.MouseEvents.ClickEvent event) { Notification.show("Image clicked!"); @@ -123,6 +125,7 @@ public class EmptyRowsWhenScrolling extends UI { // Refresh table button getBtnRefreshTable().addClickListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.refreshRowCache(); } diff --git a/uitest/src/com/vaadin/tests/components/table/LargeSelectionCausesNPE.java b/uitest/src/com/vaadin/tests/components/table/LargeSelectionCausesNPE.java index fb782b8ded..b6ee62ea59 100644 --- a/uitest/src/com/vaadin/tests/components/table/LargeSelectionCausesNPE.java +++ b/uitest/src/com/vaadin/tests/components/table/LargeSelectionCausesNPE.java @@ -105,6 +105,7 @@ public class LargeSelectionCausesNPE extends TestBase { } Table.ValueChangeListener valueChangeListener = new Table.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { // in multiselect mode, a Set of itemIds is returned, // in singleselect mode the itemId is returned directly @@ -119,6 +120,7 @@ public class LargeSelectionCausesNPE extends TestBase { Button.ClickListener clickListener = new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Property nameProperty = table.getContainerProperty(0, NAME); if (("0").equals(nameLabel.getValue())) { @@ -148,6 +150,7 @@ public class LargeSelectionCausesNPE extends TestBase { ColumnGenerator columnGenerator = new ColumnGenerator() { + @Override public Object generateCell(Table source, Object itemId, Object columnId) { Label label = new Label(); diff --git a/uitest/src/com/vaadin/tests/components/table/TableColumnWidthsAndExpandRatios.java b/uitest/src/com/vaadin/tests/components/table/TableColumnWidthsAndExpandRatios.java index 747c99468f..b1ecb3fc10 100644 --- a/uitest/src/com/vaadin/tests/components/table/TableColumnWidthsAndExpandRatios.java +++ b/uitest/src/com/vaadin/tests/components/table/TableColumnWidthsAndExpandRatios.java @@ -38,10 +38,11 @@ public class TableColumnWidthsAndExpandRatios extends TestBase { return new NativeButton("Reset " + property + " width", new Button.ClickListener() { - public void buttonClick(ClickEvent event) { - table.setColumnWidth(property, -1); - } - }); + @Override + public void buttonClick(ClickEvent event) { + table.setColumnWidth(property, -1); + } + }); } @Override diff --git a/uitest/src/com/vaadin/tests/components/table/TableInSubWindowMemoryLeak.java b/uitest/src/com/vaadin/tests/components/table/TableInSubWindowMemoryLeak.java index dcaabf98d6..c0c8876fca 100644 --- a/uitest/src/com/vaadin/tests/components/table/TableInSubWindowMemoryLeak.java +++ b/uitest/src/com/vaadin/tests/components/table/TableInSubWindowMemoryLeak.java @@ -20,6 +20,7 @@ public class TableInSubWindowMemoryLeak extends TestBase { final Button openButton = new Button("open me"); openButton.addClickListener(new ClickListener() { + @Override public void buttonClick(final ClickEvent event) { final Window window = new Window("Simple Window"); window.setModal(true); @@ -29,6 +30,7 @@ public class TableInSubWindowMemoryLeak extends TestBase { window.setContent(table); UI.getCurrent().addWindow(window); window.addCloseListener(new CloseListener() { + @Override public void windowClose(final CloseEvent e) { window.setContent(new Label()); UI.getCurrent().removeWindow(window); @@ -40,6 +42,7 @@ public class TableInSubWindowMemoryLeak extends TestBase { final Button openButton2 = new Button("open me without Table"); openButton2.addClickListener(new ClickListener() { + @Override public void buttonClick(final ClickEvent event) { final Window window = new Window("Simple Window"); window.setModal(true); @@ -47,6 +50,7 @@ public class TableInSubWindowMemoryLeak extends TestBase { window.setWidth("200px"); UI.getCurrent().addWindow(window); window.addCloseListener(new CloseListener() { + @Override public void windowClose(final CloseEvent e) { UI.getCurrent().removeWindow(window); } diff --git a/uitest/src/com/vaadin/tests/components/table/TableRowScrolledBottom.java b/uitest/src/com/vaadin/tests/components/table/TableRowScrolledBottom.java index 9823fc1859..7d48dfa11e 100644 --- a/uitest/src/com/vaadin/tests/components/table/TableRowScrolledBottom.java +++ b/uitest/src/com/vaadin/tests/components/table/TableRowScrolledBottom.java @@ -5,7 +5,6 @@ import com.vaadin.tests.components.TestBase; import com.vaadin.ui.Button; import com.vaadin.ui.Label; import com.vaadin.ui.Table; -import com.vaadin.ui.VerticalLayout; public class TableRowScrolledBottom extends TestBase { diff --git a/uitest/src/com/vaadin/tests/components/table/TableWithBrokenGeneratorAndContainer.java b/uitest/src/com/vaadin/tests/components/table/TableWithBrokenGeneratorAndContainer.java index 9c5ce9dc0c..efa1b1bdab 100644 --- a/uitest/src/com/vaadin/tests/components/table/TableWithBrokenGeneratorAndContainer.java +++ b/uitest/src/com/vaadin/tests/components/table/TableWithBrokenGeneratorAndContainer.java @@ -78,6 +78,7 @@ public class TableWithBrokenGeneratorAndContainer extends TestBase { this.brokenInterval = brokenInterval; } + @Override public Object generateCell(Table source, Object itemId, Object columnId) { if (counter++ % brokenInterval == 0 && Boolean.TRUE.equals(brokenGenerator.getValue())) { @@ -97,6 +98,7 @@ public class TableWithBrokenGeneratorAndContainer extends TestBase { clearTableOnError.setImmediate(true); clearTableOnError.addValueChangeListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { Boolean value = clearTableOnError.getValue(); setErrorHandler(value != null ? value : false); @@ -110,6 +112,7 @@ public class TableWithBrokenGeneratorAndContainer extends TestBase { Button refreshTableCache = new Button("Refresh table cache", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.markAsDirty(); table.refreshRowCache(); diff --git a/uitest/src/com/vaadin/tests/components/table/ValueAfterClearingContainer.java b/uitest/src/com/vaadin/tests/components/table/ValueAfterClearingContainer.java index f378c146ea..b0622e748c 100644 --- a/uitest/src/com/vaadin/tests/components/table/ValueAfterClearingContainer.java +++ b/uitest/src/com/vaadin/tests/components/table/ValueAfterClearingContainer.java @@ -26,6 +26,7 @@ public class ValueAfterClearingContainer extends TestBase { table.setImmediate(true); table.addValueChangeListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { log.log("Value changed to " + event.getProperty().getValue()); } @@ -38,6 +39,7 @@ public class ValueAfterClearingContainer extends TestBase { multiselect.setId("multiselect"); multiselect.addValueChangeListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { Boolean value = multiselect.getValue(); table.setMultiSelect(value == null ? false : value); @@ -46,6 +48,7 @@ public class ValueAfterClearingContainer extends TestBase { addComponent(multiselect); Button addItemsButton = new Button("Add table items", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { if (!table.getItemIds().isEmpty()) { Notification @@ -65,6 +68,7 @@ public class ValueAfterClearingContainer extends TestBase { Button showValueButton = new Button("Show value", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { log.log("Table selection: " + table.getValue()); } @@ -74,6 +78,7 @@ public class ValueAfterClearingContainer extends TestBase { Button removeItemsFromTableButton = new Button( "Remove items from table", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.removeAllItems(); } @@ -83,6 +88,7 @@ public class ValueAfterClearingContainer extends TestBase { Button removeItemsFromContainerButton = new Button( "Remove items from container", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.getContainerDataSource().removeAllItems(); } @@ -92,6 +98,7 @@ public class ValueAfterClearingContainer extends TestBase { Button removeItemsFromContainerAndSanitizeButton = new Button( "Remove items from container and sanitize", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.getContainerDataSource().removeAllItems(); table.sanitizeSelection(); @@ -102,6 +109,7 @@ public class ValueAfterClearingContainer extends TestBase { addComponent(removeItemsFromContainerAndSanitizeButton); Button removeSelectedFromTableButton = new Button( "Remove selected item from table", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Object selection = table.getValue(); if (selection == null) { @@ -117,6 +125,7 @@ public class ValueAfterClearingContainer extends TestBase { Button removeSelectedFromContainer = new Button( "Remove selected item from container", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Object selection = table.getValue(); if (selection == null) { diff --git a/uitest/src/com/vaadin/tests/components/table/ViewPortCalculation.java b/uitest/src/com/vaadin/tests/components/table/ViewPortCalculation.java index 878dd0d3c4..de32ea1fc0 100644 --- a/uitest/src/com/vaadin/tests/components/table/ViewPortCalculation.java +++ b/uitest/src/com/vaadin/tests/components/table/ViewPortCalculation.java @@ -43,6 +43,7 @@ public class ViewPortCalculation extends TestBase { } table.setCellStyleGenerator(new CellStyleGenerator() { + @Override public String getStyle(Table source, Object itemId, Object propertyId) { if (itemId.equals(lastDoubleClickedItemId)) { @@ -53,6 +54,7 @@ public class ViewPortCalculation extends TestBase { }); table.addItemClickListener(new ItemClickListener() { + @Override public void itemClick(ItemClickEvent event) { if (event.isDoubleClick()) { lastDoubleClickedItemId = event.getItemId(); diff --git a/uitest/src/com/vaadin/tests/components/tabsheet/ExtraScrollbarsInTabSheet.java b/uitest/src/com/vaadin/tests/components/tabsheet/ExtraScrollbarsInTabSheet.java index 2917eccbfb..fffc766e7c 100755 --- a/uitest/src/com/vaadin/tests/components/tabsheet/ExtraScrollbarsInTabSheet.java +++ b/uitest/src/com/vaadin/tests/components/tabsheet/ExtraScrollbarsInTabSheet.java @@ -1,4 +1,5 @@ package com.vaadin.tests.components.tabsheet; + import com.vaadin.annotations.Theme; import com.vaadin.server.VaadinRequest; import com.vaadin.ui.HorizontalSplitPanel; diff --git a/uitest/src/com/vaadin/tests/components/tabsheet/HiddenTabSheetBrowserResize.java b/uitest/src/com/vaadin/tests/components/tabsheet/HiddenTabSheetBrowserResize.java index 0fdb579997..eac786d9b3 100644 --- a/uitest/src/com/vaadin/tests/components/tabsheet/HiddenTabSheetBrowserResize.java +++ b/uitest/src/com/vaadin/tests/components/tabsheet/HiddenTabSheetBrowserResize.java @@ -17,6 +17,7 @@ public class HiddenTabSheetBrowserResize extends TestBase { Button toggleButton = new Button("Toggle TabSheet", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { tabSheet.setVisible(!tabSheet.isVisible()); } diff --git a/uitest/src/com/vaadin/tests/components/textarea/ScrollCursor.java b/uitest/src/com/vaadin/tests/components/textarea/ScrollCursor.java index c95731d94f..154a30a64b 100644 --- a/uitest/src/com/vaadin/tests/components/textarea/ScrollCursor.java +++ b/uitest/src/com/vaadin/tests/components/textarea/ScrollCursor.java @@ -27,6 +27,7 @@ public class ScrollCursor extends TestBase { Button button = new Button("Scroll"); button.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { textArea.setCursorPosition(getPosition()); } @@ -34,6 +35,7 @@ public class ScrollCursor extends TestBase { Button wrap = new Button("Set wrap"); wrap.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { textArea.setWordwrap(false); } @@ -42,6 +44,7 @@ public class ScrollCursor extends TestBase { Button toBegin = new Button("To begin"); toBegin.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { position = 3; } @@ -50,6 +53,7 @@ public class ScrollCursor extends TestBase { Button toMiddle = new Button("To middle"); toMiddle.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { position = 130; } @@ -58,6 +62,7 @@ public class ScrollCursor extends TestBase { Button toEnd = new Button("To end"); toEnd.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { position = textArea.getValue().toString().length(); } diff --git a/uitest/src/com/vaadin/tests/components/textfield/TextFieldMaxLengthRemovedFromDOM.java b/uitest/src/com/vaadin/tests/components/textfield/TextFieldMaxLengthRemovedFromDOM.java index 28ff20c174..049b08d4e8 100644 --- a/uitest/src/com/vaadin/tests/components/textfield/TextFieldMaxLengthRemovedFromDOM.java +++ b/uitest/src/com/vaadin/tests/components/textfield/TextFieldMaxLengthRemovedFromDOM.java @@ -17,6 +17,7 @@ public class TextFieldMaxLengthRemovedFromDOM extends TestBase { tf.addFocusListener(new FieldEvents.FocusListener() { + @Override public void focus(FocusEvent event) { // Resetting Max length should not remove maxlength attribute tf.setMaxLength(11); diff --git a/uitest/src/com/vaadin/tests/components/treetable/TreeTableCacheOnPartialUpdates.java b/uitest/src/com/vaadin/tests/components/treetable/TreeTableCacheOnPartialUpdates.java index f792a32f8f..85a69702a4 100644 --- a/uitest/src/com/vaadin/tests/components/treetable/TreeTableCacheOnPartialUpdates.java +++ b/uitest/src/com/vaadin/tests/components/treetable/TreeTableCacheOnPartialUpdates.java @@ -90,6 +90,7 @@ public class TreeTableCacheOnPartialUpdates extends TestBase { } public class Col4ColumnGenerator implements ColumnGenerator { + @Override public Component generateCell(final com.vaadin.ui.Table source, final Object itemId, Object columnId) { TestBean tb = (TestBean) itemId; @@ -98,6 +99,7 @@ public class TreeTableCacheOnPartialUpdates extends TestBase { btnCol4.setId("cacheTestButtonToggle-" + tb.getCol1() + "-" + tb.getCol2()); btnCol4.addClickListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { treeTable.setCollapsed(itemId, !treeTable.isCollapsed(itemId)); diff --git a/uitest/src/com/vaadin/tests/components/treetable/TreeTableExtraScrollbar.java b/uitest/src/com/vaadin/tests/components/treetable/TreeTableExtraScrollbar.java index 4af0da158d..79c967914f 100644 --- a/uitest/src/com/vaadin/tests/components/treetable/TreeTableExtraScrollbar.java +++ b/uitest/src/com/vaadin/tests/components/treetable/TreeTableExtraScrollbar.java @@ -49,6 +49,7 @@ public class TreeTableExtraScrollbar extends TestBase { button.setId("button"); button.addClickListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.addItem(new TestObject("name 6-1", "value 6-1")); table.addItem(new TestObject("name 6-2", "value 6-2")); @@ -68,12 +69,14 @@ public class TreeTableExtraScrollbar extends TestBase { } private class EmptyColumnGenerator implements Table.ColumnGenerator { + @Override public Object generateCell(Table table, Object itemId, Object columnId) { return null; } } private class TypeColumnGenerator implements Table.ColumnGenerator { + @Override public Object generateCell(Table table, Object itemId, Object columnId) { if (itemId instanceof TestObject) { return new Label(((TestObject) itemId).getValue()); diff --git a/uitest/src/com/vaadin/tests/components/treetable/TreeTableExtraScrollbarWithChildren.java b/uitest/src/com/vaadin/tests/components/treetable/TreeTableExtraScrollbarWithChildren.java index cad33e242f..0dc98b2c2e 100644 --- a/uitest/src/com/vaadin/tests/components/treetable/TreeTableExtraScrollbarWithChildren.java +++ b/uitest/src/com/vaadin/tests/components/treetable/TreeTableExtraScrollbarWithChildren.java @@ -62,6 +62,7 @@ public class TreeTableExtraScrollbarWithChildren extends TestBase { button.setId("button"); button.addClickListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.setCollapsed(parent, !table.isCollapsed(parent)); Notification.show("collapsed: " + table.isCollapsed(parent)); @@ -73,6 +74,7 @@ public class TreeTableExtraScrollbarWithChildren extends TestBase { } private class HierarchyColumnGenerator implements Table.ColumnGenerator { + @Override public Object generateCell(Table table, Object itemId, Object columnId) { Label label = new Label("this should be mostly hidden"); label.setSizeUndefined(); @@ -81,6 +83,7 @@ public class TreeTableExtraScrollbarWithChildren extends TestBase { } private class TypeColumnGenerator implements Table.ColumnGenerator { + @Override public Object generateCell(Table table, Object itemId, Object columnId) { if (itemId instanceof TestObject) { return new Label(((TestObject) itemId).getValue()); diff --git a/uitest/src/com/vaadin/tests/components/treetable/TreeTableInternalError.java b/uitest/src/com/vaadin/tests/components/treetable/TreeTableInternalError.java index f6d7f11eb7..1b510f1ac5 100644 --- a/uitest/src/com/vaadin/tests/components/treetable/TreeTableInternalError.java +++ b/uitest/src/com/vaadin/tests/components/treetable/TreeTableInternalError.java @@ -30,6 +30,7 @@ public class TreeTableInternalError extends TestBase { Button button = new Button("Resize") { { addClickListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { t.setHeight("300px"); } @@ -64,12 +65,14 @@ public class TreeTableInternalError extends TestBase { } public class ButtonColumnGenerator implements ColumnGenerator { + @Override public Component generateCell(final com.vaadin.ui.Table source, final Object itemId, Object columnId) { String identifier = "Expand/Collapse"; Button btnCol = new NativeButton(identifier); btnCol.setId("cacheTestButtonToggle-" + itemId); btnCol.addClickListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { t.setCollapsed(itemId, !t.isCollapsed(itemId)); } diff --git a/uitest/src/com/vaadin/tests/components/uitest/BackButtonTest.java b/uitest/src/com/vaadin/tests/components/uitest/BackButtonTest.java index d5bac0d509..7e7a084eed 100644 --- a/uitest/src/com/vaadin/tests/components/uitest/BackButtonTest.java +++ b/uitest/src/com/vaadin/tests/components/uitest/BackButtonTest.java @@ -57,6 +57,7 @@ public class BackButtonTest extends AbstractTestUI { addComponent(l); Button b = new Button("Go to Page 2", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { l.setCaption("Data from Page 1 : " + value); getPage().setUriFragment("page2"); @@ -85,6 +86,7 @@ public class BackButtonTest extends AbstractTestUI { addComponent(f); f.addValueChangeListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { value = f.getValue(); p1.l.setCaption("Data from Page 2 : " + value); @@ -92,6 +94,7 @@ public class BackButtonTest extends AbstractTestUI { }); Button b = new Button("Go Back", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { getPage().setUriFragment("page1"); } diff --git a/uitest/src/com/vaadin/tests/components/upload/TestFileUploadSize.java b/uitest/src/com/vaadin/tests/components/upload/TestFileUploadSize.java index 32f5c93bfd..178f8f9393 100644 --- a/uitest/src/com/vaadin/tests/components/upload/TestFileUploadSize.java +++ b/uitest/src/com/vaadin/tests/components/upload/TestFileUploadSize.java @@ -28,6 +28,7 @@ public class TestFileUploadSize extends TestBase implements Receiver { Upload u = new Upload("Upload", new Upload.Receiver() { + @Override public OutputStream receiveUpload(String filename, String mimeType) { return baos; } @@ -35,12 +36,14 @@ public class TestFileUploadSize extends TestBase implements Receiver { u.setId("UPL"); u.addStartedListener(new Upload.StartedListener() { + @Override public void uploadStarted(StartedEvent event) { expectedSize.setValue(String.valueOf(event.getContentLength())); } }); u.addFinishedListener(new Upload.FinishedListener() { + @Override public void uploadFinished(FinishedEvent event) { label.setValue("Upload finished. Name: " + event.getFilename()); receivedSize.setValue(String.valueOf(baos.size())); @@ -62,6 +65,7 @@ public class TestFileUploadSize extends TestBase implements Receiver { addComponent(u); } + @Override public OutputStream receiveUpload(String filename, String MIMEType) { Notification.show("Receiving upload"); return new ByteArrayOutputStream(); diff --git a/uitest/src/com/vaadin/tests/components/window/LegacyWindowOpenTest.java b/uitest/src/com/vaadin/tests/components/window/LegacyWindowOpenTest.java index 175c3f6d8a..ad36e04d88 100644 --- a/uitest/src/com/vaadin/tests/components/window/LegacyWindowOpenTest.java +++ b/uitest/src/com/vaadin/tests/components/window/LegacyWindowOpenTest.java @@ -19,6 +19,7 @@ public class LegacyWindowOpenTest extends TestBase { addComponent(new Button("Window.open _blank always as popup", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { win.open(r, "_blank", true); } @@ -26,6 +27,7 @@ public class LegacyWindowOpenTest extends TestBase { addComponent(new Button("Window.open _blank NOT always as popup", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { win.open(r, "_blank", false); } @@ -33,6 +35,7 @@ public class LegacyWindowOpenTest extends TestBase { addComponent(new Button("Window.open _new always as popup", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { win.open(r, "_new", true); } @@ -40,6 +43,7 @@ public class LegacyWindowOpenTest extends TestBase { addComponent(new Button("Window.open _new NOT always as popup", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { win.open(r, "_new", false); } @@ -47,6 +51,7 @@ public class LegacyWindowOpenTest extends TestBase { addComponent(new Button( "Window execute Javascript window.open(www.google.com, _blank)", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { win.executeJavaScript("window.open(\"http://www.google.com\", \"_blank\");"); } @@ -54,6 +59,7 @@ public class LegacyWindowOpenTest extends TestBase { addComponent(new Button( "Window execute Javascript window.open(www.google.com, _blank, resizable=yes,menubar=yes,toolbar=yes,directories=yes,location=yes,scrollbars=yes,status=yes)", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { win.executeJavaScript("window.open(\"http://www.google.com\", \"_blank\", \"resizable=yes,menubar=yes,toolbar=yes,directories=yes,location=yes,scrollbars=yes,status=yes\");"); } diff --git a/uitest/src/com/vaadin/tests/components/window/PageOpenTest.java b/uitest/src/com/vaadin/tests/components/window/PageOpenTest.java index 2dbc24cb66..a566b09cdc 100644 --- a/uitest/src/com/vaadin/tests/components/window/PageOpenTest.java +++ b/uitest/src/com/vaadin/tests/components/window/PageOpenTest.java @@ -20,6 +20,7 @@ public class PageOpenTest extends AbstractTestUI { addComponent(new Button("Page.open _blank always as popup", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { page.open(url, "_blank", true); } @@ -27,6 +28,7 @@ public class PageOpenTest extends AbstractTestUI { addComponent(new Button("Page.open _blank NOT always as popup", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { page.open(url, "_blank", false); } @@ -34,6 +36,7 @@ public class PageOpenTest extends AbstractTestUI { addComponent(new Button("Page.open _new always as popup", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { page.open(url, "_new", true); } @@ -41,6 +44,7 @@ public class PageOpenTest extends AbstractTestUI { addComponent(new Button("Page.open _new NOT always as popup", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { page.open(url, "_new", false); } @@ -48,6 +52,7 @@ public class PageOpenTest extends AbstractTestUI { addComponent(new Button( "Execute Javascript window.open(www.google.com, _blank)", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { JavaScript .getCurrent() @@ -58,6 +63,7 @@ public class PageOpenTest extends AbstractTestUI { addComponent(new Button( "Execute Javascript window.open(www.google.com, _blank, resizable=yes,menubar=yes,toolbar=yes,directories=yes,location=yes,scrollbars=yes,status=yes)", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { JavaScript .getCurrent() diff --git a/uitest/src/com/vaadin/tests/containers/sqlcontainer/TableQueryWithNonUniqueFirstPrimaryKey.java b/uitest/src/com/vaadin/tests/containers/sqlcontainer/TableQueryWithNonUniqueFirstPrimaryKey.java index fa84c7cbb8..da3476610b 100644 --- a/uitest/src/com/vaadin/tests/containers/sqlcontainer/TableQueryWithNonUniqueFirstPrimaryKey.java +++ b/uitest/src/com/vaadin/tests/containers/sqlcontainer/TableQueryWithNonUniqueFirstPrimaryKey.java @@ -53,6 +53,7 @@ public class TableQueryWithNonUniqueFirstPrimaryKey extends LegacyApplication { myCombo.setWidth("100.0%"); myCombo.setHeight("-1px"); myCombo.addValueChangeListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if (myCombo.getValue() != null) { Item item = myCombo.getItem(event.getProperty() diff --git a/uitest/src/com/vaadin/tests/minitutorials/v70/SimpleLoginUI.java b/uitest/src/com/vaadin/tests/minitutorials/v70/SimpleLoginUI.java index 2fbbff10a8..1f94d43abe 100644 --- a/uitest/src/com/vaadin/tests/minitutorials/v70/SimpleLoginUI.java +++ b/uitest/src/com/vaadin/tests/minitutorials/v70/SimpleLoginUI.java @@ -26,16 +26,16 @@ public class SimpleLoginUI extends UI { */ getNavigator().addView(SimpleLoginMainView.NAME, SimpleLoginMainView.class); - + /* * We use a view change handler to ensure the user is always redirected * to the login view if the user is not logged in. */ getNavigator().addViewChangeListener(new ViewChangeListener() { - + @Override public boolean beforeViewChange(ViewChangeEvent event) { - + // Check if a user has logged in boolean isLoggedIn = getSession().getAttribute("user") != null; boolean isLoginView = event.getNewView() instanceof SimpleLoginView; @@ -54,10 +54,10 @@ public class SimpleLoginUI extends UI { return true; } - + @Override public void afterViewChange(ViewChangeEvent event) { - + } }); } diff --git a/uitest/src/com/vaadin/tests/minitutorials/v70/SimpleLoginView.java b/uitest/src/com/vaadin/tests/minitutorials/v70/SimpleLoginView.java index 88a2a8f678..3ff1c2df40 100644 --- a/uitest/src/com/vaadin/tests/minitutorials/v70/SimpleLoginView.java +++ b/uitest/src/com/vaadin/tests/minitutorials/v70/SimpleLoginView.java @@ -33,7 +33,8 @@ public class SimpleLoginView extends CustomComponent implements View, user.setWidth("300px"); user.setRequired(true); user.setInputPrompt("Your username (eg. joe@email.com)"); - user.addValidator(new EmailValidator("Username must be an email address")); + user.addValidator(new EmailValidator( + "Username must be an email address")); user.setInvalidAllowed(false); // Create the password input field @@ -61,7 +62,7 @@ public class SimpleLoginView extends CustomComponent implements View, viewLayout.setStyleName(Reindeer.LAYOUT_BLUE); setCompositionRoot(viewLayout); } - + @Override public void enter(ViewChangeEvent event) { // focus the username field when user arrives to the login view @@ -119,7 +120,7 @@ public class SimpleLoginView extends CustomComponent implements View, boolean isValid = username.equals("test@test.com") && password.equals("passw0rd"); - if(isValid){ + if (isValid) { // Store the current user in the service session getSession().setAttribute("user", username); @@ -134,4 +135,3 @@ public class SimpleLoginView extends CustomComponent implements View, } } } - diff --git a/uitest/src/com/vaadin/tests/minitutorials/v71beta/CSSInjectWithColorpicker.java b/uitest/src/com/vaadin/tests/minitutorials/v71beta/CSSInjectWithColorpicker.java index e3b8f997e0..63e43b29f1 100644 --- a/uitest/src/com/vaadin/tests/minitutorials/v71beta/CSSInjectWithColorpicker.java +++ b/uitest/src/com/vaadin/tests/minitutorials/v71beta/CSSInjectWithColorpicker.java @@ -30,27 +30,26 @@ public class CSSInjectWithColorpicker extends UI { // Create a text editor Component editor = createEditor("Lorem ipsum dolor sit amet, lacus pharetra sed, sit a " - + "tortor. Id aliquam lorem pede, orci ut enim metus, diam nulla mi " - + "suspendisse tempor tortor. Eleifend lorem proin, morbi vel diam ut. " - + "Tempor est tellus vitae, pretium condimentum facilisis sit. Sagittis " - + "quam, ac urna eros est cras id cras, eleifend eu mattis nec." - +"Lorem ipsum dolor sit amet, lacus pharetra sed, sit a " - + "tortor. Id aliquam lorem pede, orci ut enim metus, diam nulla mi " - + "suspendisse tempor tortor. Eleifend lorem proin, morbi vel diam ut. " - + "Tempor est tellus vitae, pretium condimentum facilisis sit. Sagittis " - + "quam, ac urna eros est cras id cras, eleifend eu mattis nec." - + "Lorem ipsum dolor sit amet, lacus pharetra sed, sit a " - + "tortor. Id aliquam lorem pede, orci ut enim metus, diam nulla mi " - + "suspendisse tempor tortor. Eleifend lorem proin, morbi vel diam ut. " - + "Tempor est tellus vitae, pretium condimentum facilisis sit. Sagittis " - + "quam, ac urna eros est cras id cras, eleifend eu mattis nec." - + "Lorem ipsum dolor sit amet, lacus pharetra sed, sit a " - + "tortor. Id aliquam lorem pede, orci ut enim metus, diam nulla mi " - + "suspendisse tempor tortor. Eleifend lorem proin, morbi vel diam ut. " - + "Tempor est tellus vitae, pretium condimentum facilisis sit. Sagittis " - + "quam, ac urna eros est cras id cras, eleifend eu mattis nec."); - - + + "tortor. Id aliquam lorem pede, orci ut enim metus, diam nulla mi " + + "suspendisse tempor tortor. Eleifend lorem proin, morbi vel diam ut. " + + "Tempor est tellus vitae, pretium condimentum facilisis sit. Sagittis " + + "quam, ac urna eros est cras id cras, eleifend eu mattis nec." + + "Lorem ipsum dolor sit amet, lacus pharetra sed, sit a " + + "tortor. Id aliquam lorem pede, orci ut enim metus, diam nulla mi " + + "suspendisse tempor tortor. Eleifend lorem proin, morbi vel diam ut. " + + "Tempor est tellus vitae, pretium condimentum facilisis sit. Sagittis " + + "quam, ac urna eros est cras id cras, eleifend eu mattis nec." + + "Lorem ipsum dolor sit amet, lacus pharetra sed, sit a " + + "tortor. Id aliquam lorem pede, orci ut enim metus, diam nulla mi " + + "suspendisse tempor tortor. Eleifend lorem proin, morbi vel diam ut. " + + "Tempor est tellus vitae, pretium condimentum facilisis sit. Sagittis " + + "quam, ac urna eros est cras id cras, eleifend eu mattis nec." + + "Lorem ipsum dolor sit amet, lacus pharetra sed, sit a " + + "tortor. Id aliquam lorem pede, orci ut enim metus, diam nulla mi " + + "suspendisse tempor tortor. Eleifend lorem proin, morbi vel diam ut. " + + "Tempor est tellus vitae, pretium condimentum facilisis sit. Sagittis " + + "quam, ac urna eros est cras id cras, eleifend eu mattis nec."); + VerticalLayout content = new VerticalLayout(editor); content.setMargin(true); setContent(content); @@ -100,10 +99,11 @@ public class CSSInjectWithColorpicker extends UI { TextArea textLabel = new TextArea(null, text); textLabel.setWidth("100%"); textLabel.setHeight("200px"); - - // IMPORTANT: We are here setting the style name of the label, we are going to use this in our injected styles to target the label + + // IMPORTANT: We are here setting the style name of the label, we are + // going to use this in our injected styles to target the label textLabel.setStyleName("text-label"); - + panelContent.addComponent(textLabel); return editor; @@ -203,8 +203,8 @@ public class CSSInjectWithColorpicker extends UI { */ private Component createFontSizeSelect() { - final ComboBox select = new ComboBox(null, Arrays.asList(8, 9, 10, - 12, 14, 16, 20, 25, 30, 40, 50)); + final ComboBox select = new ComboBox(null, Arrays.asList(8, 9, 10, 12, + 14, 16, 20, 25, 30, 40, 50)); select.setWidth("100px"); select.setValue(12); select.setInputPrompt("Font size"); @@ -213,7 +213,7 @@ public class CSSInjectWithColorpicker extends UI { select.setNullSelectionAllowed(false); select.setNewItemsAllowed(false); select.addValueChangeListener(new ValueChangeListener() { - + @Override public void valueChange(ValueChangeEvent event) { // Get the new font size diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/AutoGeneratingForm.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/AutoGeneratingForm.java index 5547c1077e..a2723beab3 100644 --- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/AutoGeneratingForm.java +++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/AutoGeneratingForm.java @@ -46,7 +46,7 @@ public class AutoGeneratingForm extends UI { fieldGroup.setItemDataSource(new BeanItem(new Person("John", "Doe", 34))); - // Loop through the properties, build fields for them and add the fields + // Loop through the properties, build fields for them and add the fields // to this root for (Object propertyId : fieldGroup.getUnboundPropertyIds()) { layout.addComponent(fieldGroup.buildAndBind(propertyId)); diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7b6/OpeningUIInPopup.java b/uitest/src/com/vaadin/tests/minitutorials/v7b6/OpeningUIInPopup.java index 2152e05f14..da9c73dd94 100644 --- a/uitest/src/com/vaadin/tests/minitutorials/v7b6/OpeningUIInPopup.java +++ b/uitest/src/com/vaadin/tests/minitutorials/v7b6/OpeningUIInPopup.java @@ -27,16 +27,17 @@ public class OpeningUIInPopup extends UI { protected void init(VaadinRequest request) { Button popupButton = new Button("Open popup with MyPopupUI"); - BrowserWindowOpener popupOpener = new BrowserWindowOpener(MyPopupUI.class); + BrowserWindowOpener popupOpener = new BrowserWindowOpener( + MyPopupUI.class); popupOpener.setFeatures("height=300,width=300"); popupOpener.extend(popupButton); - + // Add a parameter popupOpener.setParameter("foo", "bar"); // Set a fragment popupOpener.setUriFragment("myfragment"); - + setContent(popupButton); } diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7b9/CountView.java b/uitest/src/com/vaadin/tests/minitutorials/v7b9/CountView.java index 7aaf810355..59708f2bc7 100644 --- a/uitest/src/com/vaadin/tests/minitutorials/v7b9/CountView.java +++ b/uitest/src/com/vaadin/tests/minitutorials/v7b9/CountView.java @@ -14,6 +14,7 @@ public class CountView extends Panel implements View { setContent(new Label("Created: " + count++)); } + @Override public void enter(ViewChangeEvent event) { } diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7b9/LoginView.java b/uitest/src/com/vaadin/tests/minitutorials/v7b9/LoginView.java index 3aa3e42a58..28f8443440 100644 --- a/uitest/src/com/vaadin/tests/minitutorials/v7b9/LoginView.java +++ b/uitest/src/com/vaadin/tests/minitutorials/v7b9/LoginView.java @@ -28,6 +28,7 @@ public class LoginView extends Panel implements View { layout.addComponent(password); final Button login = new Button("Login", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Notification.show("Ok, let's pretend you're " + email); diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7b9/MainView.java b/uitest/src/com/vaadin/tests/minitutorials/v7b9/MainView.java index 3a1a685bbe..d37a39345f 100644 --- a/uitest/src/com/vaadin/tests/minitutorials/v7b9/MainView.java +++ b/uitest/src/com/vaadin/tests/minitutorials/v7b9/MainView.java @@ -42,6 +42,7 @@ public class MainView extends Panel implements View { layout.addComponent(lnk); logOut = new Button("Logout", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { ((NavigationtestUI) UI.getCurrent()).setLoggedInUser(null); diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7b9/MainViewEarlierExample.java b/uitest/src/com/vaadin/tests/minitutorials/v7b9/MainViewEarlierExample.java index 0eac6a042e..861fd9f8a4 100644 --- a/uitest/src/com/vaadin/tests/minitutorials/v7b9/MainViewEarlierExample.java +++ b/uitest/src/com/vaadin/tests/minitutorials/v7b9/MainViewEarlierExample.java @@ -41,6 +41,7 @@ public class MainViewEarlierExample extends Panel implements View { // login/logout toggle so we can test this Button logInOut = new Button("Toggle login", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Object user = ((NavigationtestUI) UI.getCurrent()) .getLoggedInUser(); diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7b9/SettingsView.java b/uitest/src/com/vaadin/tests/minitutorials/v7b9/SettingsView.java index 61492adc39..74c4e68b93 100644 --- a/uitest/src/com/vaadin/tests/minitutorials/v7b9/SettingsView.java +++ b/uitest/src/com/vaadin/tests/minitutorials/v7b9/SettingsView.java @@ -43,6 +43,7 @@ public class SettingsView extends Panel implements View { date.setBuffered(true); // show buttons when date is changed date.addValueChangeListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { hideOrShowButtons(); pendingViewAndParameters = null; @@ -51,6 +52,7 @@ public class SettingsView extends Panel implements View { // commit the TextField changes when "Save" is clicked apply = new Button("Apply", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { date.commit(); hideOrShowButtons(); @@ -61,6 +63,7 @@ public class SettingsView extends Panel implements View { // Discard the TextField changes when "Cancel" is clicked cancel = new Button("Cancel", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { date.discard(); hideOrShowButtons(); @@ -72,6 +75,7 @@ public class SettingsView extends Panel implements View { // attach a listener so that we'll get asked isViewChangeAllowed? navigator.addViewChangeListener(new ViewChangeListener() { + @Override public boolean beforeViewChange(ViewChangeEvent event) { if (event.getOldView() == SettingsView.this && date.isModified()) { @@ -93,6 +97,7 @@ public class SettingsView extends Panel implements View { } } + @Override public void afterViewChange(ViewChangeEvent event) { pendingViewAndParameters = null; } -- cgit v1.2.3 From 4a6ed040c7c09ae61f1e3f751c0f1372610bfbc9 Mon Sep 17 00:00:00 2001 From: John Ahlroos Date: Tue, 23 Apr 2013 12:50:09 +0300 Subject: Fixed failing path resolving when scss compiler is resolving included mixins from classpath #11684 Change-Id: I7943ecb283cca80526fc9b35ff51b698a3b9af6a --- .../internal/resolver/ClassloaderResolver.java | 6 +++ .../sass/internal/resolver/VaadinResolver.java | 50 ++++++++-------------- 2 files changed, 25 insertions(+), 31 deletions(-) (limited to 'theme-compiler/src') diff --git a/theme-compiler/src/com/vaadin/sass/internal/resolver/ClassloaderResolver.java b/theme-compiler/src/com/vaadin/sass/internal/resolver/ClassloaderResolver.java index 7ab789ca3f..8711a0a3e9 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/resolver/ClassloaderResolver.java +++ b/theme-compiler/src/com/vaadin/sass/internal/resolver/ClassloaderResolver.java @@ -40,6 +40,12 @@ public class ClassloaderResolver implements ScssStylesheetResolver { // Ensure only "/" is used, also in Windows fileName = fileName.replace(File.separatorChar, '/'); + // Filename should be a relative path starting with VAADIN/... + int vaadinIdx = fileName.lastIndexOf("VAADIN/"); + if (vaadinIdx > -1) { + fileName = fileName.substring(vaadinIdx); + } + // Can the classloader find it? InputStream is = getClass().getClassLoader().getResourceAsStream( fileName); diff --git a/theme-compiler/src/com/vaadin/sass/internal/resolver/VaadinResolver.java b/theme-compiler/src/com/vaadin/sass/internal/resolver/VaadinResolver.java index f51201da06..25c7e04f99 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/resolver/VaadinResolver.java +++ b/theme-compiler/src/com/vaadin/sass/internal/resolver/VaadinResolver.java @@ -15,8 +15,8 @@ */ package com.vaadin.sass.internal.resolver; -import java.util.regex.Matcher; -import java.util.regex.Pattern; +import java.net.URI; +import java.net.URISyntaxException; import org.w3c.css.sac.InputSource; @@ -24,39 +24,27 @@ public class VaadinResolver implements ScssStylesheetResolver { @Override public InputSource resolve(String identifier) { - if (identifier.endsWith(".css")) { - // CSS support mainly for testing, don't load from classpath etc - ScssStylesheetResolver resolver = new FilesystemResolver(); - return resolver.resolve(identifier); + + /* + * Normalize classpath so ../../ segments are resolved + */ + try { + identifier = new URI(identifier).normalize().getPath(); + } catch (URISyntaxException e) { + // No worries, continuing with the unnormalized path and hope for + // the best } InputSource source = null; - - Pattern pattern = Pattern - .compile("\\.\\.\\/([^\\/]+)\\/([^\\/]+\\.scss)"); - Matcher matcher = pattern.matcher(identifier); - - if (matcher.find()) { - // theme include - ScssStylesheetResolver resolver = new FilesystemResolver(); + + // Can we find the scss from the file system? + ScssStylesheetResolver resolver = new FilesystemResolver(); + source = resolver.resolve(identifier); + + if (source == null) { + // How about the classpath? + resolver = new ClassloaderResolver(); source = resolver.resolve(identifier); - - if (source == null) { - String themeName = matcher.group(1); - String fileName = matcher.group(2); - resolver = new ClassloaderResolver(); - String id = "VAADIN/themes/" + themeName + "/" + fileName; - source = resolver.resolve(id); - } - - } else { - ScssStylesheetResolver resolver = new FilesystemResolver(); - source = resolver.resolve(identifier); - - if (source == null) { - resolver = new ClassloaderResolver(); - source = resolver.resolve(identifier); - } } return source; -- cgit v1.2.3 From 220b1150ca411a63009d7f30e0400dc062f10c27 Mon Sep 17 00:00:00 2001 From: Leif Åstrand Date: Thu, 25 Apr 2013 14:01:27 +0300 Subject: Global code clean up Change-Id: I380d6afbc6b30d817ea6cca3d6b4634ab12522b1 --- .../communication/AtmospherePushConnection.java | 3 +- .../client/ui/AbstractClickEventHandler.java | 5 ++-- client/src/com/vaadin/client/ui/VNativeButton.java | 6 ---- client/src/com/vaadin/client/ui/VWindow.java | 3 +- server/src/com/vaadin/ui/DateField.java | 2 -- server/src/com/vaadin/ui/UI.java | 6 ++-- .../shared/ui/datefield/InlineDateFieldState.java | 1 - .../sass/internal/resolver/VaadinResolver.java | 2 +- .../ui/LoadingIndicatorConfigurationTest.java | 33 ++++++++++------------ .../tests/components/ui/TooltipConfiguration.java | 4 +-- .../VerticalLayoutSlotExpansionAndAlignment.java | 1 - .../broadcastingmessages/Broadcaster.java | 2 +- .../broadcastingmessages/BroadcasterUI.java | 1 - .../tests/widgetset/server/RoundTripTester.java | 3 +- 14 files changed, 30 insertions(+), 42 deletions(-) (limited to 'theme-compiler/src') diff --git a/client/src/com/vaadin/client/communication/AtmospherePushConnection.java b/client/src/com/vaadin/client/communication/AtmospherePushConnection.java index d3321a41a7..ef5fc56347 100644 --- a/client/src/com/vaadin/client/communication/AtmospherePushConnection.java +++ b/client/src/com/vaadin/client/communication/AtmospherePushConnection.java @@ -246,8 +246,7 @@ public class AtmospherePushConnection implements PushConnection { * */ protected void onError() { - VConsole.error("Push connection using " - + getConfig().getTransport() + VConsole.error("Push connection using " + getConfig().getTransport() + " failed!"); } diff --git a/client/src/com/vaadin/client/ui/AbstractClickEventHandler.java b/client/src/com/vaadin/client/ui/AbstractClickEventHandler.java index 2f97d30ece..e91abe9663 100644 --- a/client/src/com/vaadin/client/ui/AbstractClickEventHandler.java +++ b/client/src/com/vaadin/client/ui/AbstractClickEventHandler.java @@ -78,9 +78,8 @@ public abstract class AbstractClickEventHandler implements MouseDownHandler, && elementUnderMouse == lastMouseDownTarget) { mouseUpPreviewMatched = true; } else { - VConsole.log("Ignoring mouseup from " - + elementUnderMouse + " when mousedown was on " - + lastMouseDownTarget); + VConsole.log("Ignoring mouseup from " + elementUnderMouse + + " when mousedown was on " + lastMouseDownTarget); } } } diff --git a/client/src/com/vaadin/client/ui/VNativeButton.java b/client/src/com/vaadin/client/ui/VNativeButton.java index 6e1c5bae77..71413a76e6 100644 --- a/client/src/com/vaadin/client/ui/VNativeButton.java +++ b/client/src/com/vaadin/client/ui/VNativeButton.java @@ -16,14 +16,9 @@ package com.vaadin.client.ui; -import com.google.gwt.core.client.Scheduler; -import com.google.gwt.core.client.Scheduler.ScheduledCommand; -import com.google.gwt.dom.client.Document; import com.google.gwt.dom.client.Element; -import com.google.gwt.dom.client.NativeEvent; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; -import com.google.gwt.event.dom.client.MouseEvent; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.Event; import com.google.gwt.user.client.ui.Button; @@ -31,7 +26,6 @@ import com.vaadin.client.ApplicationConnection; import com.vaadin.client.BrowserInfo; import com.vaadin.client.MouseEventDetailsBuilder; import com.vaadin.client.Util; -import com.vaadin.client.VConsole; import com.vaadin.shared.MouseEventDetails; import com.vaadin.shared.ui.button.ButtonServerRpc; diff --git a/client/src/com/vaadin/client/ui/VWindow.java b/client/src/com/vaadin/client/ui/VWindow.java index 084ce522c1..0ed5bd57bd 100644 --- a/client/src/com/vaadin/client/ui/VWindow.java +++ b/client/src/com/vaadin/client/ui/VWindow.java @@ -571,7 +571,8 @@ public class VWindow extends VOverlay implements ShortcutActionHandlerOwner, } } - public void updateMaximizeRestoreClassName(boolean visible, WindowMode windowMode) { + public void updateMaximizeRestoreClassName(boolean visible, + WindowMode windowMode) { String className; if (windowMode == WindowMode.MAXIMIZED) { className = CLASSNAME + "-restorebox"; diff --git a/server/src/com/vaadin/ui/DateField.java b/server/src/com/vaadin/ui/DateField.java index 08815f4592..5017fac993 100644 --- a/server/src/com/vaadin/ui/DateField.java +++ b/server/src/com/vaadin/ui/DateField.java @@ -19,10 +19,8 @@ package com.vaadin.ui; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Collection; -import java.util.Collections; import java.util.Date; import java.util.HashMap; -import java.util.List; import java.util.Locale; import java.util.Map; import java.util.TimeZone; diff --git a/server/src/com/vaadin/ui/UI.java b/server/src/com/vaadin/ui/UI.java index 5cbd425ac6..0ad2787cb6 100644 --- a/server/src/com/vaadin/ui/UI.java +++ b/server/src/com/vaadin/ui/UI.java @@ -118,7 +118,8 @@ public abstract class UI extends AbstractSingleComponentContainer implements private Page page = new Page(this); - private LoadingIndicatorConfiguration loadingIndicatorConfiguration = new LoadingIndicatorConfigurationImpl(this); + private LoadingIndicatorConfiguration loadingIndicatorConfiguration = new LoadingIndicatorConfigurationImpl( + this); /** * Scroll Y position. @@ -167,7 +168,8 @@ public abstract class UI extends AbstractSingleComponentContainer implements private boolean closing = false; - private TooltipConfiguration tooltipConfiguration = new TooltipConfigurationImpl(this); + private TooltipConfiguration tooltipConfiguration = new TooltipConfigurationImpl( + this); /** * Creates a new empty UI without a caption. The content of the UI must be diff --git a/shared/src/com/vaadin/shared/ui/datefield/InlineDateFieldState.java b/shared/src/com/vaadin/shared/ui/datefield/InlineDateFieldState.java index d15d8de100..d56e0d27b3 100644 --- a/shared/src/com/vaadin/shared/ui/datefield/InlineDateFieldState.java +++ b/shared/src/com/vaadin/shared/ui/datefield/InlineDateFieldState.java @@ -15,7 +15,6 @@ */ package com.vaadin.shared.ui.datefield; - public class InlineDateFieldState extends TextualDateFieldState { { primaryStyleName = "v-inline-datefield"; diff --git a/theme-compiler/src/com/vaadin/sass/internal/resolver/VaadinResolver.java b/theme-compiler/src/com/vaadin/sass/internal/resolver/VaadinResolver.java index 25c7e04f99..2460c2ad2e 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/resolver/VaadinResolver.java +++ b/theme-compiler/src/com/vaadin/sass/internal/resolver/VaadinResolver.java @@ -36,7 +36,7 @@ public class VaadinResolver implements ScssStylesheetResolver { } InputSource source = null; - + // Can we find the scss from the file system? ScssStylesheetResolver resolver = new FilesystemResolver(); source = resolver.resolve(identifier); diff --git a/uitest/src/com/vaadin/tests/components/ui/LoadingIndicatorConfigurationTest.java b/uitest/src/com/vaadin/tests/components/ui/LoadingIndicatorConfigurationTest.java index 0d962309e4..3c857a8753 100644 --- a/uitest/src/com/vaadin/tests/components/ui/LoadingIndicatorConfigurationTest.java +++ b/uitest/src/com/vaadin/tests/components/ui/LoadingIndicatorConfigurationTest.java @@ -47,27 +47,24 @@ public class LoadingIndicatorConfigurationTest extends AbstractTestUIWithLog { }); secondDelay = createIntegerTextField("Second delay (ms)", getState().loadingIndicatorConfiguration.secondDelay); - secondDelay - .addValueChangeListener(new Property.ValueChangeListener() { - @Override - public void valueChange(ValueChangeEvent event) { - getLoadingIndicatorConfiguration().setSecondDelay( - (Integer) secondDelay.getConvertedValue()); - } - }); + secondDelay.addValueChangeListener(new Property.ValueChangeListener() { + @Override + public void valueChange(ValueChangeEvent event) { + getLoadingIndicatorConfiguration().setSecondDelay( + (Integer) secondDelay.getConvertedValue()); + } + }); thirdDelay = createIntegerTextField("Third delay (ms)", getState().loadingIndicatorConfiguration.thirdDelay); - thirdDelay - .addValueChangeListener(new Property.ValueChangeListener() { - @Override - public void valueChange(ValueChangeEvent event) { - getLoadingIndicatorConfiguration().setThirdDelay( - (Integer) thirdDelay.getConvertedValue()); - } - }); + thirdDelay.addValueChangeListener(new Property.ValueChangeListener() { + @Override + public void valueChange(ValueChangeEvent event) { + getLoadingIndicatorConfiguration().setThirdDelay( + (Integer) thirdDelay.getConvertedValue()); + } + }); - getLayout() - .addComponents(firstDelay, secondDelay, thirdDelay); + getLayout().addComponents(firstDelay, secondDelay, thirdDelay); HorizontalLayout hl = new HorizontalLayout(); hl.setMargin(true); diff --git a/uitest/src/com/vaadin/tests/components/ui/TooltipConfiguration.java b/uitest/src/com/vaadin/tests/components/ui/TooltipConfiguration.java index 2227e89256..4d201d2a1a 100644 --- a/uitest/src/com/vaadin/tests/components/ui/TooltipConfiguration.java +++ b/uitest/src/com/vaadin/tests/components/ui/TooltipConfiguration.java @@ -41,8 +41,8 @@ public class TooltipConfiguration extends AbstractTestUIWithLog { maxWidth.addValueChangeListener(new Property.ValueChangeListener() { @Override public void valueChange(ValueChangeEvent event) { - getTooltipConfiguration() - .setMaxWidth((Integer) maxWidth.getConvertedValue()); + getTooltipConfiguration().setMaxWidth( + (Integer) maxWidth.getConvertedValue()); } }); openDelay = createIntegerTextField("Open delay", diff --git a/uitest/src/com/vaadin/tests/layouts/VerticalLayoutSlotExpansionAndAlignment.java b/uitest/src/com/vaadin/tests/layouts/VerticalLayoutSlotExpansionAndAlignment.java index bba8ccf120..fe2dd6cea8 100644 --- a/uitest/src/com/vaadin/tests/layouts/VerticalLayoutSlotExpansionAndAlignment.java +++ b/uitest/src/com/vaadin/tests/layouts/VerticalLayoutSlotExpansionAndAlignment.java @@ -1,6 +1,5 @@ package com.vaadin.tests.layouts; -import com.vaadin.annotations.Theme; import com.vaadin.server.VaadinRequest; import com.vaadin.ui.Alignment; import com.vaadin.ui.HorizontalLayout; diff --git a/uitest/src/com/vaadin/tests/minitutorials/broadcastingmessages/Broadcaster.java b/uitest/src/com/vaadin/tests/minitutorials/broadcastingmessages/Broadcaster.java index e355cd1dbd..57ad0d97ba 100644 --- a/uitest/src/com/vaadin/tests/minitutorials/broadcastingmessages/Broadcaster.java +++ b/uitest/src/com/vaadin/tests/minitutorials/broadcastingmessages/Broadcaster.java @@ -1,4 +1,3 @@ -package com.vaadin.tests.minitutorials.broadcastingmessages; /* * Copyright 2000-2013 Vaadin Ltd. * @@ -15,6 +14,7 @@ package com.vaadin.tests.minitutorials.broadcastingmessages; * the License. */ +package com.vaadin.tests.minitutorials.broadcastingmessages; import java.util.ArrayList; import java.util.List; diff --git a/uitest/src/com/vaadin/tests/minitutorials/broadcastingmessages/BroadcasterUI.java b/uitest/src/com/vaadin/tests/minitutorials/broadcastingmessages/BroadcasterUI.java index 80c847250d..88ab4af967 100644 --- a/uitest/src/com/vaadin/tests/minitutorials/broadcastingmessages/BroadcasterUI.java +++ b/uitest/src/com/vaadin/tests/minitutorials/broadcastingmessages/BroadcasterUI.java @@ -1,6 +1,5 @@ package com.vaadin.tests.minitutorials.broadcastingmessages; - import com.vaadin.server.VaadinRequest; import com.vaadin.tests.minitutorials.broadcastingmessages.Broadcaster.BroadcastListener; import com.vaadin.ui.Button; diff --git a/uitest/src/com/vaadin/tests/widgetset/server/RoundTripTester.java b/uitest/src/com/vaadin/tests/widgetset/server/RoundTripTester.java index d16a7a7811..c8e561e665 100644 --- a/uitest/src/com/vaadin/tests/widgetset/server/RoundTripTester.java +++ b/uitest/src/com/vaadin/tests/widgetset/server/RoundTripTester.java @@ -43,7 +43,8 @@ public class RoundTripTester extends AbstractComponent { public void start(long testDuration, int payloadSize) { testStart = System.currentTimeMillis(); testEnd = testStart + testDuration; - getRpcProxy(RoundTripTesterRpc.class).ping(1, generatePayload(payloadSize)); + getRpcProxy(RoundTripTesterRpc.class).ping(1, + generatePayload(payloadSize)); } private String generatePayload(int payloadSize) { -- cgit v1.2.3 From 68d3f0ac04fb945f8f2ca2b60b75d65485f98f7a Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Fri, 3 May 2013 08:57:24 +0300 Subject: Fixed scss file resolving issue in Windows (#11762) Change-Id: I63484865ce56a54cc8f3fb673c03ffd0be6c8dc1 --- .../src/com/vaadin/sass/internal/resolver/VaadinResolver.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'theme-compiler/src') diff --git a/theme-compiler/src/com/vaadin/sass/internal/resolver/VaadinResolver.java b/theme-compiler/src/com/vaadin/sass/internal/resolver/VaadinResolver.java index 2460c2ad2e..d6480f3e2c 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/resolver/VaadinResolver.java +++ b/theme-compiler/src/com/vaadin/sass/internal/resolver/VaadinResolver.java @@ -15,6 +15,7 @@ */ package com.vaadin.sass.internal.resolver; +import java.io.File; import java.net.URI; import java.net.URISyntaxException; @@ -29,6 +30,9 @@ public class VaadinResolver implements ScssStylesheetResolver { * Normalize classpath so ../../ segments are resolved */ try { + // Ensure only "/" is used, also in Windows + identifier = identifier.replace(File.separatorChar, '/'); + // Resolve "foo/../bar" -> "bar" identifier = new URI(identifier).normalize().getPath(); } catch (URISyntaxException e) { // No worries, continuing with the unnormalized path and hope for -- cgit v1.2.3 From 5388dce3783a05b9d2959cd5303bf13edcbf5d81 Mon Sep 17 00:00:00 2001 From: John Ahlroos Date: Mon, 6 May 2013 12:40:18 +0300 Subject: Fixed IllegalSyntaxException when using spaces in path #11782 Change-Id: I105b2835d44c94f00b847f342fd0a6e0ef571e97 --- .../sass/internal/resolver/VaadinResolver.java | 62 ++++++++++++---- .../vaadin/sass/resolvers/VaadinResolverTest.java | 83 ++++++++++++++++++++++ 2 files changed, 131 insertions(+), 14 deletions(-) create mode 100644 theme-compiler/tests/src/com/vaadin/sass/resolvers/VaadinResolverTest.java (limited to 'theme-compiler/src') diff --git a/theme-compiler/src/com/vaadin/sass/internal/resolver/VaadinResolver.java b/theme-compiler/src/com/vaadin/sass/internal/resolver/VaadinResolver.java index d6480f3e2c..fec16a54c8 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/resolver/VaadinResolver.java +++ b/theme-compiler/src/com/vaadin/sass/internal/resolver/VaadinResolver.java @@ -16,8 +16,7 @@ package com.vaadin.sass.internal.resolver; import java.io.File; -import java.net.URI; -import java.net.URISyntaxException; +import java.util.Stack; import org.w3c.css.sac.InputSource; @@ -26,18 +25,8 @@ public class VaadinResolver implements ScssStylesheetResolver { @Override public InputSource resolve(String identifier) { - /* - * Normalize classpath so ../../ segments are resolved - */ - try { - // Ensure only "/" is used, also in Windows - identifier = identifier.replace(File.separatorChar, '/'); - // Resolve "foo/../bar" -> "bar" - identifier = new URI(identifier).normalize().getPath(); - } catch (URISyntaxException e) { - // No worries, continuing with the unnormalized path and hope for - // the best - } + // Remove extra "." and ".." + identifier = normalize(identifier); InputSource source = null; @@ -53,4 +42,49 @@ public class VaadinResolver implements ScssStylesheetResolver { return source; } + + /** + * Normalizes "." and ".." from the path string where parent path segments + * can be removed. Preserve leading "..". + * + * @param path + * A relative or absolute file path + * @return The normalized path + */ + private static String normalize(String path) { + + // Ensure only "/" is used, also in Windows + path = path.replace(File.separatorChar, '/'); + + // Split into segments + String[] segments = path.split("/"); + Stack result = new Stack(); + + // Replace '.' and '..' segments + for (int i = 0; i < segments.length; i++) { + if (segments[i].equals(".")) { + // Segments marked '.' are ignored + + } else if (segments[i].equals("..") && !result.isEmpty() + && !result.lastElement().equals("..")) { + // If segment is ".." then remove the previous iff the previous + // element is not a ".." and the result stack is not empty + result.pop(); + } else { + // Other segments are just added to the stack + result.push(segments[i]); + } + } + + // Reconstruct path + StringBuilder pathBuilder = new StringBuilder(); + for (int i = 0; i < result.size(); i++) { + if (i > 0) { + pathBuilder.append("/"); + } + pathBuilder.append(result.get(i)); + } + return pathBuilder.toString(); + } + } diff --git a/theme-compiler/tests/src/com/vaadin/sass/resolvers/VaadinResolverTest.java b/theme-compiler/tests/src/com/vaadin/sass/resolvers/VaadinResolverTest.java new file mode 100644 index 0000000000..59b49888c2 --- /dev/null +++ b/theme-compiler/tests/src/com/vaadin/sass/resolvers/VaadinResolverTest.java @@ -0,0 +1,83 @@ +/* + * Copyright 2000-2013 Vaadin Ltd. + * + * Licensed 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 com.vaadin.sass.resolvers; + +/* + * Copyright 2000-2013 Vaadin Ltd. + * + * Licensed 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. + */ + +import java.lang.reflect.Method; + +import org.junit.Assert; +import org.junit.Test; + +import com.vaadin.sass.internal.resolver.VaadinResolver; + +public class VaadinResolverTest { + + @Test + public void testPathNormalization() throws Exception { + + VaadinResolver resolver = new VaadinResolver(); + + Method normalizeMethod = VaadinResolver.class.getDeclaredMethod( + "normalize", String.class); + normalizeMethod.setAccessible(true); + + String identifier, result; + + identifier = "a/b/../../../a b/b.scss"; + result = (String) normalizeMethod.invoke(resolver, identifier); + Assert.assertEquals("../a b/b.scss", result); + + identifier = "./a/b/../c/d/.././e.scss"; + result = (String) normalizeMethod.invoke(resolver, identifier); + Assert.assertEquals("a/c/e.scss", result); + + identifier = "/äåäåäääå/:;:;:;/???????/- -/e.scss"; + result = (String) normalizeMethod.invoke(resolver, identifier); + Assert.assertEquals("/äåäåäääå/:;:;:;/???????/- -/e.scss", result); + + identifier = "."; + result = (String) normalizeMethod.invoke(resolver, identifier); + Assert.assertEquals("", result); + + identifier = "../.."; + result = (String) normalizeMethod.invoke(resolver, identifier); + Assert.assertEquals("../..", result); + + identifier = "./../a.scss"; + result = (String) normalizeMethod.invoke(resolver, identifier); + Assert.assertEquals("../a.scss", result); + } + +} -- cgit v1.2.3