You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-commits@incubator.apache.org by ma...@apache.org on 2006/07/24 16:58:51 UTC
svn commit: r425117 [9/14] - in
/incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript:
./ javascript20parser/ javascriptcompiler/ obfuscator/ obfuscator...
Added: incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/JSParser20TreeConstants.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/JSParser20TreeConstants.java?rev=425117&view=auto
==============================================================================
--- incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/JSParser20TreeConstants.java (added)
+++ incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/JSParser20TreeConstants.java Mon Jul 24 09:58:43 2006
@@ -0,0 +1,300 @@
+/*
+* Copyright 2006 The Apache Software Foundation.
+*
+* 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:JJTree: Do not edit this line. .\JSParser20TreeConstants.java */
+
+package org.apache.myfaces.trinidadbuild.plugin.javascript.javascript20parser;
+
+public interface JSParser20TreeConstants
+{
+ public int JJTPROGRAM = 0;
+ public int JJTIDENTIFIER = 1;
+ public int JJTSIMPLEQUALIFIEDIDENTIFIER = 2;
+ public int JJTEXPRESSIONQUALIFIEDIDENTIFIER = 3;
+ public int JJTQUALIFIEDIDENTIFIER = 4;
+ public int JJTPRIMARYEXPRESSION = 5;
+ public int JJTRESERVEDNAMESPACE = 6;
+ public int JJTFUNCTIONEXPRESSION = 7;
+ public int JJTOBJECTLITERAL = 8;
+ public int JJTFIELDLIST = 9;
+ public int JJTLITERALFIELD = 10;
+ public int JJTFIELDNAME = 11;
+ public int JJTARRAYLITERAL = 12;
+ public int JJTELEMENTLIST = 13;
+ public int JJTLITERALELEMENT = 14;
+ public int JJTSUPEREXPRESSION = 15;
+ public int JJTPOSTFIXEXPRESSION = 16;
+ public int JJTATTRIBUTEEXPRESSION = 17;
+ public int JJTFULLPOSTFIXEXPRESSION = 18;
+ public int JJTFULLNEWEXPRESSION = 19;
+ public int JJTFUNCTIONCONSTRUCTOR = 20;
+ public int JJTFULLNEWSUBEXPRESSION = 21;
+ public int JJTPOSTFIXOP = 22;
+ public int JJTPROPERTYORARGUMENTS = 23;
+ public int JJTPROPERTYOPERATOR = 24;
+ public int JJTARGUMENTS = 25;
+ public int JJTUNARYEXPRESSION = 26;
+ public int JJTMULOP = 27;
+ public int JJTMULTIPLICATIVEEXPRESSION = 28;
+ public int JJTADDOP = 29;
+ public int JJTADDITIVEEXPRESSION = 30;
+ public int JJTSHIFTOP = 31;
+ public int JJTSHIFTEXPRESSION = 32;
+ public int JJTRELOP = 33;
+ public int JJTRELATIONALEXPRESSION = 34;
+ public int JJTRELATIONALEXPRESSIONNOIN = 35;
+ public int JJTEQUALOP = 36;
+ public int JJTEQUALITYEXPRESSION = 37;
+ public int JJTEQUALITYEXPRESSIONNOIN = 38;
+ public int JJTBITWISEANDOP = 39;
+ public int JJTBITWISEANDEXPRESSION = 40;
+ public int JJTBITWISEANDEXPRESSIONNOIN = 41;
+ public int JJTBITWISEXOROP = 42;
+ public int JJTBITWISEXOREXPRESSION = 43;
+ public int JJTBITWISEXOREXPRESSIONNOIN = 44;
+ public int JJTBITWISEOROP = 45;
+ public int JJTBITWISEOREXPRESSION = 46;
+ public int JJTBITWISEOREXPRESSIONNOIN = 47;
+ public int JJTLOGICALANDEXPRESSION = 48;
+ public int JJTLOGICALANDEXPRESSIONNOIN = 49;
+ public int JJTLOGICALOREXPRESSION = 50;
+ public int JJTLOGICALOREXPRESSIONNOIN = 51;
+ public int JJTCONDITIONALEXPRESSION = 52;
+ public int JJTCONDITIONALEXPRESSIONNOIN = 53;
+ public int JJTNONASSIGNMENTEXPRESSION = 54;
+ public int JJTNONASSIGNMENTEXPRESSIONNOIN = 55;
+ public int JJTASSIGNEMENTOPERATOR = 56;
+ public int JJTASSIGNMENTEXPRESSION = 57;
+ public int JJTASSIGNMENTEXPRESSIONNOIN = 58;
+ public int JJTLISTEXPRESSION = 59;
+ public int JJTLISTEXPRESSIONNOIN = 60;
+ public int JJTTYPEEXPRESSION = 61;
+ public int JJTTYPEEXPRESSIONNOIN = 62;
+ public int JJTTYPEEXPRESSIONLIST = 63;
+ public int JJTSTATEMENT = 64;
+ public int JJTSUBSTATEMENT = 65;
+ public int JJTSUBSTATEMENTS = 66;
+ public int JJTSC = 67;
+ public int JJTEOLCOMMENTSKIPWS = 68;
+ public int JJTEMPTYSTATEMENT = 69;
+ public int JJTEXPRESSIONSTATEMENT = 70;
+ public int JJTSUPERSTATEMENT = 71;
+ public int JJTBLOCK = 72;
+ public int JJTLABELEDSTATEMENT = 73;
+ public int JJTIFSTATEMENT = 74;
+ public int JJTSWITCHSTATEMENT = 75;
+ public int JJTCASEELEMENTS = 76;
+ public int JJTCASEELEMENT = 77;
+ public int JJTCASELABEL = 78;
+ public int JJTDOSTATEMENT = 79;
+ public int JJTWHILESTATEMENT = 80;
+ public int JJTFORSTATEMENT = 81;
+ public int JJTFORINITIALIZER = 82;
+ public int JJTFORINBINDING = 83;
+ public int JJTWITHSTATEMENT = 84;
+ public int JJTCONTINUESTATEMENT = 85;
+ public int JJTBREAKSTATEMENT = 86;
+ public int JJTRETURNSTATEMENT = 87;
+ public int JJTTHROWSTATEMENT = 88;
+ public int JJTTRYSTATEMENT = 89;
+ public int JJTDIRECTIVES = 90;
+ public int JJTDIRECTIVE = 91;
+ public int JJTANNOTATABLEDIRECTIVE = 92;
+ public int JJTATTRIBUTES = 93;
+ public int JJTATTRIBUTE = 94;
+ public int JJTUSEDIRECTIVE = 95;
+ public int JJTIMPORTDIRECTIVE = 96;
+ public int JJTINCLUDEDIRECTIVE = 97;
+ public int JJTPRAGMA = 98;
+ public int JJTPRAGMAITEMS = 99;
+ public int JJTPRAGMAITEM = 100;
+ public int JJTPRAGMAEXPR = 101;
+ public int JJTPRAGMAARGUMENT = 102;
+ public int JJTEXPORTDEFINITION = 103;
+ public int JJTEXPORTBINDINGLIST = 104;
+ public int JJTEXPORTBINDING = 105;
+ public int JJTVARIABLEDEFINITION = 106;
+ public int JJTVARIABLEDEFINITIONNOIN = 107;
+ public int JJTVARIABLEDEFINITIONKIND = 108;
+ public int JJTVARIABLEBINDINGLIST = 109;
+ public int JJTVARIABLEBINDINGLISTNOIN = 110;
+ public int JJTVARIABLEBINDING = 111;
+ public int JJTVARIABLEBINDINGNOIN = 112;
+ public int JJTVARIABLEINITIALISATION = 113;
+ public int JJTVARIABLEINITIALISATIONNOIN = 114;
+ public int JJTVARIABLEINITIALIZER = 115;
+ public int JJTVARIABLEINITIALIZERNOIN = 116;
+ public int JJTTYPEDIDENTIFIER = 117;
+ public int JJTTYPEDIDENTIFIERNOIN = 118;
+ public int JJTSIMPLEVARIABLEDEFINITION = 119;
+ public int JJTUNTYPEDVARIABLEBINDINGLIST = 120;
+ public int JJTUNTYPEDVARIABLEBINDING = 121;
+ public int JJTFUNCTIONDEFINITION = 122;
+ public int JJTFUNCTIONNAME = 123;
+ public int JJTFUNCTIONCOMMON = 124;
+ public int JJTPARAMETERS = 125;
+ public int JJTPARAMETER = 126;
+ public int JJTPARAMETERINIT = 127;
+ public int JJTRESTPARAMETERS = 128;
+ public int JJTRESULT = 129;
+ public int JJTCLASSDEFINITION = 130;
+ public int JJTINTERFACEDEFINITION = 131;
+ public int JJTINHERITANCE = 132;
+ public int JJTNAMESPACEDEFINITION = 133;
+ public int JJTPACKAGEDEFINITION = 134;
+ public int JJTPACKAGENAME = 135;
+ public int JJTPACKAGEIDENTIFIERS = 136;
+
+
+ public String[] jjtNodeName = {
+ "Program",
+ "Identifier",
+ "SimpleQualifiedIdentifier",
+ "ExpressionQualifiedIdentifier",
+ "QualifiedIdentifier",
+ "PrimaryExpression",
+ "ReservedNamespace",
+ "FunctionExpression",
+ "ObjectLiteral",
+ "FieldList",
+ "LiteralField",
+ "FieldName",
+ "ArrayLiteral",
+ "ElementList",
+ "LiteralElement",
+ "SuperExpression",
+ "PostfixExpression",
+ "AttributeExpression",
+ "FullPostfixExpression",
+ "FullNewExpression",
+ "FunctionConstructor",
+ "FullNewSubexpression",
+ "PostfixOp",
+ "PropertyOrArguments",
+ "PropertyOperator",
+ "Arguments",
+ "UnaryExpression",
+ "MulOp",
+ "MultiplicativeExpression",
+ "AddOp",
+ "AdditiveExpression",
+ "ShiftOp",
+ "ShiftExpression",
+ "RelOp",
+ "RelationalExpression",
+ "RelationalExpressionNoIN",
+ "EqualOp",
+ "EqualityExpression",
+ "EqualityExpressionNoIN",
+ "BitwiseANDOp",
+ "BitwiseANDExpression",
+ "BitwiseANDExpressionNoIN",
+ "BitwiseXOROp",
+ "BitwiseXORExpression",
+ "BitwiseXORExpressionNoIN",
+ "BitwiseOROp",
+ "BitwiseORExpression",
+ "BitwiseORExpressionNoIN",
+ "LogicalANDExpression",
+ "LogicalANDExpressionNoIN",
+ "LogicalORExpression",
+ "LogicalORExpressionNoIN",
+ "ConditionalExpression",
+ "ConditionalExpressionNoIN",
+ "NonAssignmentExpression",
+ "NonAssignmentExpressionNoIN",
+ "AssignementOperator",
+ "AssignmentExpression",
+ "AssignmentExpressionNoIN",
+ "ListExpression",
+ "ListExpressionNoIN",
+ "TypeExpression",
+ "TypeExpressionNoIN",
+ "TypeExpressionList",
+ "Statement",
+ "Substatement",
+ "Substatements",
+ "Sc",
+ "EolCommentSkipWs",
+ "EmptyStatement",
+ "ExpressionStatement",
+ "SuperStatement",
+ "Block",
+ "LabeledStatement",
+ "IfStatement",
+ "SwitchStatement",
+ "CaseElements",
+ "CaseElement",
+ "CaseLabel",
+ "DoStatement",
+ "WhileStatement",
+ "ForStatement",
+ "ForInitializer",
+ "ForInBinding",
+ "WithStatement",
+ "ContinueStatement",
+ "BreakStatement",
+ "ReturnStatement",
+ "ThrowStatement",
+ "TryStatement",
+ "Directives",
+ "Directive",
+ "AnnotatableDirective",
+ "Attributes",
+ "Attribute",
+ "UseDirective",
+ "ImportDirective",
+ "IncludeDirective",
+ "Pragma",
+ "PragmaItems",
+ "PragmaItem",
+ "PragmaExpr",
+ "PragmaArgument",
+ "ExportDefinition",
+ "ExportBindingList",
+ "ExportBinding",
+ "VariableDefinition",
+ "VariableDefinitionNoIN",
+ "VariableDefinitionKind",
+ "VariableBindingList",
+ "VariableBindingListNoIN",
+ "VariableBinding",
+ "VariableBindingNoIN",
+ "VariableInitialisation",
+ "VariableInitialisationNoIN",
+ "VariableInitializer",
+ "VariableInitializerNoIN",
+ "TypedIdentifier",
+ "TypedIdentifierNoIN",
+ "SimpleVariableDefinition",
+ "UntypedVariableBindingList",
+ "UntypedVariableBinding",
+ "FunctionDefinition",
+ "FunctionName",
+ "FunctionCommon",
+ "Parameters",
+ "Parameter",
+ "ParameterInit",
+ "RestParameters",
+ "Result",
+ "ClassDefinition",
+ "InterfaceDefinition",
+ "Inheritance",
+ "NamespaceDefinition",
+ "PackageDefinition",
+ "PackageName",
+ "PackageIdentifiers",
+ };
+}
\ No newline at end of file
Propchange: incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/JSParser20TreeConstants.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/JSParser20Visitor.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/JSParser20Visitor.java?rev=425117&view=auto
==============================================================================
--- incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/JSParser20Visitor.java (added)
+++ incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/JSParser20Visitor.java Mon Jul 24 09:58:43 2006
@@ -0,0 +1,160 @@
+/*
+* Copyright 2006 The Apache Software Foundation.
+*
+* 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:JJTree: Do not edit this line. .\JSParser20Visitor.java */
+
+package org.apache.myfaces.trinidadbuild.plugin.javascript.javascript20parser;
+
+public interface JSParser20Visitor
+{
+ public Object visit(SimpleNode node, Object data);
+ public Object visit(ASTProgram node, Object data);
+ public Object visit(ASTIdentifier node, Object data);
+ public Object visit(ASTSimpleQualifiedIdentifier node, Object data);
+ public Object visit(ASTExpressionQualifiedIdentifier node, Object data);
+ public Object visit(ASTQualifiedIdentifier node, Object data);
+ public Object visit(ASTPrimaryExpression node, Object data);
+ public Object visit(ASTReservedNamespace node, Object data);
+ public Object visit(ASTFunctionExpression node, Object data);
+ public Object visit(ASTObjectLiteral node, Object data);
+ public Object visit(ASTFieldList node, Object data);
+ public Object visit(ASTLiteralField node, Object data);
+ public Object visit(ASTFieldName node, Object data);
+ public Object visit(ASTArrayLiteral node, Object data);
+ public Object visit(ASTElementList node, Object data);
+ public Object visit(ASTLiteralElement node, Object data);
+ public Object visit(ASTSuperExpression node, Object data);
+ public Object visit(ASTPostfixExpression node, Object data);
+ public Object visit(ASTAttributeExpression node, Object data);
+ public Object visit(ASTFullPostfixExpression node, Object data);
+ public Object visit(ASTFullNewExpression node, Object data);
+ public Object visit(ASTFunctionConstructor node, Object data);
+ public Object visit(ASTFullNewSubexpression node, Object data);
+ public Object visit(ASTPostfixOp node, Object data);
+ public Object visit(ASTPropertyOrArguments node, Object data);
+ public Object visit(ASTPropertyOperator node, Object data);
+ public Object visit(ASTArguments node, Object data);
+ public Object visit(ASTUnaryExpression node, Object data);
+ public Object visit(ASTMulOp node, Object data);
+ public Object visit(ASTMultiplicativeExpression node, Object data);
+ public Object visit(ASTAddOp node, Object data);
+ public Object visit(ASTAdditiveExpression node, Object data);
+ public Object visit(ASTShiftOp node, Object data);
+ public Object visit(ASTShiftExpression node, Object data);
+ public Object visit(ASTRelOp node, Object data);
+ public Object visit(ASTRelationalExpression node, Object data);
+ public Object visit(ASTRelationalExpressionNoIN node, Object data);
+ public Object visit(ASTEqualOp node, Object data);
+ public Object visit(ASTEqualityExpression node, Object data);
+ public Object visit(ASTEqualityExpressionNoIN node, Object data);
+ public Object visit(ASTBitwiseANDOp node, Object data);
+ public Object visit(ASTBitwiseANDExpression node, Object data);
+ public Object visit(ASTBitwiseANDExpressionNoIN node, Object data);
+ public Object visit(ASTBitwiseXOROp node, Object data);
+ public Object visit(ASTBitwiseXORExpression node, Object data);
+ public Object visit(ASTBitwiseXORExpressionNoIN node, Object data);
+ public Object visit(ASTBitwiseOROp node, Object data);
+ public Object visit(ASTBitwiseORExpression node, Object data);
+ public Object visit(ASTBitwiseORExpressionNoIN node, Object data);
+ public Object visit(ASTLogicalANDExpression node, Object data);
+ public Object visit(ASTLogicalANDExpressionNoIN node, Object data);
+ public Object visit(ASTLogicalORExpression node, Object data);
+ public Object visit(ASTLogicalORExpressionNoIN node, Object data);
+ public Object visit(ASTConditionalExpression node, Object data);
+ public Object visit(ASTConditionalExpressionNoIN node, Object data);
+ public Object visit(ASTNonAssignmentExpression node, Object data);
+ public Object visit(ASTNonAssignmentExpressionNoIN node, Object data);
+ public Object visit(ASTAssignementOperator node, Object data);
+ public Object visit(ASTAssignmentExpression node, Object data);
+ public Object visit(ASTAssignmentExpressionNoIN node, Object data);
+ public Object visit(ASTListExpression node, Object data);
+ public Object visit(ASTListExpressionNoIN node, Object data);
+ public Object visit(ASTTypeExpression node, Object data);
+ public Object visit(ASTTypeExpressionNoIN node, Object data);
+ public Object visit(ASTTypeExpressionList node, Object data);
+ public Object visit(ASTStatement node, Object data);
+ public Object visit(ASTSubstatement node, Object data);
+ public Object visit(ASTSubstatements node, Object data);
+ public Object visit(ASTSc node, Object data);
+ public Object visit(ASTEolCommentSkipWs node, Object data);
+ public Object visit(ASTEmptyStatement node, Object data);
+ public Object visit(ASTExpressionStatement node, Object data);
+ public Object visit(ASTSuperStatement node, Object data);
+ public Object visit(ASTBlock node, Object data);
+ public Object visit(ASTLabeledStatement node, Object data);
+ public Object visit(ASTIfStatement node, Object data);
+ public Object visit(ASTSwitchStatement node, Object data);
+ public Object visit(ASTCaseElements node, Object data);
+ public Object visit(ASTCaseElement node, Object data);
+ public Object visit(ASTCaseLabel node, Object data);
+ public Object visit(ASTDoStatement node, Object data);
+ public Object visit(ASTWhileStatement node, Object data);
+ public Object visit(ASTForStatement node, Object data);
+ public Object visit(ASTForInitializer node, Object data);
+ public Object visit(ASTForInBinding node, Object data);
+ public Object visit(ASTWithStatement node, Object data);
+ public Object visit(ASTContinueStatement node, Object data);
+ public Object visit(ASTBreakStatement node, Object data);
+ public Object visit(ASTReturnStatement node, Object data);
+ public Object visit(ASTThrowStatement node, Object data);
+ public Object visit(ASTTryStatement node, Object data);
+ public Object visit(ASTDirectives node, Object data);
+ public Object visit(ASTDirective node, Object data);
+ public Object visit(ASTAnnotatableDirective node, Object data);
+ public Object visit(ASTAttributes node, Object data);
+ public Object visit(ASTAttribute node, Object data);
+ public Object visit(ASTUseDirective node, Object data);
+ public Object visit(ASTImportDirective node, Object data);
+ public Object visit(ASTIncludeDirective node, Object data);
+ public Object visit(ASTPragma node, Object data);
+ public Object visit(ASTPragmaItems node, Object data);
+ public Object visit(ASTPragmaItem node, Object data);
+ public Object visit(ASTPragmaExpr node, Object data);
+ public Object visit(ASTPragmaArgument node, Object data);
+ public Object visit(ASTExportDefinition node, Object data);
+ public Object visit(ASTExportBindingList node, Object data);
+ public Object visit(ASTExportBinding node, Object data);
+ public Object visit(ASTVariableDefinition node, Object data);
+ public Object visit(ASTVariableDefinitionNoIN node, Object data);
+ public Object visit(ASTVariableDefinitionKind node, Object data);
+ public Object visit(ASTVariableBindingList node, Object data);
+ public Object visit(ASTVariableBindingListNoIN node, Object data);
+ public Object visit(ASTVariableBinding node, Object data);
+ public Object visit(ASTVariableBindingNoIN node, Object data);
+ public Object visit(ASTVariableInitialisation node, Object data);
+ public Object visit(ASTVariableInitialisationNoIN node, Object data);
+ public Object visit(ASTVariableInitializer node, Object data);
+ public Object visit(ASTVariableInitializerNoIN node, Object data);
+ public Object visit(ASTTypedIdentifier node, Object data);
+ public Object visit(ASTTypedIdentifierNoIN node, Object data);
+ public Object visit(ASTSimpleVariableDefinition node, Object data);
+ public Object visit(ASTUntypedVariableBindingList node, Object data);
+ public Object visit(ASTUntypedVariableBinding node, Object data);
+ public Object visit(ASTFunctionDefinition node, Object data);
+ public Object visit(ASTFunctionName node, Object data);
+ public Object visit(ASTFunctionCommon node, Object data);
+ public Object visit(ASTParameters node, Object data);
+ public Object visit(ASTParameter node, Object data);
+ public Object visit(ASTParameterInit node, Object data);
+ public Object visit(ASTRestParameters node, Object data);
+ public Object visit(ASTResult node, Object data);
+ public Object visit(ASTClassDefinition node, Object data);
+ public Object visit(ASTInterfaceDefinition node, Object data);
+ public Object visit(ASTInheritance node, Object data);
+ public Object visit(ASTNamespaceDefinition node, Object data);
+ public Object visit(ASTPackageDefinition node, Object data);
+ public Object visit(ASTPackageName node, Object data);
+ public Object visit(ASTPackageIdentifiers node, Object data);
+}
\ No newline at end of file
Propchange: incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/JSParser20Visitor.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/Node.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/Node.java?rev=425117&view=auto
==============================================================================
--- incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/Node.java (added)
+++ incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/Node.java Mon Jul 24 09:58:43 2006
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2004,2006 The Apache Software Foundation.
+ *
+ * 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:JJTree: Do not edit this line. Node.java */
+
+package org.apache.myfaces.trinidadbuild.plugin.javascript.javascript20parser;
+
+/* All AST nodes must implement this interface. It provides basic
+ machinery for constructing the parent and child relationships
+ between nodes. */
+
+public interface Node
+{
+
+ /** This method is called after the node has been made the current
+ node. It indicates that child nodes can now be added to it. */
+ public void jjtOpen();
+
+ /** This method is called after all the child nodes have been
+ added. */
+ public void jjtClose();
+
+ /** This pair of methods are used to inform the node of its
+ parent. */
+ public void jjtSetParent(Node n);
+
+ public Node jjtGetParent();
+
+ /** This method tells the node to add its argument to the node's
+ list of children. */
+ public void jjtAddChild(Node n, int i);
+
+ /** This method returns a child node. The children are numbered
+ from zero, left to right. */
+ public Node jjtGetChild(int i);
+
+ /** Return the number of children the node has. */
+ public int jjtGetNumChildren();
+
+ /** Accept the visitor. **/
+ public Object jjtAccept(JSParser20Visitor visitor, Object data);
+}
Propchange: incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/Node.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/Node.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/ParseException.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/ParseException.java?rev=425117&view=auto
==============================================================================
--- incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/ParseException.java (added)
+++ incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/ParseException.java Mon Jul 24 09:58:43 2006
@@ -0,0 +1,289 @@
+/*
+ * Copyright 2004,2006 The Apache Software Foundation.
+ *
+ * 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. ParseException.java Version 3.0 */
+package org.apache.myfaces.trinidadbuild.plugin.javascript.javascript20parser;
+
+/**
+ * This exception is thrown when parse errors are encountered.
+ * You can explicitly create objects of this exception type by
+ * calling the method generateParseException in the generated
+ * parser.
+ *
+ * You can modify this class to customize your error reporting
+ * mechanisms so long as you retain the public fields.
+ */
+public class ParseException extends Exception
+{
+
+ /**
+ * This variable determines which constructor was used to create
+ * this object and thereby affects the semantics of the
+ * "getMessage" method (see below).
+ */
+ protected boolean specialConstructor;
+
+ /**
+ * This is the last token that has been consumed successfully. If
+ * this object has been created due to a parse error, the token
+ * followng this token will (therefore) be the first error token.
+ */
+ public Token currentToken;
+
+ /**
+ * Each entry in this array is an array of integers. Each array
+ * of integers represents a sequence of tokens (by their ordinal
+ * values) that is expected at this point of the parse.
+ */
+ public int[][] expectedTokenSequences;
+
+ /**
+ * This is a reference to the "tokenImage" array of the generated
+ * parser within which the parse error occurred. This array is
+ * defined in the generated ...Constants interface.
+ */
+ public String[] tokenImage;
+
+ /**
+ * The end of line string for this machine.
+ */
+ protected String eol = System.getProperty("line.separator", "\n");
+
+ /**
+ * This constructor is used by the method "generateParseException"
+ * in the generated parser. Calling this constructor generates
+ * a new object of this type with the fields "currentToken",
+ * "expectedTokenSequences", and "tokenImage" set. The boolean
+ * flag "specialConstructor" is also set to true to indicate that
+ * this constructor was used to create this object.
+ * This constructor calls its super class with the empty string
+ * to force the "toString" method of parent class "Throwable" to
+ * print the error message in the form:
+ * ParseException: <result of getMessage>
+ */
+ public ParseException(Token currentTokenVal,
+ int[][] expectedTokenSequencesVal,
+ String[] tokenImageVal)
+ {
+ super("");
+ specialConstructor = true;
+ currentToken = currentTokenVal;
+ expectedTokenSequences = expectedTokenSequencesVal;
+ tokenImage = tokenImageVal;
+ }
+
+ /**
+ * The following constructors are for use by you for whatever
+ * purpose you can think of. Constructing the exception in this
+ * manner makes the exception behave in the normal way - i.e., as
+ * documented in the class "Throwable". The fields "errorToken",
+ * "expectedTokenSequences", and "tokenImage" do not contain
+ * relevant information. The JavaCC generated code does not use
+ * these constructors.
+ */
+
+ public ParseException()
+ {
+ super();
+ specialConstructor = false;
+ }
+
+ public ParseException(String message)
+ {
+ super(message);
+ specialConstructor = false;
+ }
+
+ /**
+ * This method has the standard behavior when this object has been
+ * created using the standard constructors. Otherwise, it uses
+ * "currentToken" and "expectedTokenSequences" to generate a parse
+ * error message and returns it. If this object has been created
+ * due to a parse error, and you do not catch it (it gets thrown
+ * from the parser), then this method is called during the printing
+ * of the final stack trace, and hence the correct error message
+ * gets displayed.
+ */
+ public String getMessage()
+ {
+
+ if (!specialConstructor)
+ {
+ return super.getMessage();
+ }
+
+ String expected = "";
+ int maxSize = 0;
+
+ for (int i = 0; i < expectedTokenSequences.length; i++)
+ {
+
+ if (maxSize < expectedTokenSequences[i].length)
+ {
+ maxSize = expectedTokenSequences[i].length;
+ }
+
+ for (int j = 0; j < expectedTokenSequences[i].length; j++)
+ {
+ expected += tokenImage[expectedTokenSequences[i][j]] + " ";
+ }
+
+ if (expectedTokenSequences[i][expectedTokenSequences[i].length - 1] != 0)
+ {
+ expected += "...";
+ }
+
+ expected += eol + " ";
+ }
+
+ String retval = "Encountered \"";
+ Token tok = currentToken.next;
+
+ for (int i = 0; i < maxSize; i++)
+ {
+
+ if (i != 0)
+ {
+ retval += " ";
+ }
+
+ if (tok.kind == 0)
+ {
+ retval += tokenImage[0];
+
+ break;
+ }
+
+ retval += add_escapes(tok.image);
+ tok = tok.next;
+ }
+
+ retval += "\" at line " + currentToken.next.beginLine + ", column " +
+ currentToken.next.beginColumn;
+ retval += "." + eol;
+
+ if (expectedTokenSequences.length == 1)
+ {
+ retval += "Was expecting:" + eol + " ";
+ }
+ else
+ {
+ retval += "Was expecting one of:" + eol + " ";
+ }
+
+ retval += expected;
+
+ return retval;
+ }
+
+ /**
+ * Used to convert raw characters to their escaped version
+ * when these raw version cannot be used as part of an ASCII
+ * string literal.
+ */
+ protected String add_escapes(String str)
+ {
+ StringBuffer retval = new StringBuffer();
+ char ch;
+
+ for (int i = 0; i < str.length(); i++)
+ {
+
+ switch (str.charAt(i))
+ {
+
+ case 0:
+ {
+ continue;
+ }
+
+ case '\b':
+ {
+ retval.append("\\b");
+
+ continue;
+ }
+
+ case '\t':
+ {
+ retval.append("\\t");
+
+ continue;
+ }
+
+ case '\n':
+ {
+ retval.append("\\n");
+
+ continue;
+ }
+
+ case '\f':
+ {
+ retval.append("\\f");
+
+ continue;
+ }
+
+ case '\r':
+ {
+ retval.append("\\r");
+
+ continue;
+ }
+
+ case '\"':
+ {
+ retval.append("\\\"");
+
+ continue;
+ }
+
+ case '\'':
+ {
+ retval.append("\\\'");
+
+ continue;
+ }
+
+ case '\\':
+ {
+ retval.append("\\\\");
+
+ continue;
+ }
+
+ default:
+ {
+
+ if (((ch = str.charAt(i)) < 0x20) || (ch > 0x7e))
+ {
+ String s = "0000" + Integer.toString(ch, 16);
+ retval.append("\\u" + s.substring(s.length() - 4, s.length()));
+ }
+ else
+ {
+ retval.append(ch);
+ }
+
+ continue;
+ }
+ }
+ }
+
+ return retval.toString();
+ }
+
+}
Propchange: incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/ParseException.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/ParseException.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/SimpleCharStream.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/SimpleCharStream.java?rev=425117&view=auto
==============================================================================
--- incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/SimpleCharStream.java (added)
+++ incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/SimpleCharStream.java Mon Jul 24 09:58:43 2006
@@ -0,0 +1,556 @@
+/*
+ * Copyright 2004,2006 The Apache Software Foundation.
+ *
+ * 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. SimpleCharStream.java Version 4.0 */
+package org.apache.myfaces.trinidadbuild.plugin.javascript.javascript20parser;
+
+/**
+ * An implementation of interface CharStream, where the stream is assumed to
+ * contain only ASCII characters (without unicode processing).
+ */
+
+public class SimpleCharStream
+{
+ public static final boolean staticFlag = false;
+ int bufsize;
+ int available;
+ int tokenBegin;
+ public int bufpos = -1;
+ protected int[] bufline;
+ protected int[] bufcolumn;
+
+ protected int column = 0;
+ protected int line = 1;
+
+ protected boolean prevCharIsCR = false;
+ protected boolean prevCharIsLF = false;
+
+ protected java.io.Reader inputStream;
+
+ protected char[] buffer;
+ protected int maxNextCharInd = 0;
+ protected int inBuf = 0;
+ protected int tabSize = 8;
+
+ public SimpleCharStream(java.io.Reader dstream, int startline,
+ int startcolumn, int buffersize)
+ {
+ inputStream = dstream;
+ line = startline;
+ column = startcolumn - 1;
+
+ available = bufsize = buffersize;
+ buffer = new char[buffersize];
+ bufline = new int[buffersize];
+ bufcolumn = new int[buffersize];
+ }
+
+ public SimpleCharStream(java.io.Reader dstream, int startline,
+ int startcolumn)
+ {
+ this(dstream, startline, startcolumn, 4096);
+ }
+
+ public SimpleCharStream(java.io.Reader dstream)
+ {
+ this(dstream, 1, 1, 4096);
+ }
+
+ public SimpleCharStream(java.io.InputStream dstream, String encoding,
+ int startline, int startcolumn, int buffersize)
+ throws java.io.UnsupportedEncodingException
+ {
+ this((encoding == null) ? new java.io.InputStreamReader(dstream)
+ : new java.io.InputStreamReader(dstream, encoding),
+ startline, startcolumn, buffersize);
+ }
+
+ public SimpleCharStream(java.io.InputStream dstream, int startline,
+ int startcolumn, int buffersize)
+ {
+ this(new java.io.InputStreamReader(dstream), startline, startcolumn,
+ buffersize);
+ }
+
+ public SimpleCharStream(java.io.InputStream dstream, String encoding,
+ int startline, int startcolumn)
+ throws java.io.UnsupportedEncodingException
+ {
+ this(dstream, encoding, startline, startcolumn, 4096);
+ }
+
+ public SimpleCharStream(java.io.InputStream dstream, int startline,
+ int startcolumn)
+ {
+ this(dstream, startline, startcolumn, 4096);
+ }
+
+ public SimpleCharStream(java.io.InputStream dstream, String encoding)
+ throws java.io.UnsupportedEncodingException
+ {
+ this(dstream, encoding, 1, 1, 4096);
+ }
+
+ public SimpleCharStream(java.io.InputStream dstream)
+ {
+ this(dstream, 1, 1, 4096);
+ }
+
+ protected void setTabSize(int i)
+ {
+ tabSize = i;
+ }
+
+ protected int getTabSize(int i)
+ {
+ return tabSize;
+ }
+
+
+ protected void ExpandBuff(boolean wrapAround)
+ {
+ char[] newbuffer = new char[bufsize + 2048];
+ int[] newbufline = new int[bufsize + 2048];
+ int[] newbufcolumn = new int[bufsize + 2048];
+
+ try
+ {
+
+ if (wrapAround)
+ {
+ System.arraycopy(buffer, tokenBegin, newbuffer, 0,
+ bufsize - tokenBegin);
+ System.arraycopy(buffer, 0, newbuffer, bufsize - tokenBegin, bufpos);
+ buffer = newbuffer;
+
+ System.arraycopy(bufline, tokenBegin, newbufline, 0,
+ bufsize - tokenBegin);
+ System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos);
+ bufline = newbufline;
+
+ System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0,
+ bufsize - tokenBegin);
+ System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize - tokenBegin,
+ bufpos);
+ bufcolumn = newbufcolumn;
+
+ maxNextCharInd = (bufpos += (bufsize - tokenBegin));
+ }
+ else
+ {
+ System.arraycopy(buffer, tokenBegin, newbuffer, 0,
+ bufsize - tokenBegin);
+ buffer = newbuffer;
+
+ System.arraycopy(bufline, tokenBegin, newbufline, 0,
+ bufsize - tokenBegin);
+ bufline = newbufline;
+
+ System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0,
+ bufsize - tokenBegin);
+ bufcolumn = newbufcolumn;
+
+ maxNextCharInd = (bufpos -= tokenBegin);
+ }
+ }
+ catch (Throwable t)
+ {
+ throw new Error(t.getMessage());
+ }
+
+ bufsize += 2048;
+ available = bufsize;
+ tokenBegin = 0;
+ }
+
+ protected void FillBuff() throws java.io.IOException
+ {
+
+ if (maxNextCharInd == available)
+ {
+
+ if (available == bufsize)
+ {
+
+ if (tokenBegin > 2048)
+ {
+ bufpos = maxNextCharInd = 0;
+ available = tokenBegin;
+ }
+ else if (tokenBegin < 0)
+ {
+ bufpos = maxNextCharInd = 0;
+ }
+ else
+ {
+ ExpandBuff(false);
+ }
+ }
+ else if (available > tokenBegin)
+ {
+ available = bufsize;
+ }
+ else if ((tokenBegin - available) < 2048)
+ {
+ ExpandBuff(true);
+ }
+ else
+ {
+ available = tokenBegin;
+ }
+ }
+
+ int i;
+
+ try
+ {
+
+ if ((i = inputStream.read(buffer, maxNextCharInd,
+ available - maxNextCharInd)) == -1)
+ {
+ inputStream.close();
+ throw new java.io.IOException();
+ }
+ else
+ {
+ maxNextCharInd += i;
+ }
+
+ return;
+ }
+ catch (java.io.IOException e)
+ {
+ --bufpos;
+ backup(0);
+
+ if (tokenBegin == -1)
+ {
+ tokenBegin = bufpos;
+ }
+
+ throw e;
+ }
+ }
+
+ public char BeginToken() throws java.io.IOException
+ {
+ tokenBegin = -1;
+
+ char c = readChar();
+ tokenBegin = bufpos;
+
+ return c;
+ }
+
+ protected void UpdateLineColumn(char c)
+ {
+ column++;
+
+ if (prevCharIsLF)
+ {
+ prevCharIsLF = false;
+ line += (column = 1);
+ }
+ else if (prevCharIsCR)
+ {
+ prevCharIsCR = false;
+
+ if (c == '\n')
+ {
+ prevCharIsLF = true;
+ }
+ else
+ {
+ line += (column = 1);
+ }
+ }
+
+ switch (c)
+ {
+
+ case '\r':
+ {
+ prevCharIsCR = true;
+
+ break;
+ }
+
+ case '\n':
+ {
+ prevCharIsLF = true;
+
+ break;
+ }
+
+ case '\t':
+ {
+ column--;
+ column += (tabSize - (column % tabSize));
+
+ break;
+ }
+
+ default:
+ {
+ break;
+ }
+ }
+
+ bufline[bufpos] = line;
+ bufcolumn[bufpos] = column;
+ }
+
+ public char readChar() throws java.io.IOException
+ {
+
+ if (inBuf > 0)
+ {
+ --inBuf;
+
+ if (++bufpos == bufsize)
+ {
+ bufpos = 0;
+ }
+
+ return buffer[bufpos];
+ }
+
+ if (++bufpos >= maxNextCharInd)
+ {
+ FillBuff();
+ }
+
+ char c = buffer[bufpos];
+
+ UpdateLineColumn(c);
+
+ return (c);
+ }
+
+ /**
+ * @deprecated
+ * @see #getEndColumn
+ */
+
+ public int getColumn()
+ {
+ return bufcolumn[bufpos];
+ }
+
+ /**
+ * @deprecated
+ * @see #getEndLine
+ */
+
+ public int getLine()
+ {
+ return bufline[bufpos];
+ }
+
+ public int getEndColumn()
+ {
+ return bufcolumn[bufpos];
+ }
+
+ public int getEndLine()
+ {
+ return bufline[bufpos];
+ }
+
+ public int getBeginColumn()
+ {
+ return bufcolumn[tokenBegin];
+ }
+
+ public int getBeginLine()
+ {
+ return bufline[tokenBegin];
+ }
+
+ public void backup(int amount)
+ {
+
+ inBuf += amount;
+
+ if ((bufpos -= amount) < 0)
+ {
+ bufpos += bufsize;
+ }
+ }
+
+ public void ReInit(java.io.Reader dstream, int startline, int startcolumn,
+ int buffersize)
+ {
+ inputStream = dstream;
+ line = startline;
+ column = startcolumn - 1;
+
+ if ((buffer == null) || (buffersize != buffer.length))
+ {
+ available = bufsize = buffersize;
+ buffer = new char[buffersize];
+ bufline = new int[buffersize];
+ bufcolumn = new int[buffersize];
+ }
+
+ prevCharIsLF = prevCharIsCR = false;
+ tokenBegin = inBuf = maxNextCharInd = 0;
+ bufpos = -1;
+ }
+
+ public void ReInit(java.io.Reader dstream, int startline, int startcolumn)
+ {
+ ReInit(dstream, startline, startcolumn, 4096);
+ }
+
+ public void ReInit(java.io.Reader dstream)
+ {
+ ReInit(dstream, 1, 1, 4096);
+ }
+
+ public void ReInit(java.io.InputStream dstream, String encoding,
+ int startline, int startcolumn, int buffersize)
+ throws java.io.UnsupportedEncodingException
+ {
+ ReInit((encoding == null)
+ ? new java.io.InputStreamReader(dstream)
+ : new java.io.InputStreamReader(dstream, encoding), startline,
+ startcolumn, buffersize);
+ }
+
+ public void ReInit(java.io.InputStream dstream, int startline,
+ int startcolumn, int buffersize)
+ {
+ ReInit(new java.io.InputStreamReader(dstream), startline, startcolumn,
+ buffersize);
+ }
+
+ public void ReInit(java.io.InputStream dstream, String encoding)
+ throws java.io.UnsupportedEncodingException
+ {
+ ReInit(dstream, encoding, 1, 1, 4096);
+ }
+
+ public void ReInit(java.io.InputStream dstream)
+ {
+ ReInit(dstream, 1, 1, 4096);
+ }
+
+ public void ReInit(java.io.InputStream dstream, String encoding,
+ int startline, int startcolumn)
+ throws java.io.UnsupportedEncodingException
+ {
+ ReInit(dstream, encoding, startline, startcolumn, 4096);
+ }
+
+ public void ReInit(java.io.InputStream dstream, int startline,
+ int startcolumn)
+ {
+ ReInit(dstream, startline, startcolumn, 4096);
+ }
+
+ public String GetImage()
+ {
+
+ if (bufpos >= tokenBegin)
+ {
+ return new String(buffer, tokenBegin, bufpos - tokenBegin + 1);
+ }
+ else
+ {
+ return new String(buffer, tokenBegin, bufsize - tokenBegin) +
+ new String(buffer, 0, bufpos + 1);
+ }
+ }
+
+ public char[] GetSuffix(int len)
+ {
+ char[] ret = new char[len];
+
+ if ((bufpos + 1) >= len)
+ {
+ System.arraycopy(buffer, bufpos - len + 1, ret, 0, len);
+ }
+ else
+ {
+ System.arraycopy(buffer, bufsize - (len - bufpos - 1), ret, 0,
+ len - bufpos - 1);
+ System.arraycopy(buffer, 0, ret, len - bufpos - 1, bufpos + 1);
+ }
+
+ return ret;
+ }
+
+ public void Done()
+ {
+ buffer = null;
+ bufline = null;
+ bufcolumn = null;
+ }
+
+ /**
+ * Method to adjust line and column numbers for the start of a token.
+ */
+ public void adjustBeginLineColumn(int newLine, int newCol)
+ {
+ int start = tokenBegin;
+ int len;
+
+ if (bufpos >= tokenBegin)
+ {
+ len = bufpos - tokenBegin + inBuf + 1;
+ }
+ else
+ {
+ len = bufsize - tokenBegin + bufpos + 1 + inBuf;
+ }
+
+ int i = 0, j = 0, k = 0;
+ int nextColDiff = 0, columnDiff = 0;
+
+ while ((i < len) &&
+ (bufline[j = start % bufsize] == bufline[k = ++start % bufsize]))
+ {
+ bufline[j] = newLine;
+ nextColDiff = columnDiff + bufcolumn[k] - bufcolumn[j];
+ bufcolumn[j] = newCol + columnDiff;
+ columnDiff = nextColDiff;
+ i++;
+ }
+
+ if (i < len)
+ {
+ bufline[j] = newLine++;
+ bufcolumn[j] = newCol + columnDiff;
+
+ while (i++ < len)
+ {
+
+ if (bufline[j = start % bufsize] != bufline[++start % bufsize])
+ {
+ bufline[j] = newLine++;
+ }
+ else
+ {
+ bufline[j] = newLine;
+ }
+ }
+ }
+
+ line = bufline[j];
+ column = bufcolumn[j];
+ }
+
+}
Propchange: incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/SimpleCharStream.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/SimpleCharStream.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/SimpleNode.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/SimpleNode.java?rev=425117&view=auto
==============================================================================
--- incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/SimpleNode.java (added)
+++ incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/SimpleNode.java Mon Jul 24 09:58:43 2006
@@ -0,0 +1,150 @@
+/*
+ * Copyright 2004,2006 The Apache Software Foundation.
+ *
+ * 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:JJTree: Do not edit this line. SimpleNode.java */
+
+package org.apache.myfaces.trinidadbuild.plugin.javascript.javascript20parser;
+
+public class SimpleNode implements Node
+{
+ protected Node parent;
+ protected Node[] children;
+ protected int id;
+ protected JSParser20 parser;
+
+ protected Token first;
+ protected Token last;
+
+ public SimpleNode(int i)
+ {
+ id = i;
+ }
+
+ public SimpleNode(JSParser20 p, int i)
+ {
+ this(i);
+ parser = p;
+ }
+
+ public void jjtOpen()
+ {
+ first = parser.getToken(1); // new
+ }
+
+ public void jjtClose()
+ {
+ last = parser.getToken(0); // new
+ }
+
+ public Token getFirstToken() { return first; } // new
+ public Token getLastToken() { return last; } // new
+
+ public void jjtSetParent(Node n)
+ {
+ parent = n;
+ }
+
+ public Node jjtGetParent()
+ {
+ return parent;
+ }
+
+ public void jjtAddChild(Node n, int i)
+ {
+
+ if (children == null)
+ {
+ children = new Node[i + 1];
+ }
+ else if (i >= children.length)
+ {
+ Node[] c = new Node[i + 1];
+ System.arraycopy(children, 0, c, 0, children.length);
+ children = c;
+ }
+
+ children[i] = n;
+ }
+
+ public Node jjtGetChild(int i)
+ {
+ return children[i];
+ }
+
+ public int jjtGetNumChildren()
+ {
+ return (children == null) ? 0 : children.length;
+ }
+
+ /** Accept the visitor. **/
+ public Object jjtAccept(JSParser20Visitor visitor, Object data)
+ {
+ return visitor.visit(this, data);
+ }
+
+ /** Accept the visitor. **/
+ public Object childrenAccept(JSParser20Visitor visitor, Object data)
+ {
+
+ if (children != null)
+ {
+
+ for (int i = 0; i < children.length; ++i)
+ {
+ children[i].jjtAccept(visitor, data);
+ }
+ }
+
+ return data;
+ }
+
+ /* You can override these two methods in subclasses of SimpleNode to
+ customize the way the node appears when the tree is dumped. If
+ your output uses more than one line you should override
+ toString(String), otherwise overriding toString() is probably all
+ you need to do. */
+
+ public String toString()
+ {
+ return JSParser20TreeConstants.jjtNodeName[id];
+ }
+
+ public String toString(String prefix)
+ {
+ return prefix + toString();
+ }
+
+ /* Override this method if you want to customize how the node dumps
+ out its children. */
+
+ public void dump(String prefix)
+ {
+ System.out.println(toString(prefix));
+
+ if (children != null)
+ {
+
+ for (int i = 0; i < children.length; ++i)
+ {
+ SimpleNode n = (SimpleNode) children[i];
+
+ if (n != null)
+ {
+ n.dump(prefix + " ");
+ }
+ }
+ }
+ }
+}
Propchange: incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/SimpleNode.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/SimpleNode.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/Token.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/Token.java?rev=425117&view=auto
==============================================================================
--- incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/Token.java (added)
+++ incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/Token.java Mon Jul 24 09:58:43 2006
@@ -0,0 +1,102 @@
+/*
+ * Copyright 2004,2006 The Apache Software Foundation.
+ *
+ * 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. Token.java Version 3.0 */
+package org.apache.myfaces.trinidadbuild.plugin.javascript.javascript20parser;
+
+/**
+ * Describes the input token stream.
+ */
+
+public class Token
+{
+ public boolean hasPrinted = false;
+ /**
+ * An integer that describes the kind of this token. This numbering
+ * system is determined by JavaCCParser, and a table of these numbers is
+ * stored in the file ...Constants.java.
+ */
+ public int kind;
+
+ /**
+ * beginLine and beginColumn describe the position of the first character
+ * of this token; endLine and endColumn describe the position of the
+ * last character of this token.
+ */
+ public int beginLine, beginColumn, endLine, endColumn;
+
+ /**
+ * The string image of the token.
+ */
+ public String image;
+
+ /**
+ * A reference to the next regular (non-special) token from the input
+ * stream. If this is the last token from the input stream, or if the
+ * token manager has not read tokens beyond this one, this field is
+ * set to null. This is true only if this token is also a regular
+ * token. Otherwise, see below for a description of the contents of
+ * this field.
+ */
+ public Token next;
+
+ /**
+ * This field is used to access special tokens that occur prior to this
+ * token, but after the immediately preceding regular (non-special) token.
+ * If there are no such special tokens, this field is set to null.
+ * When there are more than one such special token, this field refers
+ * to the last of these special tokens, which in turn refers to the next
+ * previous special token through its specialToken field, and so on
+ * until the first special token (whose specialToken field is null).
+ * The next fields of special tokens refer to other special tokens that
+ * immediately follow it (without an intervening regular token). If there
+ * is no such token, this field is null.
+ */
+ public Token specialToken;
+
+ /**
+ * Returns the image.
+ */
+ public String toString()
+ {
+ return image;
+ }
+
+ /**
+ * Returns a new Token object, by default. However, if you want, you
+ * can create and return subclass objects based on the value of ofKind.
+ * Simply add the cases to the switch for all those special cases.
+ * For example, if you have a subclass of Token called IDToken that
+ * you want to create if ofKind is ID, simlpy add something like :
+ *
+ * case MyParserConstants.ID : return new IDToken();
+ *
+ * to the following switch statement. Then you can cast matchedToken
+ * variable to the appropriate type and use it in your lexical actions.
+ */
+ public static final Token newToken(int ofKind)
+ {
+
+ switch (ofKind)
+ {
+
+ default:
+ {
+ return new Token();
+ }
+ }
+ }
+
+}
Propchange: incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/Token.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/Token.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/TokenMgrError.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/TokenMgrError.java?rev=425117&view=auto
==============================================================================
--- incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/TokenMgrError.java (added)
+++ incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/TokenMgrError.java Mon Jul 24 09:58:43 2006
@@ -0,0 +1,208 @@
+/*
+ * Copyright 2004,2006 The Apache Software Foundation.
+ *
+ * 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. TokenMgrError.java Version 3.0 */
+package org.apache.myfaces.trinidadbuild.plugin.javascript.javascript20parser;
+
+public class TokenMgrError extends Error
+{
+ /*
+ * Ordinals for various reasons why an Error of this type can be thrown.
+ */
+
+ /**
+ * Lexical error occured.
+ */
+ static final int LEXICAL_ERROR = 0;
+
+ /**
+ * An attempt wass made to create a second instance of a static token manager.
+ */
+ static final int STATIC_LEXER_ERROR = 1;
+
+ /**
+ * Tried to change to an invalid lexical state.
+ */
+ static final int INVALID_LEXICAL_STATE = 2;
+
+ /**
+ * Detected (and bailed out of) an infinite loop in the token manager.
+ */
+ static final int LOOP_DETECTED = 3;
+
+ /**
+ * Indicates the reason why the exception is thrown. It will have
+ * one of the above 4 values.
+ */
+ int errorCode;
+
+ /*
+ * Constructors of various flavors follow.
+ */
+
+ public TokenMgrError()
+ {
+ }
+
+ public TokenMgrError(String message, int reason)
+ {
+ super(message);
+ errorCode = reason;
+ }
+
+ public TokenMgrError(boolean EOFSeen, int lexState, int errorLine,
+ int errorColumn, String errorAfter, char curChar,
+ int reason)
+ {
+ this(LexicalError(EOFSeen, lexState, errorLine, errorColumn, errorAfter,
+ curChar), reason);
+ }
+
+ /**
+ * Replaces unprintable characters by their espaced (or unicode escaped)
+ * equivalents in the given string
+ */
+ protected static final String addEscapes(String str)
+ {
+ StringBuffer retval = new StringBuffer();
+ char ch;
+
+ for (int i = 0; i < str.length(); i++)
+ {
+
+ switch (str.charAt(i))
+ {
+
+ case 0:
+ {
+ continue;
+ }
+
+ case '\b':
+ {
+ retval.append("\\b");
+
+ continue;
+ }
+
+ case '\t':
+ {
+ retval.append("\\t");
+
+ continue;
+ }
+
+ case '\n':
+ {
+ retval.append("\\n");
+
+ continue;
+ }
+
+ case '\f':
+ {
+ retval.append("\\f");
+
+ continue;
+ }
+
+ case '\r':
+ {
+ retval.append("\\r");
+
+ continue;
+ }
+
+ case '\"':
+ {
+ retval.append("\\\"");
+
+ continue;
+ }
+
+ case '\'':
+ {
+ retval.append("\\\'");
+
+ continue;
+ }
+
+ case '\\':
+ {
+ retval.append("\\\\");
+
+ continue;
+ }
+
+ default:
+ {
+
+ if (((ch = str.charAt(i)) < 0x20) || (ch > 0x7e))
+ {
+ String s = "0000" + Integer.toString(ch, 16);
+ retval.append("\\u" + s.substring(s.length() - 4, s.length()));
+ }
+ else
+ {
+ retval.append(ch);
+ }
+
+ continue;
+ }
+ }
+ }
+
+ return retval.toString();
+ }
+
+ /**
+ * Returns a detailed message for the Error when it is thrown by the
+ * token manager to indicate a lexical error.
+ * Parameters :
+ * EOFSeen : indicates if EOF caused the lexicl error
+ * curLexState : lexical state in which this error occured
+ * errorLine : line number when the error occured
+ * errorColumn : column number when the error occured
+ * errorAfter : prefix that was seen before this error occured
+ * curchar : the offending character
+ * Note: You can customize the lexical error message by modifying this method.
+ */
+ protected static String LexicalError(boolean EOFSeen, int lexState,
+ int errorLine, int errorColumn,
+ String errorAfter, char curChar)
+ {
+ return ("Lexical error at line " + errorLine + ", column " + errorColumn +
+ ". Encountered: " +
+ (EOFSeen
+ ? "<EOF> "
+ : (("\"" + addEscapes(String.valueOf(curChar)) + "\"") + " (" +
+ (int) curChar + "), ")) + "after : \"" + addEscapes(errorAfter) +
+ "\"");
+ }
+
+ /**
+ * You can also modify the body of this method to customize your error messages.
+ * For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
+ * of end-users concern, so you can return something like :
+ *
+ * "Internal Error : Please file a bug report .... "
+ *
+ * from this method for such cases in the release version of your parser.
+ */
+ public String getMessage()
+ {
+ return super.getMessage();
+ }
+}
Propchange: incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/TokenMgrError.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/adffaces/branches/matzew-repackaging-trinidad/plugins/maven-javascript-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/javascript/javascript20parser/TokenMgrError.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL