A few expressions weren't supported.
This commit is contained in:
parent
a63defacbb
commit
b0792532b1
|
@ -5,7 +5,7 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
archivesBaseName = 'Simple Code Generator'
|
archivesBaseName = 'Simple Code Generator'
|
||||||
version = '1.2.0'
|
version = '1.2.1'
|
||||||
apply plugin: 'maven'
|
apply plugin: 'maven'
|
||||||
|
|
||||||
tasks.withType(JavaCompile) {
|
tasks.withType(JavaCompile) {
|
||||||
|
|
|
@ -97,11 +97,13 @@ public class NumberCondition implements ICondition
|
||||||
case EQUALS: return key == value;
|
case EQUALS: return key == value;
|
||||||
case NOT_EQUALS: return key != value;
|
case NOT_EQUALS: return key != value;
|
||||||
case GREATER: return key > value;
|
case GREATER: return key > value;
|
||||||
|
case GREATER_EQUALS: return key >= value;
|
||||||
case SMALLER: return key < value;
|
case SMALLER: return key < value;
|
||||||
|
case SMALLER_EQUALS: return key <= value;
|
||||||
case BIT_EQUALS_ALL: return (key & value) == value;
|
case BIT_EQUALS_ALL: return (key & value) == value;
|
||||||
case BIT_EQUALS_ANY: return (key & value) != 0;
|
case BIT_EQUALS_ANY: return (key & value) != 0;
|
||||||
case BIT_EQUALS_NOT: return (key & value) == 0;
|
case BIT_EQUALS_NOT: return (key & value) == 0;
|
||||||
default: return false;
|
default: return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue