attribute.type( AttributeDescr.Type.EXPRESSION );
}
} else {
String value = "";
if ( input.LA( 1 ) == DRL5Lexer.PLUS ) {
Token sign = match( input,
DRL5Lexer.PLUS,
null,
null,
DroolsEditorType.NUMERIC_CONST );
if ( state.failed ) return null;
value += sign.getText();
} else if ( input.LA( 1 ) == DRL5Lexer.MINUS ) {
Token sign = match( input,
DRL5Lexer.MINUS,
null,
null,
DroolsEditorType.NUMERIC_CONST );
if ( state.failed ) return null;
value += sign.getText();
}
Token nbr = match( input,
DRL5Lexer.DECIMAL,
null,
null,
DroolsEditorType.NUMERIC_CONST );
if ( state.failed ) return null;
value += nbr.getText();
if ( state.backtracking == 0 ) {
attribute.value( value );
attribute.type( AttributeDescr.Type.NUMBER );
}
}