Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added grammar definition for MATCH syntax
- Loading branch information
1 parent
3d09cc7
commit c31ef20
Showing
12 changed files
with
4,150 additions
and
3,125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
core/src/main/java/com/orientechnologies/orient/core/sql/parser/OMatchExpression.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* Generated By:JJTree: Do not edit this line. OMatchExpression.java Version 4.3 */ | ||
/* JavaCCOptions:MULTI=true,NODE_USES_PARSER=false,VISITOR=true,TRACK_TOKENS=true,NODE_PREFIX=O,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */ | ||
package com.orientechnologies.orient.core.sql.parser; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class OMatchExpression extends SimpleNode { | ||
protected OMatchFilter origin; | ||
protected List<OMatchPathItem> items = new ArrayList<OMatchPathItem>(); | ||
|
||
public OMatchExpression(int id) { | ||
super(id); | ||
} | ||
|
||
public OMatchExpression(OrientSql p, int id) { | ||
super(p, id); | ||
} | ||
|
||
/** Accept the visitor. **/ | ||
public Object jjtAccept(OrientSqlVisitor visitor, Object data) { | ||
return visitor.visit(this, data); | ||
} | ||
} | ||
/* JavaCC - OriginalChecksum=73491fb653c32baf66997290db29f370 (do not edit this line) */ |
24 changes: 24 additions & 0 deletions
24
core/src/main/java/com/orientechnologies/orient/core/sql/parser/OMatchFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* Generated By:JJTree: Do not edit this line. OMatchFilter.java Version 4.3 */ | ||
/* JavaCCOptions:MULTI=true,NODE_USES_PARSER=false,VISITOR=true,TRACK_TOKENS=true,NODE_PREFIX=O,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */ | ||
package com.orientechnologies.orient.core.sql.parser; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class OMatchFilter extends SimpleNode { | ||
protected List<OMatchFilterItem> items = new ArrayList<OMatchFilterItem>(); | ||
|
||
public OMatchFilter(int id) { | ||
super(id); | ||
} | ||
|
||
public OMatchFilter(OrientSql p, int id) { | ||
super(p, id); | ||
} | ||
|
||
/** Accept the visitor. **/ | ||
public Object jjtAccept(OrientSqlVisitor visitor, Object data) { | ||
return visitor.visit(this, data); | ||
} | ||
} | ||
/* JavaCC - OriginalChecksum=6b099371c69e0d0c1c106fc96b3072de (do not edit this line) */ |
27 changes: 27 additions & 0 deletions
27
core/src/main/java/com/orientechnologies/orient/core/sql/parser/OMatchFilterItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* Generated By:JJTree: Do not edit this line. OMatchFilterItem.java Version 4.3 */ | ||
/* JavaCCOptions:MULTI=true,NODE_USES_PARSER=false,VISITOR=true,TRACK_TOKENS=true,NODE_PREFIX=O,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */ | ||
package com.orientechnologies.orient.core.sql.parser; | ||
|
||
public class OMatchFilterItem extends SimpleNode { | ||
protected OExpression className; | ||
protected OExpression classNames; | ||
protected OExpression alias; | ||
protected OWhereClause filter; | ||
protected OArrayRangeSelector depth; | ||
protected OInteger minDepth; | ||
protected OInteger maxDepth; | ||
|
||
public OMatchFilterItem(int id) { | ||
super(id); | ||
} | ||
|
||
public OMatchFilterItem(OrientSql p, int id) { | ||
super(p, id); | ||
} | ||
|
||
/** Accept the visitor. **/ | ||
public Object jjtAccept(OrientSqlVisitor visitor, Object data) { | ||
return visitor.visit(this, data); | ||
} | ||
} | ||
/* JavaCC - OriginalChecksum=74bf4765509f102180cac29f2295031e (do not edit this line) */ |
22 changes: 22 additions & 0 deletions
22
core/src/main/java/com/orientechnologies/orient/core/sql/parser/OMatchPathItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* Generated By:JJTree: Do not edit this line. OMatchPathItem.java Version 4.3 */ | ||
/* JavaCCOptions:MULTI=true,NODE_USES_PARSER=false,VISITOR=true,TRACK_TOKENS=true,NODE_PREFIX=O,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */ | ||
package com.orientechnologies.orient.core.sql.parser; | ||
|
||
public class OMatchPathItem extends SimpleNode { | ||
protected OMethodCall method; | ||
protected OMatchFilter filter; | ||
|
||
public OMatchPathItem(int id) { | ||
super(id); | ||
} | ||
|
||
public OMatchPathItem(OrientSql p, int id) { | ||
super(p, id); | ||
} | ||
|
||
/** Accept the visitor. **/ | ||
public Object jjtAccept(OrientSqlVisitor visitor, Object data) { | ||
return visitor.visit(this, data); | ||
} | ||
} | ||
/* JavaCC - OriginalChecksum=ffe8e0ffde583d7b21c9084eff6a8944 (do not edit this line) */ |
25 changes: 25 additions & 0 deletions
25
core/src/main/java/com/orientechnologies/orient/core/sql/parser/OMatchStatement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* Generated By:JJTree: Do not edit this line. OMatchStatement.java Version 4.3 */ | ||
/* JavaCCOptions:MULTI=true,NODE_USES_PARSER=false,VISITOR=true,TRACK_TOKENS=true,NODE_PREFIX=O,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */ | ||
package com.orientechnologies.orient.core.sql.parser; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class OMatchStatement extends OStatement { | ||
protected List<OMatchExpression> matchExpressions = new ArrayList<OMatchExpression>(); | ||
protected List<OIdentifier> returnItems = new ArrayList<OIdentifier>(); | ||
|
||
public OMatchStatement(int id) { | ||
super(id); | ||
} | ||
|
||
public OMatchStatement(OrientSql p, int id) { | ||
super(p, id); | ||
} | ||
|
||
/** Accept the visitor. **/ | ||
public Object jjtAccept(OrientSqlVisitor visitor, Object data) { | ||
return visitor.visit(this, data); | ||
} | ||
} | ||
/* JavaCC - OriginalChecksum=6ff0afbe9d31f08b72159fcf24070c9f (do not edit this line) */ |
24 changes: 24 additions & 0 deletions
24
core/src/main/java/com/orientechnologies/orient/core/sql/parser/OMultiMatchPathItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* Generated By:JJTree: Do not edit this line. OMultiMatchPathItem.java Version 4.3 */ | ||
/* JavaCCOptions:MULTI=true,NODE_USES_PARSER=false,VISITOR=true,TRACK_TOKENS=true,NODE_PREFIX=O,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */ | ||
package com.orientechnologies.orient.core.sql.parser; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class OMultiMatchPathItem extends OMatchPathItem { | ||
protected List<OMatchPathItem> items = new ArrayList<OMatchPathItem>(); | ||
|
||
public OMultiMatchPathItem(int id) { | ||
super(id); | ||
} | ||
|
||
public OMultiMatchPathItem(OrientSql p, int id) { | ||
super(p, id); | ||
} | ||
|
||
/** Accept the visitor. **/ | ||
public Object jjtAccept(OrientSqlVisitor visitor, Object data) { | ||
return visitor.visit(this, data); | ||
} | ||
} | ||
/* JavaCC - OriginalChecksum=f18f107768de80b8941f166d7fafb3c0 (do not edit this line) */ |
Oops, something went wrong.