forked from opengaussexamples/examples
add PL ast classes
This commit is contained in:
parent
2d58893d57
commit
146795c22d
|
|
@ -4,8 +4,13 @@
|
||||||
<option name="autoReloadType" value="SELECTIVE" />
|
<option name="autoReloadType" value="SELECTIVE" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="d8d12963-4777-48e3-9669-309cf5e41d60" name="更改" comment="add trigger">
|
<list default="true" id="d8d12963-4777-48e3-9669-309cf5e41d60" name="更改" comment="add PL document">
|
||||||
<change afterPath="$PROJECT_DIR$/src/main/java/Document/PL in Oracle" afterDir="false" />
|
<change afterPath="$PROJECT_DIR$/src/main/java/Parser/AST/PL/PLBeginNode.java" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/src/main/java/Parser/AST/PL/PLBodyNode.java" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/src/main/java/Parser/AST/PL/PLDeclareNode.java" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/src/main/java/Parser/AST/PL/PLEndNode.java" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/src/main/java/Parser/AST/PL/PLNode.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
|
@ -103,13 +108,6 @@
|
||||||
<option name="presentableId" value="Default" />
|
<option name="presentableId" value="Default" />
|
||||||
<updated>1723106789329</updated>
|
<updated>1723106789329</updated>
|
||||||
</task>
|
</task>
|
||||||
<task id="LOCAL-00041" summary="refractor">
|
|
||||||
<created>1726143715098</created>
|
|
||||||
<option name="number" value="00041" />
|
|
||||||
<option name="presentableId" value="LOCAL-00041" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1726143715098</updated>
|
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00042" summary="refractor">
|
<task id="LOCAL-00042" summary="refractor">
|
||||||
<created>1726143907403</created>
|
<created>1726143907403</created>
|
||||||
<option name="number" value="00042" />
|
<option name="number" value="00042" />
|
||||||
|
|
@ -446,7 +444,14 @@
|
||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1726628514220</updated>
|
<updated>1726628514220</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="90" />
|
<task id="LOCAL-00090" summary="add PL document">
|
||||||
|
<created>1726629251761</created>
|
||||||
|
<option name="number" value="00090" />
|
||||||
|
<option name="presentableId" value="LOCAL-00090" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1726629251761</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="91" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="Vcs.Log.Tabs.Properties">
|
<component name="Vcs.Log.Tabs.Properties">
|
||||||
|
|
@ -461,7 +466,6 @@
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
<component name="VcsManagerConfiguration">
|
<component name="VcsManagerConfiguration">
|
||||||
<MESSAGE value="add keywords of view" />
|
|
||||||
<MESSAGE value="add ast class of view" />
|
<MESSAGE value="add ast class of view" />
|
||||||
<MESSAGE value="add view" />
|
<MESSAGE value="add view" />
|
||||||
<MESSAGE value="add view generate method" />
|
<MESSAGE value="add view generate method" />
|
||||||
|
|
@ -486,7 +490,8 @@
|
||||||
<MESSAGE value="add trigger document" />
|
<MESSAGE value="add trigger document" />
|
||||||
<MESSAGE value="add trigger ast classes" />
|
<MESSAGE value="add trigger ast classes" />
|
||||||
<MESSAGE value="add trigger" />
|
<MESSAGE value="add trigger" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="add trigger" />
|
<MESSAGE value="add PL document" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="add PL document" />
|
||||||
</component>
|
</component>
|
||||||
<component name="XDebuggerManager">
|
<component name="XDebuggerManager">
|
||||||
<watches-manager>
|
<watches-manager>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
package Parser.AST.PL;
|
||||||
|
|
||||||
|
import Lexer.Token;
|
||||||
|
import Parser.AST.ASTNode;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class PLBeginNode extends ASTNode {
|
||||||
|
public PLBeginNode() {
|
||||||
|
super();
|
||||||
|
setTokens(new ArrayList<>());
|
||||||
|
}
|
||||||
|
|
||||||
|
public PLBeginNode(ASTNode node) {
|
||||||
|
super(node);
|
||||||
|
}
|
||||||
|
|
||||||
|
public PLBeginNode(List<Token> tokens) {
|
||||||
|
super(tokens);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void visit(ASTNode node, StringBuilder queryString) {
|
||||||
|
queryString.append(toString() + " ");
|
||||||
|
for (ASTNode child : getChildren())
|
||||||
|
{
|
||||||
|
child.visit(child, queryString);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
package Parser.AST.PL;
|
||||||
|
|
||||||
|
import Lexer.Token;
|
||||||
|
import Parser.AST.ASTNode;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class PLBodyNode extends ASTNode {
|
||||||
|
public PLBodyNode() {
|
||||||
|
super();
|
||||||
|
setTokens(new ArrayList<>());
|
||||||
|
}
|
||||||
|
|
||||||
|
public PLBodyNode(ASTNode node) {
|
||||||
|
super(node);
|
||||||
|
}
|
||||||
|
|
||||||
|
public PLBodyNode(List<Token> tokens) {
|
||||||
|
super(tokens);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void visit(ASTNode node, StringBuilder queryString) {
|
||||||
|
queryString.append(toString() + " ");
|
||||||
|
for (ASTNode child : getChildren())
|
||||||
|
{
|
||||||
|
child.visit(child, queryString);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
package Parser.AST.PL;
|
||||||
|
|
||||||
|
import Lexer.Token;
|
||||||
|
import Parser.AST.ASTNode;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class PLDeclareNode extends ASTNode {
|
||||||
|
public PLDeclareNode() {
|
||||||
|
super();
|
||||||
|
setTokens(new ArrayList<>());
|
||||||
|
}
|
||||||
|
|
||||||
|
public PLDeclareNode(ASTNode node) {
|
||||||
|
super(node);
|
||||||
|
}
|
||||||
|
|
||||||
|
public PLDeclareNode(List<Token> tokens) {
|
||||||
|
super(tokens);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void visit(ASTNode node, StringBuilder queryString) {
|
||||||
|
queryString.append(toString() + " ");
|
||||||
|
for (ASTNode child : getChildren())
|
||||||
|
{
|
||||||
|
child.visit(child, queryString);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
package Parser.AST.PL;
|
||||||
|
|
||||||
|
import Lexer.Token;
|
||||||
|
import Parser.AST.ASTNode;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class PLEndNode extends ASTNode {
|
||||||
|
public PLEndNode() {
|
||||||
|
super();
|
||||||
|
setTokens(new ArrayList<>());
|
||||||
|
}
|
||||||
|
|
||||||
|
public PLEndNode(ASTNode node) {
|
||||||
|
super(node);
|
||||||
|
}
|
||||||
|
|
||||||
|
public PLEndNode(List<Token> tokens) {
|
||||||
|
super(tokens);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void visit(ASTNode node, StringBuilder queryString) {
|
||||||
|
queryString.append(toString());
|
||||||
|
for (ASTNode child : getChildren())
|
||||||
|
{
|
||||||
|
child.visit(child, queryString);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
package Parser.AST.PL;
|
||||||
|
|
||||||
|
import Lexer.Token;
|
||||||
|
import Parser.AST.ASTNode;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class PLNode extends ASTNode {
|
||||||
|
public PLNode() {
|
||||||
|
super();
|
||||||
|
setTokens(new ArrayList<>());
|
||||||
|
}
|
||||||
|
|
||||||
|
public PLNode(ASTNode node) {
|
||||||
|
super(node);
|
||||||
|
}
|
||||||
|
|
||||||
|
public PLNode(List<Token> tokens) {
|
||||||
|
super(tokens);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void visit(ASTNode node, StringBuilder queryString) {
|
||||||
|
queryString.append(toString() + " ");
|
||||||
|
for (ASTNode child : getChildren())
|
||||||
|
{
|
||||||
|
child.visit(child, queryString);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue