Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
4e33a2d6
S
spring-framework
项目概览
爱吃血肠
/
spring-framework
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
spring-framework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4e33a2d6
编写于
8月 14, 2008
作者:
A
Andy Clement
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tweaked grammar to handle 0X as a hex prefix and removed 'u'/'U' from int suffixes for now
上级
2173a498
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
7101 addition
and
8221 deletion
+7101
-8221
org.springframework.expression/src/main/java/org/springframework/expression/spel/SpelMessages.java
...ava/org/springframework/expression/spel/SpelMessages.java
+14
-15
org.springframework.expression/src/main/java/org/springframework/expression/spel/generated/SpringExpressions.g
...ngframework/expression/spel/generated/SpringExpressions.g
+2
-2
org.springframework.expression/src/main/java/org/springframework/expression/spel/generated/SpringExpressionsLexer.java
...ork/expression/spel/generated/SpringExpressionsLexer.java
+514
-612
org.springframework.expression/src/main/java/org/springframework/expression/spel/generated/SpringExpressionsParser.java
...rk/expression/spel/generated/SpringExpressionsParser.java
+6503
-7524
org.springframework.expression/src/main/java/org/springframework/expression/spel/generated/SpringExpressions__.g
...framework/expression/spel/generated/SpringExpressions__.g
+67
-67
org.springframework.expression/src/main/java/org/springframework/expression/spel/internal/InternalELException.java
...amework/expression/spel/internal/InternalELException.java
+1
-1
未找到文件。
org.springframework.expression/src/main/java/org/springframework/expression/spel/SpelMessages.java
浏览文件 @
4e33a2d6
...
...
@@ -45,10 +45,9 @@ public enum SpelMessages {
"Method call: Method {0} cannot be found on {1} type"
),
ATTEMPTED_METHOD_CALL_ON_NULL_CONTEXT_OBJECT
(
Kind
.
ERROR
,
1007
,
"Method call: Attempted to call method {0} on null context object"
),
ATTEMPTED_PROPERTY_FIELD_REF_ON_NULL_CONTEXT_OBJECT
(
Kind
.
ERROR
,
1008
,
"Field or property reference: Attempted to refer to field or property ''{0}'' on null context object"
),
PROPERTY_OR_FIELD_NOT_FOUND
(
Kind
.
ERROR
,
1009
,
"Field or property ''{0}'' cannot be found on object of type ''{1}''"
),
PROPERTY_OR_FIELD_SETTER_NOT_FOUND
(
Kind
.
ERROR
,
1010
,
"Field or property ''{0}'' cannot be set on object of type ''{1}''"
),
MULTIPLY_NOT_DEFINED
(
"Field or property reference: Attempted to refer to field or property ''{0}'' on null context object"
),
PROPERTY_OR_FIELD_NOT_FOUND
(
Kind
.
ERROR
,
1009
,
"Field or property ''{0}'' cannot be found on object of type ''{1}''"
),
PROPERTY_OR_FIELD_SETTER_NOT_FOUND
(
Kind
.
ERROR
,
1010
,
"Field or property ''{0}'' cannot be set on object of type ''{1}''"
),
MULTIPLY_NOT_DEFINED
(
Kind
.
ERROR
,
1011
,
"Multiply not defined between operands of type {0} and {1}"
),
NOT_COMPARABLE
(
Kind
.
ERROR
,
1012
,
"Cannot compare instances of {0} and {1}"
),
NOT_COMPARABLE_CANNOT_COERCE
(
Kind
.
ERROR
,
1013
,
"Cannot compare instances of {0} and {1} because they cannot be coerced to the same type"
),
VARIABLE_NOT_FOUND
(
...
...
@@ -72,9 +71,8 @@ public enum SpelMessages {
"Recognition error: {0}"
),
// TODO 2 poor message
PROJECTION_NOT_SUPPORTED_ON_TYPE
(
Kind
.
ERROR
,
1031
,
"Projection is not supported on the type ''{0}''"
),
ARGLIST_SHOULD_NOT_BE_EVALUATED
(
Kind
.
ERROR
,
1032
,
"The argument list of a lambda expression should never have getValue() called upon it"
),
MAPENTRY_SHOULD_NOT_BE_EVALUATED
(
Kind
.
ERROR
,
1033
,
"A map entry should never have getValue() called upon it"
),
EXCEPTION_DURING_PROPERTY_READ
(
Kind
.
ERROR
,
1034
,
"A problem occurred whilst attempting to access the property ''{0}'': ''{1}''"
),
EXCEPTION_DURING_CONSTRUCTOR_INVOCATION
(
Kind
.
ERROR
,
1033
,
"A map entry should never have getValue() called upon it"
),
EXCEPTION_DURING_PROPERTY_READ
(
Kind
.
ERROR
,
1034
,
"A problem occurred whilst attempting to access the property ''{0}'': ''{1}''"
),
EXCEPTION_DURING_CONSTRUCTOR_INVOCATION
(
Kind
.
ERROR
,
1035
,
"A problem occurred whilst attempting to construct ''{0}'': ''{1}''"
),
DATE_CANNOT_BE_PARSED
(
Kind
.
ERROR
,
1036
,
"Unable to parse date ''{0}'' using format ''{1}''"
),
FUNCTION_REFERENCE_CANNOT_BE_INVOKED
(
Kind
.
ERROR
,
1037
,
"The function ''{0}'' mapped to an object of type ''{1}'' which cannot be invoked"
),
FUNCTION_NOT_DEFINED
(
...
...
@@ -100,13 +98,14 @@ public enum SpelMessages {
Kind
.
ERROR
,
1056
,
"A problem occurred whilst attempting to construct an object of type ''{0}'' using arguments ''{1}''"
),
INVALID_FIRST_OPERAND_FOR_LIKE_OPERATOR
(
Kind
.
ERROR
,
1057
,
"First operand to like operator must be a string. ''{0}'' is not"
),
INVALID_SECOND_OPERAND_FOR_LIKE_OPERATOR
(
Kind
.
ERROR
,
1058
,
"Second operand to like operator must be a string (regex). ''{0}'' is not"
),
SETVALUE_NOT_SUPPORTED
(
Kind
.
ERROR
,
1059
,
"setValue(ExpressionState, Object) not implemented for ''{0}'' (''{1}''"
),
TYPE_NAME_EXPECTED_FOR_ARRAY_CONSTRUCTION
(
Kind
.
ERROR
,
1060
,
"Expected the type of the new array to be specified as a String but found ''{0}''"
),
PROBLEM_DURING_TYPE_CONVERSION
(
Kind
.
ERROR
,
1061
,
"Problem occurred during type conversion: {0}"
),
MULTIPLE_POSSIBLE_METHODS
(
Kind
.
ERROR
,
1062
,
"Method call of ''{0}'' is ambiguous, supported type conversions allow multiple variants to match"
),
EXCEPTION_DURING_PROPERTY_WRITE
(
Kind
.
ERROR
,
1063
,
"A problem occurred whilst attempting to set the property ''{0}'': ''{1}''"
),
;
Kind
.
ERROR
,
1058
,
"Second operand to like operator must be a string (regex). ''{0}'' is not"
),
SETVALUE_NOT_SUPPORTED
(
Kind
.
ERROR
,
1059
,
"setValue(ExpressionState, Object) not implemented for ''{0}'' (''{1}''"
),
TYPE_NAME_EXPECTED_FOR_ARRAY_CONSTRUCTION
(
Kind
.
ERROR
,
1060
,
"Expected the type of the new array to be specified as a String but found ''{0}''"
),
PROBLEM_DURING_TYPE_CONVERSION
(
Kind
.
ERROR
,
1061
,
"Problem occurred during type conversion: {0}"
),
MULTIPLE_POSSIBLE_METHODS
(
Kind
.
ERROR
,
1062
,
"Method call of ''{0}'' is ambiguous, supported type conversions allow multiple variants to match"
),
EXCEPTION_DURING_PROPERTY_WRITE
(
Kind
.
ERROR
,
1063
,
"A problem occurred whilst attempting to set the property ''{0}'': ''{1}''"
),
NOT_AN_INTEGER
(
Kind
.
ERROR
,
1064
,
"The value ''{0}'' cannot be parsed as an int"
),
NOT_A_LONG
(
Kind
.
ERROR
,
1065
,
"The value ''{0}'' cannot be parsed as a long"
),
;
private
Kind
kind
;
private
int
code
;
...
...
@@ -148,7 +147,7 @@ public enum SpelMessages {
if
(
pos
!=
-
1
)
{
formattedMessage
.
append
(
"(pos "
).
append
(
pos
).
append
(
"): "
);
}
formattedMessage
.
append
(
MessageFormat
.
format
(
this
.
message
,
inserts
));
formattedMessage
.
append
(
MessageFormat
.
format
(
message
,
inserts
));
return
formattedMessage
.
toString
();
}
}
org.springframework.expression/src/main/java/org/springframework/expression/spel/generated/SpringExpressions.g
浏览文件 @
4e33a2d6
...
...
@@ -263,7 +263,7 @@ dateLiteral: 'date' LPAREN d=STRING_LITERAL (COMMA f=STRING_LITERAL)? RPAREN ->
INTEGER_LITERAL
: (DECIMAL_DIGIT)+ (INTEGER_TYPE_SUFFIX)?;
HEXADECIMAL_INTEGER_LITERAL :
'0x'
(HEX_DIGIT)+ (INTEGER_TYPE_SUFFIX)?;
HEXADECIMAL_INTEGER_LITERAL :
('0x' | '0X')
(HEX_DIGIT)+ (INTEGER_TYPE_SUFFIX)?;
relationalOperator
: EQUAL
...
...
@@ -366,7 +366,7 @@ REAL_LITERAL :
fragment APOS : '\''! '\'';
fragment DECIMAL_DIGIT : '0'..'9' ;
fragment INTEGER_TYPE_SUFFIX : ( '
UL' | 'LU' | 'ul' | 'lu' | 'uL' | 'lU' | 'U' | 'L' | 'u
' | 'l' );
fragment INTEGER_TYPE_SUFFIX : ( '
L
' | 'l' );
fragment HEX_DIGIT : '0'|'1'|'2'|'3'|'4'|'5'|'6'|'7'|'8'|'9'|'A'|'B'|'C'|'D'|'E'|'F'|'a'|'b'|'c'|'d'|'e'|'f';
fragment EXPONENT_PART : 'e' (SIGN)* (DECIMAL_DIGIT)+ | 'E' (SIGN)* (DECIMAL_DIGIT)+ ;
...
...
org.springframework.expression/src/main/java/org/springframework/expression/spel/generated/SpringExpressionsLexer.java
浏览文件 @
4e33a2d6
此差异已折叠。
点击以展开。
org.springframework.expression/src/main/java/org/springframework/expression/spel/generated/SpringExpressionsParser.java
浏览文件 @
4e33a2d6
此差异已折叠。
点击以展开。
org.springframework.expression/src/main/java/org/springframework/expression/spel/generated/SpringExpressions__.g
浏览文件 @
4e33a2d6
此差异已折叠。
点击以展开。
org.springframework.expression/src/main/java/org/springframework/expression/spel/internal/InternalELException.java
浏览文件 @
4e33a2d6
...
...
@@ -24,7 +24,7 @@ import org.springframework.expression.spel.SpelException;
*/
public
class
InternalELException
extends
RuntimeException
{
InternalELException
(
SpelException
e
)
{
public
InternalELException
(
SpelException
e
)
{
super
(
e
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录