Author: steve.ebersole(a)jboss.com
Date: 2009-04-20 17:58:44 -0400 (Mon, 20 Apr 2009)
New Revision: 16366
Added:
core/branches/antlr3/src/main/java/org/hibernate/sql/ast/tree/EntityNameTree.java
Removed:
core/branches/antlr3/src/main/java/org/hibernate/sql/ast/phase/hql/parse/EntityNameTree.java
Log:
tree package
Deleted:
core/branches/antlr3/src/main/java/org/hibernate/sql/ast/phase/hql/parse/EntityNameTree.java
===================================================================
---
core/branches/antlr3/src/main/java/org/hibernate/sql/ast/phase/hql/parse/EntityNameTree.java 2009-04-20
21:57:42 UTC (rev 16365)
+++
core/branches/antlr3/src/main/java/org/hibernate/sql/ast/phase/hql/parse/EntityNameTree.java 2009-04-20
21:58:44 UTC (rev 16366)
@@ -1,38 +0,0 @@
-package org.hibernate.sql.ast.phase.hql.parse;
-
-import java.util.List;
-
-import org.antlr.runtime.CommonToken;
-import org.antlr.runtime.Token;
-import org.antlr.runtime.tree.CommonTree;
-
-public class EntityNameTree extends CommonTree {
-
- private List entityNames = null;
- private String outputText = null;
-
- public EntityNameTree(EntityNameTree entityNameTree, String outputText) {
- this.token = entityNameTree.getToken();
- this.outputText = outputText;
- }
-
- public EntityNameTree(int tokenType, Token token, String tokenText,
- List entityNames) {
- Token newToken = createToken(token);
- newToken.setType(tokenType);
- newToken.setText(tokenText);
- this.token = newToken;
- this.entityNames = entityNames;
- }
-
- private Token createToken(Token fromToken) {
- return new CommonToken(fromToken);
- }
-
- public String toString() {
- if (outputText == null) {
- outputText = entityNames.get(0).toString();
- }
- return outputText;
- }
-}
\ No newline at end of file
Copied: core/branches/antlr3/src/main/java/org/hibernate/sql/ast/tree/EntityNameTree.java
(from rev 16362,
core/branches/antlr3/src/main/java/org/hibernate/sql/ast/phase/hql/parse/EntityNameTree.java)
===================================================================
--- core/branches/antlr3/src/main/java/org/hibernate/sql/ast/tree/EntityNameTree.java
(rev 0)
+++
core/branches/antlr3/src/main/java/org/hibernate/sql/ast/tree/EntityNameTree.java 2009-04-20
21:58:44 UTC (rev 16366)
@@ -0,0 +1,38 @@
+package org.hibernate.sql.ast.tree;
+
+import java.util.List;
+
+import org.antlr.runtime.CommonToken;
+import org.antlr.runtime.Token;
+import org.antlr.runtime.tree.CommonTree;
+
+public class EntityNameTree extends CommonTree {
+
+ private List entityNames = null;
+ private String outputText = null;
+
+ public EntityNameTree(EntityNameTree entityNameTree, String outputText) {
+ this.token = entityNameTree.getToken();
+ this.outputText = outputText;
+ }
+
+ public EntityNameTree(int tokenType, Token token, String tokenText,
+ List entityNames) {
+ Token newToken = createToken(token);
+ newToken.setType(tokenType);
+ newToken.setText(tokenText);
+ this.token = newToken;
+ this.entityNames = entityNames;
+ }
+
+ private Token createToken(Token fromToken) {
+ return new CommonToken(fromToken);
+ }
+
+ public String toString() {
+ if (outputText == null) {
+ outputText = entityNames.get(0).toString();
+ }
+ return outputText;
+ }
+}
\ No newline at end of file
Property changes on:
core/branches/antlr3/src/main/java/org/hibernate/sql/ast/tree/EntityNameTree.java
___________________________________________________________________
Name: svn:eol-style
+ native