if ( minFloat != null )
{
Double maxFloat = CompilerUtils.getDouble( ruleAnnotation, MAX_FLOAT_ATTR, true );
assert maxFloat != null; // checker should catch this
rule = new ValidatorRuleRange( minFloat, maxFloat );
}
else
{
Long minLong = CompilerUtils.getLong( ruleAnnotation, MIN_INT_ATTR, true );
Long maxLong = CompilerUtils.getLong( ruleAnnotation, MAX_INT_ATTR, true );
assert minLong != null; // checker should catch this
assert maxLong != null; // checker should catch this
rule = new ValidatorRuleRange( minLong, maxLong );
}
}
else if ( annName.equals( VALIDATE_MIN_LENGTH_TAG_NAME ) )
{
Integer nChars = CompilerUtils.getInteger( ruleAnnotation, CHARS_ATTR, true );