Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
56fb3686
提交
56fb3686
authored
14 年前
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
H2 Console: improved autocomplete feature (also simplified the source code for this feature).
上级
3226f510
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
0 行增加
和
70 行删除
+0
-70
Rule.java
h2/src/main/org/h2/bnf/Rule.java
+0
-7
RuleElement.java
h2/src/main/org/h2/bnf/RuleElement.java
+0
-8
RuleFixed.java
h2/src/main/org/h2/bnf/RuleFixed.java
+0
-8
RuleList.java
h2/src/main/org/h2/bnf/RuleList.java
+0
-8
RuleOptional.java
h2/src/main/org/h2/bnf/RuleOptional.java
+0
-8
RuleRepeat.java
h2/src/main/org/h2/bnf/RuleRepeat.java
+0
-8
DbContextRule.java
h2/src/main/org/h2/server/web/DbContextRule.java
+0
-23
没有找到文件。
h2/src/main/org/h2/bnf/Rule.java
浏览文件 @
56fb3686
...
...
@@ -13,13 +13,6 @@ import java.util.HashMap;
*/
public
interface
Rule
{
/**
* Get the name of the rule.
*
* @return the name
*/
String
name
();
/**
* Update cross references.
*
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/bnf/RuleElement.java
浏览文件 @
56fb3686
...
...
@@ -33,10 +33,6 @@ public class RuleElement implements Rule {
visitor
.
visitRuleElement
(
keyword
,
name
,
link
);
}
public
String
name
()
{
return
name
;
}
public
void
setLinks
(
HashMap
<
String
,
RuleHead
>
ruleMap
)
{
if
(
link
!=
null
)
{
link
.
setLinks
(
ruleMap
);
...
...
@@ -81,8 +77,4 @@ public class RuleElement implements Rule {
return
link
.
autoComplete
(
sentence
);
}
public
String
toString
()
{
return
name
;
}
}
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/bnf/RuleFixed.java
浏览文件 @
56fb3686
...
...
@@ -33,10 +33,6 @@ public class RuleFixed implements Rule {
visitor
.
visitRuleFixed
(
type
);
}
public
String
name
()
{
return
"type="
+
type
;
}
public
void
setLinks
(
HashMap
<
String
,
RuleHead
>
ruleMap
)
{
// nothing to do
}
...
...
@@ -201,8 +197,4 @@ public class RuleFixed implements Rule {
return
false
;
}
public
String
toString
()
{
return
name
();
}
}
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/bnf/RuleList.java
浏览文件 @
56fb3686
...
...
@@ -38,10 +38,6 @@ public class RuleList implements Rule {
visitor
.
visitRuleList
(
or
,
list
);
}
public
String
name
()
{
return
null
;
}
public
void
setLinks
(
HashMap
<
String
,
RuleHead
>
ruleMap
)
{
if
(!
mapSet
)
{
for
(
Rule
r
:
list
)
{
...
...
@@ -75,8 +71,4 @@ public class RuleList implements Rule {
}
}
public
String
toString
()
{
return
or
?
"or: "
:
""
+
list
.
toString
();
}
}
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/bnf/RuleOptional.java
浏览文件 @
56fb3686
...
...
@@ -23,10 +23,6 @@ public class RuleOptional implements Rule {
visitor
.
visitRuleOptional
(
rule
);
}
public
String
name
()
{
return
null
;
}
public
void
setLinks
(
HashMap
<
String
,
RuleHead
>
ruleMap
)
{
if
(!
mapSet
)
{
rule
.
setLinks
(
ruleMap
);
...
...
@@ -41,8 +37,4 @@ public class RuleOptional implements Rule {
return
true
;
}
public
String
toString
()
{
return
rule
.
toString
();
}
}
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/bnf/RuleRepeat.java
浏览文件 @
56fb3686
...
...
@@ -25,10 +25,6 @@ public class RuleRepeat implements Rule {
visitor
.
visitRuleRepeat
(
comma
,
rule
);
}
public
String
name
()
{
return
rule
.
name
();
}
public
void
setLinks
(
HashMap
<
String
,
RuleHead
>
ruleMap
)
{
// rule.setLinks(ruleMap);
}
...
...
@@ -43,8 +39,4 @@ public class RuleRepeat implements Rule {
return
true
;
}
public
String
toString
()
{
return
rule
.
toString
();
}
}
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/server/web/DbContextRule.java
浏览文件 @
56fb3686
...
...
@@ -34,29 +34,6 @@ public class DbContextRule implements Rule {
this
.
type
=
type
;
}
public
String
toString
()
{
switch
(
type
)
{
case
SCHEMA:
return
"schema"
;
case
TABLE:
return
"table"
;
case
NEW_TABLE_ALIAS:
return
"nt"
;
case
TABLE_ALIAS:
return
"t"
;
case
COLUMN_ALIAS:
return
"c"
;
case
COLUMN:
return
"column"
;
default
:
return
"?"
;
}
}
public
String
name
()
{
return
null
;
}
public
void
setLinks
(
HashMap
<
String
,
RuleHead
>
ruleMap
)
{
// nothing to do
}
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论