diff --git a/.github/workflows/pr-downstream-full.yml b/.github/workflows/pr-downstream-full.yml
index 3fb5cb4ffbc..e3f02055d22 100644
--- a/.github/workflows/pr-downstream-full.yml
+++ b/.github/workflows/pr-downstream-full.yml
@@ -23,8 +23,8 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
- java-version: [11]
- maven-version: ['3.8.7']
+ java-version: [17]
+ maven-version: ['3.9.3']
fail-fast: false
runs-on: ${{ matrix.os }}
name: Build Chain (${{ matrix.os }} / Java-${{ matrix.java-version }} / Maven-${{ matrix.maven-version }})
diff --git a/.github/workflows/pr-downstream.yml b/.github/workflows/pr-downstream.yml
index e412502a418..668a5d67de2 100644
--- a/.github/workflows/pr-downstream.yml
+++ b/.github/workflows/pr-downstream.yml
@@ -22,8 +22,8 @@ jobs:
matrix:
job_name: [ kogito-runtimes, kogito-apps, kogito-quarkus-examples, kogito-springboot-examples, serverless-workflow-examples, kie-jpmml-integration ]
os: [ubuntu-latest]
- java-version: [11]
- maven-version: ['3.8.7']
+ java-version: [17]
+ maven-version: ['3.9.3']
include:
- job_name: kogito-runtimes
repository: kogito-runtimes
diff --git a/.github/workflows/pr-drools-ansible.yml b/.github/workflows/pr-drools-ansible.yml
index 0db53b48aa6..e59633d3923 100644
--- a/.github/workflows/pr-drools-ansible.yml
+++ b/.github/workflows/pr-drools-ansible.yml
@@ -22,7 +22,7 @@ jobs:
matrix:
os: [ubuntu-latest]
java-version: [17]
- maven-version: ['3.8.7']
+ maven-version: ['3.9.3']
fail-fast: false
runs-on: ${{ matrix.os }}
name: Ansible Integration / ${{ matrix.os }} / Java-${{ matrix.java-version }} / Maven-${{ matrix.maven-version }}
diff --git a/.github/workflows/pr-drools-docs.yml b/.github/workflows/pr-drools-docs.yml
index d2c55b9e2bc..babb27e59c2 100644
--- a/.github/workflows/pr-drools-docs.yml
+++ b/.github/workflows/pr-drools-docs.yml
@@ -15,8 +15,8 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
- java-version: [11]
- maven-version: ['3.8.7']
+ java-version: [17]
+ maven-version: ['3.9.3']
fail-fast: false
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} / Java-${{ matrix.java-version }} / Maven-${{ matrix.maven-version }}
diff --git a/.github/workflows/pr-drools.yml b/.github/workflows/pr-drools.yml
index f7bf51a9fa8..a70d116a641 100644
--- a/.github/workflows/pr-drools.yml
+++ b/.github/workflows/pr-drools.yml
@@ -21,8 +21,8 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
- java-version: [11]
- maven-version: ['3.8.7']
+ java-version: [17]
+ maven-version: ['3.9.3']
fail-fast: false
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} / Java-${{ matrix.java-version }} / Maven-${{ matrix.maven-version }}
diff --git a/bom/drools-bom/pom.xml b/bom/drools-bom/pom.xml
index 4219a530d3b..746b669770a 100644
--- a/bom/drools-bom/pom.xml
+++ b/bom/drools-bom/pom.xml
@@ -6,7 +6,7 @@
org.kie
kie-core-bom
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
../kie-core-bom/pom.xml
diff --git a/bom/kie-core-bom/pom.xml b/bom/kie-core-bom/pom.xml
index ae8a394988a..5122046c010 100644
--- a/bom/kie-core-bom/pom.xml
+++ b/bom/kie-core-bom/pom.xml
@@ -6,7 +6,7 @@
org.kie
drools-parent
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
../../pom.xml
diff --git a/bom/kie-dmn-bom/pom.xml b/bom/kie-dmn-bom/pom.xml
index 89d21bdfb26..8258db48be6 100644
--- a/bom/kie-dmn-bom/pom.xml
+++ b/bom/kie-dmn-bom/pom.xml
@@ -6,7 +6,7 @@
org.kie
kie-core-bom
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
../kie-core-bom/pom.xml
diff --git a/bom/kie-efesto-bom/pom.xml b/bom/kie-efesto-bom/pom.xml
index cc0668ba5d0..9c71bf1c2fc 100644
--- a/bom/kie-efesto-bom/pom.xml
+++ b/bom/kie-efesto-bom/pom.xml
@@ -6,7 +6,7 @@
org.kie
kie-core-bom
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
../kie-core-bom/pom.xml
diff --git a/bom/kie-pmml-bom/pom.xml b/bom/kie-pmml-bom/pom.xml
index dd93396cd03..ac05d058a0d 100644
--- a/bom/kie-pmml-bom/pom.xml
+++ b/bom/kie-pmml-bom/pom.xml
@@ -6,7 +6,7 @@
org.kie
kie-core-bom
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
../kie-core-bom/pom.xml
diff --git a/bom/pom.xml b/bom/pom.xml
index 0b46d81e8b8..411a4269a1d 100644
--- a/bom/pom.xml
+++ b/bom/pom.xml
@@ -5,7 +5,7 @@
drools-parent
org.kie
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
4.0.0
diff --git a/build-parent/pom.xml b/build-parent/pom.xml
index ef2b4a41977..4ca61fe604d 100644
--- a/build-parent/pom.xml
+++ b/build-parent/pom.xml
@@ -25,7 +25,7 @@
drools-parent
org.kie
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
4.0.0
@@ -35,7 +35,7 @@
- 11
+ 17
${maven.compiler.release}
${maven.compiler.release}
@@ -54,11 +54,11 @@
- A version property must be specified in the format "version.{groupId}", optionally with a suffix to make it unique.
- Version properties must be sorted alphabetically (other form of sorting were found to be unclear and ambiguous).
-->
- 1.2.9
- 1.15
+ 1.2.13
+ 1.16.0
3.2.2
1.1.1
- 2.11.0
+ 2.13.0
1.10.0
2.15.2
2.15.2
@@ -72,10 +72,10 @@
2.3.0
1.4.20
0.18.0
- 4.7.1
- 1.10.2
- 2.16.12.Final
- 3.1.1
+ 4.7.4
+ 1.11.1
+ 3.2.9.Final
+ 3.4.0
8.5.11
4.13.1
1.8.0
@@ -88,44 +88,44 @@
4.4.15
3.8.6
1.7.3
- 3.5.1
+ 3.5.3
2.0.28
5.1.0
- 9.0.21
+ 10.1.7
3.23.1
3.33.0
2.3.32
- 2.3.6
+ 4.0.4
1.3
- 5.6.12.Final
+ 6.2.13.Final
2.3.0
14.0.13.Final
3.26.0-GA
- 5.13.1.Final
+ 6.0.1.Final
7.6.1.Final
3.1.6.Final
- 2.0.1
- 2.0.2
- 1.2.1
- 1.2.1
- 1.0
- 1.3.5
+ 3.0.3
+ 4.0.1
+ 2.0.1
+ 2.1.2
+ 2.0.1
+ 2.1.1
3.2.6
2.3.6
2.0.0
- 1.3.3
- 2.1.6
- 2.3.3
- 2.2.3
- 4.0.3
- 2.3.3
- 1.0.2
- 1.1.6
- 1.1.6
- 1.5.1
- 5.9.2
- 2.5.0.Final
+ 2.0.1
+ 3.1.0
+ 4.0.1
+ 3.1.0
+ 6.0.0
+ 4.0.0
+ 3.0.0
+ 1.1.2
+ 2.1.2
+ 1.6.4
+ 5.9.3
+ 2.5.1.Final
2.0.7
1.7.30
@@ -138,7 +138,7 @@
- 4.13.0
+ 4.10.1
3.13.0
4.15.0.Final
1.1.0
@@ -156,9 +156,6 @@
1.21
-
- false
-
yyyyMMddHHmm
3.6.4
- 3.6.0
+ 3.7.1
0.9.1
3.3.4
1.24.0
@@ -200,18 +197,17 @@
3.8.1
3.3.0
- 1.12.18
+ 1.14.7
- 42.5.4
+ 42.6.0
2.0.1
- 3.0.5
- ${version.io.smallrye.jandex}
- 1.0.11
+ 3.1.2
+ 3.0.3
- 3.24.2
+ 3.25.3
- 32.0.1-jre
+ 32.0.0-jre
@@ -225,14 +221,10 @@
${maven.compiler.release}
${version.org.apache.maven}
-
- io.smallrye
- ${jandex.group-id}
-
3.3.0
3.4.0
- 3.6.0
+ 3.6.2
@@ -283,7 +275,7 @@
com.fasterxml.jackson.module
- jackson-module-jaxb-annotations
+ jackson-module-jakarta-xmlbind-annotations
${version.com.fasterxml.jackson.annotations}
@@ -292,8 +284,8 @@
${version.com.fasterxml.jackson}
- com.fasterxml.jackson.jaxrs
- jackson-jaxrs-json-provider
+ com.fasterxml.jackson.jakarta.rs
+ jackson-jakarta-rs-json-provider
${version.com.fasterxml.jackson}
@@ -366,11 +358,6 @@
jaxb-core
${version.com.sun.xml.bind}
-
- com.sun.xml.bind
- jaxb-impl
- ${version.com.sun.xml.bind}
-
com.sun.xml.bind
jaxb-xjc
@@ -419,8 +406,8 @@
- org.glassfish
- jakarta.json
+ org.eclipse.parsson
+ parsson
${version.jakarta.json}
@@ -455,8 +442,8 @@
- com.sun.activation
- jakarta.activation
+ org.eclipse.angus
+ angus-activation
${version.jakarta.activation}
@@ -791,12 +778,12 @@
- org.hibernate
+ org.hibernate.orm
hibernate-envers
${version.org.hibernate}
- org.hibernate
+ org.hibernate.orm
hibernate-jpamodelgen
${version.org.hibernate}
@@ -1113,7 +1100,7 @@
- org.hibernate
+ org.hibernate.orm
hibernate-core
${version.org.hibernate}
@@ -1135,31 +1122,16 @@
-
- org.hibernate
- hibernate-entitymanager
- ${version.org.hibernate}
-
-
- javax.persistence
- javax.persistence-api
-
-
- org.jboss.spec.javax.transaction
- jboss-transaction-api_1.2_spec
-
-
-
- javax.validation
- validation-api
- ${version.javax.validation}
+ jakarta.validation
+ jakarta.validation-api
+ 3.0.2
- javax.validation
- validation-api
- ${version.javax.validation}
+ jakarta.validation
+ jakarta.validation-api
+ 3.0.2
sources
@@ -1218,7 +1190,7 @@
- ${jandex.group-id}
+ io.smallrye
jandex
${version.io.smallrye.jandex}
@@ -1430,6 +1402,9 @@
javax.inject.*
+
+
+ com.google.inject.*
org.xmlpull.v1.XmlPullParserException
org.xmlpull.v1.XmlPullParser
@@ -1857,9 +1832,9 @@
1.0
- ${jandex-maven-plugin.group-id}
+ io.smallrye
jandex-maven-plugin
- ${version.io.smallrye.jandex-maven-plugin}
+ ${version.io.smallrye.jandex}
org.asciidoctor
@@ -2309,21 +2284,6 @@
-
- productizedProfile
-
-
- productized
-
-
-
- true
- org.jboss
- 2.4.3.Final
- org.jboss.jandex
- 1.2.3
-
-
@@ -2563,42 +2523,6 @@
-
- default
-
-
- !productized
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-enforcer-plugin
-
-
-
- ban-blacklisted-dependencies
-
-
-
-
-
- org.jboss:jandex
- org.jboss.jandex:jandex-maven-plugin
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/drools-alphanetwork-compiler/pom.xml b/drools-alphanetwork-compiler/pom.xml
index 1075b38644d..3f1d6a7da7c 100644
--- a/drools-alphanetwork-compiler/pom.xml
+++ b/drools-alphanetwork-compiler/pom.xml
@@ -26,7 +26,7 @@
org.kie
drools-build-parent
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
../build-parent/pom.xml
diff --git a/drools-base/pom.xml b/drools-base/pom.xml
index 68468e2a459..10280ecc307 100644
--- a/drools-base/pom.xml
+++ b/drools-base/pom.xml
@@ -26,7 +26,7 @@
org.kie
drools-build-parent
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
../build-parent/pom.xml
@@ -82,11 +82,6 @@
jaxb-core
provided
-
- com.sun.xml.bind
- jaxb-impl
- provided
-
jakarta.xml.bind
jakarta.xml.bind-api
diff --git a/drools-base/src/main/java/org/drools/base/RuleBase.java b/drools-base/src/main/java/org/drools/base/RuleBase.java
index 90253297633..564d444d281 100644
--- a/drools-base/src/main/java/org/drools/base/RuleBase.java
+++ b/drools-base/src/main/java/org/drools/base/RuleBase.java
@@ -19,8 +19,17 @@
package org.drools.base;
+import java.lang.reflect.Type;
+import java.util.Collection;
+import java.util.Map;
+import java.util.concurrent.Future;
+
+import org.drools.base.definitions.InternalKnowledgePackage;
+import org.drools.base.definitions.rule.impl.RuleImpl;
+import org.drools.base.rule.InvalidPatternException;
import org.drools.base.rule.TypeDeclaration;
import org.kie.api.KieBaseConfiguration;
+import org.kie.api.definition.KiePackage;
public interface RuleBase {
ClassLoader getRootClassLoader();
@@ -30,4 +39,22 @@ public interface RuleBase {
TypeDeclaration getTypeDeclaration(Class> classType);
KieBaseConfiguration getConfiguration();
+
+ InternalKnowledgePackage[] getPackages();
+ InternalKnowledgePackage getPackage(String name);
+ Future addPackage(KiePackage pkg );
+ void addPackages( Collection extends KiePackage> newPkgs );
+ Map getPackagesMap();
+
+ void addRules( Collection rules ) throws InvalidPatternException;
+ void removeRules( Collection rules ) throws InvalidPatternException;
+
+ String getId();
+
+ String getContainerId();
+ void setContainerId(String containerId);
+
+ Map getGlobals();
+
+
}
diff --git a/drools-base/src/main/java/org/drools/base/base/extractors/BaseObjectClassFieldReader.java b/drools-base/src/main/java/org/drools/base/base/extractors/BaseObjectClassFieldReader.java
index a57546787d3..a23083ef849 100755
--- a/drools-base/src/main/java/org/drools/base/base/extractors/BaseObjectClassFieldReader.java
+++ b/drools-base/src/main/java/org/drools/base/base/extractors/BaseObjectClassFieldReader.java
@@ -41,134 +41,109 @@ protected BaseObjectClassFieldReader(final int index,
valueType );
}
- public abstract Object getValue(ValueResolver valueResolver,
- Object object);
+ public abstract Object getValue(ValueResolver valueResolver, Object object);
- public boolean getBooleanValue(ValueResolver valueResolver,
- final Object object) {
- final Object value = getValue( valueResolver,
- object );
+ public boolean getBooleanValue(ValueResolver valueResolver, Object object) {
+ final Object value = getValue( valueResolver, object );
- if ( value instanceof Boolean ) {
- return ((Boolean) value).booleanValue();
+ if ( value instanceof Boolean b ) {
+ return b.booleanValue();
}
throw new RuntimeException( "Conversion to boolean not supported from " + getExtractToClass().getName() );
}
- public byte getByteValue(ValueResolver valueResolver,
- final Object object) {
- final Object value = getValue( valueResolver,
- object );
+ public byte getByteValue(ValueResolver valueResolver, Object object) {
+ final Object value = getValue( valueResolver, object );
- if ( value instanceof Character ) {
- return (byte) ((Character) value).charValue();
+ if ( value instanceof Character c ) {
+ return (byte) c.charValue();
}
throw new RuntimeException( "Conversion to byte not supported from " + getExtractToClass().getName());
}
- public char getCharValue(ValueResolver valueResolver,
- final Object object) {
- final Object value = getValue( valueResolver,
- object );
+ public char getCharValue(ValueResolver valueResolver, Object object) {
+ final Object value = getValue( valueResolver, object );
- if ( value instanceof Character ) {
- return ((Character) value).charValue();
+ if ( value instanceof Character c ) {
+ return c.charValue();
}
throw new RuntimeException( "Conversion to char not supported from " + getExtractToClass().getName() );
}
- public double getDoubleValue(ValueResolver valueResolver,
- final Object object) {
- final Object value = getValue( valueResolver,
- object );
+ public double getDoubleValue(ValueResolver valueResolver, Object object) {
+ final Object value = getValue( valueResolver, object );
- if( value instanceof Character ) {
- return ((Character) value).charValue();
- } else if ( value instanceof Number ) {
- return ((Number) value).doubleValue();
+ if( value instanceof Character c ) {
+ return c.charValue();
+ } else if ( value instanceof Number n ) {
+ return n.doubleValue();
}
throw new RuntimeException( "Conversion to double not supported from " + getExtractToClass().getName() );
}
- public float getFloatValue(ValueResolver valueResolver,
- final Object object) {
- final Object value = getValue( valueResolver,
- object );
+ public float getFloatValue(ValueResolver valueResolver, Object object) {
+ final Object value = getValue( valueResolver, object );
- if( value instanceof Character ) {
- return ((Character) value).charValue();
- } else if ( value instanceof Number ) {
- return ((Number) value).floatValue();
+ if( value instanceof Character c ) {
+ return c.charValue();
+ } else if ( value instanceof Number n ) {
+ return n.floatValue();
}
throw new RuntimeException( "Conversion to float not supported from " + getExtractToClass().getName() );
}
- public int getIntValue(ValueResolver valueResolver,
- final Object object) {
- final Object value = getValue( valueResolver,
- object );
+ public int getIntValue(ValueResolver valueResolver, Object object) {
+ final Object value = getValue( valueResolver, object );
- if( value instanceof Character ) {
- return ((Character) value).charValue();
- } else if ( value instanceof Number ) {
- return ((Number) value).intValue();
+ if( value instanceof Character c ) {
+ return c.charValue();
+ } else if ( value instanceof Number n ) {
+ return n.intValue();
}
throw new RuntimeException( "Conversion to int not supported from " + getExtractToClass().getName() );
}
- public long getLongValue(ValueResolver valueResolver,
- final Object object) {
- final Object value = getValue( valueResolver,
- object );
-
- if( value instanceof Character ) {
- return ((Character) value).charValue();
- } else if ( value instanceof Number ) {
- return ((Number) value).longValue();
- } else if ( value instanceof Date ) {
- return ((Date) value).getTime();
+ public long getLongValue(ValueResolver valueResolver, Object object) {
+ final Object value = getValue( valueResolver, object );
+
+ if( value instanceof Character c ) {
+ return c.charValue();
+ } else if ( value instanceof Number n ) {
+ return n.longValue();
+ } else if ( value instanceof Date d ) {
+ return d.getTime();
}
throw new RuntimeException( "Conversion to long not supported from " + getExtractToClass().getName() );
}
- public short getShortValue(ValueResolver valueResolver,
- final Object object) {
- final Object value = getValue( valueResolver,
- object );
+ public boolean isNullValue(ValueResolver valueResolver, Object object) {
+ return object == null || getValue( valueResolver, object ) == null;
+ }
+
+ public short getShortValue(ValueResolver valueResolver, Object object) {
+ final Object value = getValue( valueResolver, object );
- if( value instanceof Character ) {
- return (short) ((Character) value).charValue();
- } else if ( value instanceof Number ) {
- return ((Number) value).shortValue();
+ if( value instanceof Character c ) {
+ return (short) c.charValue();
+ } else if ( value instanceof Number n ) {
+ return n.shortValue();
}
throw new RuntimeException( "Conversion to short not supported from " + getExtractToClass().getName() );
}
- public boolean isNullValue(ValueResolver valueResolver,
- final Object object) {
- if ( object == null ) {
- return true;
- } else {
- return getValue( valueResolver,
- object ) == null;
- }
- }
-
public Method getNativeReadMethod() {
try {
- return this.getClass().getMethod(getNativeReadMethodName(),
- ValueResolver.class, Object.class);
+ return this.getClass().getMethod(getNativeReadMethodName(), ValueResolver.class, Object.class);
} catch ( final Exception e ) {
- throw new RuntimeException( "This is a bug. Please report to development team: " + e.getMessage(),
- e );
+ throw new RuntimeException( "This is a bug. Please report to development team: " + e.getMessage(), e );
}
}
@@ -180,11 +155,8 @@ public String getNativeReadMethodName() {
return "get" + type.getName().substring(0, 1).toUpperCase() + type.getName().substring(1) + "Value";
}
- public int getHashCode(ValueResolver valueResolver,
- final Object object) {
- final Object value = getValue( valueResolver,
- object );
+ public int getHashCode(ValueResolver valueResolver, Object object) {
+ final Object value = getValue( valueResolver, object );
return (value != null) ? value.hashCode() : 0;
}
-
}
diff --git a/drools-base/src/main/java/org/drools/base/common/DroolsObjectInputStream.java b/drools-base/src/main/java/org/drools/base/common/DroolsObjectInputStream.java
index dbadff5b4fb..2763557b95f 100644
--- a/drools-base/src/main/java/org/drools/base/common/DroolsObjectInputStream.java
+++ b/drools-base/src/main/java/org/drools/base/common/DroolsObjectInputStream.java
@@ -44,9 +44,9 @@ public class DroolsObjectInputStream extends ObjectInputStream
private Package pkg;
private ReadAccessorSupplier store;
- private Map>> extractorBinders = new HashMap<>();
+ private final Map>> extractorBinders = new HashMap<>();
- private Map customExtensions = new HashMap<>();
+ private final Map customExtensions = new HashMap<>();
private final Map clonedByIdentity;
@@ -131,12 +131,12 @@ public void setStore( ReadAccessorSupplier store ) {
public void readExtractor( Consumer binder ) throws ClassNotFoundException, IOException {
Object accessor = readObject();
- if (accessor instanceof AccessorKey ) {
- ReadAccessor reader = store != null ? store.getReader((AccessorKey) accessor) : null;
+ if (accessor instanceof AccessorKey key) {
+ ReadAccessor reader = store != null ? store.getReader(key) : null;
if (reader == null) {
// when an accessor is used in a query it may have been defined in a different package and that package
// couldn't have been deserialized yet, so delay this binding at the end of the deserialization process
- extractorBinders.computeIfAbsent( (AccessorKey) accessor, k -> new ArrayList<>() ).add( binder );
+ extractorBinders.computeIfAbsent( key, k -> new ArrayList<>() ).add( binder );
} else {
binder.accept( reader );
}
diff --git a/drools-base/src/main/java/org/drools/base/common/RuleBasePartitionId.java b/drools-base/src/main/java/org/drools/base/common/RuleBasePartitionId.java
index 92c1c51c0ce..a4678819106 100644
--- a/drools-base/src/main/java/org/drools/base/common/RuleBasePartitionId.java
+++ b/drools-base/src/main/java/org/drools/base/common/RuleBasePartitionId.java
@@ -49,7 +49,7 @@ public int hashCode() {
@Override
public boolean equals(Object obj) {
- return this == obj || (obj instanceof RuleBasePartitionId && id == ((RuleBasePartitionId)obj).id);
+ return this == obj || (obj instanceof RuleBasePartitionId o && id == o.id);
}
@Override
diff --git a/drools-base/src/main/java/org/drools/base/definitions/impl/KnowledgePackageImpl.java b/drools-base/src/main/java/org/drools/base/definitions/impl/KnowledgePackageImpl.java
index e8b9004e0bc..f2dc9e3b3f7 100644
--- a/drools-base/src/main/java/org/drools/base/definitions/impl/KnowledgePackageImpl.java
+++ b/drools-base/src/main/java/org/drools/base/definitions/impl/KnowledgePackageImpl.java
@@ -809,8 +809,8 @@ public KnowledgePackageImpl deepCloneIfAlreadyInUse(ClassLoader classLoader) {
// if the classloader isn't changed there's no need for a clone
return this;
}
- if (originalClassLoader instanceof ProjectClassLoader) {
- ((ProjectClassLoader) classLoader).initFrom((ProjectClassLoader) originalClassLoader);
+ if (originalClassLoader instanceof ProjectClassLoader ocl) {
+ ocl.initFrom((ProjectClassLoader) originalClassLoader);
}
}
diff --git a/drools-base/src/main/java/org/drools/base/definitions/rule/impl/RuleImpl.java b/drools-base/src/main/java/org/drools/base/definitions/rule/impl/RuleImpl.java
index 4cef19022b5..1a2add11c0a 100644
--- a/drools-base/src/main/java/org/drools/base/definitions/rule/impl/RuleImpl.java
+++ b/drools-base/src/main/java/org/drools/base/definitions/rule/impl/RuleImpl.java
@@ -596,17 +596,16 @@ public GroupElement[] getTransformedLhs(LogicTransformer transformer, Mapfalse.
*/
public boolean matches(final Object object) {
- if ( object instanceof Fact ) {
- return this.factTemplate.equals( ((Fact) object).getFactTemplate() );
+ if ( object instanceof Fact f ) {
+ return this.factTemplate.equals( f.getFactTemplate() );
} else {
return false;
}
diff --git a/drools-base/src/main/java/org/drools/base/rule/IndexableConstraint.java b/drools-base/src/main/java/org/drools/base/rule/IndexableConstraint.java
index 2828349f07b..5a412bd4be3 100644
--- a/drools-base/src/main/java/org/drools/base/rule/IndexableConstraint.java
+++ b/drools-base/src/main/java/org/drools/base/rule/IndexableConstraint.java
@@ -22,7 +22,7 @@
import org.drools.base.rule.accessor.ReadAccessor;
import org.drools.base.rule.accessor.TupleValueExtractor;
import org.drools.base.rule.constraint.Constraint;
-import org.drools.base.util.FieldIndex;
+import org.drools.base.util.IndexedValueReader;
import org.drools.base.util.index.ConstraintTypeOperator;
import org.kie.api.KieBaseConfiguration;
@@ -36,11 +36,13 @@ public interface IndexableConstraint extends Constraint {
FieldValue getField();
- FieldIndex getFieldIndex();
+ IndexedValueReader getFieldIndex();
ReadAccessor getFieldExtractor();
default void unsetUnification() { }
- TupleValueExtractor getIndexExtractor();
+ TupleValueExtractor getRightIndexExtractor();
+
+ TupleValueExtractor getLeftIndexExtractor();
}
diff --git a/drools-base/src/main/java/org/drools/base/rule/LogicTransformer.java b/drools-base/src/main/java/org/drools/base/rule/LogicTransformer.java
index 86607a8ca30..245ba320097 100644
--- a/drools-base/src/main/java/org/drools/base/rule/LogicTransformer.java
+++ b/drools-base/src/main/java/org/drools/base/rule/LogicTransformer.java
@@ -160,8 +160,7 @@ protected void fixClonedDeclarations( GroupElement and, Map global
private void processElement(final DeclarationScopeResolver resolver,
final Deque contextList,
final RuleConditionElement element) {
- if ( element instanceof Pattern ) {
- Pattern pattern = (Pattern) element;
+ if ( element instanceof Pattern pattern ) {
for ( RuleConditionElement ruleConditionElement : pattern.getNestedElements() ) {
processElement( resolver,
contextList,
@@ -174,18 +173,17 @@ private void processElement(final DeclarationScopeResolver resolver,
replaceDeclarations( resolver, pattern, constraint );
}
- } else if ( element instanceof EvalCondition ) {
- processEvalCondition(resolver, (EvalCondition) element);
+ } else if ( element instanceof EvalCondition eval ) {
+ processEvalCondition(resolver, eval);
- } else if ( element instanceof Accumulate ) {
+ } else if ( element instanceof Accumulate accumulate ) {
for ( RuleConditionElement rce : element.getNestedElements() ) {
processElement( resolver, contextList, rce );
}
- Accumulate accumulate = (Accumulate)element;
replaceDeclarations( resolver, accumulate );
- } else if ( element instanceof From ) {
- DataProvider provider = ((From) element).getDataProvider();
+ } else if ( element instanceof From from ) {
+ DataProvider provider = from.getDataProvider();
Declaration[] decl = provider.getRequiredDeclarations();
for (Declaration aDecl : decl) {
Declaration resolved = resolver.getDeclaration(aDecl.getIdentifier());
@@ -202,8 +200,7 @@ private void processElement(final DeclarationScopeResolver resolver,
}
}
- } else if ( element instanceof QueryElement ) {
- QueryElement qe = ( QueryElement ) element;
+ } else if ( element instanceof QueryElement qe ) {
Pattern pattern = qe.getResultPattern();
for ( Entry entry : pattern.getInnerDeclarations().entrySet() ) {
@@ -239,8 +236,8 @@ private void processElement(final DeclarationScopeResolver resolver,
}
qe.setVariableIndexes( toIntArray( varIndexes ) );
- } else if ( element instanceof ConditionalBranch ) {
- processBranch( resolver, (ConditionalBranch) element );
+ } else if ( element instanceof ConditionalBranch cb ) {
+ processBranch( resolver, cb );
} else {
contextList.push( element );
@@ -359,9 +356,7 @@ private void processTree(final GroupElement ce, boolean[] result) throws Invalid
ce.pack();
for (Object child : ce.getChildren().toArray()) {
- if (child instanceof GroupElement) {
- final GroupElement group = (GroupElement) child;
-
+ if (child instanceof GroupElement group) {
processTree(group, result);
if ((group.isOr() || group.isAnd()) && group.getType() == ce.getType()) {
group.pack(ce);
@@ -433,9 +428,9 @@ public void transform(final GroupElement parent) throws InvalidPatternException
int permutations = 1;
int index = 0;
for (final RuleConditionElement child : parent.getChildren()) {
- if ((child instanceof GroupElement) && ((GroupElement) child).isOr()) {
- permutations *= ((GroupElement) child).getChildren().size();
- orsList.add((GroupElement)child);
+ if ( child instanceof GroupElement ge && ge.isOr()) {
+ permutations *= ge.getChildren().size();
+ orsList.add(ge);
} else {
others[index] = child;
}
diff --git a/drools-base/src/main/java/org/drools/base/rule/MutableTypeConstraint.java b/drools-base/src/main/java/org/drools/base/rule/MutableTypeConstraint.java
index c05541824ce..f7ab0896988 100644
--- a/drools-base/src/main/java/org/drools/base/rule/MutableTypeConstraint.java
+++ b/drools-base/src/main/java/org/drools/base/rule/MutableTypeConstraint.java
@@ -25,16 +25,16 @@
import java.util.concurrent.atomic.AtomicBoolean;
import org.drools.base.rule.constraint.AlphaNodeFieldConstraint;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.drools.base.rule.constraint.Constraint;
/**
* A base class for constraints
*/
-public abstract class MutableTypeConstraint
+public abstract class MutableTypeConstraint
implements
AlphaNodeFieldConstraint,
- BetaNodeFieldConstraint,
+ BetaConstraint,
Externalizable {
private ConstraintType type = Constraint.ConstraintType.UNKNOWN;
diff --git a/drools-base/src/main/java/org/drools/base/rule/Pattern.java b/drools-base/src/main/java/org/drools/base/rule/Pattern.java
index 4425cc29ba9..98aef78ff6e 100644
--- a/drools-base/src/main/java/org/drools/base/rule/Pattern.java
+++ b/drools-base/src/main/java/org/drools/base/rule/Pattern.java
@@ -127,8 +127,8 @@ public void readExternal(ObjectInput in) throws IOException,
tupleIndex = in.readInt();
objectIndex = in.readInt();
listenedProperties = (Collection) in.readObject();
- if ( source instanceof From ) {
- ((From)source).setResultPattern( this );
+ if ( source instanceof From from ) {
+ from.setResultPattern( this );
}
annotations = (Map) in.readObject();
passive = in.readBoolean();
@@ -558,7 +558,7 @@ public static boolean isCompatibleWithFromReturnType( Class> patternType, Clas
}
private Class> getPatternType() {
- return objectType instanceof ClassObjectType ? ((ClassObjectType)objectType).getClassType() : null;
+ return objectType instanceof ClassObjectType cot ? cot.getClassType() : null;
}
private static boolean isIterable(Class> clazz) {
diff --git a/drools-base/src/main/java/org/drools/base/rule/QueryArgument.java b/drools-base/src/main/java/org/drools/base/rule/QueryArgument.java
index 0b7007ba123..74722c21482 100644
--- a/drools-base/src/main/java/org/drools/base/rule/QueryArgument.java
+++ b/drools-base/src/main/java/org/drools/base/rule/QueryArgument.java
@@ -36,8 +36,8 @@ public interface QueryArgument extends Externalizable {
static Object evaluateDeclaration( ValueResolver valueResolver, BaseTuple tuple, Declaration declaration ) {
Object tupleObject = tuple.get( declaration ).getObject();
- if (tupleObject instanceof DroolsQuery && declaration.getExtractor().getIndex() >= 0 &&
- ( (DroolsQuery) tupleObject ).getVariables()[declaration.getExtractor().getIndex()] != null ) {
+ if (tupleObject instanceof DroolsQuery query && declaration.getExtractor().getIndex() >= 0 &&
+ query.getVariables()[declaration.getExtractor().getIndex()] != null ) {
return Variable.v;
}
return declaration.getValue( valueResolver, tupleObject );
diff --git a/drools-base/src/main/java/org/drools/base/rule/SingleAccumulate.java b/drools-base/src/main/java/org/drools/base/rule/SingleAccumulate.java
index 26c67aee8c9..68fe4f1c69f 100644
--- a/drools-base/src/main/java/org/drools/base/rule/SingleAccumulate.java
+++ b/drools-base/src/main/java/org/drools/base/rule/SingleAccumulate.java
@@ -140,10 +140,8 @@ public Object getResult(final Object workingMemoryContext,
}
public SingleAccumulate clone() {
- RuleConditionElement clonedSource = source instanceof GroupElement ? ((GroupElement) source).cloneOnlyGroup() : source.clone();
- SingleAccumulate clone = new SingleAccumulate( clonedSource,
- this.requiredDeclarations,
- this.accumulator );
+ RuleConditionElement clonedSource = source instanceof GroupElement ge ? ge.cloneOnlyGroup() : source.clone();
+ SingleAccumulate clone = new SingleAccumulate( clonedSource, this.requiredDeclarations, this.accumulator );
registerClone(clone);
return clone;
}
diff --git a/drools-base/src/main/java/org/drools/base/rule/accessor/DeclarationScopeResolver.java b/drools-base/src/main/java/org/drools/base/rule/accessor/DeclarationScopeResolver.java
index 65a573a6f42..7bd22b64cbf 100644
--- a/drools-base/src/main/java/org/drools/base/rule/accessor/DeclarationScopeResolver.java
+++ b/drools-base/src/main/java/org/drools/base/rule/accessor/DeclarationScopeResolver.java
@@ -205,7 +205,7 @@ public boolean isDuplicated(RuleImpl rule,
if ( declaration != null ) {
// if it is an OR and it is duplicated, we can stop looking for duplication now
// as it is a separate logical branch
- boolean inOr = ((rce instanceof GroupElement) && ((GroupElement) rce).isOr());
+ boolean inOr = (rce instanceof GroupElement ge && ge.isOr());
if ( ! inOr || type == null ) {
return ! inOr;
}
@@ -216,8 +216,7 @@ public boolean isDuplicated(RuleImpl rule,
if ( rule != null && rule.getParent() != null ) {
// recursive algorithm for each parent
// -> lhs.getInnerDeclarations()
- Declaration parentDeclaration = getExtendedDeclaration( rule.getParent(),
- name );
+ Declaration parentDeclaration = getExtendedDeclaration( rule.getParent(), name );
return null != parentDeclaration;
}
return false;
@@ -235,14 +234,14 @@ public Map getDeclarations(RuleImpl rule, String consequenc
Map declarations = new HashMap<>();
for (RuleConditionElement aBuildList : this.buildList) {
// if we are inside of an OR we don't want each previous stack entry added because we can't see those variables
- if (aBuildList instanceof GroupElement && ((GroupElement)aBuildList).getType() == GroupElement.Type.OR) {
+ if (aBuildList instanceof GroupElement ge && ge.getType() == GroupElement.Type.OR) {
continue;
}
// this may be optimized in the future to only re-add elements at
// scope breaks, like "NOT" and "EXISTS"
- Map innerDeclarations = aBuildList instanceof GroupElement ?
- ((GroupElement)aBuildList).getInnerDeclarations(consequenceName) :
+ Map innerDeclarations = aBuildList instanceof GroupElement ge ?
+ ge.getInnerDeclarations(consequenceName) :
aBuildList.getInnerDeclarations();
declarations.putAll(innerDeclarations);
}
@@ -279,8 +278,7 @@ public Pattern findPatternById(int id) {
private Pattern findPatternInNestedElements(final int id,
final RuleConditionElement rce) {
for ( RuleConditionElement element : rce.getNestedElements() ) {
- if ( element instanceof Pattern ) {
- Pattern p = (Pattern) element;
+ if ( element instanceof Pattern p ) {
if (p.getPatternId() == id ) {
return p;
}
diff --git a/drools-base/src/main/java/org/drools/base/rule/accessor/GlobalExtractor.java b/drools-base/src/main/java/org/drools/base/rule/accessor/GlobalExtractor.java
index 58005d255bb..fb4808e5fd7 100755
--- a/drools-base/src/main/java/org/drools/base/rule/accessor/GlobalExtractor.java
+++ b/drools-base/src/main/java/org/drools/base/rule/accessor/GlobalExtractor.java
@@ -88,8 +88,8 @@ public ObjectType getObjectType() {
public Class< ? > getExtractToClass() {
// @todo : this is a bit nasty, but does the trick
- if ( this.objectType instanceof ClassObjectType ) {
- return ((ClassObjectType) this.objectType).getClassType();
+ if ( this.objectType instanceof ClassObjectType cot ) {
+ return cot.getClassType();
} else {
return Fact.class;
}
@@ -98,8 +98,8 @@ public ObjectType getObjectType() {
public String getExtractToClassName() {
Class< ? > clazz;
// @todo : this is a bit nasty, but does the trick
- if ( this.objectType instanceof ClassObjectType ) {
- clazz = ((ClassObjectType) this.objectType).getClassType();
+ if ( this.objectType instanceof ClassObjectType cot ) {
+ clazz = cot.getClassType();
} else {
clazz = Fact.class;
}
diff --git a/drools-base/src/main/java/org/drools/base/rule/accessor/PatternExtractor.java b/drools-base/src/main/java/org/drools/base/rule/accessor/PatternExtractor.java
index e6f07b3a614..5981010738f 100644
--- a/drools-base/src/main/java/org/drools/base/rule/accessor/PatternExtractor.java
+++ b/drools-base/src/main/java/org/drools/base/rule/accessor/PatternExtractor.java
@@ -46,8 +46,8 @@ public PatternExtractor() {
public PatternExtractor(final ObjectType objectType) {
this.objectType = objectType;
- if (objectType instanceof ClassObjectType) {
- setClassObjectType((ClassObjectType) objectType);
+ if (objectType instanceof ClassObjectType cot) {
+ setClassObjectType(cot);
}
}
diff --git a/drools-base/src/main/java/org/drools/base/rule/accessor/RightTupleValueExtractor.java b/drools-base/src/main/java/org/drools/base/rule/accessor/RightTupleValueExtractor.java
new file mode 100644
index 00000000000..45d07205614
--- /dev/null
+++ b/drools-base/src/main/java/org/drools/base/rule/accessor/RightTupleValueExtractor.java
@@ -0,0 +1,28 @@
+package org.drools.base.rule.accessor;
+
+import org.drools.base.base.ValueResolver;
+import org.drools.base.base.ValueType;
+import org.drools.base.reteoo.BaseTuple;
+
+public class RightTupleValueExtractor implements TupleValueExtractor {
+ private ReadAccessor extractor;
+
+ public RightTupleValueExtractor(ReadAccessor extractor) {
+ this.extractor = extractor;
+ }
+
+ @Override
+ public ValueType getValueType() {
+ return extractor.getValueType();
+ }
+
+ @Override
+ public Object getValue(ValueResolver valueResolver, BaseTuple tuple) {
+ return extractor.getValue(valueResolver, tuple.getFactHandle().getObject());
+ }
+
+ @Override
+ public TupleValueExtractor clone() {
+ return new RightTupleValueExtractor(extractor);
+ }
+}
diff --git a/drools-base/src/main/java/org/drools/base/rule/accessor/TupleValueExtractor.java b/drools-base/src/main/java/org/drools/base/rule/accessor/TupleValueExtractor.java
index ce458aff533..b7c423ff7ee 100644
--- a/drools-base/src/main/java/org/drools/base/rule/accessor/TupleValueExtractor.java
+++ b/drools-base/src/main/java/org/drools/base/rule/accessor/TupleValueExtractor.java
@@ -33,4 +33,8 @@ default Object getValue( BaseTuple tuple) {
Object getValue(ValueResolver valueResolver, BaseTuple tuple);
TupleValueExtractor clone();
+
+ default int getIndex() {
+ throw new UnsupportedOperationException();
+ }
}
diff --git a/drools-base/src/main/java/org/drools/base/rule/constraint/BetaNodeFieldConstraint.java b/drools-base/src/main/java/org/drools/base/rule/constraint/BetaConstraint.java
similarity index 84%
rename from drools-base/src/main/java/org/drools/base/rule/constraint/BetaNodeFieldConstraint.java
rename to drools-base/src/main/java/org/drools/base/rule/constraint/BetaConstraint.java
index 103da6ae55e..1e9932bc8a2 100644
--- a/drools-base/src/main/java/org/drools/base/rule/constraint/BetaNodeFieldConstraint.java
+++ b/drools-base/src/main/java/org/drools/base/rule/constraint/BetaConstraint.java
@@ -22,20 +22,20 @@
import org.drools.base.rule.ContextEntry;
import org.kie.api.runtime.rule.FactHandle;
-public interface BetaNodeFieldConstraint
+public interface BetaConstraint
extends
Constraint {
- boolean isAllowedCachedLeft(ContextEntry context,
+ boolean isAllowedCachedLeft(C context,
FactHandle handle);
boolean isAllowedCachedRight(BaseTuple tuple,
- ContextEntry context);
+ C context);
- ContextEntry createContextEntry();
+ C createContext();
/**
* Clone this constraints only if it is already used by a different node, otherwise returns this
*/
- BetaNodeFieldConstraint cloneIfInUse();
+ T cloneIfInUse();
}
diff --git a/drools-base/src/main/java/org/drools/base/rule/constraint/QueryNameConstraint.java b/drools-base/src/main/java/org/drools/base/rule/constraint/QueryNameConstraint.java
index 0d48a352387..8880f8e8187 100644
--- a/drools-base/src/main/java/org/drools/base/rule/constraint/QueryNameConstraint.java
+++ b/drools-base/src/main/java/org/drools/base/rule/constraint/QueryNameConstraint.java
@@ -25,14 +25,15 @@
import org.drools.base.base.DroolsQuery;
import org.drools.base.base.ValueResolver;
+import org.drools.base.rule.accessor.FieldValue;
+import org.drools.base.rule.accessor.TupleValueExtractor;
+import org.drools.base.util.index.ConstraintTypeOperator;
import org.drools.base.base.field.ObjectFieldImpl;
import org.drools.base.rule.Declaration;
import org.drools.base.rule.IndexableConstraint;
import org.drools.base.rule.accessor.AcceptsReadAccessor;
-import org.drools.base.rule.accessor.FieldValue;
import org.drools.base.rule.accessor.ReadAccessor;
-import org.drools.base.util.FieldIndex;
-import org.drools.base.util.index.ConstraintTypeOperator;
+import org.drools.base.util.IndexedValueReader;
import org.kie.api.KieBaseConfiguration;
import org.kie.api.runtime.rule.FactHandle;
@@ -76,7 +77,7 @@ public FieldValue getField() {
return fieldValue;
}
- public FieldIndex getFieldIndex() {
+ public IndexedValueReader getFieldIndex() {
return null;
}
@@ -89,7 +90,12 @@ public void setReadAccessor(ReadAccessor readAccessor) {
}
@Override
- public Declaration getIndexExtractor() {
+ public TupleValueExtractor getRightIndexExtractor() {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
+ public Declaration getLeftIndexExtractor() {
throw new UnsupportedOperationException();
}
@@ -137,7 +143,7 @@ public int hashCode() {
@Override
public boolean equals(Object obj) {
- return obj instanceof QueryNameConstraint && queryName.equals(((QueryNameConstraint)obj).queryName);
+ return obj instanceof QueryNameConstraint qnc && queryName.equals(qnc.queryName);
}
@Override
diff --git a/drools-base/src/main/java/org/drools/base/rule/constraint/XpathConstraint.java b/drools-base/src/main/java/org/drools/base/rule/constraint/XpathConstraint.java
index 585658ccedf..0fd570f73d4 100644
--- a/drools-base/src/main/java/org/drools/base/rule/constraint/XpathConstraint.java
+++ b/drools-base/src/main/java/org/drools/base/rule/constraint/XpathConstraint.java
@@ -52,7 +52,7 @@
import static org.drools.util.ClassUtils.convertFromPrimitiveType;
-public class XpathConstraint extends MutableTypeConstraint {
+public class XpathConstraint extends MutableTypeConstraint {
private LinkedList chunks;
@@ -120,7 +120,7 @@ public boolean isAllowedCachedRight(BaseTuple tuple, ContextEntry context) {
}
@Override
- public ContextEntry createContextEntry() {
+ public ContextEntry createContext() {
throw new UnsupportedOperationException();
}
@@ -195,13 +195,13 @@ public Iterable> evaluate(ValueResolver valueResolver, BaseTuple leftBaseTuple
private List
-
- com.sun.xml.bind
- jaxb-impl
- provided
-
jakarta.xml.bind
jakarta.xml.bind-api
diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderImpl.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderImpl.java
index bce0435301f..cd19e2ded43 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderImpl.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderImpl.java
@@ -34,6 +34,7 @@
import java.util.concurrent.ForkJoinPool;
import java.util.function.Supplier;
+import org.drools.base.RuleBase;
import org.drools.base.base.ObjectType;
import org.drools.base.definitions.InternalKnowledgePackage;
import org.drools.base.definitions.rule.impl.RuleImpl;
@@ -60,7 +61,6 @@
import org.drools.compiler.compiler.ResourceTypeDeclarationWarning;
import org.drools.compiler.kie.builder.impl.BuildContext;
import org.drools.compiler.lang.descr.CompositePackageDescr;
-import org.drools.core.impl.InternalRuleBase;
import org.drools.core.impl.RuleBaseFactory;
import org.drools.drl.ast.descr.AttributeDescr;
import org.drools.drl.ast.descr.ImportDescr;
@@ -941,7 +941,7 @@ public KieBase newKnowledgeBase(KieBaseConfiguration conf) {
}
throw new IllegalArgumentException("Could not parse knowledge. See the logs for details.");
}
- InternalRuleBase kbase = RuleBaseFactory.newRuleBase(conf);
+ RuleBase kbase = RuleBaseFactory.newRuleBase(conf);
kbase.addPackages(asList(getPackages()));
return KnowledgeBaseFactory.newKnowledgeBase(kbase);
}
diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/SrcError.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/SrcError.java
index 92c16e5c2bb..03ac421be06 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/SrcError.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/SrcError.java
@@ -24,14 +24,12 @@
public class SrcError extends DroolsError {
private Object object;
- private String message;
private int[] errorLines = new int[0];
public SrcError(Object object,
String message) {
- super(null);
+ super(null, message);
this.object = object;
- this.message = message;
}
public Object getObject() {
@@ -42,13 +40,10 @@ public int[] getLines() {
return this.errorLines;
}
- public String getMessage() {
- return this.message;
- }
public String toString() {
final StringBuilder buf = new StringBuilder();
- buf.append(this.message);
+ buf.append(getMessage());
buf.append(" : ");
buf.append("\n");
if (this.object instanceof CompilationProblem[]) {
diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ReteCompiler.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ReteCompiler.java
index 4c8dd6f66e9..768e5df7ac4 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ReteCompiler.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ReteCompiler.java
@@ -21,20 +21,20 @@
import java.util.ArrayList;
import java.util.Collection;
-import org.drools.base.definitions.InternalKnowledgePackage;
-import org.drools.base.definitions.rule.impl.RuleImpl;
+import org.drools.base.RuleBase;
import org.drools.compiler.builder.impl.AssetFilter;
import org.drools.compiler.compiler.PackageRegistry;
-import org.drools.core.impl.InternalRuleBase;
+import org.drools.base.definitions.InternalKnowledgePackage;
+import org.drools.base.definitions.rule.impl.RuleImpl;
import org.drools.drl.ast.descr.PackageDescr;
import org.drools.drl.ast.descr.RuleDescr;
import org.kie.internal.builder.ResourceChange;
public class ReteCompiler extends AbstractPackageCompilationPhase {
private final AssetFilter assetFilter;
- private InternalRuleBase kBase;
+ private RuleBase kBase;
- public ReteCompiler(PackageRegistry pkgRegistry, PackageDescr packageDescr, InternalRuleBase kBase, AssetFilter assetFilter) {
+ public ReteCompiler(PackageRegistry pkgRegistry, PackageDescr packageDescr, RuleBase kBase, AssetFilter assetFilter) {
super(pkgRegistry, packageDescr);
this.kBase = kBase;
this.assetFilter = assetFilter;
diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/ActionError.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/ActionError.java
index 0f27989d46f..6e975a7664d 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/compiler/ActionError.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/ActionError.java
@@ -24,15 +24,17 @@
public class ActionError extends DroolsError {
private BaseDescr descr;
private Object object;
- private String message;
private int[] errorLines = new int[0];
+ private String originalMessage;
+
public ActionError(final BaseDescr descr,
final Object object,
final String message) {
+ super(BuilderResultUtils.getProblemMessage( object, message, "\n" ));
this.descr = descr;
this.object = object;
- this.message = message;
+ this.originalMessage = message;
}
@Override
@@ -60,13 +62,9 @@ public int getLine() {
return this.descr != null ? this.descr.getLine() : -1;
}
- public String getMessage() {
- return BuilderResultUtils.getProblemMessage( this.object, this.message, "\n" );
- }
-
public String toString() {
final StringBuilder builder = new StringBuilder()
- .append( this.message )
+ .append( originalMessage )
.append( " : " )
.append( "\n" );
return BuilderResultUtils.appendProblems( this.object, builder ).toString();
diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/AnnotationDeclarationError.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/AnnotationDeclarationError.java
index bf105b7a017..a46a39905fd 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/compiler/AnnotationDeclarationError.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/AnnotationDeclarationError.java
@@ -23,13 +23,11 @@
public class AnnotationDeclarationError extends DroolsError {
- private String errorMessage;
private int[] line;
private String namespace;
public AnnotationDeclarationError(AnnotationDescr annotationDescr, String errorMessage) {
- super(annotationDescr.getResource());
- this.errorMessage = errorMessage;
+ super(annotationDescr.getResource(), errorMessage);
this.line = new int[0];
this.namespace = annotationDescr.getNamespace();
}
@@ -44,14 +42,9 @@ public int[] getLines() {
return this.line;
}
- @Override
- public String getMessage() {
- return this.errorMessage;
- }
-
@Override
public String toString() {
- return this.getMessage();
+ return getMessage();
}
}
diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/ConfigurableSeverityResult.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/ConfigurableSeverityResult.java
index c31c24a0bd7..92fd03a27a6 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/compiler/ConfigurableSeverityResult.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/ConfigurableSeverityResult.java
@@ -31,8 +31,8 @@
*/
public abstract class ConfigurableSeverityResult extends BaseKnowledgeBuilderResultImpl {
- public ConfigurableSeverityResult(Resource resource, KnowledgeBuilderConfiguration config) {
- super(resource);
+ public ConfigurableSeverityResult(Resource resource, KnowledgeBuilderConfiguration config, String message) {
+ super(resource, message);
severity = config.getOption(KBuilderSeverityOption.KEY, getOptionKey()).getSeverity();
}
diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/DeprecatedResourceTypeWarning.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/DeprecatedResourceTypeWarning.java
index 8f8199bd6c1..c07d354be6b 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/compiler/DeprecatedResourceTypeWarning.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/DeprecatedResourceTypeWarning.java
@@ -29,15 +29,10 @@ public DeprecatedResourceTypeWarning(Resource resource) {
}
public DeprecatedResourceTypeWarning(Resource resource, String deprecatedFormat) {
- super(resource);
+ super(resource, deprecatedFormat + " format usage detected. This format is deprecated and will be removed in future");
this.deprecatedFormat = deprecatedFormat;
}
- @Override
- public String getMessage() {
- return deprecatedFormat + " format usage detected. This format is deprecated and will be removed in future";
- }
-
@Override
public int[] getLines() {
return new int[0];
diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/DescrBuildError.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/DescrBuildError.java
index 4969f7231ac..febf4520008 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/compiler/DescrBuildError.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/DescrBuildError.java
@@ -25,19 +25,20 @@ public class DescrBuildError extends DroolsError {
private BaseDescr parentDescr;
private BaseDescr descr;
private Object object;
- private String message;
private int[] errorLines = new int[1];
+ private String originalMessage;
+
public DescrBuildError(final BaseDescr parentDescr,
final BaseDescr descr,
final Object object,
final String message) {
- super( descr.getResource() != null ? descr.getResource() : ( parentDescr != null ? parentDescr.getResource() : null ) );
+ super( descr.getResource() != null ? descr.getResource() : ( parentDescr != null ? parentDescr.getResource() : null ), BuilderResultUtils.getProblemMessage( object, message, "\n" ) );
this.parentDescr = parentDescr;
this.descr = descr;
this.object = object;
- this.message = message;
this.errorLines[0] = getLine();
+ this.originalMessage = message;
}
@Override
@@ -73,13 +74,10 @@ public int getColumn() {
return this.descr != null ? this.descr.getColumn() : -1;
}
- public String getMessage() {
- return BuilderResultUtils.getProblemMessage( this.object, this.message, "\n" );
- }
public String toString() {
final StringBuilder builder = new StringBuilder()
- .append( this.message )
+ .append( this.originalMessage )
.append( " : " )
.append( this.parentDescr )
.append( "\n" );
diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/DescrBuildWarning.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/DescrBuildWarning.java
index fc4d89682b3..e9ab9a1b107 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/compiler/DescrBuildWarning.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/DescrBuildWarning.java
@@ -24,18 +24,19 @@ public class DescrBuildWarning extends DroolsWarning {
private BaseDescr parentDescr;
private BaseDescr descr;
private Object object;
- private String message;
+ private String originalMessage;
private int[] errorLines = new int[1];
public DescrBuildWarning( final BaseDescr parentDescr,
final BaseDescr descr,
final Object object,
final String message ) {
- super( descr.getResource() != null ? descr.getResource() : ( parentDescr != null ? parentDescr.getResource() : null ) );
+ super( descr.getResource() != null ? descr.getResource() : ( parentDescr != null ? parentDescr.getResource() : null ),
+ BuilderResultUtils.getProblemMessage( object, message, "\n" ));
this.parentDescr = parentDescr;
this.descr = descr;
this.object = object;
- this.message = message;
+ this.originalMessage = message;
this.errorLines[0] = getLine();
}
@@ -67,13 +68,9 @@ public int getColumn() {
return this.descr != null ? this.descr.getColumn() : -1;
}
- public String getMessage() {
- return BuilderResultUtils.getProblemMessage( this.object, this.message, "\n" );
- }
-
public String toString() {
final StringBuilder builder = new StringBuilder()
- .append( this.message )
+ .append( this.originalMessage )
.append( " : " )
.append( this.parentDescr )
.append( "\n" );
diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/DroolsErrorWrapper.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/DroolsErrorWrapper.java
index 3f88e6e0e25..3b263309a14 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/compiler/DroolsErrorWrapper.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/DroolsErrorWrapper.java
@@ -31,17 +31,12 @@ public class DroolsErrorWrapper extends DroolsError {
private String namespace = "";
public DroolsErrorWrapper (KnowledgeBuilderResult problem) {
- super(problem.getResource());
+ super(problem.getResource(), problem.getMessage());
this.backingProblem = problem;
if (problem instanceof DroolsError) {
namespace = ((DroolsError)problem).getNamespace();
}
}
-
- @Override
- public String getMessage() {
- return backingProblem.getMessage();
- }
@Override
public int[] getLines() {
diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/DroolsWarning.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/DroolsWarning.java
index 6794f4aba7a..18092806c6d 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/compiler/DroolsWarning.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/DroolsWarning.java
@@ -24,8 +24,8 @@
public abstract class DroolsWarning extends BaseKnowledgeBuilderResultImpl {
- public DroolsWarning(Resource resource) {
- super(resource);
+ public DroolsWarning(Resource resource, String message) {
+ super(resource, message);
}
@Override
diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/DroolsWarningWrapper.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/DroolsWarningWrapper.java
index 70834cca9be..f0441810a60 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/compiler/DroolsWarningWrapper.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/DroolsWarningWrapper.java
@@ -25,15 +25,10 @@ public class DroolsWarningWrapper extends DroolsWarning {
KnowledgeBuilderResult backingProblem;
public DroolsWarningWrapper (KnowledgeBuilderResult problem) {
- super(problem.getResource());
+ super(problem.getResource(), problem.getMessage());
this.backingProblem = problem;
}
- @Override
- public String getMessage() {
- return backingProblem.getMessage();
- }
-
@Override
public int[] getLines() {
return backingProblem.getLines();
diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/DuplicateFunction.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/DuplicateFunction.java
index 7babf441215..fbdf1e4f46b 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/compiler/DuplicateFunction.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/DuplicateFunction.java
@@ -24,31 +24,16 @@
import org.kie.internal.builder.KnowledgeBuilderConfiguration;
-
-
public class DuplicateFunction extends ConfigurableSeverityResult {
public static final String KEY = "duplicateFunction";
-
- private String functionName;
- private String functionNamespace;
+
public DuplicateFunction(FunctionDescr func, KnowledgeBuilderConfiguration config) {
- super(func.getResource(), config);
- functionName = func.getName();
- functionNamespace = func.getNamespace();
+ super(func.getResource(), config, getSpecificMessage(func));
}
public DuplicateFunction(Function func, KnowledgeBuilderConfiguration config) {
- super(func.getResource(), config);
- functionName = func.getName();
- functionName = func.getNamespace();
- }
-
- @Override
- public String getMessage() {
- return functionName
- + " in namespace " + functionNamespace
- + " is about to be redefined";
+ super(func.getResource(), config, getSpecificMessage(func));
}
@Override
@@ -61,4 +46,15 @@ protected String getOptionKey() {
return KEY;
}
+ private static String getSpecificMessage(FunctionDescr func) {
+ return func.getName()
+ + " in namespace " + func.getNamespace()
+ + " is about to be redefined";
+ }
+
+ private static String getSpecificMessage(Function func) {
+ return func.getName()
+ + " in namespace " + func.getNamespace()
+ + " is about to be redefined";
+ }
}
diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/DuplicateRule.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/DuplicateRule.java
index 71c286dbd27..e96ceb090e2 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/compiler/DuplicateRule.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/DuplicateRule.java
@@ -33,19 +33,13 @@ public class DuplicateRule extends ConfigurableSeverityResult {
private int[] line;
public DuplicateRule(RuleDescr ruleDescr, PackageDescr pkg, KnowledgeBuilderConfiguration config) {
- super(ruleDescr.getResource(), config);
+ super(ruleDescr.getResource(), config, getSpecificMessage(ruleDescr, pkg));
rule = ruleDescr.getName();
pkgDescr = pkg;
line = new int[1];
line[0] = ruleDescr.getLine();
}
- @Override
- public String getMessage() {
- return "Rule name " + rule
- + " already exists in package " + pkgDescr.getName();
- }
-
@Override
public int[] getLines() {
return line;
@@ -55,5 +49,9 @@ public int[] getLines() {
protected String getOptionKey() {
return KEY;
}
+ private static String getSpecificMessage(RuleDescr ruleDescr, PackageDescr pkg) {
+ return "Rule name " + ruleDescr.getName()
+ + " already exists in package " + pkg.getName();
+ }
}
diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/FactTemplateError.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/FactTemplateError.java
index 0a254f05ee0..33996d979a4 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/compiler/FactTemplateError.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/FactTemplateError.java
@@ -25,7 +25,6 @@ public class FactTemplateError extends DroolsError {
private Package pkg;
private BaseDescr descr;
private Object object;
- private String message;
private int[] line;
private String namespace;
@@ -33,12 +32,11 @@ public FactTemplateError(final Package pkg,
final BaseDescr descr,
final Object object,
final String message) {
- super(descr.getResource());
+ super(descr.getResource(), BuilderResultUtils.getProblemMessage( object, message ));
this.namespace = pkg.getName();
this.pkg = pkg;
this.descr = descr;
this.object = object;
- this.message = message;
this.line = new int[] {this.descr.getLine()};
}
@@ -71,8 +69,5 @@ public int getLine() {
return this.line[0];
}
- public String getMessage() {
- return BuilderResultUtils.getProblemMessage( this.object, this.message );
- }
}
diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/FieldTemplateError.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/FieldTemplateError.java
index 50f6b6ab9bd..30d746f1266 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/compiler/FieldTemplateError.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/FieldTemplateError.java
@@ -25,7 +25,6 @@ public class FieldTemplateError extends DroolsError {
private Package pkg;
private BaseDescr descr;
private Object object;
- private String message;
private int[] line;
private String namespace;
@@ -33,12 +32,11 @@ public FieldTemplateError(final Package pkg,
final BaseDescr descr,
final Object object,
final String message) {
- super(descr.getResource());
+ super(descr.getResource(), BuilderResultUtils.getProblemMessage( object, message ));
this.namespace = pkg.getName();
this.pkg = pkg;
this.descr = descr;
this.object = object;
- this.message = message;
this.line = new int[] {this.descr.getLine()};
}
@@ -71,8 +69,4 @@ public int getLine() {
return this.line[0];
}
- public String getMessage() {
- return BuilderResultUtils.getProblemMessage( this.object, this.message );
- }
-
}
diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/FunctionError.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/FunctionError.java
index 058e1273d8a..99fdd21ca0e 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/compiler/FunctionError.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/FunctionError.java
@@ -25,16 +25,16 @@
public class FunctionError extends DroolsError {
final private FunctionDescr functionDescr;
final private Object object;
- final private String message;
private int[] errorLines;
public FunctionError(final FunctionDescr functionDescr,
final Object object,
final String message) {
- super(functionDescr.getResource());
+ super(functionDescr.getResource(), "");
this.functionDescr = functionDescr;
this.object = object;
- this.message = createMessage( message );
+ setErrorLines();
+ setMessage(createMessage(message));
}
@Override
@@ -54,21 +54,26 @@ public int[] getLines() {
return errorLines;
}
- public String getMessage() {
- return this.message;
- }
-
public String toString() {
- return this.message;
+ return getMessage();
+ }
+
+ private void setErrorLines() {
+ if( object instanceof CompilationProblem[] cp) {
+ this.errorLines = new int[cp.length];
+ for( int i = 0; i < cp.length ; i ++ ) {
+ this.errorLines[i] = cp[i].getStartLine() - this.functionDescr.getOffset() + this.getFunctionDescr().getLine() - 1;
+ }
+ } else {
+ this.errorLines = new int[1];
+ this.errorLines[0] = functionDescr.getLine();
+ }
}
private String createMessage( String message ) {
StringBuilder detail = new StringBuilder();
- if( object instanceof CompilationProblem[] ) {
- CompilationProblem[] cp = (CompilationProblem[]) object;
- this.errorLines = new int[cp.length];
+ if( object instanceof CompilationProblem[] cp) {
for( int i = 0; i < cp.length ; i ++ ) {
- this.errorLines[i] = cp[i].getStartLine() - this.functionDescr.getOffset() + this.getFunctionDescr().getLine() - 1;
detail.append( this.functionDescr.getName() );
detail.append( " (line:" );
detail.append( this.errorLines[i] );
@@ -76,10 +81,7 @@ private String createMessage( String message ) {
detail.append( cp[i].getMessage() );
detail.append( "\n" );
}
- } else if( object instanceof Exception) {
- Exception ex = (Exception) object;
- this.errorLines = new int[1];
- this.errorLines[0] = functionDescr.getLine();
+ } else if( object instanceof Exception ex) {
detail.append( " (line:" );
detail.append( this.errorLines[0] );
detail.append( "): " );
@@ -90,11 +92,8 @@ private String createMessage( String message ) {
detail.append( ": " );
detail.append( ex.getMessage() );
}
- } else {
- this.errorLines = new int[1];
- this.errorLines[0] = functionDescr.getLine();
}
- return "[ function "+functionDescr.getName() + detail.toString()+" ]";
+ return "[ function "+ functionDescr.getName() + detail +" ]";
}
}
diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/GlobalError.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/GlobalError.java
index 6b7ee6331c7..9dfe608426a 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/compiler/GlobalError.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/GlobalError.java
@@ -23,12 +23,10 @@
public class GlobalError extends DroolsError {
private final GlobalDescr globalDescr;
- private String message;
public GlobalError(final GlobalDescr globalDescr, final String message) {
- super(globalDescr.getResource());
+ super(globalDescr.getResource(), message);
this.globalDescr = globalDescr;
- this.message = message;
}
@Override
@@ -44,12 +42,8 @@ public int[] getLines() {
return new int[] { globalDescr.getLine() };
}
- public String getMessage() {
- return message;
- }
-
public String toString() {
- return "GlobalError: " + getGlobal() + " : " + message;
+ return "GlobalError: " + getGlobal() + " : " + getMessage();
}
}
diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/ImportError.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/ImportError.java
index 5ee127ae9e2..4c12a04f88b 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/compiler/ImportError.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/ImportError.java
@@ -26,7 +26,7 @@ public class ImportError extends DroolsError {
private int[] line;
public ImportError(final ImportDescr importDescr, final int line) {
- super(importDescr.getResource());
+ super(importDescr.getResource(), getSpecificMessage(importDescr));
this.importDescr = importDescr;
this.line = new int[] { line };
}
@@ -43,13 +43,13 @@ public String getGlobal() {
public int[] getLines() {
return this.line;
}
-
- public String getMessage() {
- return "Error importing : '" + getGlobal() + "'";
- }
public String toString() {
return getMessage();
}
+ private static String getSpecificMessage(ImportDescr importDescr) {
+ return "Error importing : '" + importDescr.getTarget() + "'";
+ }
+
}
diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/MissingDependencyError.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/MissingDependencyError.java
index eb5818b7044..e88419f62c4 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/compiler/MissingDependencyError.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/MissingDependencyError.java
@@ -23,20 +23,12 @@
import org.kie.api.io.Resource;
public class MissingDependencyError extends DroolsError {
- private final String message;
-
public MissingDependencyError(String message) {
- this.message = message;
+ super(message);
}
public MissingDependencyError(Resource resource, MissingDependencyException ex) {
- super(resource);
- message = ex.getMessage();
- }
-
- @Override
- public String getMessage() {
- return message;
+ super(resource, ex.getMessage());
}
@Override
diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/ProcessLoadError.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/ProcessLoadError.java
index 48cceed33da..bde8037cbf7 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/compiler/ProcessLoadError.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/ProcessLoadError.java
@@ -19,6 +19,7 @@
package org.drools.compiler.compiler;
+import org.drools.drl.ast.descr.ImportDescr;
import org.drools.drl.parser.DroolsError;
import org.kie.api.io.Resource;
@@ -27,21 +28,20 @@
*/
public class ProcessLoadError extends DroolsError {
- private String message;
private Exception exception;
private static final int[] lines = new int[0];
public ProcessLoadError(Resource resource, String message, Exception nested) {
- super(resource);
- this.message = message;
+ super(resource, getSpecificMessage(message, nested));
this.exception = nested;
}
public int[] getLines() {
return this.lines;
}
-
- public String getMessage() {
+
+
+ private static String getSpecificMessage(String message, Exception exception) {
if (exception != null) {
return message + " : Exception " + exception.getClass() + " : "+ exception.getMessage();
} else {
diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/ResourceTypeDeclarationWarning.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/ResourceTypeDeclarationWarning.java
index 2e386d7dd6c..98bb638d717 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/compiler/ResourceTypeDeclarationWarning.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/ResourceTypeDeclarationWarning.java
@@ -27,7 +27,7 @@ public class ResourceTypeDeclarationWarning extends DroolsWarning {
private ResourceType actualResourceType;
public ResourceTypeDeclarationWarning( Resource resource, ResourceType declaredResourceType, ResourceType actualResourceType ) {
- super( resource );
+ super( resource, getSpecificMessage(resource, declaredResourceType, actualResourceType) );
this.declaredResourceType = declaredResourceType;
this.actualResourceType = actualResourceType;
}
@@ -38,6 +38,7 @@ public ResourceType getDeclaredResourceType() {
public void setDeclaredResourceType( ResourceType declaredResourceType ) {
this.declaredResourceType = declaredResourceType;
+ setMessage(getSpecificMessage(getResource(), this.declaredResourceType, this.actualResourceType));
}
public ResourceType getActualResourceType() {
@@ -46,15 +47,13 @@ public ResourceType getActualResourceType() {
public void setActualResourceType( ResourceType actualResourceType ) {
this.actualResourceType = actualResourceType;
+ setMessage(getSpecificMessage(getResource(), declaredResourceType, this.actualResourceType));
}
-
- @Override
- public String getMessage() {
- return "Resource " + getResource().getSourcePath() + " was created with type " + actualResourceType + " but is being added as " + declaredResourceType;
- }
-
@Override
public int[] getLines() {
return new int[ 0 ]; //To change body of implemented methods use File | Settings | File Templates.
}
+ private static String getSpecificMessage(Resource resource, ResourceType declaredResourceType, ResourceType actualResourceType) {
+ return "Resource " + resource.getSourcePath() + " was created with type " + actualResourceType + " but is being added as " + declaredResourceType;
+ }
}
\ No newline at end of file
diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/SerializableDroolsError.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/SerializableDroolsError.java
index 8ce502d862d..ff93d9c306e 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/compiler/SerializableDroolsError.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/SerializableDroolsError.java
@@ -27,15 +27,20 @@
import org.drools.drl.parser.DroolsError;
public class SerializableDroolsError extends DroolsError implements Externalizable {
- private String message;
private int[] errorLines;
private String errorClassName;
private String namespace;
- public SerializableDroolsError() { }
+ private String originalMessage;
+
+ public SerializableDroolsError() {
+ super("");
+ this.originalMessage = getMessage();
+ }
public SerializableDroolsError(BaseKnowledgeBuilderResultImpl error) {
- this.message = error.getMessage();
+ super(error.getMessage());
+ this.originalMessage = getMessage();
this.errorLines = error.getLines();
this.errorClassName = error.getClass().getName();
this.namespace = error instanceof DroolsError ? ((DroolsError)error).getNamespace() : "";
@@ -46,13 +51,6 @@ public String getNamespace() {
return namespace;
}
- /**
- * Classes that extend this must provide a printable message,
- * which summarises the error.
- */
- public String getMessage() {
- return this.message;
- }
/**
* Returns the lines of the error in the source file
@@ -67,7 +65,7 @@ public String toString() {
}
public void writeExternal(ObjectOutput out) throws IOException {
- out.writeObject( this.message );
+ out.writeObject(this.originalMessage);
out.writeObject( this.errorLines );
out.writeObject( this.errorClassName );
out.writeObject( this.namespace );
@@ -75,7 +73,7 @@ public void writeExternal(ObjectOutput out) throws IOException {
public void readExternal(ObjectInput in) throws IOException,
ClassNotFoundException {
- this.message = ( String ) in.readObject();
+ this.originalMessage = ( String ) in.readObject();
this.errorLines = ( int[] ) in.readObject();
this.errorClassName = ( String ) in.readObject();
this.namespace = ( String ) in.readObject();
diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/TypeDeclarationError.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/TypeDeclarationError.java
index c0bfe0ccf42..c33e2f641d7 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/compiler/TypeDeclarationError.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/TypeDeclarationError.java
@@ -23,20 +23,17 @@
import org.drools.drl.parser.DroolsError;
public class TypeDeclarationError extends DroolsError {
- private String errorMessage;
private int[] line;
private String namespace;
public TypeDeclarationError(BaseDescr typeDescr, String errorMessage) {
- super(typeDescr.getResource());
- this.errorMessage = errorMessage;
+ super(typeDescr.getResource(), errorMessage);
this.line = new int[] { typeDescr.getLine() };
this.namespace = typeDescr.getNamespace();
}
public TypeDeclarationError(TypeDeclaration typeDeclaration, String errorMessage) {
- super(typeDeclaration.getResource());
- this.errorMessage = errorMessage;
+ super(typeDeclaration.getResource(), errorMessage);
this.line = new int[0];
this.namespace = typeDeclaration.getNamespace();
}
@@ -50,12 +47,9 @@ public int[] getLines() {
return this.line;
}
- public String getMessage() {
- return this.errorMessage;
- }
public String toString() {
- return this.getMessage();
+ return getMessage();
}
}
diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/TypeDeclarationWarning.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/TypeDeclarationWarning.java
index 1cb145fd4ff..81cebb7ab17 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/compiler/TypeDeclarationWarning.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/TypeDeclarationWarning.java
@@ -22,12 +22,11 @@
import org.kie.internal.builder.ResultSeverity;
public class TypeDeclarationWarning extends BaseKnowledgeBuilderResultImpl {
- private String message;
+
private int[] line;
public TypeDeclarationWarning(final String message, final int line) {
- super(null);
- this.message = message;
+ super(null, message);
this.line = new int[] { line };
}
@@ -35,10 +34,6 @@ public int[] getLines() {
return this.line;
}
- public String getMessage() {
- return this.message;
- }
-
public String toString() {
return this.getMessage();
}
diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/AbstractKieModule.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/AbstractKieModule.java
index be8c7744827..16e8186af63 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/AbstractKieModule.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/AbstractKieModule.java
@@ -39,7 +39,8 @@
import org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl;
import org.drools.compiler.kproject.models.KieBaseModelImpl;
import org.drools.core.RuleBaseConfiguration;
-import org.drools.core.impl.InternalRuleBase;
+import org.drools.base.definitions.InternalKnowledgePackage;
+import org.drools.base.definitions.impl.KnowledgePackageImpl;
import org.drools.core.impl.RuleBaseFactory;
import org.drools.io.ResourceConfigurationImpl;
import org.drools.kiesession.rulebase.InternalKnowledgeBase;
@@ -69,6 +70,7 @@
import org.kie.util.maven.support.ReleaseIdImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import org.drools.base.RuleBase;
import static org.kie.internal.builder.KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration;
@@ -220,7 +222,7 @@ public InternalKnowledgeBase createKieBase(KieBaseModelImpl kBaseModel, KieProje
((RuleBaseConfiguration)conf).setClassLoader(cl);
}
- InternalRuleBase kBase = RuleBaseFactory.newRuleBase(kBaseModel.getName(), conf);
+ RuleBase kBase = RuleBaseFactory.newRuleBase(kBaseModel.getName(), conf);
kBase.addPackages( pkgs );
return KnowledgeBaseFactory.newKnowledgeBase(kBase);
}
diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieContainerImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieContainerImpl.java
index 323b66e1cbb..9d1a4a33418 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieContainerImpl.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieContainerImpl.java
@@ -32,6 +32,7 @@
import javax.management.ObjectName;
+import org.drools.base.RuleBase;
import org.drools.compiler.builder.InternalKnowledgeBuilder;
import org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl;
import org.drools.compiler.kie.builder.MaterializedLambda;
@@ -41,7 +42,6 @@
import org.drools.compiler.management.KieContainerMonitor;
import org.drools.core.SessionConfiguration;
import org.drools.core.impl.InternalKieContainer;
-import org.drools.core.impl.InternalRuleBase;
import org.drools.core.management.DroolsManagementAgent;
import org.drools.core.management.DroolsManagementAgent.CBSKey;
import org.drools.core.reteoo.RuntimeComponentFactory;
@@ -735,10 +735,10 @@ public void dispose() {
Set cbskeys = new HashSet<>();
if ( isMBeanOptionEnabled() ) {
for (Entry kv : kSessions.entrySet()) {
- cbskeys.add(new DroolsManagementAgent.CBSKey(containerId, ((InternalRuleBase) kv.getValue().getKieBase()).getId(), kv.getKey()));
+ cbskeys.add(new DroolsManagementAgent.CBSKey(containerId, ((RuleBase) kv.getValue().getKieBase()).getId(), kv.getKey()));
}
for (Entry kv : statelessKSessions.entrySet()) {
- cbskeys.add(new DroolsManagementAgent.CBSKey(containerId, ((InternalRuleBase) kv.getValue().getKieBase()).getId(), kv.getKey()));
+ cbskeys.add(new DroolsManagementAgent.CBSKey(containerId, ((RuleBase) kv.getValue().getKieBase()).getId(), kv.getKey()));
}
}
@@ -753,7 +753,7 @@ public void dispose() {
DroolsManagementAgent.getInstance().unregisterKnowledgeSessionBean(c);
}
for (KieBase kb : kBases.values()) {
- DroolsManagementAgent.getInstance().unregisterKnowledgeBase((InternalRuleBase) kb);
+ DroolsManagementAgent.getInstance().unregisterKnowledgeBase((RuleBase) kb);
}
DroolsManagementAgent.getInstance().unregisterMBeansFromOwner(this);
}
diff --git a/drools-compiler/src/main/java/org/drools/compiler/kproject/models/KieBaseModelImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kproject/models/KieBaseModelImpl.java
index c64a98e84ba..c4c1361de06 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/kproject/models/KieBaseModelImpl.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/kproject/models/KieBaseModelImpl.java
@@ -73,7 +73,7 @@ public class KieBaseModelImpl
private KieModuleModel kModule;
- private String scope = "javax.enterprise.context.ApplicationScoped";
+ private String scope = "jakarta.enterprise.context.ApplicationScoped";
private List ruleTemplates = new ArrayList<>();
diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/DialectError.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/DialectError.java
index edcd53101de..c0d6f553e58 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/DialectError.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/DialectError.java
@@ -22,24 +22,18 @@
import org.kie.api.io.Resource;
public class DialectError extends DroolsError {
- private String message;
private static final int[] line = new int[0];
public DialectError(final Resource resource, final String message) {
- super(resource);
- this.message = message;
+ super(resource, message);
}
public int[] getLines() {
return line;
}
-
- public String getMessage() {
- return this.message;
- }
public String toString() {
- return "[DialectError message='" + this.message + "']";
+ return "[DialectError message='" + getMessage() + "']";
}
}
diff --git a/drools-compiler/src/main/java/org/drools/compiler/runtime/pipeline/impl/DroolsJaxbHelperProviderImpl.java b/drools-compiler/src/main/java/org/drools/compiler/runtime/pipeline/impl/DroolsJaxbHelperProviderImpl.java
index 6b8db5a0935..60be4ac0b66 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/runtime/pipeline/impl/DroolsJaxbHelperProviderImpl.java
+++ b/drools-compiler/src/main/java/org/drools/compiler/runtime/pipeline/impl/DroolsJaxbHelperProviderImpl.java
@@ -31,8 +31,8 @@
import java.util.Map;
import java.util.Map.Entry;
-import javax.xml.bind.JAXBContext;
-import javax.xml.bind.JAXBException;
+import jakarta.xml.bind.JAXBContext;
+import jakarta.xml.bind.JAXBException;
import com.sun.codemodel.CodeWriter;
import com.sun.codemodel.JCodeModel;
diff --git a/drools-core/pom.xml b/drools-core/pom.xml
index 42092de7979..098b30fa9ab 100644
--- a/drools-core/pom.xml
+++ b/drools-core/pom.xml
@@ -26,7 +26,7 @@
org.kie
drools-build-parent
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
../build-parent/pom.xml
@@ -95,11 +95,6 @@
jaxb-core
provided
-
- com.sun.xml.bind
- jaxb-impl
- provided
-
jakarta.xml.bind
jakarta.xml.bind-api
diff --git a/drools-core/src/main/java/org/drools/core/ClassObjectSerializationFilter.java b/drools-core/src/main/java/org/drools/core/ClassObjectSerializationFilter.java
index 1dbb032c7e7..8330b82548f 100644
--- a/drools-core/src/main/java/org/drools/core/ClassObjectSerializationFilter.java
+++ b/drools-core/src/main/java/org/drools/core/ClassObjectSerializationFilter.java
@@ -18,10 +18,10 @@
*/
package org.drools.core;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlAttribute;
+import jakarta.xml.bind.annotation.XmlRootElement;
import org.kie.api.runtime.ClassObjectFilter;
import org.kie.api.runtime.ObjectFilter;
diff --git a/drools-core/src/main/java/org/drools/core/base/ArrayElements.java b/drools-core/src/main/java/org/drools/core/base/ArrayElements.java
index 9301d93da1a..09535a5ce9d 100644
--- a/drools-core/src/main/java/org/drools/core/base/ArrayElements.java
+++ b/drools-core/src/main/java/org/drools/core/base/ArrayElements.java
@@ -20,10 +20,10 @@
import java.util.Arrays;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlElement;
+import jakarta.xml.bind.annotation.XmlType;
@XmlType(name="array-elements")
@XmlAccessorType(XmlAccessType.NONE)
diff --git a/drools-core/src/main/java/org/drools/core/base/RuleNameEndsWithAgendaFilter.java b/drools-core/src/main/java/org/drools/core/base/RuleNameEndsWithAgendaFilter.java
index 50ea110d72a..3f838d12589 100644
--- a/drools-core/src/main/java/org/drools/core/base/RuleNameEndsWithAgendaFilter.java
+++ b/drools-core/src/main/java/org/drools/core/base/RuleNameEndsWithAgendaFilter.java
@@ -20,10 +20,10 @@
import java.io.Serializable;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlAttribute;
+import jakarta.xml.bind.annotation.XmlRootElement;
import org.kie.api.runtime.rule.AgendaFilter;
import org.kie.api.runtime.rule.Match;
diff --git a/drools-core/src/main/java/org/drools/core/base/RuleNameEqualsAgendaFilter.java b/drools-core/src/main/java/org/drools/core/base/RuleNameEqualsAgendaFilter.java
index 398651d8249..aa7388b8e7d 100644
--- a/drools-core/src/main/java/org/drools/core/base/RuleNameEqualsAgendaFilter.java
+++ b/drools-core/src/main/java/org/drools/core/base/RuleNameEqualsAgendaFilter.java
@@ -20,10 +20,10 @@
import java.io.Serializable;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlAttribute;
+import jakarta.xml.bind.annotation.XmlRootElement;
import org.kie.api.runtime.rule.AgendaFilter;
import org.kie.api.runtime.rule.Match;
diff --git a/drools-core/src/main/java/org/drools/core/base/RuleNameMatchesAgendaFilter.java b/drools-core/src/main/java/org/drools/core/base/RuleNameMatchesAgendaFilter.java
index 55a226bd99e..8512f85eac6 100644
--- a/drools-core/src/main/java/org/drools/core/base/RuleNameMatchesAgendaFilter.java
+++ b/drools-core/src/main/java/org/drools/core/base/RuleNameMatchesAgendaFilter.java
@@ -22,10 +22,10 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlAttribute;
+import jakarta.xml.bind.annotation.XmlRootElement;
import org.kie.api.runtime.rule.AgendaFilter;
import org.kie.api.runtime.rule.Match;
diff --git a/drools-core/src/main/java/org/drools/core/base/RuleNameStartsWithAgendaFilter.java b/drools-core/src/main/java/org/drools/core/base/RuleNameStartsWithAgendaFilter.java
index 285b2602674..8b9c211c9ea 100644
--- a/drools-core/src/main/java/org/drools/core/base/RuleNameStartsWithAgendaFilter.java
+++ b/drools-core/src/main/java/org/drools/core/base/RuleNameStartsWithAgendaFilter.java
@@ -20,10 +20,10 @@
import java.io.Serializable;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlAttribute;
+import jakarta.xml.bind.annotation.XmlRootElement;
import org.kie.api.runtime.rule.AgendaFilter;
import org.kie.api.runtime.rule.Match;
diff --git a/drools-core/src/main/java/org/drools/core/common/BetaConstraints.java b/drools-core/src/main/java/org/drools/core/common/BetaConstraints.java
index 89fdbaefbbb..344defe27a8 100644
--- a/drools-core/src/main/java/org/drools/core/common/BetaConstraints.java
+++ b/drools-core/src/main/java/org/drools/core/common/BetaConstraints.java
@@ -22,9 +22,9 @@
import java.util.List;
import org.drools.base.base.ObjectType;
-import org.drools.base.rule.ContextEntry;
+import org.drools.base.reteoo.BaseTuple;
import org.drools.base.rule.Pattern;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.drools.core.RuleBaseConfiguration;
import org.drools.core.reteoo.BetaMemory;
import org.drools.core.reteoo.Tuple;
@@ -32,27 +32,26 @@
import org.drools.util.bitmask.BitMask;
import org.kie.api.runtime.rule.FactHandle;
-public interface BetaConstraints
+public interface BetaConstraints
extends
Externalizable {
- ContextEntry[] createContext();
+ C createContext();
- void updateFromTuple(ContextEntry[] context,
+ void updateFromTuple(C context,
ReteEvaluator reteEvaluator,
Tuple tuple);
- void updateFromFactHandle(ContextEntry[] context,
+ void updateFromFactHandle(C context,
ReteEvaluator reteEvaluator,
FactHandle handle);
- boolean isAllowedCachedLeft(ContextEntry[] context,
+ boolean isAllowedCachedLeft(C context,
FactHandle handle);
- boolean isAllowedCachedRight(ContextEntry[] context,
- Tuple tuple);
+ boolean isAllowedCachedRight(BaseTuple tuple, C context);
- BetaNodeFieldConstraint[] getConstraints();
+ BetaConstraint[] getConstraints();
BetaConstraints getOriginalConstraint();
@@ -65,16 +64,16 @@ boolean isAllowedCachedRight(ContextEntry[] context,
BetaMemory createBetaMemory(final RuleBaseConfiguration config,
final short nodeType );
- void resetTuple(final ContextEntry[] context);
+ void resetTuple(final C context);
- void resetFactHandle(final ContextEntry[] context);
+ void resetFactHandle(final C context);
BitMask getListenedPropertyMask(Pattern pattern, ObjectType modifiedType, List settableProperties);
void init(BuildContext context, short betaNodeType);
void initIndexes(int depth, short betaNodeType, RuleBaseConfiguration config);
- BetaConstraints cloneIfInUse();
+ T cloneIfInUse();
boolean isLeftUpdateOptimizationAllowed();
diff --git a/drools-core/src/main/java/org/drools/core/common/DefaultBetaConstraints.java b/drools-core/src/main/java/org/drools/core/common/DefaultBetaConstraints.java
index 9260152db1c..1030ca16f11 100644
--- a/drools-core/src/main/java/org/drools/core/common/DefaultBetaConstraints.java
+++ b/drools-core/src/main/java/org/drools/core/common/DefaultBetaConstraints.java
@@ -26,11 +26,12 @@
import java.util.Optional;
import org.drools.base.base.ObjectType;
+import org.drools.base.reteoo.BaseTuple;
import org.drools.base.rule.ContextEntry;
import org.drools.base.rule.IndexableConstraint;
import org.drools.base.rule.MutableTypeConstraint;
import org.drools.base.rule.Pattern;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.drools.core.RuleBaseConfiguration;
import org.drools.core.reteoo.BetaMemory;
import org.drools.core.reteoo.Tuple;
@@ -47,13 +48,13 @@
public class DefaultBetaConstraints
implements
- BetaConstraints {
+ BetaConstraints {
private static final long serialVersionUID = 510l;
protected transient boolean disableIndexing;
- protected BetaNodeFieldConstraint[] constraints;
+ protected BetaConstraint[] constraints;
protected IndexPrecedenceOption indexPrecedenceOption;
@@ -64,7 +65,7 @@ public class DefaultBetaConstraints
public DefaultBetaConstraints() {
}
- public DefaultBetaConstraints(final BetaNodeFieldConstraint[] constraints,
+ public DefaultBetaConstraints(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf) {
this( constraints,
conf,
@@ -72,7 +73,7 @@ public DefaultBetaConstraints(final BetaNodeFieldConstraint[] constraints,
}
- public DefaultBetaConstraints(final BetaNodeFieldConstraint[] constraints,
+ public DefaultBetaConstraints(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf,
final boolean disableIndexing) {
this.constraints = constraints;
@@ -82,7 +83,7 @@ public DefaultBetaConstraints(final BetaNodeFieldConstraint[] constraints,
public DefaultBetaConstraints cloneIfInUse() {
if (constraints[0] instanceof MutableTypeConstraint && ((MutableTypeConstraint)constraints[0]).setInUse()) {
- BetaNodeFieldConstraint[] clonedConstraints = new BetaNodeFieldConstraint[constraints.length];
+ BetaConstraint[] clonedConstraints = new BetaConstraint[constraints.length];
for (int i = 0; i < constraints.length; i++) {
clonedConstraints[i] = constraints[i].cloneIfInUse();
}
@@ -125,7 +126,7 @@ public void initIndexes(int depth, short betaNodeType, RuleBaseConfiguration con
}
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
- constraints = (BetaNodeFieldConstraint[])in.readObject();
+ constraints = (BetaConstraint[])in.readObject();
indexed = in.readInt();
indexPrecedenceOption = (IndexPrecedenceOption) in.readObject();
}
@@ -139,7 +140,7 @@ public void writeExternal(ObjectOutput out) throws IOException {
public ContextEntry[] createContext() {
ContextEntry[] entries = new ContextEntry[constraints.length];
for (int i = 0; i < constraints.length; i++) {
- entries[i] = constraints[i].createContextEntry();
+ entries[i] = constraints[i].createContext();
}
return entries;
}
@@ -194,8 +195,8 @@ public boolean isAllowedCachedLeft(final ContextEntry[] context,
/* (non-Javadoc)
* @see org.kie.common.BetaNodeConstraints#isAllowedCachedRight(org.kie.reteoo.ReteTuple)
*/
- public boolean isAllowedCachedRight(final ContextEntry[] context,
- final Tuple tuple) {
+ public boolean isAllowedCachedRight(final BaseTuple tuple,
+ final ContextEntry[] context) {
for (int i = indexed; i < constraints.length; i++) {
if ( !constraints[i].isAllowedCachedRight(tuple, context[i]) ) {
return false;
@@ -228,7 +229,7 @@ public int hashCode() {
/* (non-Javadoc)
* @see org.kie.common.BetaNodeConstraints#getConstraints()
*/
- public BetaNodeFieldConstraint[] getConstraints() {
+ public BetaConstraint[] getConstraints() {
return constraints;
}
@@ -268,7 +269,7 @@ public BetaConstraints getOriginalConstraint() {
public BitMask getListenedPropertyMask(Pattern pattern, ObjectType modifiedType, List settableProperties) {
BitMask mask = getEmptyPropertyReactiveMask(settableProperties.size());
- for (BetaNodeFieldConstraint constraint : constraints) {
+ for (BetaConstraint constraint : constraints) {
mask = mask.setAll(constraint.getListenedPropertyMask(Optional.of(pattern), modifiedType, settableProperties));
}
return mask;
@@ -282,7 +283,7 @@ public boolean isLeftUpdateOptimizationAllowed() {
}
private boolean calcLeftUpdateOptimizationAllowed() {
- for (BetaNodeFieldConstraint constraint : constraints) {
+ for (BetaConstraint constraint : constraints) {
if ( !(constraint instanceof IndexableConstraint && ((IndexableConstraint)constraint).getConstraintType().isEquality()) ) {
return false;
}
diff --git a/drools-core/src/main/java/org/drools/core/common/DefaultFactHandle.java b/drools-core/src/main/java/org/drools/core/common/DefaultFactHandle.java
index 649d119b360..3e5cd249ec2 100644
--- a/drools-core/src/main/java/org/drools/core/common/DefaultFactHandle.java
+++ b/drools-core/src/main/java/org/drools/core/common/DefaultFactHandle.java
@@ -23,10 +23,10 @@
import java.util.function.Predicate;
import java.util.stream.Stream;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlAttribute;
+import jakarta.xml.bind.annotation.XmlRootElement;
import org.drools.base.factmodel.traits.TraitTypeEnum;
import org.drools.base.rule.EntryPointId;
diff --git a/drools-core/src/main/java/org/drools/core/common/DisconnectedFactHandle.java b/drools-core/src/main/java/org/drools/core/common/DisconnectedFactHandle.java
index f3b76bf1444..4eae2aafa38 100644
--- a/drools-core/src/main/java/org/drools/core/common/DisconnectedFactHandle.java
+++ b/drools-core/src/main/java/org/drools/core/common/DisconnectedFactHandle.java
@@ -25,13 +25,13 @@
import java.util.function.Consumer;
import java.util.function.Predicate;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlSchemaType;
-import javax.xml.bind.annotation.XmlSeeAlso;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlAttribute;
+import jakarta.xml.bind.annotation.XmlElement;
+import jakarta.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlSchemaType;
+import jakarta.xml.bind.annotation.XmlSeeAlso;
import org.drools.base.factmodel.traits.TraitTypeEnum;
import org.drools.base.rule.EntryPointId;
diff --git a/drools-core/src/main/java/org/drools/core/common/DoubleBetaConstraints.java b/drools-core/src/main/java/org/drools/core/common/DoubleBetaConstraints.java
index ea7cd3226dd..ab8bbaf7816 100644
--- a/drools-core/src/main/java/org/drools/core/common/DoubleBetaConstraints.java
+++ b/drools-core/src/main/java/org/drools/core/common/DoubleBetaConstraints.java
@@ -22,10 +22,11 @@
import java.util.Optional;
import org.drools.base.base.ObjectType;
+import org.drools.base.reteoo.BaseTuple;
import org.drools.base.rule.ContextEntry;
import org.drools.base.rule.MutableTypeConstraint;
import org.drools.base.rule.Pattern;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.drools.core.RuleBaseConfiguration;
import org.drools.core.reteoo.Tuple;
import org.drools.core.reteoo.builder.BuildContext;
@@ -39,20 +40,20 @@ public class DoubleBetaConstraints extends MultipleBetaConstraint {
public DoubleBetaConstraints() { }
- public DoubleBetaConstraints(final BetaNodeFieldConstraint[] constraints,
+ public DoubleBetaConstraints(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf) {
this( constraints,
conf,
false );
}
- public DoubleBetaConstraints(final BetaNodeFieldConstraint[] constraints,
+ public DoubleBetaConstraints(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf,
final boolean disableIndexing) {
super(constraints, conf, disableIndexing);
}
- protected DoubleBetaConstraints( BetaNodeFieldConstraint[] constraints,
+ protected DoubleBetaConstraints( BetaConstraint[] constraints,
IndexPrecedenceOption indexPrecedenceOption,
boolean disableIndexing) {
super(constraints, indexPrecedenceOption, disableIndexing);
@@ -60,7 +61,7 @@ protected DoubleBetaConstraints( BetaNodeFieldConstraint[] constraints,
public DoubleBetaConstraints cloneIfInUse() {
if (constraints[0] instanceof MutableTypeConstraint && ((MutableTypeConstraint)constraints[0]).setInUse()) {
- BetaNodeFieldConstraint[] clonedConstraints = new BetaNodeFieldConstraint[constraints.length];
+ BetaConstraint[] clonedConstraints = new BetaConstraint[constraints.length];
for (int i = 0; i < constraints.length; i++) {
clonedConstraints[i] = constraints[i].cloneIfInUse();
}
@@ -117,8 +118,8 @@ public boolean isAllowedCachedLeft(final ContextEntry[] context,
/* (non-Javadoc)
* @see org.kie.common.BetaNodeConstraints#isAllowedCachedRight(org.kie.reteoo.ReteTuple)
*/
- public boolean isAllowedCachedRight(final ContextEntry[] context,
- final Tuple tuple) {
+ public boolean isAllowedCachedRight(final BaseTuple tuple,
+ final ContextEntry[] context) {
return constraints[0].isAllowedCachedRight( tuple, context[0] ) &&
constraints[1].isAllowedCachedRight( tuple, context[1] );
}
diff --git a/drools-core/src/main/java/org/drools/core/common/DoubleNonIndexSkipBetaConstraints.java b/drools-core/src/main/java/org/drools/core/common/DoubleNonIndexSkipBetaConstraints.java
index 24a4a32b26a..573bf2879e4 100644
--- a/drools-core/src/main/java/org/drools/core/common/DoubleNonIndexSkipBetaConstraints.java
+++ b/drools-core/src/main/java/org/drools/core/common/DoubleNonIndexSkipBetaConstraints.java
@@ -25,10 +25,11 @@
import java.util.Optional;
import org.drools.base.base.ObjectType;
+import org.drools.base.reteoo.BaseTuple;
import org.drools.base.rule.ContextEntry;
import org.drools.base.rule.MutableTypeConstraint;
import org.drools.base.rule.Pattern;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.drools.core.RuleBaseConfiguration;
import org.drools.core.reteoo.BetaMemory;
import org.drools.core.reteoo.Tuple;
@@ -38,18 +39,18 @@
public class DoubleNonIndexSkipBetaConstraints
implements
- BetaConstraints {
+ BetaConstraints {
private DoubleBetaConstraints constraints;
- private BetaNodeFieldConstraint constraint0;
- private BetaNodeFieldConstraint constraint1;
+ private BetaConstraint constraint0;
+ private BetaConstraint constraint1;
public DoubleNonIndexSkipBetaConstraints() { }
public DoubleNonIndexSkipBetaConstraints(DoubleBetaConstraints constraints) {
this.constraints = constraints;
- BetaNodeFieldConstraint[] constraint = constraints.getConstraints();
+ BetaConstraint[] constraint = constraints.getConstraints();
this.constraint0 = constraint[0];
this.constraint1 = constraint[1];
}
@@ -119,7 +120,7 @@ public int hashCode() {
return constraints.hashCode();
}
- public BetaNodeFieldConstraint[] getConstraints() {
+ public BetaConstraint[] getConstraints() {
return constraints.getConstraints();
}
@@ -146,9 +147,9 @@ public boolean isAllowedCachedLeft(final ContextEntry[] context,
handle );
}
- public boolean isAllowedCachedRight(ContextEntry[] context,
- Tuple tuple) {
- return this.constraints.isAllowedCachedRight( context, tuple );
+ public boolean isAllowedCachedRight(final BaseTuple tuple,
+ final ContextEntry[] context) {
+ return this.constraints.isAllowedCachedRight( tuple, context );
}
public BitMask getListenedPropertyMask(Pattern pattern, ObjectType modifiedType, List settableProperties) {
diff --git a/drools-core/src/main/java/org/drools/core/common/EmptyBetaConstraints.java b/drools-core/src/main/java/org/drools/core/common/EmptyBetaConstraints.java
index 803b64e00a4..f8172727f73 100644
--- a/drools-core/src/main/java/org/drools/core/common/EmptyBetaConstraints.java
+++ b/drools-core/src/main/java/org/drools/core/common/EmptyBetaConstraints.java
@@ -24,9 +24,10 @@
import java.util.List;
import org.drools.base.base.ObjectType;
+import org.drools.base.reteoo.BaseTuple;
import org.drools.base.rule.ContextEntry;
import org.drools.base.rule.Pattern;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.drools.core.RuleBaseConfiguration;
import org.drools.core.reteoo.BetaMemory;
import org.drools.core.reteoo.Tuple;
@@ -39,7 +40,7 @@
public class EmptyBetaConstraints
implements
- BetaConstraints {
+ BetaConstraints {
private static final BetaConstraints INSTANCE = new EmptyBetaConstraints();
private static final ContextEntry[] EMPTY = new ContextEntry[0];
@@ -95,8 +96,8 @@ public boolean isAllowedCachedLeft(final ContextEntry[] context,
/* (non-Javadoc)
* @see org.kie.common.BetaNodeConstraints#isAllowedCachedRight(org.kie.reteoo.ReteTuple)
*/
- public boolean isAllowedCachedRight(final ContextEntry[] context,
- final Tuple tuple) {
+ public boolean isAllowedCachedRight(final BaseTuple tuple,
+ final ContextEntry[] context) {
return true;
}
@@ -127,8 +128,8 @@ public int hashCode() {
/* (non-Javadoc)
* @see org.kie.common.BetaNodeConstraints#getConstraints()
*/
- public BetaNodeFieldConstraint[] getConstraints() {
- return new BetaNodeFieldConstraint[0];
+ public BetaConstraint[] getConstraints() {
+ return new BetaConstraint[0];
}
/**
diff --git a/drools-core/src/main/java/org/drools/core/common/MultipleBetaConstraint.java b/drools-core/src/main/java/org/drools/core/common/MultipleBetaConstraint.java
index d082fc12cb0..835ec3e3d28 100644
--- a/drools-core/src/main/java/org/drools/core/common/MultipleBetaConstraint.java
+++ b/drools-core/src/main/java/org/drools/core/common/MultipleBetaConstraint.java
@@ -24,19 +24,19 @@
import org.drools.base.rule.ContextEntry;
import org.drools.base.rule.IndexableConstraint;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
import org.drools.core.RuleBaseConfiguration;
import org.drools.core.reteoo.BetaMemory;
import org.drools.core.reteoo.builder.BuildContext;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.drools.core.util.index.IndexFactory;
import org.kie.internal.conf.IndexPrecedenceOption;
import static org.drools.base.util.index.IndexUtil.compositeAllowed;
import static org.drools.base.util.index.IndexUtil.isIndexableForNode;
-public abstract class MultipleBetaConstraint implements BetaConstraints {
- protected BetaNodeFieldConstraint[] constraints;
- protected boolean[] indexed;
+public abstract class MultipleBetaConstraint implements BetaConstraints {
+ protected BetaConstraint[] constraints;
+ protected boolean[] indexed;
protected IndexPrecedenceOption indexPrecedenceOption;
protected transient boolean disableIndexing;
@@ -44,13 +44,13 @@ public abstract class MultipleBetaConstraint implements BetaConstraints {
public MultipleBetaConstraint() { }
- public MultipleBetaConstraint( BetaNodeFieldConstraint[] constraints,
+ public MultipleBetaConstraint( BetaConstraint[] constraints,
RuleBaseConfiguration conf,
boolean disableIndexing) {
this(constraints, conf.getIndexPrecedenceOption(), disableIndexing);
}
- protected MultipleBetaConstraint( BetaNodeFieldConstraint[] constraints,
+ protected MultipleBetaConstraint( BetaConstraint[] constraints,
IndexPrecedenceOption indexPrecedenceOption,
boolean disableIndexing) {
this.constraints = constraints;
@@ -59,7 +59,7 @@ protected MultipleBetaConstraint( BetaNodeFieldConstraint[] constraints,
}
public final void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
- constraints = (BetaNodeFieldConstraint[])in.readObject();
+ constraints = (BetaConstraint[])in.readObject();
indexed = (boolean[]) in.readObject();
indexPrecedenceOption = (IndexPrecedenceOption) in.readObject();
}
@@ -109,14 +109,14 @@ public BetaMemory createBetaMemory(final RuleBaseConfiguration config,
return IndexFactory.createBetaMemory(config, nodeType, constraints);
}
- public final BetaNodeFieldConstraint[] getConstraints() {
+ public final BetaConstraint[] getConstraints() {
return constraints;
}
public final ContextEntry[] createContext() {
ContextEntry[] entries = new ContextEntry[constraints.length];
for (int i = 0; i < constraints.length; i++) {
- entries[i] = constraints[i].createContextEntry();
+ entries[i] = constraints[i].createContext();
}
return entries;
}
@@ -133,7 +133,7 @@ public boolean isLeftUpdateOptimizationAllowed() {
}
private boolean calcLeftUpdateOptimizationAllowed() {
- for (BetaNodeFieldConstraint constraint : constraints) {
+ for (BetaConstraint constraint : constraints) {
if ( !(constraint instanceof IndexableConstraint && ((IndexableConstraint)constraint).getConstraintType().isEquality()) ) {
return false;
}
diff --git a/drools-core/src/main/java/org/drools/core/common/ObjectFactory.java b/drools-core/src/main/java/org/drools/core/common/ObjectFactory.java
index d3c1b5d3e70..52799274d7e 100644
--- a/drools-core/src/main/java/org/drools/core/common/ObjectFactory.java
+++ b/drools-core/src/main/java/org/drools/core/common/ObjectFactory.java
@@ -18,7 +18,7 @@
*/
package org.drools.core.common;
-import javax.xml.bind.annotation.XmlRegistry;
+import jakarta.xml.bind.annotation.XmlRegistry;
@XmlRegistry
public class ObjectFactory {
diff --git a/drools-core/src/main/java/org/drools/core/common/QuadroupleBetaConstraints.java b/drools-core/src/main/java/org/drools/core/common/QuadroupleBetaConstraints.java
index e662d567682..6cbea95bb25 100644
--- a/drools-core/src/main/java/org/drools/core/common/QuadroupleBetaConstraints.java
+++ b/drools-core/src/main/java/org/drools/core/common/QuadroupleBetaConstraints.java
@@ -22,10 +22,11 @@
import java.util.Optional;
import org.drools.base.base.ObjectType;
+import org.drools.base.reteoo.BaseTuple;
import org.drools.base.rule.ContextEntry;
import org.drools.base.rule.MutableTypeConstraint;
import org.drools.base.rule.Pattern;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.drools.core.RuleBaseConfiguration;
import org.drools.core.reteoo.Tuple;
import org.drools.core.reteoo.builder.BuildContext;
@@ -39,20 +40,20 @@ public class QuadroupleBetaConstraints extends MultipleBetaConstraint {
public QuadroupleBetaConstraints() { }
- public QuadroupleBetaConstraints(final BetaNodeFieldConstraint[] constraints,
+ public QuadroupleBetaConstraints(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf) {
this(constraints,
conf,
false);
}
- public QuadroupleBetaConstraints(final BetaNodeFieldConstraint[] constraints,
+ public QuadroupleBetaConstraints(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf,
final boolean disableIndexing) {
super(constraints, conf, disableIndexing);
}
- protected QuadroupleBetaConstraints( BetaNodeFieldConstraint[] constraints,
+ protected QuadroupleBetaConstraints( BetaConstraint[] constraints,
IndexPrecedenceOption indexPrecedenceOption,
boolean disableIndexing) {
super(constraints, indexPrecedenceOption, disableIndexing);
@@ -60,7 +61,7 @@ protected QuadroupleBetaConstraints( BetaNodeFieldConstraint[] constraints,
public QuadroupleBetaConstraints cloneIfInUse() {
if (constraints[0] instanceof MutableTypeConstraint && ((MutableTypeConstraint)constraints[0]).setInUse()) {
- BetaNodeFieldConstraint[] clonedConstraints = new BetaNodeFieldConstraint[constraints.length];
+ BetaConstraint[] clonedConstraints = new BetaConstraint[constraints.length];
for (int i = 0; i < constraints.length; i++) {
clonedConstraints[i] = constraints[i].cloneIfInUse();
}
@@ -131,8 +132,8 @@ public boolean isAllowedCachedLeft(final ContextEntry[] context,
/* (non-Javadoc)
* @see org.kie.common.BetaNodeConstraints#isAllowedCachedRight(org.kie.reteoo.ReteTuple)
*/
- public boolean isAllowedCachedRight(final ContextEntry[] context,
- final Tuple tuple) {
+ public boolean isAllowedCachedRight(final BaseTuple tuple,
+ final ContextEntry[] context) {
return constraints[0].isAllowedCachedRight(tuple, context[0]) &&
constraints[1].isAllowedCachedRight(tuple, context[1]) &&
constraints[2].isAllowedCachedRight( tuple, context[2] ) &&
diff --git a/drools-core/src/main/java/org/drools/core/common/QuadroupleNonIndexSkipBetaConstraints.java b/drools-core/src/main/java/org/drools/core/common/QuadroupleNonIndexSkipBetaConstraints.java
index 75c22f20a9f..61b9554df5a 100644
--- a/drools-core/src/main/java/org/drools/core/common/QuadroupleNonIndexSkipBetaConstraints.java
+++ b/drools-core/src/main/java/org/drools/core/common/QuadroupleNonIndexSkipBetaConstraints.java
@@ -25,10 +25,11 @@
import java.util.Optional;
import org.drools.base.base.ObjectType;
+import org.drools.base.reteoo.BaseTuple;
import org.drools.base.rule.ContextEntry;
import org.drools.base.rule.MutableTypeConstraint;
import org.drools.base.rule.Pattern;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.drools.core.RuleBaseConfiguration;
import org.drools.core.reteoo.BetaMemory;
import org.drools.core.reteoo.Tuple;
@@ -38,14 +39,14 @@
public class QuadroupleNonIndexSkipBetaConstraints
implements
- BetaConstraints {
+ BetaConstraints {
private QuadroupleBetaConstraints constraints;
- private BetaNodeFieldConstraint constraint0;
- private BetaNodeFieldConstraint constraint1;
- private BetaNodeFieldConstraint constraint2;
- private BetaNodeFieldConstraint constraint3;
+ private BetaConstraint constraint0;
+ private BetaConstraint constraint1;
+ private BetaConstraint constraint2;
+ private BetaConstraint constraint3;
public QuadroupleNonIndexSkipBetaConstraints() {
@@ -53,7 +54,7 @@ public QuadroupleNonIndexSkipBetaConstraints() {
public QuadroupleNonIndexSkipBetaConstraints(QuadroupleBetaConstraints constraints) {
this.constraints = constraints;
- BetaNodeFieldConstraint[] constraint = constraints.getConstraints();
+ BetaConstraint[] constraint = constraints.getConstraints();
this.constraint0 = constraint[0];
this.constraint1 = constraint[1];
this.constraint2 = constraint[2];
@@ -125,7 +126,7 @@ public int hashCode() {
return constraints.hashCode();
}
- public BetaNodeFieldConstraint[] getConstraints() {
+ public BetaConstraint[] getConstraints() {
return constraints.getConstraints();
}
@@ -153,9 +154,9 @@ public boolean isAllowedCachedLeft(final ContextEntry[] context,
&& this.constraint3.isAllowedCachedLeft(context[3], handle);
}
- public boolean isAllowedCachedRight(ContextEntry[] context,
- Tuple tuple) {
- return this.constraints.isAllowedCachedRight(context, tuple);
+ public boolean isAllowedCachedRight(final BaseTuple tuple,
+ final ContextEntry[] context) {
+ return this.constraints.isAllowedCachedRight(tuple, context);
}
public BitMask getListenedPropertyMask(Pattern pattern, ObjectType modifiedType, List settableProperties) {
diff --git a/drools-core/src/main/java/org/drools/core/common/QueryElementFactHandle.java b/drools-core/src/main/java/org/drools/core/common/QueryElementFactHandle.java
index 97be135e6f2..04f6eef60d0 100644
--- a/drools-core/src/main/java/org/drools/core/common/QueryElementFactHandle.java
+++ b/drools-core/src/main/java/org/drools/core/common/QueryElementFactHandle.java
@@ -22,9 +22,9 @@
import java.util.function.Consumer;
import java.util.function.Predicate;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlAttribute;
import org.drools.base.factmodel.traits.TraitTypeEnum;
import org.drools.base.rule.EntryPointId;
diff --git a/drools-core/src/main/java/org/drools/core/common/SingleBetaConstraints.java b/drools-core/src/main/java/org/drools/core/common/SingleBetaConstraints.java
index d4a00df2046..9a5008f75aa 100644
--- a/drools-core/src/main/java/org/drools/core/common/SingleBetaConstraints.java
+++ b/drools-core/src/main/java/org/drools/core/common/SingleBetaConstraints.java
@@ -25,10 +25,11 @@
import java.util.Optional;
import org.drools.base.base.ObjectType;
+import org.drools.base.reteoo.BaseTuple;
import org.drools.base.rule.ContextEntry;
import org.drools.base.rule.MutableTypeConstraint;
import org.drools.base.rule.Pattern;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.drools.base.util.index.IndexUtil;
import org.drools.core.RuleBaseConfiguration;
import org.drools.core.reteoo.BetaMemory;
@@ -40,11 +41,11 @@
public class SingleBetaConstraints
implements
- BetaConstraints {
+ BetaConstraints {
private static final long serialVersionUID = 510l;
- protected BetaNodeFieldConstraint constraint;
+ protected BetaConstraint constraint;
protected boolean indexed;
@@ -54,21 +55,21 @@ public SingleBetaConstraints() {
}
- public SingleBetaConstraints(final BetaNodeFieldConstraint[] constraint,
+ public SingleBetaConstraints(final BetaConstraint[] constraint,
final RuleBaseConfiguration conf) {
this(constraint[0],
conf,
false);
}
- public SingleBetaConstraints(final BetaNodeFieldConstraint constraint,
+ public SingleBetaConstraints(final BetaConstraint constraint,
final RuleBaseConfiguration conf) {
this(constraint,
conf,
false);
}
- public SingleBetaConstraints(final BetaNodeFieldConstraint constraint,
+ public SingleBetaConstraints(final BetaConstraint constraint,
final RuleBaseConfiguration conf,
final boolean disableIndex) {
this.constraint = constraint;
@@ -90,7 +91,7 @@ public void initIndexes(int depth, short betaNodeType, RuleBaseConfiguration con
}
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
- constraint = (BetaNodeFieldConstraint) in.readObject();
+ constraint = (BetaConstraint) in.readObject();
indexed = in.readBoolean();
}
@@ -102,50 +103,53 @@ public void writeExternal(ObjectOutput out) throws IOException {
public SingleBetaConstraints cloneIfInUse() {
if (constraint instanceof MutableTypeConstraint && ((MutableTypeConstraint) constraint).setInUse()) {
- SingleBetaConstraints clone = new SingleBetaConstraints(constraint.cloneIfInUse(), null, disableIndex);
- clone.indexed = indexed;
- return clone;
+ return clone();
}
return this;
}
- public ContextEntry[] createContext() {
- return new ContextEntry[]{this.constraint.createContextEntry()};
+ public SingleBetaConstraints clone() {
+ SingleBetaConstraints clone = new SingleBetaConstraints(constraint.cloneIfInUse(), null, disableIndex);
+ clone.indexed = indexed;
+ return clone;
+ }
+
+ public ContextEntry createContext() {
+ return this.constraint.createContext();
}
/* (non-Javadoc)
* @see org.kie.common.BetaNodeConstraints#updateFromTuple(org.kie.reteoo.ReteTuple)
*/
- public void updateFromTuple(final ContextEntry[] context,
+ public void updateFromTuple(final ContextEntry context,
final ReteEvaluator reteEvaluator,
final Tuple tuple) {
- context[0].updateFromTuple(reteEvaluator, tuple);
+ context.updateFromTuple(reteEvaluator, tuple);
}
/* (non-Javadoc)
* @see org.kie.common.BetaNodeConstraints#updateFromFactHandle(org.kie.common.InternalFactHandle)
*/
- public void updateFromFactHandle(final ContextEntry[] context,
+ public void updateFromFactHandle(final ContextEntry context,
final ReteEvaluator reteEvaluator,
final FactHandle handle) {
- context[0].updateFromFactHandle(reteEvaluator, handle);
+ context.updateFromFactHandle(reteEvaluator, handle);
}
/* (non-Javadoc)
* @see org.kie.common.BetaNodeConstraints#isAllowedCachedLeft(java.lang.Object)
*/
- public boolean isAllowedCachedLeft(final ContextEntry[] context,
+ public boolean isAllowedCachedLeft(final ContextEntry context,
final FactHandle handle) {
- return this.indexed || this.constraint.isAllowedCachedLeft(context[0],
+ return this.indexed || this.constraint.isAllowedCachedLeft(context,
handle);
}
/* (non-Javadoc)
* @see org.kie.common.BetaNodeConstraints#isAllowedCachedRight(org.kie.reteoo.ReteTuple)
*/
- public boolean isAllowedCachedRight(final ContextEntry[] context,
- final Tuple tuple) {
- return this.constraint.isAllowedCachedRight(tuple, context[0]);
+ public boolean isAllowedCachedRight(final BaseTuple tuple, final ContextEntry context) {
+ return this.constraint.isAllowedCachedRight(tuple, context);
}
public boolean isIndexed() {
@@ -169,15 +173,15 @@ public int hashCode() {
return this.constraint.hashCode();
}
- public BetaNodeFieldConstraint getConstraint() {
+ public BetaConstraint getConstraint() {
return this.constraint;
}
/* (non-Javadoc)
* @see org.kie.common.BetaNodeConstraints#getConstraints()
*/
- public BetaNodeFieldConstraint[] getConstraints() {
- return new BetaNodeFieldConstraint[]{this.constraint};
+ public BetaConstraint[] getConstraints() {
+ return new BetaConstraint[]{this.constraint};
}
/**
@@ -201,12 +205,12 @@ public boolean equals(final Object object) {
return this.constraint == other.constraint || this.constraint.equals(other.constraint);
}
- public void resetFactHandle(ContextEntry[] context) {
- context[0].resetFactHandle();
+ public void resetFactHandle(ContextEntry context) {
+ context.resetFactHandle();
}
- public void resetTuple(ContextEntry[] context) {
- context[0].resetTuple();
+ public void resetTuple(ContextEntry context) {
+ context.resetTuple();
}
public BetaConstraints getOriginalConstraint() {
diff --git a/drools-core/src/main/java/org/drools/core/common/SingleNonIndexSkipBetaConstraints.java b/drools-core/src/main/java/org/drools/core/common/SingleNonIndexSkipBetaConstraints.java
index 8a13e34194b..f4d62239531 100644
--- a/drools-core/src/main/java/org/drools/core/common/SingleNonIndexSkipBetaConstraints.java
+++ b/drools-core/src/main/java/org/drools/core/common/SingleNonIndexSkipBetaConstraints.java
@@ -25,10 +25,11 @@
import java.util.Optional;
import org.drools.base.base.ObjectType;
+import org.drools.base.reteoo.BaseTuple;
import org.drools.base.rule.ContextEntry;
import org.drools.base.rule.MutableTypeConstraint;
import org.drools.base.rule.Pattern;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.drools.core.RuleBaseConfiguration;
import org.drools.core.reteoo.BetaMemory;
import org.drools.core.reteoo.Tuple;
@@ -38,11 +39,11 @@
public class SingleNonIndexSkipBetaConstraints
implements
- BetaConstraints {
+ BetaConstraints {
private SingleBetaConstraints constraints;
- private BetaNodeFieldConstraint constraint;
+ private BetaConstraint constraint;
public SingleNonIndexSkipBetaConstraints() {
@@ -80,17 +81,17 @@ public BetaConstraints getOriginalConstraint() {
return this.constraints;
}
- public ContextEntry[] createContext() {
+ public ContextEntry createContext() {
return constraints.createContext();
}
- public void updateFromTuple(ContextEntry[] context,
+ public void updateFromTuple(ContextEntry context,
ReteEvaluator reteEvaluator,
Tuple tuple) {
constraints.updateFromTuple( context, reteEvaluator, tuple );
}
- public void updateFromFactHandle(ContextEntry[] context,
+ public void updateFromFactHandle(ContextEntry context,
ReteEvaluator reteEvaluator,
FactHandle handle) {
constraints.updateFromFactHandle( context, reteEvaluator, handle );
@@ -118,7 +119,7 @@ public int hashCode() {
return constraints.hashCode();
}
- public BetaNodeFieldConstraint[] getConstraints() {
+ public BetaConstraint[] getConstraints() {
return constraints.getConstraints();
}
@@ -126,11 +127,11 @@ public boolean equals(Object object) {
return object instanceof SingleNonIndexSkipBetaConstraints && constraints.equals( ((SingleNonIndexSkipBetaConstraints)object).constraints );
}
- public void resetFactHandle(ContextEntry[] context) {
+ public void resetFactHandle(ContextEntry context) {
constraints.resetFactHandle( context );
}
- public void resetTuple(ContextEntry[] context) {
+ public void resetTuple(ContextEntry context) {
constraints.resetTuple( context );
}
@@ -138,15 +139,15 @@ public String toString() {
return constraints.toString();
}
- public boolean isAllowedCachedLeft(final ContextEntry[] context,
+ public boolean isAllowedCachedLeft(final ContextEntry context,
final FactHandle handle) {
- return this.constraint.isAllowedCachedLeft( context[0],
+ return this.constraint.isAllowedCachedLeft( context,
handle );
}
- public boolean isAllowedCachedRight(ContextEntry[] context,
- Tuple tuple) {
- return this.constraints.isAllowedCachedRight( context, tuple );
+ public boolean isAllowedCachedRight(final BaseTuple tuple,
+ final ContextEntry context) {
+ return this.constraints.isAllowedCachedRight(tuple, context);
}
public BitMask getListenedPropertyMask(Pattern pattern, ObjectType modifiedType, List settableProperties) {
diff --git a/drools-core/src/main/java/org/drools/core/common/TripleBetaConstraints.java b/drools-core/src/main/java/org/drools/core/common/TripleBetaConstraints.java
index 179284acee6..2fa95914e14 100644
--- a/drools-core/src/main/java/org/drools/core/common/TripleBetaConstraints.java
+++ b/drools-core/src/main/java/org/drools/core/common/TripleBetaConstraints.java
@@ -22,10 +22,11 @@
import java.util.Optional;
import org.drools.base.base.ObjectType;
+import org.drools.base.reteoo.BaseTuple;
import org.drools.base.rule.ContextEntry;
import org.drools.base.rule.MutableTypeConstraint;
import org.drools.base.rule.Pattern;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.drools.core.RuleBaseConfiguration;
import org.drools.core.reteoo.Tuple;
import org.drools.core.reteoo.builder.BuildContext;
@@ -39,20 +40,20 @@ public class TripleBetaConstraints extends MultipleBetaConstraint {
public TripleBetaConstraints() { }
- public TripleBetaConstraints(final BetaNodeFieldConstraint[] constraints,
+ public TripleBetaConstraints(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf) {
this(constraints,
conf,
false);
}
- public TripleBetaConstraints(final BetaNodeFieldConstraint[] constraints,
+ public TripleBetaConstraints(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf,
final boolean disableIndexing) {
super(constraints, conf, disableIndexing);
}
- protected TripleBetaConstraints( BetaNodeFieldConstraint[] constraints,
+ protected TripleBetaConstraints( BetaConstraint[] constraints,
IndexPrecedenceOption indexPrecedenceOption,
boolean disableIndexing) {
super(constraints, indexPrecedenceOption, disableIndexing);
@@ -60,7 +61,7 @@ protected TripleBetaConstraints( BetaNodeFieldConstraint[] constraints,
public TripleBetaConstraints cloneIfInUse() {
if (constraints[0] instanceof MutableTypeConstraint && ((MutableTypeConstraint)constraints[0]).setInUse()) {
- BetaNodeFieldConstraint[] clonedConstraints = new BetaNodeFieldConstraint[constraints.length];
+ BetaConstraint[] clonedConstraints = new BetaConstraint[constraints.length];
for (int i = 0; i < constraints.length; i++) {
clonedConstraints[i] = constraints[i].cloneIfInUse();
}
@@ -124,8 +125,8 @@ public boolean isAllowedCachedLeft(final ContextEntry[] context,
/* (non-Javadoc)
* @see org.kie.common.BetaNodeConstraints#isAllowedCachedRight(org.kie.reteoo.ReteTuple)
*/
- public boolean isAllowedCachedRight(final ContextEntry[] context,
- final Tuple tuple) {
+ public boolean isAllowedCachedRight(final BaseTuple tuple,
+ final ContextEntry[] context) {
return constraints[0].isAllowedCachedRight( tuple, context[0] ) &&
constraints[1].isAllowedCachedRight( tuple, context[1] ) &&
constraints[2].isAllowedCachedRight( tuple, context[2] );
diff --git a/drools-core/src/main/java/org/drools/core/common/TripleNonIndexSkipBetaConstraints.java b/drools-core/src/main/java/org/drools/core/common/TripleNonIndexSkipBetaConstraints.java
index cc84cab3e9d..de425ccdd96 100644
--- a/drools-core/src/main/java/org/drools/core/common/TripleNonIndexSkipBetaConstraints.java
+++ b/drools-core/src/main/java/org/drools/core/common/TripleNonIndexSkipBetaConstraints.java
@@ -25,10 +25,11 @@
import java.util.Optional;
import org.drools.base.base.ObjectType;
+import org.drools.base.reteoo.BaseTuple;
import org.drools.base.rule.ContextEntry;
import org.drools.base.rule.MutableTypeConstraint;
import org.drools.base.rule.Pattern;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.drools.core.RuleBaseConfiguration;
import org.drools.core.reteoo.BetaMemory;
import org.drools.core.reteoo.Tuple;
@@ -38,13 +39,13 @@
public class TripleNonIndexSkipBetaConstraints
implements
- BetaConstraints {
+ BetaConstraints {
private TripleBetaConstraints constraints;
- private BetaNodeFieldConstraint constraint0;
- private BetaNodeFieldConstraint constraint1;
- private BetaNodeFieldConstraint constraint2;
+ private BetaConstraint constraint0;
+ private BetaConstraint constraint1;
+ private BetaConstraint constraint2;
public TripleNonIndexSkipBetaConstraints() {
@@ -52,7 +53,7 @@ public TripleNonIndexSkipBetaConstraints() {
public TripleNonIndexSkipBetaConstraints(TripleBetaConstraints constraints) {
this.constraints = constraints;
- BetaNodeFieldConstraint[] constraint = constraints.getConstraints();
+ BetaConstraint[] constraint = constraints.getConstraints();
this.constraint0 = constraint[0];
this.constraint1 = constraint[1];
this.constraint2 = constraint[2];
@@ -123,7 +124,7 @@ public int hashCode() {
return constraints.hashCode();
}
- public BetaNodeFieldConstraint[] getConstraints() {
+ public BetaConstraint[] getConstraints() {
return constraints.getConstraints();
}
@@ -151,9 +152,9 @@ public boolean isAllowedCachedLeft(final ContextEntry[] context,
handle );
}
- public boolean isAllowedCachedRight(ContextEntry[] context,
- Tuple tuple) {
- return this.constraints.isAllowedCachedRight( context, tuple );
+ public boolean isAllowedCachedRight(final BaseTuple tuple,
+ final ContextEntry[] context) {
+ return this.constraints.isAllowedCachedRight( tuple, context );
}
public BitMask getListenedPropertyMask(Pattern pattern, ObjectType modifiedType, List settableProperties) {
diff --git a/drools-core/src/main/java/org/drools/core/common/TupleStartEqualsConstraint.java b/drools-core/src/main/java/org/drools/core/common/TupleStartEqualsConstraint.java
index 4d2ee359722..a8d607d0d72 100755
--- a/drools-core/src/main/java/org/drools/core/common/TupleStartEqualsConstraint.java
+++ b/drools-core/src/main/java/org/drools/core/common/TupleStartEqualsConstraint.java
@@ -26,8 +26,8 @@
import org.drools.base.reteoo.BaseTuple;
import org.drools.base.rule.ContextEntry;
import org.drools.base.rule.Declaration;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
import org.drools.core.reteoo.LeftTuple;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.drools.core.reteoo.Tuple;
import org.kie.api.runtime.rule.FactHandle;
@@ -52,7 +52,7 @@
*/
public class TupleStartEqualsConstraint
implements
- BetaNodeFieldConstraint {
+ BetaConstraint {
private static final long serialVersionUID = 510l;
@@ -88,7 +88,7 @@ public boolean isTemporal() {
return false;
}
- public ContextEntry createContextEntry() {
+ public ContextEntry createContext() {
return new TupleStartEqualsConstraintContextEntry();
}
@@ -190,7 +190,7 @@ public ConstraintType getType() {
return ConstraintType.BETA;
}
- public BetaNodeFieldConstraint cloneIfInUse() {
+ public BetaConstraint cloneIfInUse() {
return this;
}
}
diff --git a/drools-core/src/main/java/org/drools/core/impl/InternalRuleBase.java b/drools-core/src/main/java/org/drools/core/impl/InternalRuleBase.java
index f4002ac8a1a..5f93204d9b2 100644
--- a/drools-core/src/main/java/org/drools/core/impl/InternalRuleBase.java
+++ b/drools-core/src/main/java/org/drools/core/impl/InternalRuleBase.java
@@ -22,9 +22,7 @@
import java.lang.reflect.Type;
import java.util.Collection;
import java.util.List;
-import java.util.Map;
import java.util.Set;
-import java.util.concurrent.Future;
import org.drools.base.RuleBase;
import org.drools.base.common.RuleBasePartitionId;
@@ -80,7 +78,6 @@ public interface InternalRuleBase extends RuleBase {
Set getEntryPointIds();
- String getId();
RuleBasePartitionId createNewPartitionId();
boolean isPartitioned();
@@ -99,7 +96,6 @@ public interface InternalRuleBase extends RuleBase {
FactHandleFactory newFactHandleFactory(long id, long counter) throws IOException;
- Map getGlobals();
int getNodeCount();
int getMemoryCount();
@@ -120,11 +116,6 @@ public interface InternalRuleBase extends RuleBase {
Class> registerAndLoadTypeDefinition( String className, byte[] def ) throws ClassNotFoundException;
- InternalKnowledgePackage[] getPackages();
- InternalKnowledgePackage getPackage(String name);
- Future addPackage(KiePackage pkg );
- void addPackages( Collection extends KiePackage> newPkgs );
- Map getPackagesMap();
ClassFieldAccessorCache getClassFieldAccessorCache();
@@ -141,9 +132,6 @@ public interface InternalRuleBase extends RuleBase {
void processAllTypesDeclaration( Collection pkgs );
- void addRules( Collection rules ) throws InvalidPatternException;
- void removeRules( Collection rules ) throws InvalidPatternException;
-
default void beforeIncrementalUpdate(KieBaseUpdate kieBaseUpdate) { }
default void afterIncrementalUpdate(KieBaseUpdate kieBaseUpdate) { }
@@ -160,8 +148,6 @@ default void afterIncrementalUpdate(KieBaseUpdate kieBaseUpdate) { }
ReleaseId getResolvedReleaseId();
void setResolvedReleaseId(ReleaseId currentReleaseId);
- String getContainerId();
- void setContainerId(String containerId);
RuleUnitDescriptionRegistry getRuleUnitDescriptionRegistry();
boolean hasUnits();
diff --git a/drools-core/src/main/java/org/drools/core/management/DroolsManagementAgent.java b/drools-core/src/main/java/org/drools/core/management/DroolsManagementAgent.java
index 5bacd15b864..3c7d467fa16 100644
--- a/drools-core/src/main/java/org/drools/core/management/DroolsManagementAgent.java
+++ b/drools-core/src/main/java/org/drools/core/management/DroolsManagementAgent.java
@@ -28,8 +28,8 @@
import javax.management.ObjectName;
import javax.management.StandardMBean;
+import org.drools.base.RuleBase;
import org.drools.core.common.InternalWorkingMemory;
-import org.drools.core.impl.InternalRuleBase;
import org.drools.core.reteoo.RuntimeComponentFactory;
import org.kie.api.builder.model.KieSessionModel;
import org.kie.api.event.KieRuntimeEventManager;
@@ -59,7 +59,7 @@ static DroolsManagementAgent getInstance() {
return DroolsManagementAgentHolder.INSTANCE;
}
- static ObjectName createObjectNameFor(InternalRuleBase kbase) {
+ static ObjectName createObjectNameFor(RuleBase kbase) {
return DroolsManagementAgent.createObjectName(
DroolsManagementAgent.createObjectNameBy(kbase.getContainerId())
+ ",kbaseId=" + ObjectName.quote(kbase.getId())
@@ -101,9 +101,9 @@ static String ksessionType(KieSessionModel.KieSessionType ksessionType) {
long getNextKnowledgeSessionId();
- void registerKnowledgeBase(InternalRuleBase kbase);
+ void registerKnowledgeBase(RuleBase kbase);
- void unregisterKnowledgeBase(InternalRuleBase kbase);
+ void unregisterKnowledgeBase(RuleBase kbase);
void registerKnowledgeSessionUnderName(CBSKey cbsKey, KieRuntimeEventManager ksession);
@@ -240,7 +240,7 @@ public synchronized long getNextKnowledgeSessionId() {
}
@Override
- public void registerKnowledgeBase(InternalRuleBase kbase) {
+ public void registerKnowledgeBase(RuleBase kbase) {
KnowledgeBaseMonitoring mbean = new KnowledgeBaseMonitoring( kbase );
registerMBean( kbase,
mbean,
@@ -248,7 +248,7 @@ public void registerKnowledgeBase(InternalRuleBase kbase) {
}
@Override
- public void unregisterKnowledgeBase(InternalRuleBase kbase) {
+ public void unregisterKnowledgeBase(RuleBase kbase) {
unregisterMBeansFromOwner(kbase);
}
@@ -417,12 +417,12 @@ public long getNextKnowledgeSessionId() {
}
@Override
- public void registerKnowledgeBase(InternalRuleBase kbase) {
+ public void registerKnowledgeBase(RuleBase kbase) {
}
@Override
- public void unregisterKnowledgeBase(InternalRuleBase kbase) {
+ public void unregisterKnowledgeBase(RuleBase kbase) {
}
diff --git a/drools-core/src/main/java/org/drools/core/management/KnowledgeBaseMonitoring.java b/drools-core/src/main/java/org/drools/core/management/KnowledgeBaseMonitoring.java
index 609a89e6706..5a4ba38a6bc 100644
--- a/drools-core/src/main/java/org/drools/core/management/KnowledgeBaseMonitoring.java
+++ b/drools-core/src/main/java/org/drools/core/management/KnowledgeBaseMonitoring.java
@@ -52,6 +52,7 @@
import javax.management.openmbean.TabularDataSupport;
import javax.management.openmbean.TabularType;
+import org.drools.base.RuleBase;
import org.drools.core.impl.InternalRuleBase;
import org.drools.core.reteoo.EntryPointNode;
import org.drools.core.reteoo.ObjectTypeNode;
@@ -114,8 +115,8 @@ public class KnowledgeBaseMonitoring
// ************************************************************************************************
// Constructor
- public KnowledgeBaseMonitoring(InternalRuleBase kbase) {
- this.kbase = kbase;
+ public KnowledgeBaseMonitoring(RuleBase kbase) {
+ this.kbase = (InternalRuleBase) kbase;
this.name = DroolsManagementAgent.createObjectNameFor(kbase);
initOpenMBeanInfo();
diff --git a/drools-core/src/main/java/org/drools/core/phreak/PhreakAccumulateNode.java b/drools-core/src/main/java/org/drools/core/phreak/PhreakAccumulateNode.java
index c63a815acc3..7d8419b550f 100644
--- a/drools-core/src/main/java/org/drools/core/phreak/PhreakAccumulateNode.java
+++ b/drools-core/src/main/java/org/drools/core/phreak/PhreakAccumulateNode.java
@@ -37,8 +37,8 @@
import org.drools.core.reteoo.LeftTupleSink;
import org.drools.core.reteoo.RightTuple;
import org.drools.core.reteoo.RightTupleImpl;
-import org.drools.core.reteoo.Tuple;
import org.drools.core.reteoo.TupleMemory;
+import org.drools.core.reteoo.Tuple;
import org.drools.core.util.AbstractHashTable;
import org.drools.core.util.FastIterator;
import org.kie.api.runtime.rule.FactHandle;
@@ -141,7 +141,7 @@ private void doLeftInserts(AccumulateNode accNode,
BetaMemory bm = am.getBetaMemory();
TupleMemory ltm = bm.getLeftTupleMemory();
TupleMemory rtm = bm.getRightTupleMemory();
- ContextEntry[] contextEntry = bm.getContext();
+ Object contextEntry = bm.getContext();
BetaConstraints constraints = accNode.getRawConstraints();
boolean leftTupleMemoryEnabled = accNode.isLeftTupleMemoryEnabled();
@@ -223,7 +223,7 @@ private void doRightInserts(AccumulateNode accNode,
BetaMemory bm = am.getBetaMemory();
TupleMemory ltm = bm.getLeftTupleMemory();
TupleMemory rtm = bm.getRightTupleMemory();
- ContextEntry[] contextEntry = bm.getContext();
+ Object contextEntry = bm.getContext();
BetaConstraints constraints = accNode.getRawConstraints();
if (srcRightTuples.getInsertSize() > 32 && rtm instanceof AbstractHashTable ) {
@@ -249,8 +249,8 @@ private void doRightInserts(AccumulateNode accNode,
FastIterator leftIt = accNode.getLeftIterator( ltm );
for ( LeftTuple leftTuple = accNode.getFirstLeftTuple( rightTuple, ltm, leftIt ); leftTuple != null; leftTuple = (LeftTuple) leftIt.next( leftTuple ) ) {
- if ( constraints.isAllowedCachedRight( contextEntry,
- leftTuple ) ) {
+ if ( constraints.isAllowedCachedRight(leftTuple, contextEntry
+ ) ) {
final BaseAccumulation accctx = (BaseAccumulation) leftTuple.getContextObject();
addMatch( accNode, accumulate, leftTuple, rightTuple,
null, null, reteEvaluator, am,
@@ -278,7 +278,7 @@ private void doLeftUpdates(AccumulateNode accNode,
BetaMemory bm = am.getBetaMemory();
TupleMemory rtm = bm.getRightTupleMemory();
Accumulate accumulate = accNode.getAccumulate();
- ContextEntry[] contextEntry = bm.getContext();
+ Object contextEntry = bm.getContext();
BetaConstraints constraints = accNode.getRawConstraints();
for (LeftTuple leftTuple = srcLeftTuples.getUpdateFirst(); leftTuple != null; ) {
@@ -413,7 +413,7 @@ private void doRightUpdates(AccumulateNode accNode,
TupleSets trgLeftTuples) {
BetaMemory bm = am.getBetaMemory();
TupleMemory ltm = bm.getLeftTupleMemory();
- ContextEntry[] contextEntry = bm.getContext();
+ Object contextEntry = bm.getContext();
BetaConstraints constraints = accNode.getRawConstraints();
Accumulate accumulate = accNode.getAccumulate();
@@ -480,8 +480,8 @@ private void doRightUpdatesProcessChildren(AccumulateNode accNode,
// either we are indexed and changed buckets or
// we had no children before, but there is a bucket to potentially match, so try as normal assert
for (; leftTuple != null; leftTuple = (LeftTuple) leftIt.next(leftTuple)) {
- if (constraints.isAllowedCachedRight(bm.getContext(),
- leftTuple)) {
+ if (constraints.isAllowedCachedRight(leftTuple, bm.getContext()
+ )) {
if (leftTuple.getStagedType() == LeftTuple.NONE) {
trgLeftTuples.addUpdate(leftTuple);
}
@@ -495,8 +495,8 @@ private void doRightUpdatesProcessChildren(AccumulateNode accNode,
} else {
// in the same bucket, so iterate and compare
for (; leftTuple != null; leftTuple = (LeftTuple) leftIt.next(leftTuple)) {
- if (constraints.isAllowedCachedRight(bm.getContext(),
- leftTuple)) {
+ if (constraints.isAllowedCachedRight(leftTuple, bm.getContext()
+ )) {
if (leftTuple.getStagedType() == LeftTuple.NONE) {
trgLeftTuples.addUpdate(leftTuple);
}
diff --git a/drools-core/src/main/java/org/drools/core/phreak/PhreakAsyncReceiveNode.java b/drools-core/src/main/java/org/drools/core/phreak/PhreakAsyncReceiveNode.java
index 601279f0503..d4c2a7ffdb0 100644
--- a/drools-core/src/main/java/org/drools/core/phreak/PhreakAsyncReceiveNode.java
+++ b/drools-core/src/main/java/org/drools/core/phreak/PhreakAsyncReceiveNode.java
@@ -70,7 +70,7 @@ private static void doPropagateChildLeftTuples(AsyncReceiveNode node,
TupleSets trgLeftTuples) {
BetaConstraints betaConstraints = node.getBetaConstraints();
- ContextEntry[] context = betaConstraints.createContext();
+ Object context = betaConstraints.createContext();
TupleList leftTuples = memory.getInsertOrUpdateLeftTuples();
for ( LeftTuple leftTuple = (LeftTuple) leftTuples.getFirst(); leftTuple != null; leftTuple = (LeftTuple) leftTuple.getNext() ) {
diff --git a/drools-core/src/main/java/org/drools/core/phreak/PhreakAsyncSendNode.java b/drools-core/src/main/java/org/drools/core/phreak/PhreakAsyncSendNode.java
index 21637bc42ad..d5f7017ca0b 100644
--- a/drools-core/src/main/java/org/drools/core/phreak/PhreakAsyncSendNode.java
+++ b/drools-core/src/main/java/org/drools/core/phreak/PhreakAsyncSendNode.java
@@ -61,7 +61,7 @@ public void doLeftInserts(AsyncSendNode node,
TupleSets srcLeftTuples) {
BetaMemory bm = memory.getBetaMemory();
- ContextEntry[] context = bm.getContext();
+ Object context = bm.getContext();
BetaConstraints betaConstraints = node.getBetaConstraints();
AlphaNodeFieldConstraint[] alphaConstraints = node.getAlphaConstraints();
DataProvider dataProvider = node.getDataProvider();
@@ -96,7 +96,7 @@ public void doLeftInserts(AsyncSendNode node,
}
private void fetchAndSendResults(AsyncSendNode node, AsyncSendMemory memory, ReteEvaluator reteEvaluator,
- ContextEntry[] context, BetaConstraints betaConstraints, AlphaNodeFieldConstraint[] alphaConstraints,
+ Object context, BetaConstraints betaConstraints, AlphaNodeFieldConstraint[] alphaConstraints,
DataProvider dataProvider, Class> resultClass, LeftTuple leftTuple, PropagationContext propagationContext ) {
for (final java.util.Iterator> it = dataProvider.getResults(leftTuple,
reteEvaluator,
@@ -131,7 +131,7 @@ public void propagate( AsyncSendNode node,
ReteEvaluator reteEvaluator,
InternalFactHandle factHandle,
BetaConstraints betaConstraints,
- ContextEntry[] context ) {
+ Object context ) {
if (betaConstraints.isAllowedCachedLeft(context, factHandle)) {
AsyncMessagesCoordinator.get().propagate( node.getMessageId(), new AsyncMessage( reteEvaluator, factHandle.getObject() ) );
}
diff --git a/drools-core/src/main/java/org/drools/core/phreak/PhreakExistsNode.java b/drools-core/src/main/java/org/drools/core/phreak/PhreakExistsNode.java
index 95d796c565a..b826bf6e36a 100644
--- a/drools-core/src/main/java/org/drools/core/phreak/PhreakExistsNode.java
+++ b/drools-core/src/main/java/org/drools/core/phreak/PhreakExistsNode.java
@@ -111,7 +111,7 @@ public void doLeftInserts(ExistsNode existsNode,
TupleSets trgLeftTuples) {
TupleMemory ltm = bm.getLeftTupleMemory();
TupleMemory rtm = bm.getRightTupleMemory();
- ContextEntry[] contextEntry = bm.getContext();
+ Object contextEntry = bm.getContext();
BetaConstraints constraints = existsNode.getRawConstraints();
for (LeftTuple leftTuple = srcLeftTuples.getInsertFirst(); leftTuple != null; ) {
@@ -147,7 +147,7 @@ public void doRightInserts(ExistsNode existsNode,
TupleSets trgLeftTuples) {
TupleMemory ltm = bm.getLeftTupleMemory();
TupleMemory rtm = bm.getRightTupleMemory();
- ContextEntry[] contextEntry = bm.getContext();
+ Object contextEntry = bm.getContext();
BetaConstraints constraints = existsNode.getRawConstraints();
for (RightTuple rightTuple = srcRightTuples.getInsertFirst(); rightTuple != null; ) {
@@ -172,8 +172,8 @@ public void doRightInserts(ExistsNode existsNode,
}
// we know that only unblocked LeftTuples are still in the memory
- if ( constraints.isAllowedCachedRight( contextEntry,
- leftTuple ) ) {
+ if ( constraints.isAllowedCachedRight(leftTuple, contextEntry
+ ) ) {
leftTuple.setBlocker( rightTuple );
rightTuple.addBlocked( leftTuple );
@@ -200,7 +200,7 @@ public void doLeftUpdates(ExistsNode existsNode,
TupleSets stagedLeftTuples) {
TupleMemory ltm = bm.getLeftTupleMemory();
TupleMemory rtm = bm.getRightTupleMemory();
- ContextEntry[] contextEntry = bm.getContext();
+ Object contextEntry = bm.getContext();
BetaConstraints constraints = existsNode.getRawConstraints();
boolean leftUpdateOptimizationAllowed = existsNode.isLeftUpdateOptimizationAllowed();
@@ -299,7 +299,7 @@ public void doRightUpdates(ExistsNode existsNode,
TupleSets stagedLeftTuples) {
TupleMemory ltm = bm.getLeftTupleMemory();
TupleMemory rtm = bm.getRightTupleMemory();
- ContextEntry[] contextEntry = bm.getContext();
+ Object contextEntry = bm.getContext();
BetaConstraints constraints = existsNode.getRawConstraints();
boolean iterateFromStart = existsNode.isIndexedUnificationJoin() || rtm.getIndexType().isComparison();
@@ -329,8 +329,8 @@ public void doRightUpdates(ExistsNode existsNode,
}
// we know that only unblocked LeftTuples are still in the memory
- if ( constraints.isAllowedCachedRight( contextEntry,
- leftTuple ) ) {
+ if ( constraints.isAllowedCachedRight(leftTuple, contextEntry
+ ) ) {
leftTuple.setBlocker( rightTuple );
rightTuple.addBlocked( leftTuple );
@@ -448,7 +448,7 @@ public void doRightDeletes(ExistsNode existsNode,
TupleSets stagedLeftTuples) {
TupleMemory rtm = bm.getRightTupleMemory();
TupleMemory ltm = bm.getLeftTupleMemory();
- ContextEntry[] contextEntry = bm.getContext();
+ Object contextEntry = bm.getContext();
BetaConstraints constraints = existsNode.getRawConstraints();
for (RightTuple rightTuple = srcRightTuples.getDeleteFirst(); rightTuple != null; ) {
diff --git a/drools-core/src/main/java/org/drools/core/phreak/PhreakFromNode.java b/drools-core/src/main/java/org/drools/core/phreak/PhreakFromNode.java
index 6a4f5198c86..11ee9d585ba 100644
--- a/drools-core/src/main/java/org/drools/core/phreak/PhreakFromNode.java
+++ b/drools-core/src/main/java/org/drools/core/phreak/PhreakFromNode.java
@@ -77,7 +77,7 @@ public void doLeftInserts(FromNode fromNode,
TupleSets trgLeftTuples) {
BetaMemory bm = fm.getBetaMemory();
- ContextEntry[] context = bm.getContext();
+ Object context = bm.getContext();
BetaConstraints betaConstraints = fromNode.getBetaConstraints();
AlphaNodeFieldConstraint[] alphaConstraints = fromNode.getAlphaConstraints();
DataProvider dataProvider = fromNode.getDataProvider();
@@ -132,7 +132,7 @@ public void doLeftUpdates(FromNode fromNode,
TupleSets trgLeftTuples,
TupleSets stagedLeftTuples) {
BetaMemory bm = fm.getBetaMemory();
- ContextEntry[] context = bm.getContext();
+ Object context = bm.getContext();
BetaConstraints betaConstraints = fromNode.getBetaConstraints();
AlphaNodeFieldConstraint[] alphaConstraints = fromNode.getAlphaConstraints();
DataProvider dataProvider = fromNode.getDataProvider();
@@ -237,7 +237,7 @@ public static void propagate( LeftTupleSink sink,
RightTuple rightTuple,
BetaConstraints betaConstraints,
PropagationContext propagationContext,
- ContextEntry[] context,
+ Object context,
boolean useLeftMemory,
TupleSets trgLeftTuples,
TupleSets stagedLeftTuples ) {
diff --git a/drools-core/src/main/java/org/drools/core/phreak/PhreakJoinNode.java b/drools-core/src/main/java/org/drools/core/phreak/PhreakJoinNode.java
index 313e0505f5a..d61c9ccf80b 100644
--- a/drools-core/src/main/java/org/drools/core/phreak/PhreakJoinNode.java
+++ b/drools-core/src/main/java/org/drools/core/phreak/PhreakJoinNode.java
@@ -80,13 +80,13 @@ public void doNode(JoinNode joinNode,
public void doLeftInserts(JoinNode joinNode,
LeftTupleSink sink,
- BetaMemory bm,
+ BetaMemory> bm,
ReteEvaluator reteEvaluator,
TupleSets srcLeftTuples,
TupleSets trgLeftTuples) {
TupleMemory ltm = bm.getLeftTupleMemory();
TupleMemory rtm = bm.getRightTupleMemory();
- ContextEntry[] contextEntry = bm.getContext();
+ Object contextEntry = bm.getContext();
BetaConstraints constraints = joinNode.getRawConstraints();
for (LeftTuple leftTuple = srcLeftTuples.getInsertFirst(); leftTuple != null; ) {
@@ -124,13 +124,13 @@ public void doLeftInserts(JoinNode joinNode,
public void doRightInserts(JoinNode joinNode,
LeftTupleSink sink,
- BetaMemory bm,
+ BetaMemory> bm,
ReteEvaluator reteEvaluator,
TupleSets srcRightTuples,
TupleSets trgLeftTuples) {
TupleMemory ltm = bm.getLeftTupleMemory();
TupleMemory rtm = bm.getRightTupleMemory();
- ContextEntry[] contextEntry = bm.getContext();
+ Object contextEntry = bm.getContext();
BetaConstraints constraints = joinNode.getRawConstraints();
if (srcRightTuples.getInsertSize() > 32 && rtm instanceof AbstractHashTable ) {
@@ -154,8 +154,8 @@ public void doRightInserts(JoinNode joinNode,
continue;
}
- if ( constraints.isAllowedCachedRight( contextEntry,
- leftTuple ) ) {
+ if ( constraints.isAllowedCachedRight(leftTuple, contextEntry
+ ) ) {
insertChildLeftTuple( trgLeftTuples,
leftTuple,
rightTuple,
@@ -174,13 +174,13 @@ public void doRightInserts(JoinNode joinNode,
public void doLeftUpdates(JoinNode joinNode,
LeftTupleSink sink,
- BetaMemory bm,
+ BetaMemory> bm,
ReteEvaluator reteEvaluator,
TupleSets srcLeftTuples,
TupleSets trgLeftTuples,
TupleSets stagedLeftTuples) {
TupleMemory rtm = bm.getRightTupleMemory();
- ContextEntry[] contextEntry = bm.getContext();
+ Object contextEntry = bm.getContext();
BetaConstraints constraints = joinNode.getRawConstraints();
for (LeftTuple leftTuple = srcLeftTuples.getUpdateFirst(); leftTuple != null; ) {
@@ -220,7 +220,7 @@ public LeftTuple doLeftUpdatesProcessChildren(LeftTuple childLeftTuple,
LeftTuple leftTuple,
RightTuple rightTuple,
TupleSets stagedLeftTuples,
- ContextEntry[] contextEntry,
+ Object contextEntry,
BetaConstraints constraints,
LeftTupleSink sink,
FastIterator it,
@@ -283,7 +283,7 @@ public void doRightUpdates(JoinNode joinNode,
TupleSets trgLeftTuples,
TupleSets stagedLeftTuples) {
TupleMemory ltm = bm.getLeftTupleMemory();
- ContextEntry[] contextEntry = bm.getContext();
+ Object contextEntry = bm.getContext();
BetaConstraints constraints = joinNode.getRawConstraints();
for (RightTuple rightTuple = srcRightTuples.getUpdateFirst(); rightTuple != null; ) {
@@ -326,7 +326,7 @@ public LeftTuple doRightUpdatesProcessChildren(LeftTuple childLeftTuple,
LeftTuple leftTuple,
RightTuple rightTuple,
TupleSets stagedLeftTuples,
- ContextEntry[] contextEntry,
+ Object contextEntry,
BetaConstraints constraints,
LeftTupleSink sink,
FastIterator it,
@@ -340,8 +340,8 @@ public LeftTuple doRightUpdatesProcessChildren(LeftTuple childLeftTuple,
continue;
}
- if (constraints.isAllowedCachedRight(contextEntry,
- leftTuple)) {
+ if (constraints.isAllowedCachedRight(leftTuple, contextEntry
+ )) {
insertChildLeftTuple(trgLeftTuples,
leftTuple,
rightTuple,
@@ -358,8 +358,8 @@ public LeftTuple doRightUpdatesProcessChildren(LeftTuple childLeftTuple,
// ignore, as it will get processed via left iteration. Children cannot be processed twice
continue;
}
- if (constraints.isAllowedCachedRight(contextEntry,
- leftTuple)) {
+ if (constraints.isAllowedCachedRight(leftTuple, contextEntry
+ )) {
// insert, childLeftTuple is not updated
if (childLeftTuple == null || childLeftTuple.getLeftParent() != leftTuple) {
insertChildLeftTuple(trgLeftTuples,
diff --git a/drools-core/src/main/java/org/drools/core/phreak/PhreakNotNode.java b/drools-core/src/main/java/org/drools/core/phreak/PhreakNotNode.java
index 0e8766dde8d..e56f173d884 100644
--- a/drools-core/src/main/java/org/drools/core/phreak/PhreakNotNode.java
+++ b/drools-core/src/main/java/org/drools/core/phreak/PhreakNotNode.java
@@ -18,7 +18,6 @@
*/
package org.drools.core.phreak;
-import org.drools.base.rule.ContextEntry;
import org.drools.core.common.BetaConstraints;
import org.drools.core.common.PropagationContext;
import org.drools.core.common.ReteEvaluator;
@@ -115,7 +114,7 @@ public void doLeftInserts(NotNode notNode,
TupleSets trgLeftTuples) {
TupleMemory ltm = bm.getLeftTupleMemory();
TupleMemory rtm = bm.getRightTupleMemory();
- ContextEntry[] contextEntry = bm.getContext();
+ Object contextEntry = bm.getContext();
BetaConstraints constraints = notNode.getRawConstraints();
for (LeftTuple leftTuple = srcLeftTuples.getInsertFirst(); leftTuple != null; ) {
@@ -148,7 +147,7 @@ public void doRightInserts(NotNode notNode,
TupleMemory ltm = bm.getLeftTupleMemory();
TupleMemory rtm = bm.getRightTupleMemory();
- ContextEntry[] contextEntry = bm.getContext();
+ Object contextEntry = bm.getContext();
BetaConstraints constraints = notNode.getRawConstraints();
// this must be processed here, rather than initial insert, as we need to link the blocker
@@ -177,8 +176,8 @@ public void doRightInserts(NotNode notNode,
}
// we know that only unblocked LeftTuples are still in the memory
- if ( constraints.isAllowedCachedRight( contextEntry,
- leftTuple ) ) {
+ if ( constraints.isAllowedCachedRight(leftTuple, contextEntry
+ ) ) {
leftTuple.setBlocker( rightTuple );
rightTuple.addBlocked( leftTuple );
@@ -223,7 +222,7 @@ public void doLeftUpdates(NotNode notNode,
TupleSets stagedLeftTuples) {
TupleMemory ltm = bm.getLeftTupleMemory();
TupleMemory rtm = bm.getRightTupleMemory();
- ContextEntry[] contextEntry = bm.getContext();
+ Object contextEntry = bm.getContext();
BetaConstraints constraints = notNode.getRawConstraints();
boolean leftUpdateOptimizationAllowed = notNode.isLeftUpdateOptimizationAllowed();
@@ -316,7 +315,7 @@ public void doRightUpdates(NotNode notNode,
TupleSets stagedLeftTuples) {
TupleMemory ltm = bm.getLeftTupleMemory();
TupleMemory rtm = bm.getRightTupleMemory();
- ContextEntry[] contextEntry = bm.getContext();
+ Object contextEntry = bm.getContext();
BetaConstraints constraints = notNode.getRawConstraints();
boolean iterateFromStart = notNode.isIndexedUnificationJoin() || rtm.getIndexType().isComparison();
@@ -345,8 +344,8 @@ public void doRightUpdates(NotNode notNode,
}
// we know that only unblocked LeftTuples are still in the memory
- if ( constraints.isAllowedCachedRight( contextEntry,
- leftTuple ) ) {
+ if ( constraints.isAllowedCachedRight(leftTuple, contextEntry
+ ) ) {
leftTuple.setBlocker( rightTuple );
rightTuple.addBlocked( leftTuple );
@@ -373,7 +372,7 @@ public void doRightUpdates(NotNode notNode,
constraints.resetTuple(contextEntry);
}
- public static boolean updateBlockersAndPropagate(NotNode notNode, RightTuple rightTuple, ReteEvaluator reteEvaluator, TupleMemory rtm, ContextEntry[] contextEntry,
+ public static boolean updateBlockersAndPropagate(NotNode notNode, RightTuple rightTuple, ReteEvaluator reteEvaluator, TupleMemory rtm, Object contextEntry,
BetaConstraints constraints, boolean iterateFromStart, LeftTupleSink sink, TupleSets trgLeftTuples, TupleMemory ltm) {
LeftTuple firstBlocked = rightTuple.getTempBlocked();
if ( firstBlocked != null ) {
@@ -467,7 +466,7 @@ public void doRightDeletes(NotNode notNode,
TupleSets trgLeftTuples) {
TupleMemory ltm = bm.getLeftTupleMemory();
TupleMemory rtm = bm.getRightTupleMemory();
- ContextEntry[] contextEntry = bm.getContext();
+ Object contextEntry = bm.getContext();
BetaConstraints constraints = notNode.getRawConstraints();
for (RightTuple rightTuple = srcRightTuples.getDeleteFirst(); rightTuple != null; ) {
diff --git a/drools-core/src/main/java/org/drools/core/phreak/ReactiveObjectUtil.java b/drools-core/src/main/java/org/drools/core/phreak/ReactiveObjectUtil.java
index fbddf9819e8..4b106c055f1 100644
--- a/drools-core/src/main/java/org/drools/core/phreak/ReactiveObjectUtil.java
+++ b/drools-core/src/main/java/org/drools/core/phreak/ReactiveObjectUtil.java
@@ -92,7 +92,7 @@ public void internalExecute(ReteEvaluator reteEvaluator ) {
InternalFactHandle factHandle = node.createFactHandle( reteEvaluator, object );
if ( type != ModificationType.REMOVE && isAllowed( factHandle, node.getAlphaConstraints(), reteEvaluator, mem ) ) {
- ContextEntry[] context = mem.getBetaMemory().getContext();
+ Object context = mem.getBetaMemory().getContext();
BetaConstraints betaConstraints = node.getBetaConstraints();
betaConstraints.updateFromTuple( context, reteEvaluator, leftTuple );
diff --git a/drools-core/src/main/java/org/drools/core/phreak/RuleNetworkEvaluator.java b/drools-core/src/main/java/org/drools/core/phreak/RuleNetworkEvaluator.java
index e64269ad056..eb96082a70b 100644
--- a/drools-core/src/main/java/org/drools/core/phreak/RuleNetworkEvaluator.java
+++ b/drools-core/src/main/java/org/drools/core/phreak/RuleNetworkEvaluator.java
@@ -761,7 +761,7 @@ private void doRiaNode2(ReteEvaluator reteEvaluator,
}
public static void findLeftTupleBlocker(BetaNode betaNode, TupleMemory rtm,
- ContextEntry[] contextEntry, BetaConstraints constraints,
+ Object contextEntry, BetaConstraints constraints,
LeftTuple leftTuple, boolean useLeftMemory) {
// This method will also remove rightTuples that are from subnetwork where no leftmemory use used
FastIterator it = betaNode.getRightIterator(rtm);
diff --git a/drools-core/src/main/java/org/drools/core/reteoo/AccumulateNode.java b/drools-core/src/main/java/org/drools/core/reteoo/AccumulateNode.java
index 429390441e8..bdfedfe6ab8 100644
--- a/drools-core/src/main/java/org/drools/core/reteoo/AccumulateNode.java
+++ b/drools-core/src/main/java/org/drools/core/reteoo/AccumulateNode.java
@@ -175,7 +175,7 @@ public boolean equals( final Object object ) {
return this.leftInput.getId() == other.leftInput.getId() && this.rightInput.getId() == other.rightInput.getId() &&
this.constraints.equals( other.constraints ) &&
this.accumulate.equals( other.accumulate ) &&
- resultBinder.equals( other.resultBinder ) &&
+ this.resultBinder.equals( other.resultBinder ) &&
Arrays.equals( this.resultConstraints, other.resultConstraints );
}
@@ -199,8 +199,8 @@ public static abstract class AccumulateMemory extends AbstractBaseLinkedListNode
SegmentNodeMemory {
public Object workingMemoryContext;
- private final BetaMemory betaMemory;
- public ContextEntry[] resultsContext;
+ private final BetaMemory> betaMemory;
+ public Object resultsContext;
protected AccumulateMemory( BetaMemory betaMemory ) {
this.betaMemory = betaMemory;
diff --git a/drools-core/src/main/java/org/drools/core/reteoo/BetaMemory.java b/drools-core/src/main/java/org/drools/core/reteoo/BetaMemory.java
index 4b88c92ca26..992af8aa708 100644
--- a/drools-core/src/main/java/org/drools/core/reteoo/BetaMemory.java
+++ b/drools-core/src/main/java/org/drools/core/reteoo/BetaMemory.java
@@ -26,7 +26,7 @@
import org.drools.core.reteoo.RightInputAdapterNode.RiaPathMemory;
import org.drools.core.util.AbstractBaseLinkedListNode;
-public class BetaMemory extends AbstractBaseLinkedListNode
+public class BetaMemory extends AbstractBaseLinkedListNode
implements
SegmentNodeMemory {
@@ -34,7 +34,7 @@ public class BetaMemory extends AbstractBaseLinkedListNode
private TupleMemory leftTupleMemory;
private TupleMemory rightTupleMemory;
private TupleSets stagedRightTuples;
- private ContextEntry[] context;
+ private C context;
// the node type this memory belongs to
private short nodeType;
private SegmentMemory segmentMemory;
@@ -47,7 +47,7 @@ public BetaMemory() {
public BetaMemory(final TupleMemory tupleMemory,
final TupleMemory objectMemory,
- final ContextEntry[] context,
+ final C context,
final short nodeType) {
this.leftTupleMemory = tupleMemory;
this.rightTupleMemory = objectMemory;
@@ -83,7 +83,7 @@ public void setRiaRuleMemory(RiaPathMemory riaRuleMemory) {
/**
* @return the context
*/
- public ContextEntry[] getContext() {
+ public C getContext() {
return context;
}
diff --git a/drools-core/src/main/java/org/drools/core/reteoo/BetaNode.java b/drools-core/src/main/java/org/drools/core/reteoo/BetaNode.java
index f892ddd7724..0d92e2aa571 100644
--- a/drools-core/src/main/java/org/drools/core/reteoo/BetaNode.java
+++ b/drools-core/src/main/java/org/drools/core/reteoo/BetaNode.java
@@ -28,7 +28,6 @@
import org.drools.base.reteoo.NodeTypeEnums;
import org.drools.base.rule.IndexableConstraint;
import org.drools.base.rule.Pattern;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
import org.drools.base.util.index.IndexUtil;
import org.drools.core.RuleBaseConfiguration;
import org.drools.core.common.BetaConstraints;
@@ -49,6 +48,7 @@
import org.drools.core.common.UpdateContext;
import org.drools.core.reteoo.AccumulateNode.AccumulateMemory;
import org.drools.core.reteoo.builder.BuildContext;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.drools.core.util.FastIterator;
import org.drools.util.bitmask.AllSetBitMask;
import org.drools.util.bitmask.BitMask;
@@ -228,9 +228,9 @@ public ObjectSource unwrapRightInput() {
private void setUnificationJoin() {
// If this join uses a indexed, ==, constraint on a query parameter then set indexedUnificationJoin to true
// This ensure we get the correct iterator
- BetaNodeFieldConstraint[] betaCconstraints = this.constraints.getConstraints();
+ BetaConstraint[] betaCconstraints = this.constraints.getConstraints();
if ( betaCconstraints.length > 0 ) {
- BetaNodeFieldConstraint c = betaCconstraints[0];
+ BetaConstraint c = betaCconstraints[0];
if ( indexable && ((IndexableConstraint) c).isUnification() ) {
if ( this.constraints instanceof SingleBetaConstraints ) {
setConstraints( new SingleNonIndexSkipBetaConstraints( (SingleBetaConstraints) this.constraints ) );
@@ -442,7 +442,7 @@ public boolean isIndexedUnificationJoin() {
return indexedUnificationJoin;
}
- public BetaNodeFieldConstraint[] getConstraints() {
+ public BetaConstraint[] getConstraints() {
return constraints.getConstraints();
}
@@ -451,7 +451,7 @@ public BetaConstraints getRawConstraints() {
}
private void setConstraints(BetaConstraints constraints) {
- this.constraints = constraints.cloneIfInUse();
+ this.constraints = (BetaConstraints) constraints.cloneIfInUse();
}
public void networkUpdated(UpdateContext updateContext) {
diff --git a/drools-core/src/main/java/org/drools/core/reteoo/LeftTuple.java b/drools-core/src/main/java/org/drools/core/reteoo/LeftTuple.java
index daa4c9986ae..74ded13ebfe 100644
--- a/drools-core/src/main/java/org/drools/core/reteoo/LeftTuple.java
+++ b/drools-core/src/main/java/org/drools/core/reteoo/LeftTuple.java
@@ -36,7 +36,7 @@ public class LeftTuple
extends AbstractTuple {
private static final long serialVersionUID = 540l;
- private int index;
+ private int index;
private LeftTuple parent;
diff --git a/drools-core/src/main/java/org/drools/core/reteoo/NotNodeLeftTuple.java b/drools-core/src/main/java/org/drools/core/reteoo/NotNodeLeftTuple.java
index b0ccf791335..5c461730491 100644
--- a/drools-core/src/main/java/org/drools/core/reteoo/NotNodeLeftTuple.java
+++ b/drools-core/src/main/java/org/drools/core/reteoo/NotNodeLeftTuple.java
@@ -178,7 +178,7 @@ public Collection getAccumulatedObjects() {
TupleMemory rtm = bm.getRightTupleMemory();
FastIterator it = betaNode.getRightIterator( rtm );
- ContextEntry[] contextEntry = bm.getContext();
+ Object contextEntry = bm.getContext();
constraints.updateFromTuple( contextEntry, reteEvaluator, this );
Collection result = new ArrayList<>();
diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/AccumulateBuilder.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/AccumulateBuilder.java
index fafbfbdfb01..f5c9b2ac48d 100755
--- a/drools-core/src/main/java/org/drools/core/reteoo/builder/AccumulateBuilder.java
+++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/AccumulateBuilder.java
@@ -25,12 +25,12 @@
import org.drools.base.rule.GroupElement;
import org.drools.base.rule.RuleConditionElement;
import org.drools.base.rule.constraint.AlphaNodeFieldConstraint;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
import org.drools.core.common.BetaConstraints;
import org.drools.core.reteoo.AccumulateNode;
import org.drools.core.reteoo.CoreComponentFactory;
import org.drools.core.reteoo.LeftTupleSource;
import org.drools.core.reteoo.RightInputAdapterNode;
+import org.drools.base.rule.constraint.BetaConstraint;
public class AccumulateBuilder
implements
@@ -45,7 +45,7 @@ public void build(final BuildContext context,
final Accumulate accumulate = (Accumulate) rce;
context.pushRuleComponent( accumulate );
- final List resultBetaConstraints = context.getBetaconstraints();
+ final List resultBetaConstraints = context.getBetaconstraints();
final List resultAlphaConstraints = context.getAlphaConstraints();
RuleConditionElement source = accumulate.getSource();
@@ -82,7 +82,7 @@ public void build(final BuildContext context,
context.setTupleSource( tupleSource );
// create a tuple start equals constraint and set it in the context
- final List betaConstraints = new ArrayList<>();
+ final List betaConstraints = new ArrayList<>();
context.setBetaconstraints( betaConstraints ); // Empty list ensures EmptyBetaConstraints is assigned
}
diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/BetaNodeConstraintFactory.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/BetaNodeConstraintFactory.java
index 5e3dbdd0003..03b2c162553 100644
--- a/drools-core/src/main/java/org/drools/core/reteoo/builder/BetaNodeConstraintFactory.java
+++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/BetaNodeConstraintFactory.java
@@ -18,34 +18,34 @@
*/
package org.drools.core.reteoo.builder;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
import org.drools.core.RuleBaseConfiguration;
import org.drools.core.common.DefaultBetaConstraints;
import org.drools.core.common.DoubleBetaConstraints;
import org.drools.core.common.QuadroupleBetaConstraints;
import org.drools.core.common.SingleBetaConstraints;
import org.drools.core.common.TripleBetaConstraints;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.kie.api.internal.utils.KieService;
public interface BetaNodeConstraintFactory extends KieService {
- SingleBetaConstraints createSingleBetaConstraints(final BetaNodeFieldConstraint constraint,
+ SingleBetaConstraints createSingleBetaConstraints(final BetaConstraint constraint,
final RuleBaseConfiguration conf,
final boolean disableIndex);
- DoubleBetaConstraints createDoubleBetaConstraints(final BetaNodeFieldConstraint[] constraints,
+ DoubleBetaConstraints createDoubleBetaConstraints(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf,
final boolean disableIndexing);
- TripleBetaConstraints createTripleBetaConstraints(final BetaNodeFieldConstraint[] constraints,
+ TripleBetaConstraints createTripleBetaConstraints(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf,
final boolean disableIndexing);
- QuadroupleBetaConstraints createQuadroupleBetaConstraints(final BetaNodeFieldConstraint[] constraints,
+ QuadroupleBetaConstraints createQuadroupleBetaConstraints(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf,
final boolean disableIndexing);
- DefaultBetaConstraints createDefaultBetaConstraints(final BetaNodeFieldConstraint[] constraints,
+ DefaultBetaConstraints createDefaultBetaConstraints(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf,
final boolean disableIndexing);
diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/BetaNodeConstraintFactoryImpl.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/BetaNodeConstraintFactoryImpl.java
index ddcf2cf8ab1..46e8410e63a 100644
--- a/drools-core/src/main/java/org/drools/core/reteoo/builder/BetaNodeConstraintFactoryImpl.java
+++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/BetaNodeConstraintFactoryImpl.java
@@ -18,46 +18,46 @@
*/
package org.drools.core.reteoo.builder;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
import org.drools.core.RuleBaseConfiguration;
import org.drools.core.common.DefaultBetaConstraints;
import org.drools.core.common.DoubleBetaConstraints;
import org.drools.core.common.QuadroupleBetaConstraints;
import org.drools.core.common.SingleBetaConstraints;
import org.drools.core.common.TripleBetaConstraints;
+import org.drools.base.rule.constraint.BetaConstraint;
public class BetaNodeConstraintFactoryImpl implements BetaNodeConstraintFactory {
@Override
- public SingleBetaConstraints createSingleBetaConstraints(final BetaNodeFieldConstraint constraint,
+ public SingleBetaConstraints createSingleBetaConstraints(final BetaConstraint constraint,
final RuleBaseConfiguration conf,
final boolean disableIndex) {
return new SingleBetaConstraints(constraint, conf, disableIndex);
}
@Override
- public DoubleBetaConstraints createDoubleBetaConstraints(final BetaNodeFieldConstraint[] constraints,
+ public DoubleBetaConstraints createDoubleBetaConstraints(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf,
final boolean disableIndexing) {
return new DoubleBetaConstraints(constraints, conf, disableIndexing);
}
@Override
- public TripleBetaConstraints createTripleBetaConstraints(final BetaNodeFieldConstraint[] constraints,
+ public TripleBetaConstraints createTripleBetaConstraints(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf,
final boolean disableIndexing) {
return new TripleBetaConstraints(constraints, conf, disableIndexing);
}
@Override
- public QuadroupleBetaConstraints createQuadroupleBetaConstraints(final BetaNodeFieldConstraint[] constraints,
+ public QuadroupleBetaConstraints createQuadroupleBetaConstraints(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf,
final boolean disableIndexing) {
return new QuadroupleBetaConstraints(constraints, conf, disableIndexing);
}
@Override
- public DefaultBetaConstraints createDefaultBetaConstraints(final BetaNodeFieldConstraint[] constraints,
+ public DefaultBetaConstraints createDefaultBetaConstraints(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf,
final boolean disableIndexing) {
return new DefaultBetaConstraints(constraints, conf, disableIndexing);
diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/BuildContext.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/BuildContext.java
index 03ada1be5d5..d402736b736 100755
--- a/drools-core/src/main/java/org/drools/core/reteoo/builder/BuildContext.java
+++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/BuildContext.java
@@ -35,7 +35,7 @@
import org.drools.base.rule.RuleComponent;
import org.drools.base.rule.RuleConditionElement;
import org.drools.base.rule.constraint.AlphaNodeFieldConstraint;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.drools.base.rule.constraint.XpathConstraint;
import org.drools.core.common.BaseNode;
import org.drools.core.common.InternalWorkingMemory;
@@ -71,11 +71,11 @@ public class BuildContext implements RuleBuildContext {
// the rule component being processed at the moment
private final Deque ruleComponent = new ArrayDeque<>();
// a build stack to track nested elements
- private Deque buildstack;
+ private Deque buildstack;
// beta constraints from the last pattern attached
- private List betaconstraints;
+ private List betaconstraints;
// alpha constraints from the last pattern attached
- private List alphaConstraints;
+ private List alphaConstraints;
// xpath constraints from the last pattern attached
private List xpathConstraints;
@@ -245,11 +245,11 @@ public Collection getBuildstack() {
return this.buildstack == null ? Collections.emptyList() : buildstack;
}
- public List getBetaconstraints() {
+ public List getBetaconstraints() {
return this.betaconstraints;
}
- public void setBetaconstraints(final List betaconstraints) {
+ public void setBetaconstraints(final List betaconstraints) {
this.betaconstraints = betaconstraints;
}
diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/BuildUtils.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/BuildUtils.java
index 0edca81cddb..aedd6b4e120 100755
--- a/drools-core/src/main/java/org/drools/core/reteoo/builder/BuildUtils.java
+++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/BuildUtils.java
@@ -33,7 +33,7 @@
import org.drools.base.rule.Pattern;
import org.drools.base.rule.RuleConditionElement;
import org.drools.base.rule.constraint.AlphaNodeFieldConstraint;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.drools.base.time.Interval;
import org.drools.base.time.TimeUtils;
import org.drools.core.common.BaseNode;
@@ -161,9 +161,9 @@ private void mergeNodes(BaseNode node, BaseNode duplicate) {
alphaConstraint.addPackageNames(((AlphaNode) duplicate).getConstraint().getPackageNames());
alphaConstraint.mergeEvaluationContext(((AlphaNode) duplicate).getConstraint());
} else if (node instanceof BetaNode) {
- BetaNodeFieldConstraint[] betaConstraints = ((BetaNode) node).getConstraints();
- int i = 0;
- for (BetaNodeFieldConstraint betaConstraint : betaConstraints) {
+ BetaConstraint[] betaConstraints = ((BetaNode) node).getConstraints();
+ int i = 0;
+ for (BetaConstraint betaConstraint : betaConstraints) {
betaConstraint.addPackageNames(((BetaNode) duplicate).getConstraints()[i].getPackageNames());
betaConstraint.mergeEvaluationContext(((BetaNode) duplicate).getConstraints()[i]);
i++;
@@ -203,9 +203,14 @@ private boolean areNodesCompatibleForSharing(BuildContext context, BaseNode node
* @param list the list of constraints
*/
public BetaConstraints createBetaNodeConstraint(final BuildContext context,
- final List list,
+ final List list,
final boolean disableIndexing) {
BetaConstraints constraints;
+ if ( list.size() == 1 && list.get(0) instanceof BetaConstraints) {
+ // If the constraint also implements BetaConstraints us it directly, do not wrap.
+ return (BetaConstraints) list.get(0);
+ }
+
switch ( list.size() ) {
case 0 :
constraints = EmptyBetaConstraints.getInstance();
@@ -216,22 +221,22 @@ public BetaConstraints createBetaNodeConstraint(final BuildContext context,
disableIndexing );
break;
case 2 :
- constraints = BetaNodeConstraintFactory.Factory.get().createDoubleBetaConstraints( list.toArray( new BetaNodeFieldConstraint[list.size()] ),
+ constraints = BetaNodeConstraintFactory.Factory.get().createDoubleBetaConstraints( list.toArray( new BetaConstraint[list.size()]),
context.getRuleBase().getRuleBaseConfiguration(),
disableIndexing );
break;
case 3 :
- constraints = BetaNodeConstraintFactory.Factory.get().createTripleBetaConstraints( list.toArray( new BetaNodeFieldConstraint[list.size()] ),
+ constraints = BetaNodeConstraintFactory.Factory.get().createTripleBetaConstraints( list.toArray( new BetaConstraint[list.size()]),
context.getRuleBase().getRuleBaseConfiguration(),
disableIndexing );
break;
case 4 :
- constraints = BetaNodeConstraintFactory.Factory.get().createQuadroupleBetaConstraints( list.toArray( new BetaNodeFieldConstraint[list.size()] ),
+ constraints = BetaNodeConstraintFactory.Factory.get().createQuadroupleBetaConstraints( list.toArray( new BetaConstraint[list.size()]),
context.getRuleBase().getRuleBaseConfiguration(),
disableIndexing );
break;
default :
- constraints = BetaNodeConstraintFactory.Factory.get().createDefaultBetaConstraints( list.toArray( new BetaNodeFieldConstraint[list.size()] ),
+ constraints = BetaNodeConstraintFactory.Factory.get().createDefaultBetaConstraints( list.toArray( new BetaConstraint[list.size()]),
context.getRuleBase().getRuleBaseConfiguration(),
disableIndexing );
}
diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/CollectBuilder.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/CollectBuilder.java
index 7b5af6a4228..da62bed442f 100755
--- a/drools-core/src/main/java/org/drools/core/reteoo/builder/CollectBuilder.java
+++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/CollectBuilder.java
@@ -27,7 +27,6 @@
import org.drools.base.rule.RuleConditionElement;
import org.drools.base.rule.SingleAccumulate;
import org.drools.base.rule.constraint.AlphaNodeFieldConstraint;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
import org.drools.core.base.accumulators.CollectAccumulator;
import org.drools.core.common.BetaConstraints;
import org.drools.core.common.TupleStartEqualsConstraint;
@@ -35,6 +34,7 @@
import org.drools.core.reteoo.CoreComponentFactory;
import org.drools.core.reteoo.LeftTupleSource;
import org.drools.core.reteoo.RightInputAdapterNode;
+import org.drools.base.rule.constraint.BetaConstraint;
public class CollectBuilder
implements
@@ -51,7 +51,7 @@ public void build(final BuildContext context,
final Collect collect = (Collect) rce;
context.pushRuleComponent( collect );
- final List resultBetaConstraints = context.getBetaconstraints();
+ final List resultBetaConstraints = context.getBetaconstraints();
final List resultAlphaConstraints = context.getAlphaConstraints();
final Pattern sourcePattern = collect.getSourcePattern();
@@ -81,8 +81,8 @@ public void build(final BuildContext context,
context.setTupleSource( tupleSource );
// create a tuple start equals constraint and set it in the context
- final TupleStartEqualsConstraint constraint = TupleStartEqualsConstraint.getInstance();
- final List betaConstraints = new ArrayList<>();
+ final TupleStartEqualsConstraint constraint = TupleStartEqualsConstraint.getInstance();
+ final List betaConstraints = new ArrayList<>();
betaConstraints.add( constraint );
context.setBetaconstraints( betaConstraints );
existSubNetwort = true;
diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/GroupElementBuilder.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/GroupElementBuilder.java
index 6df4f4782ad..9b2eca4ded0 100755
--- a/drools-core/src/main/java/org/drools/core/reteoo/builder/GroupElementBuilder.java
+++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/GroupElementBuilder.java
@@ -29,7 +29,6 @@
import org.drools.base.rule.GroupElement.Type;
import org.drools.base.rule.Pattern;
import org.drools.base.rule.RuleConditionElement;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
import org.drools.core.RuleBaseConfiguration;
import org.drools.core.common.BetaConstraints;
import org.drools.core.common.TupleStartEqualsConstraint;
@@ -41,6 +40,7 @@
import org.drools.core.reteoo.ObjectSource;
import org.drools.core.reteoo.ObjectTypeNode;
import org.drools.core.reteoo.RightInputAdapterNode;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.kie.api.definition.rule.Propagation;
public class GroupElementBuilder
@@ -260,7 +260,7 @@ public void build(final BuildContext context,
// create a tuple start equals constraint and set it in the context
final TupleStartEqualsConstraint constraint = TupleStartEqualsConstraint.getInstance();
- final List predicates = new ArrayList<>();
+ final List predicates = new ArrayList<>();
predicates.add( constraint );
context.setBetaconstraints( predicates );
}
@@ -338,7 +338,7 @@ public void build(final BuildContext context,
context.setTupleSource( tupleSource );
- final List betaConstraints = new ArrayList<>();
+ final List betaConstraints = new ArrayList<>();
context.setBetaconstraints( betaConstraints ); // Empty list ensures EmptyBetaConstraints is assigned
}
diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/InstanceNotEqualsConstraint.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/InstanceNotEqualsConstraint.java
index 476c920dc82..0d3b667aa89 100644
--- a/drools-core/src/main/java/org/drools/core/reteoo/builder/InstanceNotEqualsConstraint.java
+++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/InstanceNotEqualsConstraint.java
@@ -27,12 +27,12 @@
import org.drools.base.rule.ContextEntry;
import org.drools.base.rule.Declaration;
import org.drools.base.rule.Pattern;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.kie.api.runtime.rule.FactHandle;
public class InstanceNotEqualsConstraint
implements
- BetaNodeFieldConstraint {
+ BetaConstraint {
private static final long serialVersionUID = 510l;
@@ -75,7 +75,7 @@ public boolean isTemporal() {
return false;
}
- public ContextEntry createContextEntry() {
+ public ContextEntry createContext() {
return new InstanceNotEqualsConstraintContextEntry( this.otherPattern );
}
@@ -182,7 +182,7 @@ public void resetFactHandle() {
}
}
- public BetaNodeFieldConstraint cloneIfInUse() {
+ public BetaConstraint cloneIfInUse() {
return this;
}
}
diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/PatternBuilder.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/PatternBuilder.java
index 421ca3ce239..e15c1c3ea5e 100755
--- a/drools-core/src/main/java/org/drools/core/reteoo/builder/PatternBuilder.java
+++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/PatternBuilder.java
@@ -38,7 +38,7 @@
import org.drools.base.rule.TypeDeclaration;
import org.drools.base.rule.WindowReference;
import org.drools.base.rule.constraint.AlphaNodeFieldConstraint;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.drools.base.rule.constraint.Constraint;
import org.drools.base.rule.constraint.XpathConstraint;
import org.drools.base.time.impl.Timer;
@@ -189,7 +189,7 @@ private Constraints createConstraints(BuildContext context, Pattern pattern) {
linkAlphaConstraint( (AlphaNodeFieldConstraint) constraint, constraints.alphaConstraints );
break;
case BETA:
- linkBetaConstraint( (BetaNodeFieldConstraint) constraint, constraints.betaConstraints );
+ linkBetaConstraint((BetaConstraint) constraint, constraints.betaConstraints);
if ( isNegative && context.getRuleBase().getRuleBaseConfiguration().getEventProcessingMode() == EventProcessingOption.STREAM && pattern.getObjectType().isEvent() && constraint.isTemporal() ) {
checkDelaying( context, constraint );
}
@@ -204,7 +204,7 @@ private Constraints createConstraints(BuildContext context, Pattern pattern) {
return constraints;
}
- protected void linkBetaConstraint( BetaNodeFieldConstraint constraint, List betaConstraints ) {
+ protected void linkBetaConstraint(BetaConstraint constraint, List betaConstraints) {
betaConstraints.add( constraint );
}
@@ -390,7 +390,7 @@ private void attachObjectTypeNode( final BuildContext context, final BuildUtils
*/
private void checkRemoveIdentities(final BuildContext context,
final Pattern pattern,
- final List betaConstraints) {
+ final List betaConstraints) {
if ( context.getRuleBase().getRuleBaseConfiguration().isRemoveIdentities() && pattern.getObjectType().getClass() == ClassObjectType.class ) {
// Check if this object type exists before
// If it does we need stop instance equals cross product
@@ -416,7 +416,7 @@ public boolean requiresLeftActivation(final BuildUtils utils,
private static class Constraints {
private final List alphaConstraints = new ArrayList<>();
- private final List betaConstraints = new ArrayList<>();
- private final List xpathConstraints = new ArrayList<>();
+ private final List betaConstraints = new ArrayList<>();
+ private final List xpathConstraints = new ArrayList<>();
}
}
diff --git a/drools-core/src/main/java/org/drools/core/util/AbstractBaseLinkedListNode.java b/drools-core/src/main/java/org/drools/core/util/AbstractBaseLinkedListNode.java
index e37c37fc310..a9aec456b6a 100644
--- a/drools-core/src/main/java/org/drools/core/util/AbstractBaseLinkedListNode.java
+++ b/drools-core/src/main/java/org/drools/core/util/AbstractBaseLinkedListNode.java
@@ -18,9 +18,9 @@
*/
package org.drools.core.util;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlRootElement;
/**
* Provides a abstract base implementation that an object can extend so that it can be used in a LinkedList.
diff --git a/drools-core/src/main/java/org/drools/core/util/AbstractHashTable.java b/drools-core/src/main/java/org/drools/core/util/AbstractHashTable.java
index a9b71182578..bdc28f1a7a7 100644
--- a/drools-core/src/main/java/org/drools/core/util/AbstractHashTable.java
+++ b/drools-core/src/main/java/org/drools/core/util/AbstractHashTable.java
@@ -24,7 +24,7 @@
import java.io.ObjectOutput;
import java.util.Objects;
-import org.drools.base.util.FieldIndex;
+import org.drools.base.util.IndexedValueReader;
import org.drools.core.reteoo.Tuple;
import org.drools.core.util.index.TupleList;
@@ -186,7 +186,7 @@ public String toString() {
}
public interface Index extends Externalizable {
- FieldIndex getFieldIndex(int index);
+ IndexedValueReader getFieldIndex(int index);
HashEntry hashCodeOf(Tuple tuple, boolean left);
}
@@ -194,7 +194,7 @@ public static class SingleIndex implements Index {
private static final long serialVersionUID = 510l;
- private FieldIndex index;
+ private IndexedValueReader index;
private int startResult;
@@ -204,7 +204,7 @@ public SingleIndex() {
}
- public SingleIndex(final FieldIndex[] indexes,
+ public SingleIndex(final IndexedValueReader[] indexes,
final int startResult) {
this.startResult = startResult;
this.index = indexes[0];
@@ -213,7 +213,7 @@ public SingleIndex(final FieldIndex[] indexes,
@Override
public void readExternal(ObjectInput in) throws IOException,
ClassNotFoundException {
- index = (FieldIndex) in.readObject();
+ index = (IndexedValueReader) in.readObject();
startResult = in.readInt();
}
@@ -224,7 +224,7 @@ public void writeExternal(ObjectOutput out) throws IOException {
}
@Override
- public FieldIndex getFieldIndex(int index) {
+ public IndexedValueReader getFieldIndex(int index) {
if ( index > 0 ) {
throw new IllegalArgumentException( "IndexUtil position " + index + " does not exist" );
}
@@ -284,8 +284,8 @@ public static class DoubleCompositeIndex implements Index {
private static final long serialVersionUID = 510l;
- private FieldIndex index1;
- private FieldIndex index2;
+ private IndexedValueReader index1;
+ private IndexedValueReader index2;
private int startResult;
@@ -295,7 +295,7 @@ public DoubleCompositeIndex() {
}
- public DoubleCompositeIndex(final FieldIndex[] indexes,
+ public DoubleCompositeIndex(final IndexedValueReader[] indexes,
final int startResult) {
this.startResult = startResult;
@@ -306,8 +306,8 @@ public DoubleCompositeIndex(final FieldIndex[] indexes,
@Override
public void readExternal(ObjectInput in) throws IOException,
ClassNotFoundException {
- index1 = (FieldIndex) in.readObject();
- index2 = (FieldIndex) in.readObject();
+ index1 = (IndexedValueReader) in.readObject();
+ index2 = (IndexedValueReader) in.readObject();
startResult = in.readInt();
}
@@ -319,7 +319,7 @@ public void writeExternal(ObjectOutput out) throws IOException {
}
@Override
- public FieldIndex getFieldIndex(int index) {
+ public IndexedValueReader getFieldIndex(int index) {
switch ( index ) {
case 0 :
return index1;
@@ -340,9 +340,9 @@ public static class TripleCompositeIndex implements Index {
private static final long serialVersionUID = 510l;
- private FieldIndex index1;
- private FieldIndex index2;
- private FieldIndex index3;
+ private IndexedValueReader index1;
+ private IndexedValueReader index2;
+ private IndexedValueReader index3;
private int startResult;
@@ -352,7 +352,7 @@ public TripleCompositeIndex() {
}
- public TripleCompositeIndex(final FieldIndex[] indexes,
+ public TripleCompositeIndex(final IndexedValueReader[] indexes,
final int startResult) {
this.startResult = startResult;
@@ -364,9 +364,9 @@ public TripleCompositeIndex(final FieldIndex[] indexes,
@Override
public void readExternal(ObjectInput in) throws IOException,
ClassNotFoundException {
- index1 = (FieldIndex) in.readObject();
- index2 = (FieldIndex) in.readObject();
- index3 = (FieldIndex) in.readObject();
+ index1 = (IndexedValueReader) in.readObject();
+ index2 = (IndexedValueReader) in.readObject();
+ index3 = (IndexedValueReader) in.readObject();
startResult = in.readInt();
}
@@ -379,7 +379,7 @@ public void writeExternal(ObjectOutput out) throws IOException {
}
@Override
- public FieldIndex getFieldIndex(int index) {
+ public IndexedValueReader getFieldIndex(int index) {
switch ( index ) {
case 0 :
return index1;
diff --git a/drools-core/src/main/java/org/drools/core/util/index/AbstractTupleIndexTree.java b/drools-core/src/main/java/org/drools/core/util/index/AbstractTupleIndexTree.java
index d5c6d4d0a8d..f47126971e7 100644
--- a/drools-core/src/main/java/org/drools/core/util/index/AbstractTupleIndexTree.java
+++ b/drools-core/src/main/java/org/drools/core/util/index/AbstractTupleIndexTree.java
@@ -18,12 +18,12 @@
*/
package org.drools.core.util.index;
-import org.drools.base.util.FieldIndex;
import org.drools.base.util.index.ConstraintTypeOperator;
import org.drools.core.reteoo.Tuple;
+import org.drools.base.util.IndexedValueReader;
public abstract class AbstractTupleIndexTree {
- protected FieldIndex index;
+ protected IndexedValueReader index;
protected ConstraintTypeOperator constraintType;
@@ -46,8 +46,8 @@ protected Comparable getRightIndexedValue(Tuple tuple) {
protected Comparable getIndexedValue(Tuple tuple, boolean left) {
return left ?
- (Comparable) index.getLeftExtractor().getValue( tuple ) :
- (Comparable) index.getRightExtractor().getValue( tuple.getFactHandle().getObject() );
+ (Comparable) index.getLeftExtractor().getValue( null, tuple ) :
+ (Comparable) index.getRightExtractor().getValue( null, tuple );
}
public static class IndexTupleList extends TupleList {
diff --git a/drools-core/src/main/java/org/drools/core/util/index/IndexFactory.java b/drools-core/src/main/java/org/drools/core/util/index/IndexFactory.java
index 5769458d340..9c92a940be6 100644
--- a/drools-core/src/main/java/org/drools/core/util/index/IndexFactory.java
+++ b/drools-core/src/main/java/org/drools/core/util/index/IndexFactory.java
@@ -19,15 +19,15 @@
package org.drools.core.util.index;
import org.drools.base.rule.ContextEntry;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
import org.drools.base.util.index.ConstraintTypeOperator;
import org.drools.core.RuleBaseConfiguration;
import org.drools.core.reteoo.BetaMemory;
import org.drools.core.reteoo.TupleMemory;
+import org.drools.base.rule.constraint.BetaConstraint;
public interface IndexFactory {
- static BetaMemory createBetaMemory(RuleBaseConfiguration config, short nodeType, BetaNodeFieldConstraint... constraints) {
+ static BetaMemory createBetaMemory(RuleBaseConfiguration config, short nodeType, BetaConstraint... constraints) {
if (config.getCompositeKeyDepth() < 1) {
return new BetaMemory( config.isSequential() ? null : new TupleList(),
new TupleList(),
@@ -77,10 +77,15 @@ private static TupleMemory createLeftMemory(RuleBaseConfiguration config, IndexS
return new TupleList();
}
- private static ContextEntry[] createContext(BetaNodeFieldConstraint... constraints) {
- ContextEntry[] entries = new ContextEntry[constraints.length];
+ private static Object createContext(BetaConstraint... constraints) {
+ if (constraints.length == 1) {
+ // no array needed
+ return constraints[0].createContext();
+ }
+
+ Object[] entries = new ContextEntry[constraints.length];
for (int i = 0; i < constraints.length; i++) {
- entries[i] = constraints[i].createContextEntry();
+ entries[i] = constraints[i].createContext();
}
return entries;
}
diff --git a/drools-core/src/main/java/org/drools/core/util/index/IndexMemory.java b/drools-core/src/main/java/org/drools/core/util/index/IndexMemory.java
index 2844c870718..7d56a265613 100644
--- a/drools-core/src/main/java/org/drools/core/util/index/IndexMemory.java
+++ b/drools-core/src/main/java/org/drools/core/util/index/IndexMemory.java
@@ -134,7 +134,7 @@ static class InternalEqualityMemoryFactory implements IndexMemory.Factory {
@Override
public TupleMemory createMemory(IndexSpec indexSpec, boolean isLeft) {
- return new TupleIndexHashTable(indexSpec.getIndexes(), isLeft);
+ return new TupleIndexHashTable(indexSpec.getIndex(), isLeft);
}
}
diff --git a/drools-core/src/main/java/org/drools/core/util/index/IndexSpec.java b/drools-core/src/main/java/org/drools/core/util/index/IndexSpec.java
index 36f094d7916..338f2c1c4d2 100644
--- a/drools-core/src/main/java/org/drools/core/util/index/IndexSpec.java
+++ b/drools-core/src/main/java/org/drools/core/util/index/IndexSpec.java
@@ -18,39 +18,85 @@
*/
package org.drools.core.util.index;
-import java.util.ArrayList;
-import java.util.List;
-
import org.drools.base.rule.IndexableConstraint;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
-import org.drools.base.util.FieldIndex;
+import org.drools.base.rule.constraint.BetaConstraint;
+import org.drools.base.util.IndexedValueReader;
import org.drools.base.util.index.ConstraintTypeOperator;
import org.drools.core.RuleBaseConfiguration;
+import org.drools.core.util.AbstractHashTable.DoubleCompositeIndex;
+import org.drools.core.util.AbstractHashTable.Index;
+import org.drools.core.util.AbstractHashTable.SingleIndex;
+import org.drools.core.util.AbstractHashTable.TripleCompositeIndex;
import org.kie.internal.conf.IndexPrecedenceOption;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.function.Supplier;
import static org.drools.base.util.index.IndexUtil.isEqualIndexable;
public class IndexSpec {
private ConstraintTypeOperator constraintType = ConstraintTypeOperator.UNKNOWN;
- private FieldIndex[] indexes;
+ private IndexedValueReader[] indexes;
- IndexSpec(short nodeType, BetaNodeFieldConstraint[] constraints, RuleBaseConfiguration config) {
+ public IndexSpec(short nodeType, BetaConstraint[] constraints, RuleBaseConfiguration config) {
init(nodeType, constraints, config);
}
+ public IndexSpec(IndexedValueReader[] indexes, ConstraintTypeOperator constraintType) {
+ this.indexes = indexes;
+ this.constraintType = constraintType;
+ }
+
+ public IndexSpec(IndexedValueReader[] indexes) {
+ this.indexes = indexes;
+ this.constraintType = ConstraintTypeOperator.EQUAL;
+ }
+
public ConstraintTypeOperator getConstraintType() {
return constraintType;
}
- public FieldIndex[] getIndexes() {
+ public IndexedValueReader[] getIndexes() {
return indexes;
}
- public FieldIndex getIndex(int pos) {
+ public Index getIndex() {
+ Index index;
+ int PRIME = 31;
+ int startResult = PRIME;
+ int i = 1;
+ for ( IndexedValueReader j : indexes ) {
+ startResult += PRIME * startResult + i;
+ i++;
+ }
+
+ switch ( indexes.length ) {
+ case 0 :
+ throw new IllegalArgumentException( "FieldIndexHashTable cannot use an index[] of length 0" );
+ case 1 :
+ index = new SingleIndex(indexes,
+ startResult );
+ break;
+ case 2 :
+ index = new DoubleCompositeIndex(indexes,
+ startResult );
+ break;
+ case 3 :
+ index = new TripleCompositeIndex(indexes,
+ startResult );
+ break;
+ default :
+ throw new IllegalArgumentException( "FieldIndexHashTable cannot use an index[] of length great than 3" );
+ }
+
+ return index;
+ }
+
+ public IndexedValueReader getIndex(int pos) {
return indexes[pos];
}
- private void init(short nodeType, BetaNodeFieldConstraint[] constraints, RuleBaseConfiguration config) {
+ public void init(short nodeType, BetaConstraint[] constraints, RuleBaseConfiguration config) {
int keyDepth = config.getCompositeKeyDepth();
IndexPrecedenceOption indexPrecedenceOption = config.getIndexPrecedenceOption();
int firstIndexableConstraint = indexPrecedenceOption == IndexPrecedenceOption.EQUALITY_PRIORITY ?
@@ -58,7 +104,7 @@ private void init(short nodeType, BetaNodeFieldConstraint[] constraints, RuleBas
determineTypeWithPatternOrder(nodeType, constraints, config);
if (constraintType == ConstraintTypeOperator.EQUAL) {
- List indexList = new ArrayList<>();
+ List indexList = new ArrayList<>();
if (isEqualIndexable(constraints[firstIndexableConstraint])) {
indexList.add(((IndexableConstraint) constraints[firstIndexableConstraint]).getFieldIndex());
}
@@ -69,15 +115,15 @@ private void init(short nodeType, BetaNodeFieldConstraint[] constraints, RuleBas
indexList.add(((IndexableConstraint)constraints[i]).getFieldIndex());
}
}
- indexes = indexList.toArray(new FieldIndex[indexList.size()]);
+ indexes = indexList.toArray(new IndexedValueReader[indexList.size()]);
} else if (constraintType.isComparison()) {
// look for a dual constraint to create a range index
- indexes = new FieldIndex[]{((IndexableConstraint)constraints[firstIndexableConstraint]).getFieldIndex() };
+ indexes = new IndexedValueReader[]{((IndexableConstraint)constraints[firstIndexableConstraint]).getFieldIndex() };
}
}
- private int determineTypeWithEqualityPriority(short nodeType, BetaNodeFieldConstraint[] constraints, RuleBaseConfiguration config) {
+ public int determineTypeWithEqualityPriority(short nodeType, BetaConstraint[] constraints, RuleBaseConfiguration config) {
int indexedConstraintPos = 0;
for (int i = 0; i < constraints.length; i++) {
if (constraints[i] instanceof IndexableConstraint) {
@@ -95,7 +141,7 @@ private int determineTypeWithEqualityPriority(short nodeType, BetaNodeFieldConst
return indexedConstraintPos;
}
- private int determineTypeWithPatternOrder(short nodeType, BetaNodeFieldConstraint[] constraints, RuleBaseConfiguration config) {
+ public int determineTypeWithPatternOrder(short nodeType, BetaConstraint[] constraints, RuleBaseConfiguration config) {
for (int i = 0; i < constraints.length; i++) {
ConstraintTypeOperator type = ConstraintTypeOperator.getType(constraints[i]);
if ( type.isIndexableForNode(nodeType, (IndexableConstraint) constraints[i], config) ) {
diff --git a/drools-core/src/main/java/org/drools/core/util/index/TupleIndexHashTable.java b/drools-core/src/main/java/org/drools/core/util/index/TupleIndexHashTable.java
index ae35385ee8a..3de36e097bf 100644
--- a/drools-core/src/main/java/org/drools/core/util/index/TupleIndexHashTable.java
+++ b/drools-core/src/main/java/org/drools/core/util/index/TupleIndexHashTable.java
@@ -22,7 +22,6 @@
import java.io.ObjectInput;
import java.io.ObjectOutput;
-import org.drools.base.util.FieldIndex;
import org.drools.core.reteoo.AbstractTuple;
import org.drools.core.reteoo.Tuple;
import org.drools.core.reteoo.TupleMemory;
@@ -31,14 +30,12 @@
import org.drools.core.util.Iterator;
import org.drools.core.util.LinkedList;
+import java.util.function.Supplier;
+
public class TupleIndexHashTable extends AbstractHashTable implements TupleMemory {
private static final long serialVersionUID = 510l;
- public static final int PRIME = 31;
-
- private int startResult;
-
private transient FieldIndexHashTableFullIterator tupleValueFullIterator;
private transient FullFastIterator fullFastIterator;
@@ -53,48 +50,25 @@ public TupleIndexHashTable() {
// constructor for serialisation
}
- public TupleIndexHashTable(FieldIndex[] index, boolean left) {
+ public TupleIndexHashTable(Index index, boolean left) {
this( 128, 0.75f, index, left );
}
public TupleIndexHashTable( int capacity,
float loadFactor,
- FieldIndex[] index,
+ Index index,
boolean left ) {
super( capacity,
loadFactor );
this.left = left;
- this.startResult = PRIME;
- for ( FieldIndex i : index ) {
- this.startResult += PRIME * this.startResult + i.getRightExtractor().getIndex();
- }
-
- switch ( index.length ) {
- case 0 :
- throw new IllegalArgumentException( "FieldIndexHashTable cannot use an index[] of length 0" );
- case 1 :
- this.index = new SingleIndex( index,
- this.startResult );
- break;
- case 2 :
- this.index = new DoubleCompositeIndex( index,
- this.startResult );
- break;
- case 3 :
- this.index = new TripleCompositeIndex( index,
- this.startResult );
- break;
- default :
- throw new IllegalArgumentException( "FieldIndexHashTable cannot use an index[] of length great than 3" );
- }
+ this.index = index;
}
public void readExternal(ObjectInput in) throws IOException,
ClassNotFoundException {
super.readExternal( in );
- startResult = in.readInt();
factSize = in.readInt();
index = (Index) in.readObject();
left = in.readBoolean();
@@ -102,7 +76,6 @@ public void readExternal(ObjectInput in) throws IOException,
public void writeExternal(ObjectOutput out) throws IOException {
super.writeExternal( out );
- out.writeInt( startResult );
out.writeInt( factSize );
out.writeObject( index );
out.writeBoolean( left );
@@ -464,7 +437,6 @@ public String toString() {
public void clear() {
super.clear();
- this.startResult = PRIME;
this.factSize = 0;
this.fullFastIterator = null;
this.tupleValueFullIterator = null;
diff --git a/drools-core/src/main/java/org/drools/core/util/index/TupleIndexRBTree.java b/drools-core/src/main/java/org/drools/core/util/index/TupleIndexRBTree.java
index 18ce1f4a874..7ee214c40fe 100644
--- a/drools-core/src/main/java/org/drools/core/util/index/TupleIndexRBTree.java
+++ b/drools-core/src/main/java/org/drools/core/util/index/TupleIndexRBTree.java
@@ -25,7 +25,7 @@
import java.util.ArrayList;
import java.util.List;
-import org.drools.base.util.FieldIndex;
+import org.drools.base.util.IndexedValueReader;
import org.drools.base.util.index.ConstraintTypeOperator;
import org.drools.core.reteoo.AbstractTuple;
import org.drools.core.reteoo.Tuple;
@@ -45,7 +45,7 @@ public TupleIndexRBTree() {
// constructor for serialisation
}
- public TupleIndexRBTree(ConstraintTypeOperator constraintType, FieldIndex index, boolean left) {
+ public TupleIndexRBTree(ConstraintTypeOperator constraintType, IndexedValueReader index, boolean left) {
this.index = index;
this.constraintType = constraintType;
this.left = left;
@@ -62,7 +62,7 @@ public void writeExternal(ObjectOutput out) throws IOException {
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
tree = (TupleRBTree>) in.readObject();
- index = (FieldIndex) in.readObject();
+ index = (IndexedValueReader) in.readObject();
constraintType = (ConstraintTypeOperator) in.readObject();
factSize = in.readInt();
left = in.readBoolean();
@@ -191,7 +191,7 @@ private Tuple getNextRight(Comparable key, boolean first) {
return firstNode == null ? null : firstNode.getFirst();
}
- public static Comparable coerceType(FieldIndex index, Comparable treeRootKey, Comparable key) {
+ public static Comparable coerceType(IndexedValueReader index, Comparable treeRootKey, Comparable key) {
// We don't do dynamic coercion other than Numbers. See IndexUtil.areRangeIndexCompatibleOperands().
if (index.requiresCoercion() && key != null && treeRootKey != null && !key.getClass().equals(treeRootKey.getClass())) {
if (treeRootKey instanceof Number && key instanceof Number) {
diff --git a/drools-core/src/test/java/org/drools/core/util/index/IndexUtilTest.java b/drools-core/src/test/java/org/drools/core/util/index/IndexUtilTest.java
index 61a6b336387..3cc0a9169da 100644
--- a/drools-core/src/test/java/org/drools/core/util/index/IndexUtilTest.java
+++ b/drools-core/src/test/java/org/drools/core/util/index/IndexUtilTest.java
@@ -32,10 +32,11 @@
import org.drools.base.rule.IndexableConstraint;
import org.drools.base.rule.accessor.FieldValue;
import org.drools.base.rule.accessor.ReadAccessor;
+import org.drools.base.rule.accessor.RightTupleValueExtractor;
import org.drools.base.rule.accessor.TupleValueExtractor;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.drools.base.rule.constraint.Constraint;
-import org.drools.base.util.FieldIndex;
+import org.drools.base.util.IndexedValueReader;
import org.drools.base.util.index.ConstraintTypeOperator;
import org.drools.base.util.index.IndexUtil;
import org.drools.core.RuleBaseConfiguration;
@@ -99,17 +100,17 @@ public void createBetaMemoryWithBigDecimalEqualsAndOtherIndexableConstraints_sho
assertThat(betaMemory.getLeftTupleMemory()).isInstanceOf(TupleIndexHashTable.class);
Index leftIndex = ((TupleIndexHashTable) betaMemory.getLeftTupleMemory()).getIndex();
assertThat(leftIndex).isInstanceOf(DoubleCompositeIndex.class);
- FieldIndex leftFieldIndex0 = leftIndex.getFieldIndex(0);
+ IndexedValueReader leftFieldIndex0 = leftIndex.getFieldIndex(0);
assertThat(leftFieldIndex0.getLeftExtractor().getValueType()).isEqualTo(ValueType.PINTEGER_TYPE);
- FieldIndex leftFieldIndex1 = leftIndex.getFieldIndex(1);
+ IndexedValueReader leftFieldIndex1 = leftIndex.getFieldIndex(1);
assertThat(leftFieldIndex1.getLeftExtractor().getValueType()).isEqualTo(ValueType.STRING_TYPE);
assertThat(betaMemory.getRightTupleMemory()).isInstanceOf(TupleIndexHashTable.class);
Index rightIndex = ((TupleIndexHashTable) betaMemory.getRightTupleMemory()).getIndex();
assertThat(rightIndex).isInstanceOf(DoubleCompositeIndex.class);
- FieldIndex rightFieldIndex0 = rightIndex.getFieldIndex(0);
+ IndexedValueReader rightFieldIndex0 = rightIndex.getFieldIndex(0);
assertThat(rightFieldIndex0.getRightExtractor().getValueType()).isEqualTo(ValueType.PINTEGER_TYPE);
- FieldIndex rightFieldIndex1 = rightIndex.getFieldIndex(1);
+ IndexedValueReader rightFieldIndex1 = rightIndex.getFieldIndex(1);
assertThat(rightFieldIndex1.getRightExtractor().getValueType()).isEqualTo(ValueType.STRING_TYPE);
}
@@ -118,8 +119,8 @@ public void isIndexableForNodeWithIntAndString() {
RuleBaseConfiguration config = getRuleBaseConfiguration();
FakeBetaNodeFieldConstraint intEqualsConstraint = new FakeBetaNodeFieldConstraint(ConstraintTypeOperator.EQUAL, new FakeReadAccessor(ValueType.PINTEGER_TYPE));
FakeBetaNodeFieldConstraint stringEqualsConstraint = new FakeBetaNodeFieldConstraint(ConstraintTypeOperator.EQUAL, new FakeReadAccessor(ValueType.STRING_TYPE));
- BetaNodeFieldConstraint[] constraints = new FakeBetaNodeFieldConstraint[]{intEqualsConstraint, stringEqualsConstraint};
- boolean[] indexed = IndexUtil.isIndexableForNode(IndexPrecedenceOption.EQUALITY_PRIORITY, NodeTypeEnums.JoinNode, config.getCompositeKeyDepth(), constraints, config);
+ BetaConstraint[] constraints = new FakeBetaNodeFieldConstraint[]{intEqualsConstraint, stringEqualsConstraint};
+ boolean[] indexed = IndexUtil.isIndexableForNode(IndexPrecedenceOption.EQUALITY_PRIORITY, NodeTypeEnums.JoinNode, config.getCompositeKeyDepth(), constraints, config);
assertThat(indexed).containsExactly(true, true);
}
@@ -129,21 +130,39 @@ public void isIndexableForNodeWithIntAndBigDecimalAndString() {
FakeBetaNodeFieldConstraint intEqualsConstraint = new FakeBetaNodeFieldConstraint(ConstraintTypeOperator.EQUAL, new FakeReadAccessor(ValueType.PINTEGER_TYPE));
FakeBetaNodeFieldConstraint bigDecimalEqualsConstraint = new FakeBetaNodeFieldConstraint(ConstraintTypeOperator.EQUAL, new FakeReadAccessor(ValueType.BIG_DECIMAL_TYPE));
FakeBetaNodeFieldConstraint stringEqualsConstraint = new FakeBetaNodeFieldConstraint(ConstraintTypeOperator.EQUAL, new FakeReadAccessor(ValueType.STRING_TYPE));
- BetaNodeFieldConstraint[] constraints = new FakeBetaNodeFieldConstraint[]{intEqualsConstraint, bigDecimalEqualsConstraint, stringEqualsConstraint};
- boolean[] indexed = IndexUtil.isIndexableForNode(IndexPrecedenceOption.EQUALITY_PRIORITY, NodeTypeEnums.JoinNode, config.getCompositeKeyDepth(), constraints, config);
+ BetaConstraint[] constraints = new FakeBetaNodeFieldConstraint[]{intEqualsConstraint, bigDecimalEqualsConstraint, stringEqualsConstraint};
+ boolean[] indexed = IndexUtil.isIndexableForNode(IndexPrecedenceOption.EQUALITY_PRIORITY, NodeTypeEnums.JoinNode, config.getCompositeKeyDepth(), constraints, config);
assertThat(indexed).as("BigDecimal is sorted to the last").containsExactly(true, true, false);
}
@Test
- public void isIndexableForNodeWithBigDecimal() {
+ public void isIndexableForJoinNodeWithBigDecimal() {
RuleBaseConfiguration config = getRuleBaseConfiguration();
FakeBetaNodeFieldConstraint bigDecimalEqualsConstraint = new FakeBetaNodeFieldConstraint(ConstraintTypeOperator.EQUAL, new FakeReadAccessor(ValueType.BIG_DECIMAL_TYPE));
- BetaNodeFieldConstraint[] constraints = new FakeBetaNodeFieldConstraint[]{bigDecimalEqualsConstraint};
- boolean[] indexed = IndexUtil.isIndexableForNode(IndexPrecedenceOption.EQUALITY_PRIORITY, NodeTypeEnums.JoinNode, config.getCompositeKeyDepth(), constraints, config);
+ BetaConstraint[] constraints = new FakeBetaNodeFieldConstraint[]{bigDecimalEqualsConstraint};
+ boolean[] indexed = IndexUtil.isIndexableForNode(IndexPrecedenceOption.EQUALITY_PRIORITY, NodeTypeEnums.JoinNode, config.getCompositeKeyDepth(), constraints, config);
assertThat(indexed).as("BigDecimal is not indexed").containsExactly(false);
}
- static class FakeBetaNodeFieldConstraint implements BetaNodeFieldConstraint,
+ @Test
+ public void isIndexableForExistsNodeWithBigDecimal() {
+ RuleBaseConfiguration config = getRuleBaseConfiguration();
+ FakeBetaNodeFieldConstraint bigDecimalEqualsConstraint = new FakeBetaNodeFieldConstraint(ConstraintTypeOperator.EQUAL, new FakeReadAccessor(ValueType.BIG_DECIMAL_TYPE));
+ BetaConstraint[] constraints = new FakeBetaNodeFieldConstraint[]{bigDecimalEqualsConstraint};
+ boolean[] indexed = IndexUtil.isIndexableForNode(IndexPrecedenceOption.EQUALITY_PRIORITY, NodeTypeEnums.ExistsNode, config.getCompositeKeyDepth(), constraints, config);
+ assertThat(indexed).as("BigDecimal is not indexed").containsExactly(false);
+ }
+
+ @Test
+ public void isIndexableForNotNodeWithBigDecimal() {
+ RuleBaseConfiguration config = getRuleBaseConfiguration();
+ FakeBetaNodeFieldConstraint bigDecimalEqualsConstraint = new FakeBetaNodeFieldConstraint(ConstraintTypeOperator.EQUAL, new FakeReadAccessor(ValueType.BIG_DECIMAL_TYPE));
+ BetaConstraint[] constraints = new FakeBetaNodeFieldConstraint[]{bigDecimalEqualsConstraint};
+ boolean[] indexed = IndexUtil.isIndexableForNode(IndexPrecedenceOption.EQUALITY_PRIORITY, NodeTypeEnums.NotNode, config.getCompositeKeyDepth(), constraints, config);
+ assertThat(indexed).as("BigDecimal is not indexed").containsExactly(false);
+ }
+
+ static class FakeBetaNodeFieldConstraint implements BetaConstraint,
IndexableConstraint {
private ConstraintTypeOperator constraintType;
@@ -163,7 +182,7 @@ public boolean isUnification() {
@Override
public boolean isIndexable(short nodeType, KieBaseConfiguration config) {
- return false;
+ return constraintType.isIndexableForNode(nodeType, this, config);
}
@Override
@@ -177,8 +196,8 @@ public FieldValue getField() {
}
@Override
- public FieldIndex getFieldIndex() {
- return new FieldIndex(fieldExtractor, new Declaration("$p1", fieldExtractor, null));
+ public IndexedValueReader getFieldIndex() {
+ return new IndexedValueReader(new Declaration("$p1", fieldExtractor, null), new RightTupleValueExtractor(fieldExtractor));
}
@Override
@@ -187,7 +206,12 @@ public ReadAccessor getFieldExtractor() {
}
@Override
- public TupleValueExtractor getIndexExtractor() {
+ public TupleValueExtractor getRightIndexExtractor() {
+ return null;
+ }
+
+ @Override
+ public TupleValueExtractor getLeftIndexExtractor() {
return null;
}
@@ -202,12 +226,12 @@ public boolean isAllowedCachedRight(BaseTuple tuple, ContextEntry context) {
}
@Override
- public ContextEntry createContextEntry() {
+ public ContextEntry createContext() {
return null;
}
@Override
- public BetaNodeFieldConstraint cloneIfInUse() {
+ public BetaConstraint cloneIfInUse() {
return null;
}
diff --git a/drools-decisiontables/pom.xml b/drools-decisiontables/pom.xml
index 8e619b0b2da..f916aee6d04 100644
--- a/drools-decisiontables/pom.xml
+++ b/drools-decisiontables/pom.xml
@@ -26,7 +26,7 @@
org.kie
drools-build-parent
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
../build-parent/pom.xml
diff --git a/drools-distribution/pom.xml b/drools-distribution/pom.xml
index ca2607bcc57..0c06ae39b3b 100644
--- a/drools-distribution/pom.xml
+++ b/drools-distribution/pom.xml
@@ -6,7 +6,7 @@
org.kie
drools-build-parent
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
../build-parent/pom.xml
diff --git a/drools-docs/pom.xml b/drools-docs/pom.xml
index 138a53dc190..502d3159e5c 100755
--- a/drools-docs/pom.xml
+++ b/drools-docs/pom.xml
@@ -7,7 +7,7 @@
org.kie
drools-build-parent
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
../build-parent/pom.xml
diff --git a/drools-docs/src/modules/ROOT/pages/migration-guide/migration-v7-to-kogito/_proc-kogito-migrate-drl-implement-ruleunits.adoc b/drools-docs/src/modules/ROOT/pages/migration-guide/migration-v7-to-kogito/_proc-kogito-migrate-drl-implement-ruleunits.adoc
index 111c12b6c3c..4cc2968027d 100644
--- a/drools-docs/src/modules/ROOT/pages/migration-guide/migration-v7-to-kogito/_proc-kogito-migrate-drl-implement-ruleunits.adoc
+++ b/drools-docs/src/modules/ROOT/pages/migration-guide/migration-v7-to-kogito/_proc-kogito-migrate-drl-implement-ruleunits.adoc
@@ -127,7 +127,7 @@ The following is an example of a REST endpoint that takes a rule unit as input a
@Path("/find-approved")
public class LoanUnitQueryFindApprovedEndpoint {
- @javax.inject.Inject
+ @jakarta.inject.Inject
RuleUnit ruleUnit;
public LoanUnitQueryFindApprovedEndpoint() {
diff --git a/drools-drl/drools-drl-ast/pom.xml b/drools-drl/drools-drl-ast/pom.xml
index d57333c2b26..9bb34bde163 100644
--- a/drools-drl/drools-drl-ast/pom.xml
+++ b/drools-drl/drools-drl-ast/pom.xml
@@ -26,7 +26,7 @@
org.drools
drools-drl
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
org.drools
diff --git a/drools-drl/drools-drl-extensions/pom.xml b/drools-drl/drools-drl-extensions/pom.xml
index 8a14241f9d8..49e47da5844 100644
--- a/drools-drl/drools-drl-extensions/pom.xml
+++ b/drools-drl/drools-drl-extensions/pom.xml
@@ -26,7 +26,7 @@
org.drools
drools-drl
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
org.drools
diff --git a/drools-drl/drools-drl-parser/pom.xml b/drools-drl/drools-drl-parser/pom.xml
index 922a78b4f34..545625e5ad4 100644
--- a/drools-drl/drools-drl-parser/pom.xml
+++ b/drools-drl/drools-drl-parser/pom.xml
@@ -26,7 +26,7 @@
org.drools
drools-drl
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
org.drools
@@ -127,47 +127,47 @@
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
diff --git a/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/BaseKnowledgeBuilderResultImpl.java b/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/BaseKnowledgeBuilderResultImpl.java
index 4dced22444c..a464598b881 100644
--- a/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/BaseKnowledgeBuilderResultImpl.java
+++ b/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/BaseKnowledgeBuilderResultImpl.java
@@ -32,8 +32,10 @@
public abstract class BaseKnowledgeBuilderResultImpl implements KnowledgeBuilderResult {
private Resource resource;
+ private String message;
- protected BaseKnowledgeBuilderResultImpl(Resource resource) {
+ protected BaseKnowledgeBuilderResultImpl(Resource resource, String message) {
+ this.message = message != null ? message : "";
this.resource = resource;
}
@@ -55,7 +57,17 @@ public boolean isError() {
* Classes that extend this must provide a printable message,
* which summarises the error.
*/
- public abstract String getMessage();
+ public final String getMessage() {
+ return message;
+ }
+
+ /**
+ * Needed when the message depends on status of mutable classes
+ * @param message
+ */
+ public final void setMessage(String message) {
+ this.message = message;
+ }
/**
* Returns the lines of the error in the source file
@@ -79,18 +91,18 @@ public boolean equals(Object o) {
return false;
}
- KnowledgeBuilderResult that = (KnowledgeBuilderResult) o;
+ BaseKnowledgeBuilderResultImpl that = (BaseKnowledgeBuilderResultImpl) o;
if (resource != null ? !resource.equals(that.getResource()) : that.getResource() != null) {
return false;
}
- return getMessage().equals(that.getMessage()) && Arrays.equals(getLines(), that.getLines());
+ return message.equals(that.message) && Arrays.equals(getLines(), that.getLines());
}
@Override
public int hashCode() {
- int hash = (29 * getMessage().hashCode()) + (31 * Arrays.hashCode(getLines()));
+ int hash = (29 * message.hashCode()) + (31 * Arrays.hashCode(getLines()));
return resource != null ? hash + (37 * resource.hashCode()) : hash;
}
diff --git a/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/DroolsError.java b/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/DroolsError.java
index 64330403d87..c7b5d6e2219 100644
--- a/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/DroolsError.java
+++ b/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/DroolsError.java
@@ -24,12 +24,12 @@
public abstract class DroolsError extends BaseKnowledgeBuilderResultImpl implements KnowledgeBuilderError {
- public DroolsError() {
- this(null);
+ public DroolsError(String message) {
+ this(null, message);
}
- public DroolsError(Resource resource) {
- super(resource);
+ public DroolsError(Resource resource, String message) {
+ super(resource, message);
}
public ResultSeverity getSeverity() {
diff --git a/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/ParserError.java b/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/ParserError.java
index 90e228f592d..2178bb3c46d 100644
--- a/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/ParserError.java
+++ b/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/ParserError.java
@@ -23,7 +23,6 @@
public class ParserError extends DroolsError {
private final int row;
private final int col;
- private final String message;
private final String namespace;
public ParserError(final String message,
@@ -44,17 +43,12 @@ public ParserError(final Resource resource,
final int row,
final int col,
final String namespace) {
- super(resource);
- this.message = message;
+ super(resource, message);
this.row = row;
this.col = col;
this.namespace = namespace;
}
- public String getMessage() {
- return this.message;
- }
-
@Override
public String getNamespace() {
return namespace;
@@ -73,7 +67,7 @@ public int getRow() {
}
public String toString() {
- return "[" + this.row + "," + this.col + "]: " + this.message;
+ return "[" + this.row + "," + this.col + "]: " + getMessage();
}
}
diff --git a/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6Expressions.java b/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6Expressions.java
index 2c82b558882..36d202ee96c 100644
--- a/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6Expressions.java
+++ b/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6Expressions.java
@@ -1,32 +1,18 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-// $ANTLR 3.5.2 src/main/resources/org/drools/compiler/lang/DRL6Expressions.g 2020-01-07 16:38:43
+// $ANTLR 3.5.2 src/main/resources/org/drools/drl/parser/DRL6Expressions.g 2024-01-03 11:41:51
package org.drools.drl.parser.lang;
import java.util.LinkedList;
import org.drools.drl.parser.DroolsParserException;
+ import org.drools.drl.parser.lang.ParserHelper;
+ import org.drools.drl.parser.lang.DroolsParserExceptionFactory;
+ import org.drools.drl.parser.lang.Location;
- import org.drools.drl.ast.dsl.AnnotatedDescrBuilder;
+ import org.drools.drl.ast.dsl.AnnotatedDescrBuilder;
import org.drools.drl.ast.dsl.AnnotationDescrBuilder;
import org.drools.drl.ast.descr.AtomicExprDescr;
+ import org.drools.drl.ast.descr.AnnotatedBaseDescr;
import org.drools.drl.ast.descr.AnnotationDescr;
import org.drools.drl.ast.descr.BaseDescr;
import org.drools.drl.ast.descr.ConstraintConnectiveDescr;
@@ -37,6 +23,9 @@
import org.antlr.runtime.*;
import java.util.Stack;
import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
@SuppressWarnings("all")
public class DRL6Expressions extends DRLExpressions {
@@ -141,7 +130,7 @@ public DRL6Expressions(TokenStream input, RecognizerSharedState state) {
}
@Override public String[] getTokenNames() { return DRL6Expressions.tokenNames; }
- @Override public String getGrammarFileName() { return "src/main/resources/org/drools/compiler/lang/DRL6Expressions.g"; }
+ @Override public String getGrammarFileName() { return "src/main/resources/org/drools/drl/parser/DRL6Expressions.g"; }
private ParserHelper helper;
@@ -190,13 +179,20 @@ private boolean isNotEOF() {
return input.get( input.index() ).getType() != DRL6Lexer.EOF;
}
+ private boolean notStartWithNewline() {
+ int currentTokenIndex = input.index(); // current position in input stream
+ Token previousHiddenToken = input.get(currentTokenIndex - 1);
+ String previousHiddenTokenText = previousHiddenToken.getText();
+ return !previousHiddenTokenText.contains("\n");
+ }
+
public static class literal_return extends ParserRuleReturnScope {
};
// $ANTLR start "literal"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:89:1: literal : ( STRING | DECIMAL | HEX | FLOAT | BOOL | NULL | TIME_INTERVAL | STAR );
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:96:1: literal : ( STRING | DECIMAL | HEX | FLOAT | BOOL | NULL | TIME_INTERVAL | STAR );
public final DRL6Expressions.literal_return literal() throws RecognitionException {
DRL6Expressions.literal_return retval = new DRL6Expressions.literal_return();
retval.start = input.LT(1);
@@ -211,7 +207,7 @@ public final DRL6Expressions.literal_return literal() throws RecognitionExceptio
Token STAR8=null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:90:5: ( STRING | DECIMAL | HEX | FLOAT | BOOL | NULL | TIME_INTERVAL | STAR )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:97:5: ( STRING | DECIMAL | HEX | FLOAT | BOOL | NULL | TIME_INTERVAL | STAR )
int alt1=8;
switch ( input.LA(1) ) {
case STRING:
@@ -262,56 +258,56 @@ public final DRL6Expressions.literal_return literal() throws RecognitionExceptio
}
switch (alt1) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:90:7: STRING
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:97:7: STRING
{
STRING1=(Token)match(input,STRING,FOLLOW_STRING_in_literal92); if (state.failed) return retval;
if ( state.backtracking==0 ) { helper.emit(STRING1, DroolsEditorType.STRING_CONST); }
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:91:7: DECIMAL
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:98:7: DECIMAL
{
DECIMAL2=(Token)match(input,DECIMAL,FOLLOW_DECIMAL_in_literal109); if (state.failed) return retval;
if ( state.backtracking==0 ) { helper.emit(DECIMAL2, DroolsEditorType.NUMERIC_CONST); }
}
break;
case 3 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:92:7: HEX
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:99:7: HEX
{
HEX3=(Token)match(input,HEX,FOLLOW_HEX_in_literal125); if (state.failed) return retval;
if ( state.backtracking==0 ) { helper.emit(HEX3, DroolsEditorType.NUMERIC_CONST); }
}
break;
case 4 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:93:7: FLOAT
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:100:7: FLOAT
{
FLOAT4=(Token)match(input,FLOAT,FOLLOW_FLOAT_in_literal145); if (state.failed) return retval;
if ( state.backtracking==0 ) { helper.emit(FLOAT4, DroolsEditorType.NUMERIC_CONST); }
}
break;
case 5 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:94:7: BOOL
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:101:7: BOOL
{
BOOL5=(Token)match(input,BOOL,FOLLOW_BOOL_in_literal163); if (state.failed) return retval;
if ( state.backtracking==0 ) { helper.emit(BOOL5, DroolsEditorType.BOOLEAN_CONST); }
}
break;
case 6 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:95:7: NULL
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:102:7: NULL
{
NULL6=(Token)match(input,NULL,FOLLOW_NULL_in_literal182); if (state.failed) return retval;
if ( state.backtracking==0 ) { helper.emit(NULL6, DroolsEditorType.NULL_CONST); }
}
break;
case 7 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:96:9: TIME_INTERVAL
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:103:9: TIME_INTERVAL
{
TIME_INTERVAL7=(Token)match(input,TIME_INTERVAL,FOLLOW_TIME_INTERVAL_in_literal203); if (state.failed) return retval;
if ( state.backtracking==0 ) { helper.emit(TIME_INTERVAL7, DroolsEditorType.NULL_CONST); }
}
break;
case 8 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:97:9: STAR
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:104:9: STAR
{
STAR8=(Token)match(input,STAR,FOLLOW_STAR_in_literal215); if (state.failed) return retval;
if ( state.backtracking==0 ) { helper.emit(STAR8, DroolsEditorType.NUMERIC_CONST); }
@@ -342,7 +338,7 @@ public static class operator_return extends ParserRuleReturnScope {
// $ANTLR start "operator"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:100:1: operator returns [boolean negated, String opr] : (x= TILDE )? (op= EQUALS |op= NOT_EQUALS |rop= relationalOp ) ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:107:1: operator returns [boolean negated, String opr] : (x= TILDE )? (op= EQUALS |op= NOT_EQUALS |rop= relationalOp ) ;
public final DRL6Expressions.operator_return operator() throws RecognitionException {
DRL6Expressions.operator_return retval = new DRL6Expressions.operator_return();
retval.start = input.LT(1);
@@ -353,10 +349,10 @@ public final DRL6Expressions.operator_return operator() throws RecognitionExcept
if ( isNotEOF() ) helper.emit( Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR ); helper.setHasOperator( true );
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:103:3: ( (x= TILDE )? (op= EQUALS |op= NOT_EQUALS |rop= relationalOp ) )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:103:5: (x= TILDE )? (op= EQUALS |op= NOT_EQUALS |rop= relationalOp )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:110:3: ( (x= TILDE )? (op= EQUALS |op= NOT_EQUALS |rop= relationalOp ) )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:110:5: (x= TILDE )? (op= EQUALS |op= NOT_EQUALS |rop= relationalOp )
{
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:103:6: (x= TILDE )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:110:6: (x= TILDE )?
int alt2=2;
int LA2_0 = input.LA(1);
if ( (LA2_0==TILDE) ) {
@@ -367,7 +363,7 @@ public final DRL6Expressions.operator_return operator() throws RecognitionExcept
}
switch (alt2) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:103:6: x= TILDE
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:110:6: x= TILDE
{
x=(Token)match(input,TILDE,FOLLOW_TILDE_in_operator256); if (state.failed) return retval;
}
@@ -375,7 +371,7 @@ public final DRL6Expressions.operator_return operator() throws RecognitionExcept
}
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:104:5: (op= EQUALS |op= NOT_EQUALS |rop= relationalOp )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:111:5: (op= EQUALS |op= NOT_EQUALS |rop= relationalOp )
int alt3=3;
int LA3_0 = input.LA(1);
if ( (LA3_0==EQUALS) ) {
@@ -393,21 +389,21 @@ else if ( (LA3_0==ID) && ((((helper.validateIdentifierKey(DroolsSoftKeywords.NOT
switch (alt3) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:104:7: op= EQUALS
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:111:7: op= EQUALS
{
op=(Token)match(input,EQUALS,FOLLOW_EQUALS_in_operator267); if (state.failed) return retval;
if ( state.backtracking==0 ) { retval.negated = false; retval.opr =(x != null ? (x!=null?x.getText():null) : "")+(op!=null?op.getText():null); helper.emit(op, DroolsEditorType.SYMBOL); }
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:105:7: op= NOT_EQUALS
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:112:7: op= NOT_EQUALS
{
op=(Token)match(input,NOT_EQUALS,FOLLOW_NOT_EQUALS_in_operator286); if (state.failed) return retval;
if ( state.backtracking==0 ) { retval.negated = false; retval.opr =(x != null ? (x!=null?x.getText():null) : "")+(op!=null?op.getText():null); helper.emit(op, DroolsEditorType.SYMBOL); }
}
break;
case 3 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:106:7: rop= relationalOp
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:113:7: rop= relationalOp
{
pushFollow(FOLLOW_relationalOp_in_operator301);
rop=relationalOp();
@@ -446,7 +442,7 @@ public static class relationalOp_return extends ParserRuleReturnScope {
// $ANTLR start "relationalOp"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:112:1: relationalOp returns [boolean negated, String opr, java.util.List params] : (op= LESS_EQUALS |op= GREATER_EQUALS |op= LESS |op= GREATER |xop= complexOp | not_key nop= neg_operator_key |cop= operator_key ) ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:119:1: relationalOp returns [boolean negated, String opr, java.util.List params] : (op= LESS_EQUALS |op= GREATER_EQUALS |op= LESS |op= GREATER |xop= complexOp | not_key nop= neg_operator_key |cop= operator_key ) ;
public final DRL6Expressions.relationalOp_return relationalOp() throws RecognitionException {
DRL6Expressions.relationalOp_return retval = new DRL6Expressions.relationalOp_return();
retval.start = input.LT(1);
@@ -458,10 +454,10 @@ public final DRL6Expressions.relationalOp_return relationalOp() throws Recogniti
if ( isNotEOF() ) helper.emit( Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR ); helper.setHasOperator( true );
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:115:3: ( (op= LESS_EQUALS |op= GREATER_EQUALS |op= LESS |op= GREATER |xop= complexOp | not_key nop= neg_operator_key |cop= operator_key ) )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:115:5: (op= LESS_EQUALS |op= GREATER_EQUALS |op= LESS |op= GREATER |xop= complexOp | not_key nop= neg_operator_key |cop= operator_key )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:122:3: ( (op= LESS_EQUALS |op= GREATER_EQUALS |op= LESS |op= GREATER |xop= complexOp | not_key nop= neg_operator_key |cop= operator_key ) )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:122:5: (op= LESS_EQUALS |op= GREATER_EQUALS |op= LESS |op= GREATER |xop= complexOp | not_key nop= neg_operator_key |cop= operator_key )
{
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:115:5: (op= LESS_EQUALS |op= GREATER_EQUALS |op= LESS |op= GREATER |xop= complexOp | not_key nop= neg_operator_key |cop= operator_key )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:122:5: (op= LESS_EQUALS |op= GREATER_EQUALS |op= LESS |op= GREATER |xop= complexOp | not_key nop= neg_operator_key |cop= operator_key )
int alt4=7;
int LA4_0 = input.LA(1);
if ( (LA4_0==LESS_EQUALS) ) {
@@ -505,35 +501,35 @@ else if ( (((helper.isPluggableEvaluator(false)))) ) {
switch (alt4) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:115:7: op= LESS_EQUALS
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:122:7: op= LESS_EQUALS
{
op=(Token)match(input,LESS_EQUALS,FOLLOW_LESS_EQUALS_in_relationalOp342); if (state.failed) return retval;
if ( state.backtracking==0 ) { retval.negated = false; retval.opr =(op!=null?op.getText():null); retval.params = null; helper.emit(op, DroolsEditorType.SYMBOL);}
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:116:7: op= GREATER_EQUALS
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:123:7: op= GREATER_EQUALS
{
op=(Token)match(input,GREATER_EQUALS,FOLLOW_GREATER_EQUALS_in_relationalOp358); if (state.failed) return retval;
if ( state.backtracking==0 ) { retval.negated = false; retval.opr =(op!=null?op.getText():null); retval.params = null; helper.emit(op, DroolsEditorType.SYMBOL);}
}
break;
case 3 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:117:7: op= LESS
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:124:7: op= LESS
{
op=(Token)match(input,LESS,FOLLOW_LESS_in_relationalOp371); if (state.failed) return retval;
if ( state.backtracking==0 ) { retval.negated = false; retval.opr =(op!=null?op.getText():null); retval.params = null; helper.emit(op, DroolsEditorType.SYMBOL);}
}
break;
case 4 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:118:7: op= GREATER
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:125:7: op= GREATER
{
op=(Token)match(input,GREATER,FOLLOW_GREATER_in_relationalOp394); if (state.failed) return retval;
if ( state.backtracking==0 ) { retval.negated = false; retval.opr =(op!=null?op.getText():null); retval.params = null; helper.emit(op, DroolsEditorType.SYMBOL);}
}
break;
case 5 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:119:7: xop= complexOp
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:126:7: xop= complexOp
{
pushFollow(FOLLOW_complexOp_in_relationalOp414);
xop=complexOp();
@@ -543,7 +539,7 @@ else if ( (((helper.isPluggableEvaluator(false)))) ) {
}
break;
case 6 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:120:7: not_key nop= neg_operator_key
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:127:7: not_key nop= neg_operator_key
{
pushFollow(FOLLOW_not_key_in_relationalOp429);
not_key();
@@ -557,7 +553,7 @@ else if ( (((helper.isPluggableEvaluator(false)))) ) {
}
break;
case 7 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:121:7: cop= operator_key
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:128:7: cop= operator_key
{
pushFollow(FOLLOW_operator_key_in_relationalOp445);
cop=operator_key();
@@ -590,7 +586,7 @@ else if ( (((helper.isPluggableEvaluator(false)))) ) {
// $ANTLR start "complexOp"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:125:1: complexOp returns [String opr] : t= TILDE e= EQUALS_ASSIGN ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:132:1: complexOp returns [String opr] : t= TILDE e= EQUALS_ASSIGN ;
public final String complexOp() throws RecognitionException {
String opr = null;
@@ -599,8 +595,8 @@ public final String complexOp() throws RecognitionException {
Token e=null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:126:5: (t= TILDE e= EQUALS_ASSIGN )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:126:7: t= TILDE e= EQUALS_ASSIGN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:133:5: (t= TILDE e= EQUALS_ASSIGN )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:133:7: t= TILDE e= EQUALS_ASSIGN
{
t=(Token)match(input,TILDE,FOLLOW_TILDE_in_complexOp477); if (state.failed) return opr;
e=(Token)match(input,EQUALS_ASSIGN,FOLLOW_EQUALS_ASSIGN_in_complexOp481); if (state.failed) return opr;
@@ -623,17 +619,17 @@ public final String complexOp() throws RecognitionException {
// $ANTLR start "typeList"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:129:1: typeList : type ( COMMA type )* ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:136:1: typeList : type ( COMMA type )* ;
public final void typeList() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:130:5: ( type ( COMMA type )* )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:130:7: type ( COMMA type )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:137:5: ( type ( COMMA type )* )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:137:7: type ( COMMA type )*
{
pushFollow(FOLLOW_type_in_typeList502);
type();
state._fsp--;
if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:130:12: ( COMMA type )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:137:12: ( COMMA type )*
loop5:
while (true) {
int alt5=2;
@@ -644,7 +640,7 @@ public final void typeList() throws RecognitionException {
switch (alt5) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:130:13: COMMA type
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:137:13: COMMA type
{
match(input,COMMA,FOLLOW_COMMA_in_typeList505); if (state.failed) return;
pushFollow(FOLLOW_type_in_typeList507);
@@ -679,14 +675,14 @@ public static class type_return extends ParserRuleReturnScope {
// $ANTLR start "type"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:133:1: type : tm= typeMatch ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:140:1: type : tm= typeMatch ;
public final DRL6Expressions.type_return type() throws RecognitionException {
DRL6Expressions.type_return retval = new DRL6Expressions.type_return();
retval.start = input.LT(1);
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:134:5: (tm= typeMatch )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:134:8: tm= typeMatch
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:141:5: (tm= typeMatch )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:141:8: tm= typeMatch
{
pushFollow(FOLLOW_typeMatch_in_type529);
typeMatch();
@@ -712,10 +708,10 @@ public final DRL6Expressions.type_return type() throws RecognitionException {
// $ANTLR start "typeMatch"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:137:1: typeMatch : ( ( primitiveType )=> ( primitiveType ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )* ) | ( ID ( ( typeArguments )=> typeArguments )? ( DOT ID ( ( typeArguments )=> typeArguments )? )* ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )* ) );
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:144:1: typeMatch : ( ( primitiveType )=> ( primitiveType ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )* ) | ( ID ( ( typeArguments )=> typeArguments )? ( DOT ID ( ( typeArguments )=> typeArguments )? )* ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )* ) );
public final void typeMatch() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:138:5: ( ( primitiveType )=> ( primitiveType ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )* ) | ( ID ( ( typeArguments )=> typeArguments )? ( DOT ID ( ( typeArguments )=> typeArguments )? )* ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )* ) )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:145:5: ( ( primitiveType )=> ( primitiveType ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )* ) | ( ID ( ( typeArguments )=> typeArguments )? ( DOT ID ( ( typeArguments )=> typeArguments )? )* ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )* ) )
int alt11=2;
int LA11_0 = input.LA(1);
if ( (LA11_0==ID) ) {
@@ -738,16 +734,16 @@ else if ( (true) ) {
switch (alt11) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:138:8: ( primitiveType )=> ( primitiveType ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )* )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:145:8: ( primitiveType )=> ( primitiveType ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )* )
{
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:138:27: ( primitiveType ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )* )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:138:29: primitiveType ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:145:27: ( primitiveType ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )* )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:145:29: primitiveType ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )*
{
pushFollow(FOLLOW_primitiveType_in_typeMatch555);
primitiveType();
state._fsp--;
if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:138:43: ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:145:43: ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )*
loop6:
while (true) {
int alt6=2;
@@ -758,7 +754,7 @@ else if ( (true) ) {
switch (alt6) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:138:44: ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:145:44: ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE
{
match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_typeMatch565); if (state.failed) return;
match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_typeMatch567); if (state.failed) return;
@@ -775,13 +771,13 @@ else if ( (true) ) {
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:139:7: ( ID ( ( typeArguments )=> typeArguments )? ( DOT ID ( ( typeArguments )=> typeArguments )? )* ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )* )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:146:7: ( ID ( ( typeArguments )=> typeArguments )? ( DOT ID ( ( typeArguments )=> typeArguments )? )* ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )* )
{
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:139:7: ( ID ( ( typeArguments )=> typeArguments )? ( DOT ID ( ( typeArguments )=> typeArguments )? )* ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )* )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:139:9: ID ( ( typeArguments )=> typeArguments )? ( DOT ID ( ( typeArguments )=> typeArguments )? )* ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:146:7: ( ID ( ( typeArguments )=> typeArguments )? ( DOT ID ( ( typeArguments )=> typeArguments )? )* ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )* )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:146:9: ID ( ( typeArguments )=> typeArguments )? ( DOT ID ( ( typeArguments )=> typeArguments )? )* ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )*
{
match(input,ID,FOLLOW_ID_in_typeMatch581); if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:139:12: ( ( typeArguments )=> typeArguments )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:146:12: ( ( typeArguments )=> typeArguments )?
int alt7=2;
int LA7_0 = input.LA(1);
if ( (LA7_0==LESS) ) {
@@ -795,7 +791,7 @@ else if ( (LA7_1==QUESTION) && (synpred3_DRL6Expressions())) {
}
switch (alt7) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:139:13: ( typeArguments )=> typeArguments
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:146:13: ( typeArguments )=> typeArguments
{
pushFollow(FOLLOW_typeArguments_in_typeMatch588);
typeArguments();
@@ -806,7 +802,7 @@ else if ( (LA7_1==QUESTION) && (synpred3_DRL6Expressions())) {
}
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:139:46: ( DOT ID ( ( typeArguments )=> typeArguments )? )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:146:46: ( DOT ID ( ( typeArguments )=> typeArguments )? )*
loop9:
while (true) {
int alt9=2;
@@ -817,11 +813,11 @@ else if ( (LA7_1==QUESTION) && (synpred3_DRL6Expressions())) {
switch (alt9) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:139:47: DOT ID ( ( typeArguments )=> typeArguments )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:146:47: DOT ID ( ( typeArguments )=> typeArguments )?
{
match(input,DOT,FOLLOW_DOT_in_typeMatch593); if (state.failed) return;
match(input,ID,FOLLOW_ID_in_typeMatch595); if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:139:54: ( ( typeArguments )=> typeArguments )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:146:54: ( ( typeArguments )=> typeArguments )?
int alt8=2;
int LA8_0 = input.LA(1);
if ( (LA8_0==LESS) ) {
@@ -835,7 +831,7 @@ else if ( (LA8_1==QUESTION) && (synpred4_DRL6Expressions())) {
}
switch (alt8) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:139:55: ( typeArguments )=> typeArguments
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:146:55: ( typeArguments )=> typeArguments
{
pushFollow(FOLLOW_typeArguments_in_typeMatch602);
typeArguments();
@@ -854,7 +850,7 @@ else if ( (LA8_1==QUESTION) && (synpred4_DRL6Expressions())) {
}
}
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:139:91: ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:146:91: ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )*
loop10:
while (true) {
int alt10=2;
@@ -865,7 +861,7 @@ else if ( (LA8_1==QUESTION) && (synpred4_DRL6Expressions())) {
switch (alt10) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:139:92: ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:146:92: ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE
{
match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_typeMatch617); if (state.failed) return;
match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_typeMatch619); if (state.failed) return;
@@ -898,18 +894,18 @@ else if ( (LA8_1==QUESTION) && (synpred4_DRL6Expressions())) {
// $ANTLR start "typeArguments"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:142:1: typeArguments : LESS typeArgument ( COMMA typeArgument )* GREATER ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:149:1: typeArguments : LESS typeArgument ( COMMA typeArgument )* GREATER ;
public final void typeArguments() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:143:5: ( LESS typeArgument ( COMMA typeArgument )* GREATER )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:143:7: LESS typeArgument ( COMMA typeArgument )* GREATER
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:150:5: ( LESS typeArgument ( COMMA typeArgument )* GREATER )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:150:7: LESS typeArgument ( COMMA typeArgument )* GREATER
{
match(input,LESS,FOLLOW_LESS_in_typeArguments640); if (state.failed) return;
pushFollow(FOLLOW_typeArgument_in_typeArguments642);
typeArgument();
state._fsp--;
if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:143:25: ( COMMA typeArgument )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:150:25: ( COMMA typeArgument )*
loop12:
while (true) {
int alt12=2;
@@ -920,7 +916,7 @@ public final void typeArguments() throws RecognitionException {
switch (alt12) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:143:26: COMMA typeArgument
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:150:26: COMMA typeArgument
{
match(input,COMMA,FOLLOW_COMMA_in_typeArguments645); if (state.failed) return;
pushFollow(FOLLOW_typeArgument_in_typeArguments647);
@@ -953,10 +949,10 @@ public final void typeArguments() throws RecognitionException {
// $ANTLR start "typeArgument"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:146:1: typeArgument : ( type | QUESTION ( ( extends_key | super_key ) type )? );
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:153:1: typeArgument : ( type | QUESTION ( ( extends_key | super_key ) type )? );
public final void typeArgument() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:147:5: ( type | QUESTION ( ( extends_key | super_key ) type )? )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:154:5: ( type | QUESTION ( ( extends_key | super_key ) type )? )
int alt15=2;
int LA15_0 = input.LA(1);
if ( (LA15_0==ID) ) {
@@ -975,7 +971,7 @@ else if ( (LA15_0==QUESTION) ) {
switch (alt15) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:147:7: type
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:154:7: type
{
pushFollow(FOLLOW_type_in_typeArgument668);
type();
@@ -984,10 +980,10 @@ else if ( (LA15_0==QUESTION) ) {
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:148:7: QUESTION ( ( extends_key | super_key ) type )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:155:7: QUESTION ( ( extends_key | super_key ) type )?
{
match(input,QUESTION,FOLLOW_QUESTION_in_typeArgument676); if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:148:16: ( ( extends_key | super_key ) type )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:155:16: ( ( extends_key | super_key ) type )?
int alt14=2;
int LA14_0 = input.LA(1);
if ( (LA14_0==ID) && ((((helper.validateIdentifierKey(DroolsSoftKeywords.EXTENDS)))||((helper.validateIdentifierKey(DroolsSoftKeywords.SUPER)))))) {
@@ -995,9 +991,9 @@ else if ( (LA15_0==QUESTION) ) {
}
switch (alt14) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:148:17: ( extends_key | super_key ) type
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:155:17: ( extends_key | super_key ) type
{
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:148:17: ( extends_key | super_key )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:155:17: ( extends_key | super_key )
int alt13=2;
int LA13_0 = input.LA(1);
if ( (LA13_0==ID) && ((((helper.validateIdentifierKey(DroolsSoftKeywords.EXTENDS)))||((helper.validateIdentifierKey(DroolsSoftKeywords.SUPER)))))) {
@@ -1026,7 +1022,7 @@ else if ( (((helper.validateIdentifierKey(DroolsSoftKeywords.SUPER)))) ) {
switch (alt13) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:148:18: extends_key
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:155:18: extends_key
{
pushFollow(FOLLOW_extends_key_in_typeArgument680);
extends_key();
@@ -1035,7 +1031,7 @@ else if ( (((helper.validateIdentifierKey(DroolsSoftKeywords.SUPER)))) ) {
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:148:32: super_key
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:155:32: super_key
{
pushFollow(FOLLOW_super_key_in_typeArgument684);
super_key();
@@ -1074,11 +1070,11 @@ else if ( (((helper.validateIdentifierKey(DroolsSoftKeywords.SUPER)))) ) {
// $ANTLR start "dummy"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:156:1: dummy : expression ( AT | SEMICOLON | EOF | ID | RIGHT_PAREN ) ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:163:1: dummy : expression ( AT | SEMICOLON | EOF | ID | RIGHT_PAREN ) ;
public final void dummy() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:157:5: ( expression ( AT | SEMICOLON | EOF | ID | RIGHT_PAREN ) )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:157:7: expression ( AT | SEMICOLON | EOF | ID | RIGHT_PAREN )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:164:5: ( expression ( AT | SEMICOLON | EOF | ID | RIGHT_PAREN ) )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:164:7: expression ( AT | SEMICOLON | EOF | ID | RIGHT_PAREN )
{
pushFollow(FOLLOW_expression_in_dummy711);
expression();
@@ -1111,11 +1107,11 @@ public final void dummy() throws RecognitionException {
// $ANTLR start "dummy2"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:159:1: dummy2 : relationalExpression EOF ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:166:1: dummy2 : relationalExpression EOF ;
public final void dummy2() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:160:5: ( relationalExpression EOF )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:160:8: relationalExpression EOF
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:167:5: ( relationalExpression EOF )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:167:8: relationalExpression EOF
{
pushFollow(FOLLOW_relationalExpression_in_dummy2747);
relationalExpression();
@@ -1143,7 +1139,7 @@ public static class expression_return extends ParserRuleReturnScope {
// $ANTLR start "expression"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:163:1: expression returns [BaseDescr result] : left= conditionalExpression ( ( assignmentOperator )=>op= assignmentOperator right= expression )? ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:170:1: expression returns [BaseDescr result] : left= conditionalExpression ( ( assignmentOperator )=>op= assignmentOperator right= expression )? ;
public final DRL6Expressions.expression_return expression() throws RecognitionException {
DRL6Expressions.expression_return retval = new DRL6Expressions.expression_return();
retval.start = input.LT(1);
@@ -1152,15 +1148,15 @@ public final DRL6Expressions.expression_return expression() throws RecognitionEx
ParserRuleReturnScope right =null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:164:5: (left= conditionalExpression ( ( assignmentOperator )=>op= assignmentOperator right= expression )? )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:164:7: left= conditionalExpression ( ( assignmentOperator )=>op= assignmentOperator right= expression )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:171:5: (left= conditionalExpression ( ( assignmentOperator )=>op= assignmentOperator right= expression )? )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:171:7: left= conditionalExpression ( ( assignmentOperator )=>op= assignmentOperator right= expression )?
{
pushFollow(FOLLOW_conditionalExpression_in_expression768);
left=conditionalExpression();
state._fsp--;
if (state.failed) return retval;
if ( state.backtracking==0 ) { if( buildDescr ) { retval.result = left; } }
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:165:9: ( ( assignmentOperator )=>op= assignmentOperator right= expression )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:172:9: ( ( assignmentOperator )=>op= assignmentOperator right= expression )?
int alt16=2;
switch ( input.LA(1) ) {
case EQUALS_ASSIGN:
@@ -1254,7 +1250,7 @@ public final DRL6Expressions.expression_return expression() throws RecognitionEx
}
switch (alt16) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:165:10: ( assignmentOperator )=>op= assignmentOperator right= expression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:172:10: ( assignmentOperator )=>op= assignmentOperator right= expression
{
pushFollow(FOLLOW_assignmentOperator_in_expression789);
assignmentOperator();
@@ -1289,7 +1285,7 @@ public final DRL6Expressions.expression_return expression() throws RecognitionEx
// $ANTLR start "conditionalExpression"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:168:1: conditionalExpression returns [BaseDescr result] : left= conditionalOrExpression ( ternaryExpression )? ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:175:1: conditionalExpression returns [BaseDescr result] : left= conditionalOrExpression ( ternaryExpression )? ;
public final BaseDescr conditionalExpression() throws RecognitionException {
BaseDescr result = null;
@@ -1297,15 +1293,15 @@ public final BaseDescr conditionalExpression() throws RecognitionException {
BaseDescr left =null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:169:5: (left= conditionalOrExpression ( ternaryExpression )? )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:169:9: left= conditionalOrExpression ( ternaryExpression )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:176:5: (left= conditionalOrExpression ( ternaryExpression )? )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:176:9: left= conditionalOrExpression ( ternaryExpression )?
{
pushFollow(FOLLOW_conditionalOrExpression_in_conditionalExpression820);
left=conditionalOrExpression();
state._fsp--;
if (state.failed) return result;
if ( state.backtracking==0 ) { if( buildDescr ) { result = left; } }
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:170:9: ( ternaryExpression )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:177:9: ( ternaryExpression )?
int alt17=2;
int LA17_0 = input.LA(1);
if ( (LA17_0==QUESTION) ) {
@@ -1313,7 +1309,7 @@ public final BaseDescr conditionalExpression() throws RecognitionException {
}
switch (alt17) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:170:9: ternaryExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:177:9: ternaryExpression
{
pushFollow(FOLLOW_ternaryExpression_in_conditionalExpression832);
ternaryExpression();
@@ -1342,15 +1338,15 @@ public final BaseDescr conditionalExpression() throws RecognitionException {
// $ANTLR start "ternaryExpression"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:173:1: ternaryExpression : QUESTION ts= expression COLON fs= expression ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:180:1: ternaryExpression : QUESTION ts= expression COLON fs= expression ;
public final void ternaryExpression() throws RecognitionException {
ParserRuleReturnScope ts =null;
ParserRuleReturnScope fs =null;
ternOp++;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:175:5: ( QUESTION ts= expression COLON fs= expression )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:175:7: QUESTION ts= expression COLON fs= expression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:182:5: ( QUESTION ts= expression COLON fs= expression )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:182:7: QUESTION ts= expression COLON fs= expression
{
match(input,QUESTION,FOLLOW_QUESTION_in_ternaryExpression854); if (state.failed) return;
pushFollow(FOLLOW_expression_in_ternaryExpression858);
@@ -1380,7 +1376,7 @@ public final void ternaryExpression() throws RecognitionException {
// $ANTLR start "fullAnnotation"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:180:1: fullAnnotation[AnnotatedDescrBuilder inDescrBuilder] returns [AnnotationDescr result] : AT name= ID ( DOT x= ID )* annotationArgs[result, annoBuilder] ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:187:1: fullAnnotation[AnnotatedDescrBuilder inDescrBuilder] returns [AnnotationDescr result] : AT name= ID ( DOT x= ID )* annotationArgs[result, annoBuilder] ;
public final AnnotationDescr fullAnnotation(AnnotatedDescrBuilder inDescrBuilder) throws RecognitionException {
AnnotationDescr result = null;
@@ -1390,13 +1386,13 @@ public final AnnotationDescr fullAnnotation(AnnotatedDescrBuilder inDescrBuilder
String n = ""; AnnotationDescrBuilder annoBuilder = null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:182:3: ( AT name= ID ( DOT x= ID )* annotationArgs[result, annoBuilder] )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:182:5: AT name= ID ( DOT x= ID )* annotationArgs[result, annoBuilder]
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:189:3: ( AT name= ID ( DOT x= ID )* annotationArgs[result, annoBuilder] )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:189:5: AT name= ID ( DOT x= ID )* annotationArgs[result, annoBuilder]
{
match(input,AT,FOLLOW_AT_in_fullAnnotation894); if (state.failed) return result;
name=(Token)match(input,ID,FOLLOW_ID_in_fullAnnotation898); if (state.failed) return result;
if ( state.backtracking==0 ) { n = (name!=null?name.getText():null); }
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:182:36: ( DOT x= ID )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:189:36: ( DOT x= ID )*
loop18:
while (true) {
int alt18=2;
@@ -1407,7 +1403,7 @@ public final AnnotationDescr fullAnnotation(AnnotatedDescrBuilder inDescrBuilder
switch (alt18) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:182:38: DOT x= ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:189:38: DOT x= ID
{
match(input,DOT,FOLLOW_DOT_in_fullAnnotation904); if (state.failed) return result;
x=(Token)match(input,ID,FOLLOW_ID_in_fullAnnotation908); if (state.failed) return result;
@@ -1452,16 +1448,16 @@ public final AnnotationDescr fullAnnotation(AnnotatedDescrBuilder inDescrBuilder
// $ANTLR start "annotationArgs"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:196:1: annotationArgs[AnnotationDescr descr, AnnotatedDescrBuilder inDescrBuilder] : LEFT_PAREN ( ( ID EQUALS_ASSIGN )=> annotationElementValuePairs[descr, inDescrBuilder] |value= annotationValue[inDescrBuilder] )? RIGHT_PAREN ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:203:1: annotationArgs[AnnotationDescr descr, AnnotatedDescrBuilder inDescrBuilder] : LEFT_PAREN ( ( ID EQUALS_ASSIGN )=> annotationElementValuePairs[descr, inDescrBuilder] |value= annotationValue[inDescrBuilder] )? RIGHT_PAREN ;
public final void annotationArgs(AnnotationDescr descr, AnnotatedDescrBuilder inDescrBuilder) throws RecognitionException {
Object value =null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:197:3: ( LEFT_PAREN ( ( ID EQUALS_ASSIGN )=> annotationElementValuePairs[descr, inDescrBuilder] |value= annotationValue[inDescrBuilder] )? RIGHT_PAREN )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:197:5: LEFT_PAREN ( ( ID EQUALS_ASSIGN )=> annotationElementValuePairs[descr, inDescrBuilder] |value= annotationValue[inDescrBuilder] )? RIGHT_PAREN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:204:3: ( LEFT_PAREN ( ( ID EQUALS_ASSIGN )=> annotationElementValuePairs[descr, inDescrBuilder] |value= annotationValue[inDescrBuilder] )? RIGHT_PAREN )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:204:5: LEFT_PAREN ( ( ID EQUALS_ASSIGN )=> annotationElementValuePairs[descr, inDescrBuilder] |value= annotationValue[inDescrBuilder] )? RIGHT_PAREN
{
match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_annotationArgs945); if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:198:5: ( ( ID EQUALS_ASSIGN )=> annotationElementValuePairs[descr, inDescrBuilder] |value= annotationValue[inDescrBuilder] )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:205:5: ( ( ID EQUALS_ASSIGN )=> annotationElementValuePairs[descr, inDescrBuilder] |value= annotationValue[inDescrBuilder] )?
int alt19=3;
int LA19_0 = input.LA(1);
if ( (LA19_0==ID) ) {
@@ -1478,7 +1474,7 @@ else if ( ((LA19_0 >= AT && LA19_0 <= BOOL)||(LA19_0 >= DECIMAL && LA19_0 <= DIV
}
switch (alt19) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:199:8: ( ID EQUALS_ASSIGN )=> annotationElementValuePairs[descr, inDescrBuilder]
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:206:8: ( ID EQUALS_ASSIGN )=> annotationElementValuePairs[descr, inDescrBuilder]
{
pushFollow(FOLLOW_annotationElementValuePairs_in_annotationArgs968);
annotationElementValuePairs(descr, inDescrBuilder);
@@ -1487,7 +1483,7 @@ else if ( ((LA19_0 >= AT && LA19_0 <= BOOL)||(LA19_0 >= DECIMAL && LA19_0 <= DIV
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:200:10: value= annotationValue[inDescrBuilder]
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:207:10: value= annotationValue[inDescrBuilder]
{
pushFollow(FOLLOW_annotationValue_in_annotationArgs982);
value=annotationValue(inDescrBuilder);
@@ -1517,17 +1513,17 @@ else if ( ((LA19_0 >= AT && LA19_0 <= BOOL)||(LA19_0 >= DECIMAL && LA19_0 <= DIV
// $ANTLR start "annotationElementValuePairs"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:205:1: annotationElementValuePairs[AnnotationDescr descr, AnnotatedDescrBuilder inDescrBuilder] : annotationElementValuePair[descr, inDescrBuilder] ( COMMA annotationElementValuePair[descr, inDescrBuilder] )* ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:212:1: annotationElementValuePairs[AnnotationDescr descr, AnnotatedDescrBuilder inDescrBuilder] : annotationElementValuePair[descr, inDescrBuilder] ( COMMA annotationElementValuePair[descr, inDescrBuilder] )* ;
public final void annotationElementValuePairs(AnnotationDescr descr, AnnotatedDescrBuilder inDescrBuilder) throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:206:3: ( annotationElementValuePair[descr, inDescrBuilder] ( COMMA annotationElementValuePair[descr, inDescrBuilder] )* )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:206:5: annotationElementValuePair[descr, inDescrBuilder] ( COMMA annotationElementValuePair[descr, inDescrBuilder] )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:213:3: ( annotationElementValuePair[descr, inDescrBuilder] ( COMMA annotationElementValuePair[descr, inDescrBuilder] )* )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:213:5: annotationElementValuePair[descr, inDescrBuilder] ( COMMA annotationElementValuePair[descr, inDescrBuilder] )*
{
pushFollow(FOLLOW_annotationElementValuePair_in_annotationElementValuePairs1013);
annotationElementValuePair(descr, inDescrBuilder);
state._fsp--;
if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:206:55: ( COMMA annotationElementValuePair[descr, inDescrBuilder] )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:213:55: ( COMMA annotationElementValuePair[descr, inDescrBuilder] )*
loop20:
while (true) {
int alt20=2;
@@ -1538,7 +1534,7 @@ public final void annotationElementValuePairs(AnnotationDescr descr, AnnotatedDe
switch (alt20) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:206:57: COMMA annotationElementValuePair[descr, inDescrBuilder]
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:213:57: COMMA annotationElementValuePair[descr, inDescrBuilder]
{
match(input,COMMA,FOLLOW_COMMA_in_annotationElementValuePairs1018); if (state.failed) return;
pushFollow(FOLLOW_annotationElementValuePair_in_annotationElementValuePairs1020);
@@ -1570,14 +1566,14 @@ public final void annotationElementValuePairs(AnnotationDescr descr, AnnotatedDe
// $ANTLR start "annotationElementValuePair"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:209:1: annotationElementValuePair[AnnotationDescr descr, AnnotatedDescrBuilder inDescrBuilder] : key= ID EQUALS_ASSIGN val= annotationValue[inDescrBuilder] ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:216:1: annotationElementValuePair[AnnotationDescr descr, AnnotatedDescrBuilder inDescrBuilder] : key= ID EQUALS_ASSIGN val= annotationValue[inDescrBuilder] ;
public final void annotationElementValuePair(AnnotationDescr descr, AnnotatedDescrBuilder inDescrBuilder) throws RecognitionException {
Token key=null;
Object val =null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:210:3: (key= ID EQUALS_ASSIGN val= annotationValue[inDescrBuilder] )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:210:5: key= ID EQUALS_ASSIGN val= annotationValue[inDescrBuilder]
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:217:3: (key= ID EQUALS_ASSIGN val= annotationValue[inDescrBuilder] )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:217:5: key= ID EQUALS_ASSIGN val= annotationValue[inDescrBuilder]
{
key=(Token)match(input,ID,FOLLOW_ID_in_annotationElementValuePair1041); if (state.failed) return;
match(input,EQUALS_ASSIGN,FOLLOW_EQUALS_ASSIGN_in_annotationElementValuePair1043); if (state.failed) return;
@@ -1603,7 +1599,7 @@ public final void annotationElementValuePair(AnnotationDescr descr, AnnotatedDes
// $ANTLR start "annotationValue"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:213:1: annotationValue[AnnotatedDescrBuilder inDescrBuilder] returns [Object result] : (exp= expression |annos= annotationArray[inDescrBuilder] |anno= fullAnnotation[inDescrBuilder] );
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:220:1: annotationValue[AnnotatedDescrBuilder inDescrBuilder] returns [Object result] : (exp= expression |annos= annotationArray[inDescrBuilder] |anno= fullAnnotation[inDescrBuilder] );
public final Object annotationValue(AnnotatedDescrBuilder inDescrBuilder) throws RecognitionException {
Object result = null;
@@ -1613,7 +1609,7 @@ public final Object annotationValue(AnnotatedDescrBuilder inDescrBuilder) throws
AnnotationDescr anno =null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:214:3: (exp= expression |annos= annotationArray[inDescrBuilder] |anno= fullAnnotation[inDescrBuilder] )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:221:3: (exp= expression |annos= annotationArray[inDescrBuilder] |anno= fullAnnotation[inDescrBuilder] )
int alt21=3;
switch ( input.LA(1) ) {
case BOOL:
@@ -1659,7 +1655,7 @@ public final Object annotationValue(AnnotatedDescrBuilder inDescrBuilder) throws
}
switch (alt21) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:214:5: exp= expression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:221:5: exp= expression
{
pushFollow(FOLLOW_expression_in_annotationValue1070);
exp=expression();
@@ -1669,7 +1665,7 @@ public final Object annotationValue(AnnotatedDescrBuilder inDescrBuilder) throws
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:215:7: annos= annotationArray[inDescrBuilder]
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:222:7: annos= annotationArray[inDescrBuilder]
{
pushFollow(FOLLOW_annotationArray_in_annotationValue1082);
annos=annotationArray(inDescrBuilder);
@@ -1679,7 +1675,7 @@ public final Object annotationValue(AnnotatedDescrBuilder inDescrBuilder) throws
}
break;
case 3 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:216:7: anno= fullAnnotation[inDescrBuilder]
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:223:7: anno= fullAnnotation[inDescrBuilder]
{
pushFollow(FOLLOW_fullAnnotation_in_annotationValue1095);
anno=fullAnnotation(inDescrBuilder);
@@ -1706,7 +1702,7 @@ public final Object annotationValue(AnnotatedDescrBuilder inDescrBuilder) throws
// $ANTLR start "annotationArray"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:219:1: annotationArray[AnnotatedDescrBuilder inDescrBuilder] returns [java.util.List result] : LEFT_CURLY (anno= annotationValue[inDescrBuilder] ( COMMA anno= annotationValue[inDescrBuilder] )* )? RIGHT_CURLY ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:226:1: annotationArray[AnnotatedDescrBuilder inDescrBuilder] returns [java.util.List result] : LEFT_CURLY (anno= annotationValue[inDescrBuilder] ( COMMA anno= annotationValue[inDescrBuilder] )* )? RIGHT_CURLY ;
public final java.util.List annotationArray(AnnotatedDescrBuilder inDescrBuilder) throws RecognitionException {
java.util.List result = null;
@@ -1715,11 +1711,11 @@ public final java.util.List annotationArray(AnnotatedDescrBuilder inDescrBuilder
result = new java.util.ArrayList();
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:221:3: ( LEFT_CURLY (anno= annotationValue[inDescrBuilder] ( COMMA anno= annotationValue[inDescrBuilder] )* )? RIGHT_CURLY )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:221:6: LEFT_CURLY (anno= annotationValue[inDescrBuilder] ( COMMA anno= annotationValue[inDescrBuilder] )* )? RIGHT_CURLY
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:228:3: ( LEFT_CURLY (anno= annotationValue[inDescrBuilder] ( COMMA anno= annotationValue[inDescrBuilder] )* )? RIGHT_CURLY )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:228:6: LEFT_CURLY (anno= annotationValue[inDescrBuilder] ( COMMA anno= annotationValue[inDescrBuilder] )* )? RIGHT_CURLY
{
match(input,LEFT_CURLY,FOLLOW_LEFT_CURLY_in_annotationArray1122); if (state.failed) return result;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:221:17: (anno= annotationValue[inDescrBuilder] ( COMMA anno= annotationValue[inDescrBuilder] )* )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:228:17: (anno= annotationValue[inDescrBuilder] ( COMMA anno= annotationValue[inDescrBuilder] )* )?
int alt23=2;
int LA23_0 = input.LA(1);
if ( ((LA23_0 >= AT && LA23_0 <= BOOL)||(LA23_0 >= DECIMAL && LA23_0 <= DIV)||LA23_0==DOT||LA23_0==FLOAT||LA23_0==HEX||(LA23_0 >= ID && LA23_0 <= INCR)||(LA23_0 >= LEFT_CURLY && LA23_0 <= LESS)||LA23_0==MINUS||LA23_0==NEGATION||LA23_0==NULL||LA23_0==PLUS||LA23_0==QUESTION_DIV||(LA23_0 >= STAR && LA23_0 <= TIME_INTERVAL)) ) {
@@ -1727,14 +1723,14 @@ public final java.util.List annotationArray(AnnotatedDescrBuilder inDescrBuilder
}
switch (alt23) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:221:19: anno= annotationValue[inDescrBuilder] ( COMMA anno= annotationValue[inDescrBuilder] )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:228:19: anno= annotationValue[inDescrBuilder] ( COMMA anno= annotationValue[inDescrBuilder] )*
{
pushFollow(FOLLOW_annotationValue_in_annotationArray1128);
anno=annotationValue(inDescrBuilder);
state._fsp--;
if (state.failed) return result;
if ( state.backtracking==0 ) { result.add( anno ); }
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:222:17: ( COMMA anno= annotationValue[inDescrBuilder] )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:229:17: ( COMMA anno= annotationValue[inDescrBuilder] )*
loop22:
while (true) {
int alt22=2;
@@ -1745,7 +1741,7 @@ public final java.util.List annotationArray(AnnotatedDescrBuilder inDescrBuilder
switch (alt22) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:222:19: COMMA anno= annotationValue[inDescrBuilder]
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:229:19: COMMA anno= annotationValue[inDescrBuilder]
{
match(input,COMMA,FOLLOW_COMMA_in_annotationArray1151); if (state.failed) return result;
pushFollow(FOLLOW_annotationValue_in_annotationArray1155);
@@ -1785,7 +1781,7 @@ public final java.util.List annotationArray(AnnotatedDescrBuilder inDescrBuilder
// $ANTLR start "conditionalOrExpression"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:228:1: conditionalOrExpression returns [BaseDescr result] : left= conditionalAndExpression ( DOUBLE_PIPE (args= fullAnnotation[null] )? right= conditionalAndExpression )* ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:235:1: conditionalOrExpression returns [BaseDescr result] : left= conditionalAndExpression ( DOUBLE_PIPE (args= fullAnnotation[null] )? right= conditionalAndExpression )* ;
public final BaseDescr conditionalOrExpression() throws RecognitionException {
BaseDescr result = null;
@@ -1795,15 +1791,15 @@ public final BaseDescr conditionalOrExpression() throws RecognitionException {
BaseDescr right =null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:229:3: (left= conditionalAndExpression ( DOUBLE_PIPE (args= fullAnnotation[null] )? right= conditionalAndExpression )* )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:229:5: left= conditionalAndExpression ( DOUBLE_PIPE (args= fullAnnotation[null] )? right= conditionalAndExpression )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:236:3: (left= conditionalAndExpression ( DOUBLE_PIPE (args= fullAnnotation[null] )? right= conditionalAndExpression )* )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:236:5: left= conditionalAndExpression ( DOUBLE_PIPE (args= fullAnnotation[null] )? right= conditionalAndExpression )*
{
pushFollow(FOLLOW_conditionalAndExpression_in_conditionalOrExpression1192);
left=conditionalAndExpression();
state._fsp--;
if (state.failed) return result;
if ( state.backtracking==0 ) { if( buildDescr ) { result = left; } }
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:230:3: ( DOUBLE_PIPE (args= fullAnnotation[null] )? right= conditionalAndExpression )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:237:3: ( DOUBLE_PIPE (args= fullAnnotation[null] )? right= conditionalAndExpression )*
loop25:
while (true) {
int alt25=2;
@@ -1814,11 +1810,11 @@ public final BaseDescr conditionalOrExpression() throws RecognitionException {
switch (alt25) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:230:5: DOUBLE_PIPE (args= fullAnnotation[null] )? right= conditionalAndExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:237:5: DOUBLE_PIPE (args= fullAnnotation[null] )? right= conditionalAndExpression
{
match(input,DOUBLE_PIPE,FOLLOW_DOUBLE_PIPE_in_conditionalOrExpression1201); if (state.failed) return result;
if ( state.backtracking==0 ) { if ( isNotEOF() ) helper.emit( Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR ); }
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:232:13: (args= fullAnnotation[null] )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:239:13: (args= fullAnnotation[null] )?
int alt24=2;
int LA24_0 = input.LA(1);
if ( (LA24_0==AT) ) {
@@ -1826,7 +1822,7 @@ public final BaseDescr conditionalOrExpression() throws RecognitionException {
}
switch (alt24) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:232:13: args= fullAnnotation[null]
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:239:13: args= fullAnnotation[null]
{
pushFollow(FOLLOW_fullAnnotation_in_conditionalOrExpression1223);
args=fullAnnotation(null);
@@ -1875,7 +1871,7 @@ public final BaseDescr conditionalOrExpression() throws RecognitionException {
// $ANTLR start "conditionalAndExpression"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:244:1: conditionalAndExpression returns [BaseDescr result] : left= inclusiveOrExpression ( DOUBLE_AMPER (args= fullAnnotation[null] )? right= inclusiveOrExpression )* ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:251:1: conditionalAndExpression returns [BaseDescr result] : left= inclusiveOrExpression ( DOUBLE_AMPER (args= fullAnnotation[null] )? right= inclusiveOrExpression )* ;
public final BaseDescr conditionalAndExpression() throws RecognitionException {
BaseDescr result = null;
@@ -1885,15 +1881,15 @@ public final BaseDescr conditionalAndExpression() throws RecognitionException {
BaseDescr right =null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:245:3: (left= inclusiveOrExpression ( DOUBLE_AMPER (args= fullAnnotation[null] )? right= inclusiveOrExpression )* )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:245:5: left= inclusiveOrExpression ( DOUBLE_AMPER (args= fullAnnotation[null] )? right= inclusiveOrExpression )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:252:3: (left= inclusiveOrExpression ( DOUBLE_AMPER (args= fullAnnotation[null] )? right= inclusiveOrExpression )* )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:252:5: left= inclusiveOrExpression ( DOUBLE_AMPER (args= fullAnnotation[null] )? right= inclusiveOrExpression )*
{
pushFollow(FOLLOW_inclusiveOrExpression_in_conditionalAndExpression1264);
left=inclusiveOrExpression();
state._fsp--;
if (state.failed) return result;
if ( state.backtracking==0 ) { if( buildDescr ) { result = left; } }
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:246:3: ( DOUBLE_AMPER (args= fullAnnotation[null] )? right= inclusiveOrExpression )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:253:3: ( DOUBLE_AMPER (args= fullAnnotation[null] )? right= inclusiveOrExpression )*
loop27:
while (true) {
int alt27=2;
@@ -1904,11 +1900,11 @@ public final BaseDescr conditionalAndExpression() throws RecognitionException {
switch (alt27) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:246:5: DOUBLE_AMPER (args= fullAnnotation[null] )? right= inclusiveOrExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:253:5: DOUBLE_AMPER (args= fullAnnotation[null] )? right= inclusiveOrExpression
{
match(input,DOUBLE_AMPER,FOLLOW_DOUBLE_AMPER_in_conditionalAndExpression1272); if (state.failed) return result;
if ( state.backtracking==0 ) { if ( isNotEOF() ) helper.emit( Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR ); }
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:248:13: (args= fullAnnotation[null] )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:255:13: (args= fullAnnotation[null] )?
int alt26=2;
int LA26_0 = input.LA(1);
if ( (LA26_0==AT) ) {
@@ -1916,7 +1912,7 @@ public final BaseDescr conditionalAndExpression() throws RecognitionException {
}
switch (alt26) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:248:13: args= fullAnnotation[null]
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:255:13: args= fullAnnotation[null]
{
pushFollow(FOLLOW_fullAnnotation_in_conditionalAndExpression1295);
args=fullAnnotation(null);
@@ -1965,7 +1961,7 @@ public final BaseDescr conditionalAndExpression() throws RecognitionException {
// $ANTLR start "inclusiveOrExpression"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:260:1: inclusiveOrExpression returns [BaseDescr result] : left= exclusiveOrExpression ( PIPE right= exclusiveOrExpression )* ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:267:1: inclusiveOrExpression returns [BaseDescr result] : left= exclusiveOrExpression ( PIPE right= exclusiveOrExpression )* ;
public final BaseDescr inclusiveOrExpression() throws RecognitionException {
BaseDescr result = null;
@@ -1974,15 +1970,15 @@ public final BaseDescr inclusiveOrExpression() throws RecognitionException {
BaseDescr right =null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:261:3: (left= exclusiveOrExpression ( PIPE right= exclusiveOrExpression )* )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:261:5: left= exclusiveOrExpression ( PIPE right= exclusiveOrExpression )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:268:3: (left= exclusiveOrExpression ( PIPE right= exclusiveOrExpression )* )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:268:5: left= exclusiveOrExpression ( PIPE right= exclusiveOrExpression )*
{
pushFollow(FOLLOW_exclusiveOrExpression_in_inclusiveOrExpression1336);
left=exclusiveOrExpression();
state._fsp--;
if (state.failed) return result;
if ( state.backtracking==0 ) { if( buildDescr ) { result = left; } }
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:262:3: ( PIPE right= exclusiveOrExpression )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:269:3: ( PIPE right= exclusiveOrExpression )*
loop28:
while (true) {
int alt28=2;
@@ -1993,7 +1989,7 @@ public final BaseDescr inclusiveOrExpression() throws RecognitionException {
switch (alt28) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:262:5: PIPE right= exclusiveOrExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:269:5: PIPE right= exclusiveOrExpression
{
match(input,PIPE,FOLLOW_PIPE_in_inclusiveOrExpression1344); if (state.failed) return result;
pushFollow(FOLLOW_exclusiveOrExpression_in_inclusiveOrExpression1348);
@@ -2033,7 +2029,7 @@ public final BaseDescr inclusiveOrExpression() throws RecognitionException {
// $ANTLR start "exclusiveOrExpression"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:273:1: exclusiveOrExpression returns [BaseDescr result] : left= andExpression ( XOR right= andExpression )* ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:280:1: exclusiveOrExpression returns [BaseDescr result] : left= andExpression ( XOR right= andExpression )* ;
public final BaseDescr exclusiveOrExpression() throws RecognitionException {
BaseDescr result = null;
@@ -2042,15 +2038,15 @@ public final BaseDescr exclusiveOrExpression() throws RecognitionException {
BaseDescr right =null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:274:3: (left= andExpression ( XOR right= andExpression )* )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:274:5: left= andExpression ( XOR right= andExpression )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:281:3: (left= andExpression ( XOR right= andExpression )* )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:281:5: left= andExpression ( XOR right= andExpression )*
{
pushFollow(FOLLOW_andExpression_in_exclusiveOrExpression1383);
left=andExpression();
state._fsp--;
if (state.failed) return result;
if ( state.backtracking==0 ) { if( buildDescr ) { result = left; } }
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:275:3: ( XOR right= andExpression )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:282:3: ( XOR right= andExpression )*
loop29:
while (true) {
int alt29=2;
@@ -2061,7 +2057,7 @@ public final BaseDescr exclusiveOrExpression() throws RecognitionException {
switch (alt29) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:275:5: XOR right= andExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:282:5: XOR right= andExpression
{
match(input,XOR,FOLLOW_XOR_in_exclusiveOrExpression1391); if (state.failed) return result;
pushFollow(FOLLOW_andExpression_in_exclusiveOrExpression1395);
@@ -2101,7 +2097,7 @@ public final BaseDescr exclusiveOrExpression() throws RecognitionException {
// $ANTLR start "andExpression"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:286:1: andExpression returns [BaseDescr result] : left= equalityExpression ( AMPER right= equalityExpression )* ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:293:1: andExpression returns [BaseDescr result] : left= equalityExpression ( AMPER right= equalityExpression )* ;
public final BaseDescr andExpression() throws RecognitionException {
BaseDescr result = null;
@@ -2110,15 +2106,15 @@ public final BaseDescr andExpression() throws RecognitionException {
BaseDescr right =null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:287:3: (left= equalityExpression ( AMPER right= equalityExpression )* )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:287:5: left= equalityExpression ( AMPER right= equalityExpression )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:294:3: (left= equalityExpression ( AMPER right= equalityExpression )* )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:294:5: left= equalityExpression ( AMPER right= equalityExpression )*
{
pushFollow(FOLLOW_equalityExpression_in_andExpression1430);
left=equalityExpression();
state._fsp--;
if (state.failed) return result;
if ( state.backtracking==0 ) { if( buildDescr ) { result = left; } }
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:288:3: ( AMPER right= equalityExpression )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:295:3: ( AMPER right= equalityExpression )*
loop30:
while (true) {
int alt30=2;
@@ -2129,7 +2125,7 @@ public final BaseDescr andExpression() throws RecognitionException {
switch (alt30) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:288:5: AMPER right= equalityExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:295:5: AMPER right= equalityExpression
{
match(input,AMPER,FOLLOW_AMPER_in_andExpression1438); if (state.failed) return result;
pushFollow(FOLLOW_equalityExpression_in_andExpression1442);
@@ -2169,7 +2165,7 @@ public final BaseDescr andExpression() throws RecognitionException {
// $ANTLR start "equalityExpression"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:299:1: equalityExpression returns [BaseDescr result] : left= instanceOfExpression ( (op= EQUALS |op= NOT_EQUALS ) right= instanceOfExpression )* ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:306:1: equalityExpression returns [BaseDescr result] : left= instanceOfExpression ( (op= EQUALS |op= NOT_EQUALS ) right= instanceOfExpression )* ;
public final BaseDescr equalityExpression() throws RecognitionException {
BaseDescr result = null;
@@ -2179,15 +2175,15 @@ public final BaseDescr equalityExpression() throws RecognitionException {
BaseDescr right =null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:300:3: (left= instanceOfExpression ( (op= EQUALS |op= NOT_EQUALS ) right= instanceOfExpression )* )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:300:5: left= instanceOfExpression ( (op= EQUALS |op= NOT_EQUALS ) right= instanceOfExpression )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:307:3: (left= instanceOfExpression ( (op= EQUALS |op= NOT_EQUALS ) right= instanceOfExpression )* )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:307:5: left= instanceOfExpression ( (op= EQUALS |op= NOT_EQUALS ) right= instanceOfExpression )*
{
pushFollow(FOLLOW_instanceOfExpression_in_equalityExpression1477);
left=instanceOfExpression();
state._fsp--;
if (state.failed) return result;
if ( state.backtracking==0 ) { if( buildDescr ) { result = left; } }
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:301:3: ( (op= EQUALS |op= NOT_EQUALS ) right= instanceOfExpression )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:308:3: ( (op= EQUALS |op= NOT_EQUALS ) right= instanceOfExpression )*
loop32:
while (true) {
int alt32=2;
@@ -2198,9 +2194,9 @@ public final BaseDescr equalityExpression() throws RecognitionException {
switch (alt32) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:301:5: (op= EQUALS |op= NOT_EQUALS ) right= instanceOfExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:308:5: (op= EQUALS |op= NOT_EQUALS ) right= instanceOfExpression
{
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:301:5: (op= EQUALS |op= NOT_EQUALS )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:308:5: (op= EQUALS |op= NOT_EQUALS )
int alt31=2;
int LA31_0 = input.LA(1);
if ( (LA31_0==EQUALS) ) {
@@ -2219,13 +2215,13 @@ else if ( (LA31_0==NOT_EQUALS) ) {
switch (alt31) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:301:7: op= EQUALS
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:308:7: op= EQUALS
{
op=(Token)match(input,EQUALS,FOLLOW_EQUALS_in_equalityExpression1489); if (state.failed) return result;
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:301:19: op= NOT_EQUALS
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:308:19: op= NOT_EQUALS
{
op=(Token)match(input,NOT_EQUALS,FOLLOW_NOT_EQUALS_in_equalityExpression1495); if (state.failed) return result;
}
@@ -2269,7 +2265,7 @@ else if ( (LA31_0==NOT_EQUALS) ) {
// $ANTLR start "instanceOfExpression"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:312:1: instanceOfExpression returns [BaseDescr result] : left= inExpression (op= instanceof_key right= type )? ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:319:1: instanceOfExpression returns [BaseDescr result] : left= inExpression (op= instanceof_key right= type )? ;
public final BaseDescr instanceOfExpression() throws RecognitionException {
BaseDescr result = null;
@@ -2279,15 +2275,15 @@ public final BaseDescr instanceOfExpression() throws RecognitionException {
ParserRuleReturnScope right =null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:313:3: (left= inExpression (op= instanceof_key right= type )? )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:313:5: left= inExpression (op= instanceof_key right= type )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:320:3: (left= inExpression (op= instanceof_key right= type )? )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:320:5: left= inExpression (op= instanceof_key right= type )?
{
pushFollow(FOLLOW_inExpression_in_instanceOfExpression1546);
left=inExpression();
state._fsp--;
if (state.failed) return result;
if ( state.backtracking==0 ) { if( buildDescr ) { result = left; } }
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:314:3: (op= instanceof_key right= type )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:321:3: (op= instanceof_key right= type )?
int alt33=2;
int LA33_0 = input.LA(1);
if ( (LA33_0==ID) ) {
@@ -2298,7 +2294,7 @@ public final BaseDescr instanceOfExpression() throws RecognitionException {
}
switch (alt33) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:314:5: op= instanceof_key right= type
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:321:5: op= instanceof_key right= type
{
pushFollow(FOLLOW_instanceof_key_in_instanceOfExpression1556);
op=instanceof_key();
@@ -2337,7 +2333,7 @@ public final BaseDescr instanceOfExpression() throws RecognitionException {
// $ANTLR start "inExpression"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:325:1: inExpression returns [BaseDescr result] : left= relationalExpression ( ( not_key in_key )=> not_key in= in_key LEFT_PAREN e1= expression ( COMMA e2= expression )* RIGHT_PAREN |in= in_key LEFT_PAREN e1= expression ( COMMA e2= expression )* RIGHT_PAREN )? ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:332:1: inExpression returns [BaseDescr result] : left= relationalExpression ( ( not_key in_key )=> not_key in= in_key LEFT_PAREN e1= expression ( COMMA e2= expression )* RIGHT_PAREN |in= in_key LEFT_PAREN e1= expression ( COMMA e2= expression )* RIGHT_PAREN )? ;
public final BaseDescr inExpression() throws RecognitionException {
BaseDescr result = null;
@@ -2348,8 +2344,8 @@ public final BaseDescr inExpression() throws RecognitionException {
ConstraintConnectiveDescr descr = null; BaseDescr leftDescr = null; BindingDescr binding = null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:328:3: (left= relationalExpression ( ( not_key in_key )=> not_key in= in_key LEFT_PAREN e1= expression ( COMMA e2= expression )* RIGHT_PAREN |in= in_key LEFT_PAREN e1= expression ( COMMA e2= expression )* RIGHT_PAREN )? )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:328:5: left= relationalExpression ( ( not_key in_key )=> not_key in= in_key LEFT_PAREN e1= expression ( COMMA e2= expression )* RIGHT_PAREN |in= in_key LEFT_PAREN e1= expression ( COMMA e2= expression )* RIGHT_PAREN )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:335:3: (left= relationalExpression ( ( not_key in_key )=> not_key in= in_key LEFT_PAREN e1= expression ( COMMA e2= expression )* RIGHT_PAREN |in= in_key LEFT_PAREN e1= expression ( COMMA e2= expression )* RIGHT_PAREN )? )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:335:5: left= relationalExpression ( ( not_key in_key )=> not_key in= in_key LEFT_PAREN e1= expression ( COMMA e2= expression )* RIGHT_PAREN |in= in_key LEFT_PAREN e1= expression ( COMMA e2= expression )* RIGHT_PAREN )?
{
pushFollow(FOLLOW_relationalExpression_in_inExpression1615);
left=relationalExpression();
@@ -2363,7 +2359,7 @@ public final BaseDescr inExpression() throws RecognitionException {
leftDescr = left;
}
}
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:337:5: ( ( not_key in_key )=> not_key in= in_key LEFT_PAREN e1= expression ( COMMA e2= expression )* RIGHT_PAREN |in= in_key LEFT_PAREN e1= expression ( COMMA e2= expression )* RIGHT_PAREN )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:344:5: ( ( not_key in_key )=> not_key in= in_key LEFT_PAREN e1= expression ( COMMA e2= expression )* RIGHT_PAREN |in= in_key LEFT_PAREN e1= expression ( COMMA e2= expression )* RIGHT_PAREN )?
int alt36=3;
int LA36_0 = input.LA(1);
if ( (LA36_0==ID) ) {
@@ -2380,7 +2376,7 @@ else if ( (LA36_1==LEFT_PAREN) && (((helper.validateIdentifierKey(DroolsSoftKeyw
}
switch (alt36) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:337:6: ( not_key in_key )=> not_key in= in_key LEFT_PAREN e1= expression ( COMMA e2= expression )* RIGHT_PAREN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:344:6: ( not_key in_key )=> not_key in= in_key LEFT_PAREN e1= expression ( COMMA e2= expression )* RIGHT_PAREN
{
pushFollow(FOLLOW_not_key_in_inExpression1635);
not_key();
@@ -2401,7 +2397,7 @@ else if ( (LA36_1==LEFT_PAREN) && (((helper.validateIdentifierKey(DroolsSoftKeyw
descr.addOrMerge( rel );
result = descr;
}
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:345:7: ( COMMA e2= expression )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:352:7: ( COMMA e2= expression )*
loop34:
while (true) {
int alt34=2;
@@ -2412,7 +2408,7 @@ else if ( (LA36_1==LEFT_PAREN) && (((helper.validateIdentifierKey(DroolsSoftKeyw
switch (alt34) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:345:8: COMMA e2= expression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:352:8: COMMA e2= expression
{
match(input,COMMA,FOLLOW_COMMA_in_inExpression1682); if (state.failed) return result;
pushFollow(FOLLOW_expression_in_inExpression1686);
@@ -2435,7 +2431,7 @@ else if ( (LA36_1==LEFT_PAREN) && (((helper.validateIdentifierKey(DroolsSoftKeyw
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:351:7: in= in_key LEFT_PAREN e1= expression ( COMMA e2= expression )* RIGHT_PAREN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:358:7: in= in_key LEFT_PAREN e1= expression ( COMMA e2= expression )* RIGHT_PAREN
{
pushFollow(FOLLOW_in_key_in_inExpression1723);
in_key();
@@ -2452,7 +2448,7 @@ else if ( (LA36_1==LEFT_PAREN) && (((helper.validateIdentifierKey(DroolsSoftKeyw
descr.addOrMerge( rel );
result = descr;
}
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:359:7: ( COMMA e2= expression )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:366:7: ( COMMA e2= expression )*
loop35:
while (true) {
int alt35=2;
@@ -2463,7 +2459,7 @@ else if ( (LA36_1==LEFT_PAREN) && (((helper.validateIdentifierKey(DroolsSoftKeyw
switch (alt35) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:359:8: COMMA e2= expression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:366:8: COMMA e2= expression
{
match(input,COMMA,FOLLOW_COMMA_in_inExpression1766); if (state.failed) return result;
pushFollow(FOLLOW_expression_in_inExpression1770);
@@ -2512,7 +2508,7 @@ protected static class relationalExpression_scope {
// $ANTLR start "relationalExpression"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:368:1: relationalExpression returns [BaseDescr result] : left= shiftExpression ( ( operator | LEFT_PAREN )=>right= orRestriction )* ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:375:1: relationalExpression returns [BaseDescr result] : left= shiftExpression ( ( operator | LEFT_PAREN )=>right= orRestriction )* ;
public final BaseDescr relationalExpression() throws RecognitionException {
relationalExpression_stack.push(new relationalExpression_scope());
BaseDescr result = null;
@@ -2523,8 +2519,8 @@ public final BaseDescr relationalExpression() throws RecognitionException {
relationalExpression_stack.peek().lsd = null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:371:3: (left= shiftExpression ( ( operator | LEFT_PAREN )=>right= orRestriction )* )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:371:5: left= shiftExpression ( ( operator | LEFT_PAREN )=>right= orRestriction )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:378:3: (left= shiftExpression ( ( operator | LEFT_PAREN )=>right= orRestriction )* )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:378:5: left= shiftExpression ( ( operator | LEFT_PAREN )=>right= orRestriction )*
{
pushFollow(FOLLOW_shiftExpression_in_relationalExpression1832);
left=shiftExpression();
@@ -2552,9 +2548,9 @@ public final BaseDescr relationalExpression() throws RecognitionException {
result = (left!=null?((DRL6Expressions.shiftExpression_return)left).result:null);
}
relationalExpression_stack.peek().lsd = result;
- }
+ }
}
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:396:3: ( ( operator | LEFT_PAREN )=>right= orRestriction )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:403:3: ( ( operator | LEFT_PAREN )=>right= orRestriction )*
loop37:
while (true) {
int alt37=2;
@@ -2609,7 +2605,7 @@ else if ( (LA37_0==LEFT_PAREN) && (synpred9_DRL6Expressions())) {
switch (alt37) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:396:5: ( operator | LEFT_PAREN )=>right= orRestriction
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:403:5: ( operator | LEFT_PAREN )=>right= orRestriction
{
pushFollow(FOLLOW_orRestriction_in_relationalExpression1857);
right=orRestriction();
@@ -2647,7 +2643,7 @@ else if ( (LA37_0==LEFT_PAREN) && (synpred9_DRL6Expressions())) {
// $ANTLR start "orRestriction"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:405:1: orRestriction returns [BaseDescr result] : left= andRestriction ( ( DOUBLE_PIPE ( fullAnnotation[null] )? andRestriction )=>lop= DOUBLE_PIPE (args= fullAnnotation[null] )? right= andRestriction )* ( EOF )? ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:412:1: orRestriction returns [BaseDescr result] : left= andRestriction ( ( DOUBLE_PIPE ( fullAnnotation[null] )? andRestriction )=>lop= DOUBLE_PIPE (args= fullAnnotation[null] )? right= andRestriction )* ( EOF )? ;
public final BaseDescr orRestriction() throws RecognitionException {
BaseDescr result = null;
@@ -2658,15 +2654,15 @@ public final BaseDescr orRestriction() throws RecognitionException {
BaseDescr right =null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:406:3: (left= andRestriction ( ( DOUBLE_PIPE ( fullAnnotation[null] )? andRestriction )=>lop= DOUBLE_PIPE (args= fullAnnotation[null] )? right= andRestriction )* ( EOF )? )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:406:5: left= andRestriction ( ( DOUBLE_PIPE ( fullAnnotation[null] )? andRestriction )=>lop= DOUBLE_PIPE (args= fullAnnotation[null] )? right= andRestriction )* ( EOF )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:413:3: (left= andRestriction ( ( DOUBLE_PIPE ( fullAnnotation[null] )? andRestriction )=>lop= DOUBLE_PIPE (args= fullAnnotation[null] )? right= andRestriction )* ( EOF )? )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:413:5: left= andRestriction ( ( DOUBLE_PIPE ( fullAnnotation[null] )? andRestriction )=>lop= DOUBLE_PIPE (args= fullAnnotation[null] )? right= andRestriction )* ( EOF )?
{
pushFollow(FOLLOW_andRestriction_in_orRestriction1892);
left=andRestriction();
state._fsp--;
if (state.failed) return result;
if ( state.backtracking==0 ) { if( buildDescr ) { result = left; } }
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:407:5: ( ( DOUBLE_PIPE ( fullAnnotation[null] )? andRestriction )=>lop= DOUBLE_PIPE (args= fullAnnotation[null] )? right= andRestriction )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:414:5: ( ( DOUBLE_PIPE ( fullAnnotation[null] )? andRestriction )=>lop= DOUBLE_PIPE (args= fullAnnotation[null] )? right= andRestriction )*
loop39:
while (true) {
int alt39=2;
@@ -2681,10 +2677,10 @@ public final BaseDescr orRestriction() throws RecognitionException {
switch (alt39) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:407:7: ( DOUBLE_PIPE ( fullAnnotation[null] )? andRestriction )=>lop= DOUBLE_PIPE (args= fullAnnotation[null] )? right= andRestriction
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:414:7: ( DOUBLE_PIPE ( fullAnnotation[null] )? andRestriction )=>lop= DOUBLE_PIPE (args= fullAnnotation[null] )? right= andRestriction
{
lop=(Token)match(input,DOUBLE_PIPE,FOLLOW_DOUBLE_PIPE_in_orRestriction1914); if (state.failed) return result;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:407:79: (args= fullAnnotation[null] )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:414:79: (args= fullAnnotation[null] )?
int alt38=2;
int LA38_0 = input.LA(1);
if ( (LA38_0==AT) ) {
@@ -2692,7 +2688,7 @@ public final BaseDescr orRestriction() throws RecognitionException {
}
switch (alt38) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:407:79: args= fullAnnotation[null]
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:414:79: args= fullAnnotation[null]
{
pushFollow(FOLLOW_fullAnnotation_in_orRestriction1918);
args=fullAnnotation(null);
@@ -2723,7 +2719,7 @@ public final BaseDescr orRestriction() throws RecognitionException {
}
}
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:416:7: ( EOF )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:423:7: ( EOF )?
int alt40=2;
int LA40_0 = input.LA(1);
if ( (LA40_0==EOF) ) {
@@ -2740,7 +2736,7 @@ else if ( ((LA40_1 >= AMPER && LA40_1 <= AND_ASSIGN)||LA40_1==AT||(LA40_1 >= COL
}
switch (alt40) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:416:7: EOF
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:423:7: EOF
{
match(input,EOF,FOLLOW_EOF_in_orRestriction1943); if (state.failed) return result;
}
@@ -2766,7 +2762,7 @@ else if ( ((LA40_1 >= AMPER && LA40_1 <= AND_ASSIGN)||LA40_1==AT||(LA40_1 >= COL
// $ANTLR start "andRestriction"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:419:1: andRestriction returns [BaseDescr result] : left= singleRestriction ( ( DOUBLE_AMPER ( fullAnnotation[null] )? operator )=>lop= DOUBLE_AMPER (args= fullAnnotation[null] )? right= singleRestriction )* ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:426:1: andRestriction returns [BaseDescr result] : left= singleRestriction ( ( DOUBLE_AMPER ( fullAnnotation[null] )? operator )=>lop= DOUBLE_AMPER (args= fullAnnotation[null] )? right= singleRestriction )* ;
public final BaseDescr andRestriction() throws RecognitionException {
BaseDescr result = null;
@@ -2777,15 +2773,15 @@ public final BaseDescr andRestriction() throws RecognitionException {
BaseDescr right =null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:420:3: (left= singleRestriction ( ( DOUBLE_AMPER ( fullAnnotation[null] )? operator )=>lop= DOUBLE_AMPER (args= fullAnnotation[null] )? right= singleRestriction )* )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:420:5: left= singleRestriction ( ( DOUBLE_AMPER ( fullAnnotation[null] )? operator )=>lop= DOUBLE_AMPER (args= fullAnnotation[null] )? right= singleRestriction )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:427:3: (left= singleRestriction ( ( DOUBLE_AMPER ( fullAnnotation[null] )? operator )=>lop= DOUBLE_AMPER (args= fullAnnotation[null] )? right= singleRestriction )* )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:427:5: left= singleRestriction ( ( DOUBLE_AMPER ( fullAnnotation[null] )? operator )=>lop= DOUBLE_AMPER (args= fullAnnotation[null] )? right= singleRestriction )*
{
pushFollow(FOLLOW_singleRestriction_in_andRestriction1963);
left=singleRestriction();
state._fsp--;
if (state.failed) return result;
if ( state.backtracking==0 ) { if( buildDescr ) { result = left; } }
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:421:3: ( ( DOUBLE_AMPER ( fullAnnotation[null] )? operator )=>lop= DOUBLE_AMPER (args= fullAnnotation[null] )? right= singleRestriction )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:428:3: ( ( DOUBLE_AMPER ( fullAnnotation[null] )? operator )=>lop= DOUBLE_AMPER (args= fullAnnotation[null] )? right= singleRestriction )*
loop42:
while (true) {
int alt42=2;
@@ -2800,11 +2796,11 @@ public final BaseDescr andRestriction() throws RecognitionException {
switch (alt42) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:421:5: ( DOUBLE_AMPER ( fullAnnotation[null] )? operator )=>lop= DOUBLE_AMPER (args= fullAnnotation[null] )? right= singleRestriction
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:428:5: ( DOUBLE_AMPER ( fullAnnotation[null] )? operator )=>lop= DOUBLE_AMPER (args= fullAnnotation[null] )? right= singleRestriction
{
lop=(Token)match(input,DOUBLE_AMPER,FOLLOW_DOUBLE_AMPER_in_andRestriction1983); if (state.failed) return result;
if ( state.backtracking==0 ) { if ( isNotEOF() ) helper.emit( Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR ); }
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:423:13: (args= fullAnnotation[null] )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:430:13: (args= fullAnnotation[null] )?
int alt41=2;
int LA41_0 = input.LA(1);
if ( (LA41_0==AT) ) {
@@ -2812,7 +2808,7 @@ public final BaseDescr andRestriction() throws RecognitionException {
}
switch (alt41) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:423:13: args= fullAnnotation[null]
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:430:13: args= fullAnnotation[null]
{
pushFollow(FOLLOW_fullAnnotation_in_andRestriction2004);
args=fullAnnotation(null);
@@ -2861,7 +2857,7 @@ public final BaseDescr andRestriction() throws RecognitionException {
// $ANTLR start "singleRestriction"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:435:1: singleRestriction returns [BaseDescr result] : (op= operator ( ( squareArguments shiftExpression )=>sa= squareArguments value= shiftExpression |value= shiftExpression ) | LEFT_PAREN or= orRestriction RIGHT_PAREN );
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:442:1: singleRestriction returns [BaseDescr result] : (op= operator ( ( squareArguments shiftExpression )=>sa= squareArguments value= shiftExpression |value= shiftExpression ) | LEFT_PAREN or= orRestriction RIGHT_PAREN );
public final BaseDescr singleRestriction() throws RecognitionException {
BaseDescr result = null;
@@ -2872,7 +2868,7 @@ public final BaseDescr singleRestriction() throws RecognitionException {
BaseDescr or =null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:436:3: (op= operator ( ( squareArguments shiftExpression )=>sa= squareArguments value= shiftExpression |value= shiftExpression ) | LEFT_PAREN or= orRestriction RIGHT_PAREN )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:443:3: (op= operator ( ( squareArguments shiftExpression )=>sa= squareArguments value= shiftExpression |value= shiftExpression ) | LEFT_PAREN or= orRestriction RIGHT_PAREN )
int alt44=2;
int LA44_0 = input.LA(1);
if ( (LA44_0==EQUALS||(LA44_0 >= GREATER && LA44_0 <= GREATER_EQUALS)||(LA44_0 >= LESS && LA44_0 <= LESS_EQUALS)||LA44_0==NOT_EQUALS||LA44_0==TILDE) ) {
@@ -2894,14 +2890,14 @@ else if ( (LA44_0==LEFT_PAREN) ) {
switch (alt44) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:436:6: op= operator ( ( squareArguments shiftExpression )=>sa= squareArguments value= shiftExpression |value= shiftExpression )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:443:6: op= operator ( ( squareArguments shiftExpression )=>sa= squareArguments value= shiftExpression |value= shiftExpression )
{
pushFollow(FOLLOW_operator_in_singleRestriction2045);
op=operator();
state._fsp--;
if (state.failed) return result;
if ( state.backtracking==0 ) { helper.emit( Location.LOCATION_LHS_INSIDE_CONDITION_ARGUMENT ); }
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:438:6: ( ( squareArguments shiftExpression )=>sa= squareArguments value= shiftExpression |value= shiftExpression )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:445:6: ( ( squareArguments shiftExpression )=>sa= squareArguments value= shiftExpression |value= shiftExpression )
int alt43=2;
int LA43_0 = input.LA(1);
if ( (LA43_0==LEFT_SQUARE) ) {
@@ -2927,7 +2923,7 @@ else if ( (LA43_0==BOOL||(LA43_0 >= DECIMAL && LA43_0 <= DIV)||LA43_0==DOT||LA43
switch (alt43) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:438:8: ( squareArguments shiftExpression )=>sa= squareArguments value= shiftExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:445:8: ( squareArguments shiftExpression )=>sa= squareArguments value= shiftExpression
{
pushFollow(FOLLOW_squareArguments_in_singleRestriction2074);
sa=squareArguments();
@@ -2940,7 +2936,7 @@ else if ( (LA43_0==BOOL||(LA43_0 >= DECIMAL && LA43_0 <= DIV)||LA43_0==DOT||LA43
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:439:10: value= shiftExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:446:10: value= shiftExpression
{
pushFollow(FOLLOW_shiftExpression_in_singleRestriction2091);
value=shiftExpression();
@@ -2967,7 +2963,7 @@ else if ( (LA43_0==BOOL||(LA43_0 >= DECIMAL && LA43_0 <= DIV)||LA43_0==DOT||LA43
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:454:6: LEFT_PAREN or= orRestriction RIGHT_PAREN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:461:6: LEFT_PAREN or= orRestriction RIGHT_PAREN
{
match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_singleRestriction2116); if (state.failed) return result;
pushFollow(FOLLOW_orRestriction_in_singleRestriction2120);
@@ -3000,7 +2996,7 @@ public static class shiftExpression_return extends ParserRuleReturnScope {
// $ANTLR start "shiftExpression"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:459:1: shiftExpression returns [BaseDescr result] : left= additiveExpression ( ( shiftOp )=> shiftOp additiveExpression )* ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:466:1: shiftExpression returns [BaseDescr result] : left= additiveExpression ( ( shiftOp )=> shiftOp additiveExpression )* ;
public final DRL6Expressions.shiftExpression_return shiftExpression() throws RecognitionException {
DRL6Expressions.shiftExpression_return retval = new DRL6Expressions.shiftExpression_return();
retval.start = input.LT(1);
@@ -3008,15 +3004,15 @@ public final DRL6Expressions.shiftExpression_return shiftExpression() throws Rec
BaseDescr left =null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:460:3: (left= additiveExpression ( ( shiftOp )=> shiftOp additiveExpression )* )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:460:5: left= additiveExpression ( ( shiftOp )=> shiftOp additiveExpression )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:467:3: (left= additiveExpression ( ( shiftOp )=> shiftOp additiveExpression )* )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:467:5: left= additiveExpression ( ( shiftOp )=> shiftOp additiveExpression )*
{
pushFollow(FOLLOW_additiveExpression_in_shiftExpression2146);
left=additiveExpression();
state._fsp--;
if (state.failed) return retval;
if ( state.backtracking==0 ) { if( buildDescr ) { retval.result = left; } }
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:461:5: ( ( shiftOp )=> shiftOp additiveExpression )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:468:5: ( ( shiftOp )=> shiftOp additiveExpression )*
loop45:
while (true) {
int alt45=2;
@@ -3038,7 +3034,7 @@ else if ( (LA45_0==GREATER) ) {
switch (alt45) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:461:7: ( shiftOp )=> shiftOp additiveExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:468:7: ( shiftOp )=> shiftOp additiveExpression
{
pushFollow(FOLLOW_shiftOp_in_shiftExpression2160);
shiftOp();
@@ -3076,13 +3072,13 @@ else if ( (LA45_0==GREATER) ) {
// $ANTLR start "shiftOp"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:464:1: shiftOp : ( LESS LESS | GREATER GREATER GREATER | GREATER GREATER ) ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:471:1: shiftOp : ( LESS LESS | GREATER GREATER GREATER | GREATER GREATER ) ;
public final void shiftOp() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:465:5: ( ( LESS LESS | GREATER GREATER GREATER | GREATER GREATER ) )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:465:7: ( LESS LESS | GREATER GREATER GREATER | GREATER GREATER )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:472:5: ( ( LESS LESS | GREATER GREATER GREATER | GREATER GREATER ) )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:472:7: ( LESS LESS | GREATER GREATER GREATER | GREATER GREATER )
{
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:465:7: ( LESS LESS | GREATER GREATER GREATER | GREATER GREATER )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:472:7: ( LESS LESS | GREATER GREATER GREATER | GREATER GREATER )
int alt46=3;
int LA46_0 = input.LA(1);
if ( (LA46_0==LESS) ) {
@@ -3140,14 +3136,14 @@ else if ( (LA46_3==EOF||LA46_3==BOOL||(LA46_3 >= DECIMAL && LA46_3 <= DIV)||LA46
switch (alt46) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:465:9: LESS LESS
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:472:9: LESS LESS
{
match(input,LESS,FOLLOW_LESS_in_shiftOp2182); if (state.failed) return;
match(input,LESS,FOLLOW_LESS_in_shiftOp2184); if (state.failed) return;
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:466:11: GREATER GREATER GREATER
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:473:11: GREATER GREATER GREATER
{
match(input,GREATER,FOLLOW_GREATER_in_shiftOp2196); if (state.failed) return;
match(input,GREATER,FOLLOW_GREATER_in_shiftOp2198); if (state.failed) return;
@@ -3155,7 +3151,7 @@ else if ( (LA46_3==EOF||LA46_3==BOOL||(LA46_3 >= DECIMAL && LA46_3 <= DIV)||LA46
}
break;
case 3 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:467:11: GREATER GREATER
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:474:11: GREATER GREATER
{
match(input,GREATER,FOLLOW_GREATER_in_shiftOp2212); if (state.failed) return;
match(input,GREATER,FOLLOW_GREATER_in_shiftOp2214); if (state.failed) return;
@@ -3181,7 +3177,7 @@ else if ( (LA46_3==EOF||LA46_3==BOOL||(LA46_3 >= DECIMAL && LA46_3 <= DIV)||LA46
// $ANTLR start "additiveExpression"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:470:1: additiveExpression returns [BaseDescr result] : left= multiplicativeExpression ( ( PLUS | MINUS )=> ( PLUS | MINUS ) multiplicativeExpression )* ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:477:1: additiveExpression returns [BaseDescr result] : left= multiplicativeExpression ( ( PLUS | MINUS )=> ( PLUS | MINUS ) multiplicativeExpression )* ;
public final BaseDescr additiveExpression() throws RecognitionException {
BaseDescr result = null;
@@ -3189,15 +3185,15 @@ public final BaseDescr additiveExpression() throws RecognitionException {
BaseDescr left =null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:471:5: (left= multiplicativeExpression ( ( PLUS | MINUS )=> ( PLUS | MINUS ) multiplicativeExpression )* )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:471:9: left= multiplicativeExpression ( ( PLUS | MINUS )=> ( PLUS | MINUS ) multiplicativeExpression )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:478:5: (left= multiplicativeExpression ( ( PLUS | MINUS )=> ( PLUS | MINUS ) multiplicativeExpression )* )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:478:9: left= multiplicativeExpression ( ( PLUS | MINUS )=> ( PLUS | MINUS ) multiplicativeExpression )*
{
pushFollow(FOLLOW_multiplicativeExpression_in_additiveExpression2242);
left=multiplicativeExpression();
state._fsp--;
if (state.failed) return result;
if ( state.backtracking==0 ) { if( buildDescr ) { result = left; } }
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:472:9: ( ( PLUS | MINUS )=> ( PLUS | MINUS ) multiplicativeExpression )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:479:9: ( ( PLUS | MINUS )=> ( PLUS | MINUS ) multiplicativeExpression )*
loop47:
while (true) {
int alt47=2;
@@ -3208,7 +3204,7 @@ public final BaseDescr additiveExpression() throws RecognitionException {
switch (alt47) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:472:11: ( PLUS | MINUS )=> ( PLUS | MINUS ) multiplicativeExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:479:11: ( PLUS | MINUS )=> ( PLUS | MINUS ) multiplicativeExpression
{
if ( input.LA(1)==MINUS||input.LA(1)==PLUS ) {
input.consume();
@@ -3250,7 +3246,7 @@ public final BaseDescr additiveExpression() throws RecognitionException {
// $ANTLR start "multiplicativeExpression"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:475:1: multiplicativeExpression returns [BaseDescr result] : left= unaryExpression ( ( STAR | DIV | MOD ) unaryExpression )* ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:482:1: multiplicativeExpression returns [BaseDescr result] : left= unaryExpression ( ( STAR | DIV | MOD ) unaryExpression )* ;
public final BaseDescr multiplicativeExpression() throws RecognitionException {
BaseDescr result = null;
@@ -3258,15 +3254,15 @@ public final BaseDescr multiplicativeExpression() throws RecognitionException {
BaseDescr left =null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:476:5: (left= unaryExpression ( ( STAR | DIV | MOD ) unaryExpression )* )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:476:9: left= unaryExpression ( ( STAR | DIV | MOD ) unaryExpression )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:483:5: (left= unaryExpression ( ( STAR | DIV | MOD ) unaryExpression )* )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:483:9: left= unaryExpression ( ( STAR | DIV | MOD ) unaryExpression )*
{
pushFollow(FOLLOW_unaryExpression_in_multiplicativeExpression2299);
left=unaryExpression();
state._fsp--;
if (state.failed) return result;
if ( state.backtracking==0 ) { if( buildDescr ) { result = left; } }
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:477:7: ( ( STAR | DIV | MOD ) unaryExpression )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:484:7: ( ( STAR | DIV | MOD ) unaryExpression )*
loop48:
while (true) {
int alt48=2;
@@ -3277,7 +3273,7 @@ public final BaseDescr multiplicativeExpression() throws RecognitionException {
switch (alt48) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:477:9: ( STAR | DIV | MOD ) unaryExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:484:9: ( STAR | DIV | MOD ) unaryExpression
{
if ( input.LA(1)==DIV||input.LA(1)==MOD||input.LA(1)==STAR ) {
input.consume();
@@ -3319,7 +3315,7 @@ public final BaseDescr multiplicativeExpression() throws RecognitionException {
// $ANTLR start "unaryExpression"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:480:1: unaryExpression returns [BaseDescr result] : ( PLUS ue= unaryExpression | MINUS ue= unaryExpression | INCR primary | DECR primary |left= unaryExpressionNotPlusMinus );
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:487:1: unaryExpression returns [BaseDescr result] : ( PLUS ue= unaryExpression | MINUS ue= unaryExpression | INCR primary | DECR primary |left= unaryExpressionNotPlusMinus );
public final BaseDescr unaryExpression() throws RecognitionException {
BaseDescr result = null;
@@ -3328,7 +3324,7 @@ public final BaseDescr unaryExpression() throws RecognitionException {
ParserRuleReturnScope left =null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:481:5: ( PLUS ue= unaryExpression | MINUS ue= unaryExpression | INCR primary | DECR primary |left= unaryExpressionNotPlusMinus )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:488:5: ( PLUS ue= unaryExpression | MINUS ue= unaryExpression | INCR primary | DECR primary |left= unaryExpressionNotPlusMinus )
int alt49=5;
switch ( input.LA(1) ) {
case PLUS:
@@ -3380,7 +3376,7 @@ public final BaseDescr unaryExpression() throws RecognitionException {
}
switch (alt49) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:481:9: PLUS ue= unaryExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:488:9: PLUS ue= unaryExpression
{
match(input,PLUS,FOLLOW_PLUS_in_unaryExpression2351); if (state.failed) return result;
pushFollow(FOLLOW_unaryExpression_in_unaryExpression2355);
@@ -3396,7 +3392,7 @@ public final BaseDescr unaryExpression() throws RecognitionException {
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:488:7: MINUS ue= unaryExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:495:7: MINUS ue= unaryExpression
{
match(input,MINUS,FOLLOW_MINUS_in_unaryExpression2373); if (state.failed) return result;
pushFollow(FOLLOW_unaryExpression_in_unaryExpression2377);
@@ -3412,7 +3408,7 @@ public final BaseDescr unaryExpression() throws RecognitionException {
}
break;
case 3 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:495:9: INCR primary
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:502:9: INCR primary
{
match(input,INCR,FOLLOW_INCR_in_unaryExpression2397); if (state.failed) return result;
pushFollow(FOLLOW_primary_in_unaryExpression2399);
@@ -3422,7 +3418,7 @@ public final BaseDescr unaryExpression() throws RecognitionException {
}
break;
case 4 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:496:9: DECR primary
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:503:9: DECR primary
{
match(input,DECR,FOLLOW_DECR_in_unaryExpression2409); if (state.failed) return result;
pushFollow(FOLLOW_primary_in_unaryExpression2411);
@@ -3432,7 +3428,7 @@ public final BaseDescr unaryExpression() throws RecognitionException {
}
break;
case 5 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:497:9: left= unaryExpressionNotPlusMinus
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:504:9: left= unaryExpressionNotPlusMinus
{
pushFollow(FOLLOW_unaryExpressionNotPlusMinus_in_unaryExpression2423);
left=unaryExpressionNotPlusMinus();
@@ -3463,7 +3459,7 @@ public static class unaryExpressionNotPlusMinus_return extends ParserRuleReturnS
// $ANTLR start "unaryExpressionNotPlusMinus"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:500:1: unaryExpressionNotPlusMinus returns [BaseDescr result] : ( TILDE unaryExpression | NEGATION ue= unaryExpression | ( castExpression )=> castExpression | ( backReferenceExpression )=> backReferenceExpression | ( ({...}? (var= ID COLON ) ) | ({...}? (var= ID UNIFY ) ) )? ( ( xpathSeparator ID )=>left2= xpathPrimary |left1= primary ) ( ( selector )=> selector )* ( ( INCR | DECR )=> ( INCR | DECR ) )? );
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:507:1: unaryExpressionNotPlusMinus returns [BaseDescr result] : ( TILDE unaryExpression | NEGATION ue= unaryExpression | ( castExpression )=> castExpression | ( backReferenceExpression )=> backReferenceExpression | ( ({...}? (var= ID COLON ) ) | ({...}? (var= ID UNIFY ) ) )? ( ( xpathSeparator ID )=>left2= xpathPrimary |left1= primary ) ( ( selector )=> selector )* ( ( INCR | DECR )=> ( INCR | DECR ) )? );
public final DRL6Expressions.unaryExpressionNotPlusMinus_return unaryExpressionNotPlusMinus() throws RecognitionException {
DRL6Expressions.unaryExpressionNotPlusMinus_return retval = new DRL6Expressions.unaryExpressionNotPlusMinus_return();
retval.start = input.LT(1);
@@ -3477,7 +3473,7 @@ public final DRL6Expressions.unaryExpressionNotPlusMinus_return unaryExpressionN
boolean isLeft = false; BindingDescr bind = null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:502:5: ( TILDE unaryExpression | NEGATION ue= unaryExpression | ( castExpression )=> castExpression | ( backReferenceExpression )=> backReferenceExpression | ( ({...}? (var= ID COLON ) ) | ({...}? (var= ID UNIFY ) ) )? ( ( xpathSeparator ID )=>left2= xpathPrimary |left1= primary ) ( ( selector )=> selector )* ( ( INCR | DECR )=> ( INCR | DECR ) )? )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:509:5: ( TILDE unaryExpression | NEGATION ue= unaryExpression | ( castExpression )=> castExpression | ( backReferenceExpression )=> backReferenceExpression | ( ({...}? (var= ID COLON ) ) | ({...}? (var= ID UNIFY ) ) )? ( ( xpathSeparator ID )=>left2= xpathPrimary |left1= primary ) ( ( selector )=> selector )* ( ( INCR | DECR )=> ( INCR | DECR ) )? )
int alt54=5;
int LA54_0 = input.LA(1);
if ( (LA54_0==TILDE) ) {
@@ -3512,7 +3508,7 @@ else if ( (LA54_0==BOOL||LA54_0==DECIMAL||LA54_0==DIV||LA54_0==FLOAT||LA54_0==HE
switch (alt54) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:502:9: TILDE unaryExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:509:9: TILDE unaryExpression
{
match(input,TILDE,FOLLOW_TILDE_in_unaryExpressionNotPlusMinus2453); if (state.failed) return retval;
pushFollow(FOLLOW_unaryExpression_in_unaryExpressionNotPlusMinus2455);
@@ -3522,7 +3518,7 @@ else if ( (LA54_0==BOOL||LA54_0==DECIMAL||LA54_0==DIV||LA54_0==FLOAT||LA54_0==HE
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:503:8: NEGATION ue= unaryExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:510:8: NEGATION ue= unaryExpression
{
match(input,NEGATION,FOLLOW_NEGATION_in_unaryExpressionNotPlusMinus2464); if (state.failed) return retval;
pushFollow(FOLLOW_unaryExpression_in_unaryExpressionNotPlusMinus2468);
@@ -3537,7 +3533,7 @@ else if ( (LA54_0==BOOL||LA54_0==DECIMAL||LA54_0==DIV||LA54_0==FLOAT||LA54_0==HE
}
break;
case 3 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:509:9: ( castExpression )=> castExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:516:9: ( castExpression )=> castExpression
{
pushFollow(FOLLOW_castExpression_in_unaryExpressionNotPlusMinus2492);
castExpression();
@@ -3546,7 +3542,7 @@ else if ( (LA54_0==BOOL||LA54_0==DECIMAL||LA54_0==DIV||LA54_0==FLOAT||LA54_0==HE
}
break;
case 4 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:510:9: ( backReferenceExpression )=> backReferenceExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:517:9: ( backReferenceExpression )=> backReferenceExpression
{
pushFollow(FOLLOW_backReferenceExpression_in_unaryExpressionNotPlusMinus2506);
backReferenceExpression();
@@ -3555,10 +3551,10 @@ else if ( (LA54_0==BOOL||LA54_0==DECIMAL||LA54_0==DIV||LA54_0==FLOAT||LA54_0==HE
}
break;
case 5 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:511:9: ( ({...}? (var= ID COLON ) ) | ({...}? (var= ID UNIFY ) ) )? ( ( xpathSeparator ID )=>left2= xpathPrimary |left1= primary ) ( ( selector )=> selector )* ( ( INCR | DECR )=> ( INCR | DECR ) )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:518:9: ( ({...}? (var= ID COLON ) ) | ({...}? (var= ID UNIFY ) ) )? ( ( xpathSeparator ID )=>left2= xpathPrimary |left1= primary ) ( ( selector )=> selector )* ( ( INCR | DECR )=> ( INCR | DECR ) )?
{
if ( state.backtracking==0 ) { isLeft = helper.getLeftMostExpr() == null;}
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:512:9: ( ({...}? (var= ID COLON ) ) | ({...}? (var= ID UNIFY ) ) )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:519:9: ( ({...}? (var= ID COLON ) ) | ({...}? (var= ID UNIFY ) ) )?
int alt50=3;
int LA50_0 = input.LA(1);
if ( (LA50_0==ID) ) {
@@ -3575,17 +3571,17 @@ else if ( (LA50_1==UNIFY) ) {
}
switch (alt50) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:512:11: ({...}? (var= ID COLON ) )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:519:11: ({...}? (var= ID COLON ) )
{
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:512:11: ({...}? (var= ID COLON ) )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:512:12: {...}? (var= ID COLON )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:519:11: ({...}? (var= ID COLON ) )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:519:12: {...}? (var= ID COLON )
{
if ( !((inMap == 0 && ternOp == 0 && input.LA(2) == DRL6Lexer.COLON)) ) {
if (state.backtracking>0) {state.failed=true; return retval;}
throw new FailedPredicateException(input, "unaryExpressionNotPlusMinus", "inMap == 0 && ternOp == 0 && input.LA(2) == DRL6Lexer.COLON");
}
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:512:75: (var= ID COLON )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:512:76: var= ID COLON
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:519:75: (var= ID COLON )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:519:76: var= ID COLON
{
var=(Token)match(input,ID,FOLLOW_ID_in_unaryExpressionNotPlusMinus2534); if (state.failed) return retval;
COLON9=(Token)match(input,COLON,FOLLOW_COLON_in_unaryExpressionNotPlusMinus2536); if (state.failed) return retval;
@@ -3597,17 +3593,17 @@ else if ( (LA50_1==UNIFY) ) {
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:514:11: ({...}? (var= ID UNIFY ) )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:521:11: ({...}? (var= ID UNIFY ) )
{
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:514:11: ({...}? (var= ID UNIFY ) )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:514:12: {...}? (var= ID UNIFY )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:521:11: ({...}? (var= ID UNIFY ) )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:521:12: {...}? (var= ID UNIFY )
{
if ( !((inMap == 0 && ternOp == 0 && input.LA(2) == DRL6Lexer.UNIFY)) ) {
if (state.backtracking>0) {state.failed=true; return retval;}
throw new FailedPredicateException(input, "unaryExpressionNotPlusMinus", "inMap == 0 && ternOp == 0 && input.LA(2) == DRL6Lexer.UNIFY");
}
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:514:75: (var= ID UNIFY )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:514:76: var= ID UNIFY
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:521:75: (var= ID UNIFY )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:521:76: var= ID UNIFY
{
var=(Token)match(input,ID,FOLLOW_ID_in_unaryExpressionNotPlusMinus2575); if (state.failed) return retval;
UNIFY10=(Token)match(input,UNIFY,FOLLOW_UNIFY_in_unaryExpressionNotPlusMinus2577); if (state.failed) return retval;
@@ -3621,7 +3617,7 @@ else if ( (LA50_1==UNIFY) ) {
}
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:518:9: ( ( xpathSeparator ID )=>left2= xpathPrimary |left1= primary )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:525:9: ( ( xpathSeparator ID )=>left2= xpathPrimary |left1= primary )
int alt51=2;
int LA51_0 = input.LA(1);
if ( (LA51_0==DIV||LA51_0==QUESTION_DIV) && (synpred17_DRL6Expressions())) {
@@ -3640,7 +3636,7 @@ else if ( (LA51_0==BOOL||LA51_0==DECIMAL||LA51_0==FLOAT||LA51_0==HEX||LA51_0==ID
switch (alt51) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:518:11: ( xpathSeparator ID )=>left2= xpathPrimary
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:525:11: ( xpathSeparator ID )=>left2= xpathPrimary
{
pushFollow(FOLLOW_xpathPrimary_in_unaryExpressionNotPlusMinus2631);
left2=xpathPrimary();
@@ -3650,7 +3646,7 @@ else if ( (LA51_0==BOOL||LA51_0==DECIMAL||LA51_0==FLOAT||LA51_0==HEX||LA51_0==ID
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:519:13: left1= primary
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:526:13: left1= primary
{
pushFollow(FOLLOW_primary_in_unaryExpressionNotPlusMinus2649);
left1=primary();
@@ -3662,7 +3658,7 @@ else if ( (LA51_0==BOOL||LA51_0==DECIMAL||LA51_0==FLOAT||LA51_0==HEX||LA51_0==ID
}
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:522:9: ( ( selector )=> selector )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:529:9: ( ( selector )=> selector )*
loop52:
while (true) {
int alt52=2;
@@ -3679,7 +3675,7 @@ else if ( (LA52_0==LEFT_SQUARE) && (synpred18_DRL6Expressions())) {
switch (alt52) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:522:10: ( selector )=> selector
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:529:10: ( selector )=> selector
{
pushFollow(FOLLOW_selector_in_unaryExpressionNotPlusMinus2677);
selector();
@@ -3711,7 +3707,7 @@ else if ( (LA52_0==LEFT_SQUARE) && (synpred18_DRL6Expressions())) {
}
}
}
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:541:9: ( ( INCR | DECR )=> ( INCR | DECR ) )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:548:9: ( ( INCR | DECR )=> ( INCR | DECR ) )?
int alt53=2;
int LA53_0 = input.LA(1);
if ( (LA53_0==DECR||LA53_0==INCR) && (synpred19_DRL6Expressions())) {
@@ -3719,7 +3715,7 @@ else if ( (LA52_0==LEFT_SQUARE) && (synpred18_DRL6Expressions())) {
}
switch (alt53) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:541:10: ( INCR | DECR )=> ( INCR | DECR )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:548:10: ( INCR | DECR )=> ( INCR | DECR )
{
if ( input.LA(1)==DECR||input.LA(1)==INCR ) {
input.consume();
@@ -3758,12 +3754,12 @@ else if ( (LA52_0==LEFT_SQUARE) && (synpred18_DRL6Expressions())) {
// $ANTLR start "castExpression"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:544:1: castExpression : ( ( LEFT_PAREN primitiveType )=> LEFT_PAREN primitiveType RIGHT_PAREN expr= unaryExpression | ( LEFT_PAREN type )=> LEFT_PAREN type RIGHT_PAREN unaryExpressionNotPlusMinus );
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:551:1: castExpression : ( ( LEFT_PAREN primitiveType )=> LEFT_PAREN primitiveType RIGHT_PAREN expr= unaryExpression | ( LEFT_PAREN type )=> LEFT_PAREN type RIGHT_PAREN unaryExpressionNotPlusMinus );
public final void castExpression() throws RecognitionException {
BaseDescr expr =null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:545:5: ( ( LEFT_PAREN primitiveType )=> LEFT_PAREN primitiveType RIGHT_PAREN expr= unaryExpression | ( LEFT_PAREN type )=> LEFT_PAREN type RIGHT_PAREN unaryExpressionNotPlusMinus )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:552:5: ( ( LEFT_PAREN primitiveType )=> LEFT_PAREN primitiveType RIGHT_PAREN expr= unaryExpression | ( LEFT_PAREN type )=> LEFT_PAREN type RIGHT_PAREN unaryExpressionNotPlusMinus )
int alt55=2;
int LA55_0 = input.LA(1);
if ( (LA55_0==LEFT_PAREN) ) {
@@ -3799,7 +3795,7 @@ else if ( (synpred21_DRL6Expressions()) ) {
switch (alt55) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:545:8: ( LEFT_PAREN primitiveType )=> LEFT_PAREN primitiveType RIGHT_PAREN expr= unaryExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:552:8: ( LEFT_PAREN primitiveType )=> LEFT_PAREN primitiveType RIGHT_PAREN expr= unaryExpression
{
match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_castExpression2739); if (state.failed) return;
pushFollow(FOLLOW_primitiveType_in_castExpression2741);
@@ -3814,7 +3810,7 @@ else if ( (synpred21_DRL6Expressions()) ) {
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:546:8: ( LEFT_PAREN type )=> LEFT_PAREN type RIGHT_PAREN unaryExpressionNotPlusMinus
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:553:8: ( LEFT_PAREN type )=> LEFT_PAREN type RIGHT_PAREN unaryExpressionNotPlusMinus
{
match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_castExpression2764); if (state.failed) return;
pushFollow(FOLLOW_type_in_castExpression2766);
@@ -3845,13 +3841,13 @@ else if ( (synpred21_DRL6Expressions()) ) {
// $ANTLR start "backReferenceExpression"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:549:1: backReferenceExpression : ( DOT DOT DIV )=> ( DOT DOT DIV )+ unaryExpressionNotPlusMinus ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:556:1: backReferenceExpression : ( DOT DOT DIV )=> ( DOT DOT DIV )+ unaryExpressionNotPlusMinus ;
public final void backReferenceExpression() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:550:5: ( ( DOT DOT DIV )=> ( DOT DOT DIV )+ unaryExpressionNotPlusMinus )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:550:8: ( DOT DOT DIV )=> ( DOT DOT DIV )+ unaryExpressionNotPlusMinus
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:557:5: ( ( DOT DOT DIV )=> ( DOT DOT DIV )+ unaryExpressionNotPlusMinus )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:557:8: ( DOT DOT DIV )=> ( DOT DOT DIV )+ unaryExpressionNotPlusMinus
{
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:550:25: ( DOT DOT DIV )+
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:557:25: ( DOT DOT DIV )+
int cnt56=0;
loop56:
while (true) {
@@ -3863,7 +3859,7 @@ public final void backReferenceExpression() throws RecognitionException {
switch (alt56) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:550:26: DOT DOT DIV
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:557:26: DOT DOT DIV
{
match(input,DOT,FOLLOW_DOT_in_backReferenceExpression2799); if (state.failed) return;
match(input,DOT,FOLLOW_DOT_in_backReferenceExpression2801); if (state.failed) return;
@@ -3901,10 +3897,10 @@ public final void backReferenceExpression() throws RecognitionException {
// $ANTLR start "primitiveType"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:553:1: primitiveType : ( boolean_key | char_key | byte_key | short_key | int_key | long_key | float_key | double_key );
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:560:1: primitiveType : ( boolean_key | char_key | byte_key | short_key | int_key | long_key | float_key | double_key );
public final void primitiveType() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:554:5: ( boolean_key | char_key | byte_key | short_key | int_key | long_key | float_key | double_key )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:561:5: ( boolean_key | char_key | byte_key | short_key | int_key | long_key | float_key | double_key )
int alt57=8;
int LA57_0 = input.LA(1);
if ( (LA57_0==ID) && ((((helper.validateIdentifierKey(DroolsSoftKeywords.SHORT)))||((helper.validateIdentifierKey(DroolsSoftKeywords.LONG)))||((helper.validateIdentifierKey(DroolsSoftKeywords.CHAR)))||((helper.validateIdentifierKey(DroolsSoftKeywords.INT)))||((helper.validateIdentifierKey(DroolsSoftKeywords.FLOAT)))||((helper.validateIdentifierKey(DroolsSoftKeywords.BOOLEAN)))||((helper.validateIdentifierKey(DroolsSoftKeywords.DOUBLE)))||((helper.validateIdentifierKey(DroolsSoftKeywords.BYTE)))))) {
@@ -3951,7 +3947,7 @@ else if ( (((helper.validateIdentifierKey(DroolsSoftKeywords.DOUBLE)))) ) {
switch (alt57) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:554:9: boolean_key
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:561:9: boolean_key
{
pushFollow(FOLLOW_boolean_key_in_primitiveType2826);
boolean_key();
@@ -3960,7 +3956,7 @@ else if ( (((helper.validateIdentifierKey(DroolsSoftKeywords.DOUBLE)))) ) {
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:555:7: char_key
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:562:7: char_key
{
pushFollow(FOLLOW_char_key_in_primitiveType2834);
char_key();
@@ -3969,7 +3965,7 @@ else if ( (((helper.validateIdentifierKey(DroolsSoftKeywords.DOUBLE)))) ) {
}
break;
case 3 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:556:7: byte_key
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:563:7: byte_key
{
pushFollow(FOLLOW_byte_key_in_primitiveType2842);
byte_key();
@@ -3978,7 +3974,7 @@ else if ( (((helper.validateIdentifierKey(DroolsSoftKeywords.DOUBLE)))) ) {
}
break;
case 4 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:557:7: short_key
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:564:7: short_key
{
pushFollow(FOLLOW_short_key_in_primitiveType2850);
short_key();
@@ -3987,7 +3983,7 @@ else if ( (((helper.validateIdentifierKey(DroolsSoftKeywords.DOUBLE)))) ) {
}
break;
case 5 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:558:7: int_key
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:565:7: int_key
{
pushFollow(FOLLOW_int_key_in_primitiveType2858);
int_key();
@@ -3996,7 +3992,7 @@ else if ( (((helper.validateIdentifierKey(DroolsSoftKeywords.DOUBLE)))) ) {
}
break;
case 6 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:559:7: long_key
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:566:7: long_key
{
pushFollow(FOLLOW_long_key_in_primitiveType2866);
long_key();
@@ -4005,7 +4001,7 @@ else if ( (((helper.validateIdentifierKey(DroolsSoftKeywords.DOUBLE)))) ) {
}
break;
case 7 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:560:7: float_key
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:567:7: float_key
{
pushFollow(FOLLOW_float_key_in_primitiveType2874);
float_key();
@@ -4014,7 +4010,7 @@ else if ( (((helper.validateIdentifierKey(DroolsSoftKeywords.DOUBLE)))) ) {
}
break;
case 8 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:561:7: double_key
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:568:7: double_key
{
pushFollow(FOLLOW_double_key_in_primitiveType2882);
double_key();
@@ -4039,11 +4035,11 @@ else if ( (((helper.validateIdentifierKey(DroolsSoftKeywords.DOUBLE)))) ) {
// $ANTLR start "xpathSeparator"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:564:1: xpathSeparator : ( DIV | QUESTION_DIV );
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:571:1: xpathSeparator : ( DIV | QUESTION_DIV );
public final void xpathSeparator() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:565:5: ( DIV | QUESTION_DIV )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:572:5: ( DIV | QUESTION_DIV )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:
{
if ( input.LA(1)==DIV||input.LA(1)==QUESTION_DIV ) {
input.consume();
@@ -4072,17 +4068,20 @@ public final void xpathSeparator() throws RecognitionException {
// $ANTLR start "xpathPrimary"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:569:1: xpathPrimary returns [BaseDescr result] : ( xpathChunk )+ ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:576:1: xpathPrimary returns [BaseDescr result] : xpathChunk ({...}? xpathChunk )* ;
public final BaseDescr xpathPrimary() throws RecognitionException {
BaseDescr result = null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:570:5: ( ( xpathChunk )+ )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:570:7: ( xpathChunk )+
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:577:5: ( xpathChunk ({...}? xpathChunk )* )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:577:7: xpathChunk ({...}? xpathChunk )*
{
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:570:7: ( xpathChunk )+
- int cnt58=0;
+ pushFollow(FOLLOW_xpathChunk_in_xpathPrimary2930);
+ xpathChunk();
+ state._fsp--;
+ if (state.failed) return result;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:577:18: ({...}? xpathChunk )*
loop58:
while (true) {
int alt58=2;
@@ -4090,7 +4089,11 @@ public final BaseDescr xpathPrimary() throws RecognitionException {
if ( (LA58_0==DIV) ) {
int LA58_2 = input.LA(2);
if ( (LA58_2==ID) ) {
- alt58=1;
+ int LA58_4 = input.LA(3);
+ if ( ((notStartWithNewline())) ) {
+ alt58=1;
+ }
+
}
}
@@ -4100,9 +4103,13 @@ else if ( (LA58_0==QUESTION_DIV) ) {
switch (alt58) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:570:7: xpathChunk
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:577:19: {...}? xpathChunk
{
- pushFollow(FOLLOW_xpathChunk_in_xpathPrimary2930);
+ if ( !((notStartWithNewline())) ) {
+ if (state.backtracking>0) {state.failed=true; return result;}
+ throw new FailedPredicateException(input, "xpathPrimary", "notStartWithNewline()");
+ }
+ pushFollow(FOLLOW_xpathChunk_in_xpathPrimary2935);
xpathChunk();
state._fsp--;
if (state.failed) return result;
@@ -4110,12 +4117,8 @@ else if ( (LA58_0==QUESTION_DIV) ) {
break;
default :
- if ( cnt58 >= 1 ) break loop58;
- if (state.backtracking>0) {state.failed=true; return result;}
- EarlyExitException eee = new EarlyExitException(58, input);
- throw eee;
+ break loop58;
}
- cnt58++;
}
}
@@ -4136,21 +4139,21 @@ else if ( (LA58_0==QUESTION_DIV) ) {
// $ANTLR start "xpathChunk"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:573:1: xpathChunk returns [BaseDescr result] : ( xpathSeparator ID )=> xpathSeparator ID ( DOT ID )* ( HASH ID )? ( LEFT_SQUARE xpathExpressionList RIGHT_SQUARE )? ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:580:1: xpathChunk returns [BaseDescr result] : ( xpathSeparator ID )=> xpathSeparator ID ( DOT ID )* ( HASH ID )? ( LEFT_SQUARE xpathExpressionList RIGHT_SQUARE )? ;
public final BaseDescr xpathChunk() throws RecognitionException {
BaseDescr result = null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:574:5: ( ( xpathSeparator ID )=> xpathSeparator ID ( DOT ID )* ( HASH ID )? ( LEFT_SQUARE xpathExpressionList RIGHT_SQUARE )? )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:574:7: ( xpathSeparator ID )=> xpathSeparator ID ( DOT ID )* ( HASH ID )? ( LEFT_SQUARE xpathExpressionList RIGHT_SQUARE )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:581:5: ( ( xpathSeparator ID )=> xpathSeparator ID ( DOT ID )* ( HASH ID )? ( LEFT_SQUARE xpathExpressionList RIGHT_SQUARE )? )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:581:7: ( xpathSeparator ID )=> xpathSeparator ID ( DOT ID )* ( HASH ID )? ( LEFT_SQUARE xpathExpressionList RIGHT_SQUARE )?
{
- pushFollow(FOLLOW_xpathSeparator_in_xpathChunk2959);
+ pushFollow(FOLLOW_xpathSeparator_in_xpathChunk2965);
xpathSeparator();
state._fsp--;
if (state.failed) return result;
- match(input,ID,FOLLOW_ID_in_xpathChunk2961); if (state.failed) return result;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:574:47: ( DOT ID )*
+ match(input,ID,FOLLOW_ID_in_xpathChunk2967); if (state.failed) return result;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:581:47: ( DOT ID )*
loop59:
while (true) {
int alt59=2;
@@ -4165,10 +4168,10 @@ public final BaseDescr xpathChunk() throws RecognitionException {
switch (alt59) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:574:48: DOT ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:581:48: DOT ID
{
- match(input,DOT,FOLLOW_DOT_in_xpathChunk2964); if (state.failed) return result;
- match(input,ID,FOLLOW_ID_in_xpathChunk2966); if (state.failed) return result;
+ match(input,DOT,FOLLOW_DOT_in_xpathChunk2970); if (state.failed) return result;
+ match(input,ID,FOLLOW_ID_in_xpathChunk2972); if (state.failed) return result;
}
break;
@@ -4177,7 +4180,7 @@ public final BaseDescr xpathChunk() throws RecognitionException {
}
}
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:574:57: ( HASH ID )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:581:57: ( HASH ID )?
int alt60=2;
int LA60_0 = input.LA(1);
if ( (LA60_0==HASH) ) {
@@ -4185,16 +4188,16 @@ public final BaseDescr xpathChunk() throws RecognitionException {
}
switch (alt60) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:574:58: HASH ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:581:58: HASH ID
{
- match(input,HASH,FOLLOW_HASH_in_xpathChunk2971); if (state.failed) return result;
- match(input,ID,FOLLOW_ID_in_xpathChunk2973); if (state.failed) return result;
+ match(input,HASH,FOLLOW_HASH_in_xpathChunk2977); if (state.failed) return result;
+ match(input,ID,FOLLOW_ID_in_xpathChunk2979); if (state.failed) return result;
}
break;
}
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:574:68: ( LEFT_SQUARE xpathExpressionList RIGHT_SQUARE )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:581:68: ( LEFT_SQUARE xpathExpressionList RIGHT_SQUARE )?
int alt61=2;
int LA61_0 = input.LA(1);
if ( (LA61_0==LEFT_SQUARE) ) {
@@ -4202,14 +4205,14 @@ public final BaseDescr xpathChunk() throws RecognitionException {
}
switch (alt61) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:574:69: LEFT_SQUARE xpathExpressionList RIGHT_SQUARE
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:581:69: LEFT_SQUARE xpathExpressionList RIGHT_SQUARE
{
- match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_xpathChunk2978); if (state.failed) return result;
- pushFollow(FOLLOW_xpathExpressionList_in_xpathChunk2980);
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_xpathChunk2984); if (state.failed) return result;
+ pushFollow(FOLLOW_xpathExpressionList_in_xpathChunk2986);
xpathExpressionList();
state._fsp--;
if (state.failed) return result;
- match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_xpathChunk2982); if (state.failed) return result;
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_xpathChunk2988); if (state.failed) return result;
}
break;
@@ -4233,7 +4236,7 @@ public final BaseDescr xpathChunk() throws RecognitionException {
// $ANTLR start "xpathExpressionList"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:577:1: xpathExpressionList returns [java.util.List exprs] : f= expression ( COMMA s= expression )* ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:584:1: xpathExpressionList returns [java.util.List exprs] : f= expression ( COMMA s= expression )* ;
public final java.util.List xpathExpressionList() throws RecognitionException {
java.util.List exprs = null;
@@ -4243,15 +4246,15 @@ public final java.util.List xpathExpressionList() throws RecognitionExce
exprs = new java.util.ArrayList();
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:579:3: (f= expression ( COMMA s= expression )* )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:579:7: f= expression ( COMMA s= expression )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:586:3: (f= expression ( COMMA s= expression )* )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:586:7: f= expression ( COMMA s= expression )*
{
- pushFollow(FOLLOW_expression_in_xpathExpressionList3012);
+ pushFollow(FOLLOW_expression_in_xpathExpressionList3018);
f=expression();
state._fsp--;
if (state.failed) return exprs;
if ( state.backtracking==0 ) { exprs.add( (f!=null?input.toString(f.start,f.stop):null) ); }
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:580:7: ( COMMA s= expression )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:587:7: ( COMMA s= expression )*
loop62:
while (true) {
int alt62=2;
@@ -4262,10 +4265,10 @@ public final java.util.List xpathExpressionList() throws RecognitionExce
switch (alt62) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:580:8: COMMA s= expression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:587:8: COMMA s= expression
{
- match(input,COMMA,FOLLOW_COMMA_in_xpathExpressionList3023); if (state.failed) return exprs;
- pushFollow(FOLLOW_expression_in_xpathExpressionList3027);
+ match(input,COMMA,FOLLOW_COMMA_in_xpathExpressionList3029); if (state.failed) return exprs;
+ pushFollow(FOLLOW_expression_in_xpathExpressionList3033);
s=expression();
state._fsp--;
if (state.failed) return exprs;
@@ -4296,7 +4299,7 @@ public final java.util.List xpathExpressionList() throws RecognitionExce
// $ANTLR start "primary"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:583:1: primary returns [BaseDescr result] : ( ( LEFT_PAREN )=>expr= parExpression | ( nonWildcardTypeArguments )=> nonWildcardTypeArguments ( explicitGenericInvocationSuffix | this_key arguments ) | ( literal )=> literal | ( super_key )=> super_key superSuffix | ( new_key )=> new_key creator | ( primitiveType )=> primitiveType ( LEFT_SQUARE RIGHT_SQUARE )* DOT class_key | ( inlineMapExpression )=> inlineMapExpression | ( inlineListExpression )=> inlineListExpression | ( ID )=>i1= ID ( ( ( DOT ID )=>d= DOT i2= ID ) | ( ( ( DOT | NULL_SAFE_DOT ) LEFT_PAREN )=>d= ( DOT | NULL_SAFE_DOT ) LEFT_PAREN expression ( COMMA expression )* RIGHT_PAREN ) | ( ( HASH ID )=>h= HASH i2= ID ) | ( ( NULL_SAFE_DOT ID )=>n= NULL_SAFE_DOT i2= ID ) )* ( ( identifierSuffix )=> identifierSuffix )? );
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:590:1: primary returns [BaseDescr result] : ( ( LEFT_PAREN )=>expr= parExpression | ( nonWildcardTypeArguments )=> nonWildcardTypeArguments ( explicitGenericInvocationSuffix | this_key arguments ) | ( literal )=> literal | ( super_key )=> super_key superSuffix | ( new_key )=> new_key creator | ( primitiveType )=> primitiveType ( LEFT_SQUARE RIGHT_SQUARE )* DOT class_key | ( inlineMapExpression )=> inlineMapExpression | ( inlineListExpression )=> inlineListExpression | ( ID )=>i1= ID ( ( ( DOT ID )=>d= DOT i2= ID ) | ( ( ( DOT | NULL_SAFE_DOT ) LEFT_PAREN )=>d= ( DOT | NULL_SAFE_DOT ) LEFT_PAREN expression ( COMMA expression )* RIGHT_PAREN ) | ( ( HASH ID )=>h= HASH i2= ID ) | ( ( NULL_SAFE_DOT ID )=>n= NULL_SAFE_DOT i2= ID ) )* ( ( identifierSuffix )=> identifierSuffix )? );
public final BaseDescr primary() throws RecognitionException {
BaseDescr result = null;
@@ -4313,7 +4316,7 @@ public final BaseDescr primary() throws RecognitionException {
ParserRuleReturnScope literal11 =null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:584:5: ( ( LEFT_PAREN )=>expr= parExpression | ( nonWildcardTypeArguments )=> nonWildcardTypeArguments ( explicitGenericInvocationSuffix | this_key arguments ) | ( literal )=> literal | ( super_key )=> super_key superSuffix | ( new_key )=> new_key creator | ( primitiveType )=> primitiveType ( LEFT_SQUARE RIGHT_SQUARE )* DOT class_key | ( inlineMapExpression )=> inlineMapExpression | ( inlineListExpression )=> inlineListExpression | ( ID )=>i1= ID ( ( ( DOT ID )=>d= DOT i2= ID ) | ( ( ( DOT | NULL_SAFE_DOT ) LEFT_PAREN )=>d= ( DOT | NULL_SAFE_DOT ) LEFT_PAREN expression ( COMMA expression )* RIGHT_PAREN ) | ( ( HASH ID )=>h= HASH i2= ID ) | ( ( NULL_SAFE_DOT ID )=>n= NULL_SAFE_DOT i2= ID ) )* ( ( identifierSuffix )=> identifierSuffix )? )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:591:5: ( ( LEFT_PAREN )=>expr= parExpression | ( nonWildcardTypeArguments )=> nonWildcardTypeArguments ( explicitGenericInvocationSuffix | this_key arguments ) | ( literal )=> literal | ( super_key )=> super_key superSuffix | ( new_key )=> new_key creator | ( primitiveType )=> primitiveType ( LEFT_SQUARE RIGHT_SQUARE )* DOT class_key | ( inlineMapExpression )=> inlineMapExpression | ( inlineListExpression )=> inlineListExpression | ( ID )=>i1= ID ( ( ( DOT ID )=>d= DOT i2= ID ) | ( ( ( DOT | NULL_SAFE_DOT ) LEFT_PAREN )=>d= ( DOT | NULL_SAFE_DOT ) LEFT_PAREN expression ( COMMA expression )* RIGHT_PAREN ) | ( ( HASH ID )=>h= HASH i2= ID ) | ( ( NULL_SAFE_DOT ID )=>n= NULL_SAFE_DOT i2= ID ) )* ( ( identifierSuffix )=> identifierSuffix )? )
int alt68=9;
int LA68_0 = input.LA(1);
if ( (LA68_0==LEFT_PAREN) && (synpred24_DRL6Expressions())) {
@@ -4408,9 +4411,9 @@ else if ( (synpred31_DRL6Expressions()) ) {
switch (alt68) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:584:7: ( LEFT_PAREN )=>expr= parExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:591:7: ( LEFT_PAREN )=>expr= parExpression
{
- pushFollow(FOLLOW_parExpression_in_primary3057);
+ pushFollow(FOLLOW_parExpression_in_primary3063);
expr=parExpression();
state._fsp--;
if (state.failed) return result;
@@ -4418,13 +4421,13 @@ else if ( (synpred31_DRL6Expressions()) ) {
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:585:9: ( nonWildcardTypeArguments )=> nonWildcardTypeArguments ( explicitGenericInvocationSuffix | this_key arguments )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:592:9: ( nonWildcardTypeArguments )=> nonWildcardTypeArguments ( explicitGenericInvocationSuffix | this_key arguments )
{
- pushFollow(FOLLOW_nonWildcardTypeArguments_in_primary3074);
+ pushFollow(FOLLOW_nonWildcardTypeArguments_in_primary3080);
nonWildcardTypeArguments();
state._fsp--;
if (state.failed) return result;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:585:63: ( explicitGenericInvocationSuffix | this_key arguments )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:592:63: ( explicitGenericInvocationSuffix | this_key arguments )
int alt63=2;
int LA63_0 = input.LA(1);
if ( (LA63_0==ID) ) {
@@ -4460,22 +4463,22 @@ else if ( (((helper.validateIdentifierKey(DroolsSoftKeywords.THIS)))) ) {
switch (alt63) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:585:64: explicitGenericInvocationSuffix
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:592:64: explicitGenericInvocationSuffix
{
- pushFollow(FOLLOW_explicitGenericInvocationSuffix_in_primary3077);
+ pushFollow(FOLLOW_explicitGenericInvocationSuffix_in_primary3083);
explicitGenericInvocationSuffix();
state._fsp--;
if (state.failed) return result;
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:585:98: this_key arguments
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:592:98: this_key arguments
{
- pushFollow(FOLLOW_this_key_in_primary3081);
+ pushFollow(FOLLOW_this_key_in_primary3087);
this_key();
state._fsp--;
if (state.failed) return result;
- pushFollow(FOLLOW_arguments_in_primary3083);
+ pushFollow(FOLLOW_arguments_in_primary3089);
arguments();
state._fsp--;
if (state.failed) return result;
@@ -4487,9 +4490,9 @@ else if ( (((helper.validateIdentifierKey(DroolsSoftKeywords.THIS)))) ) {
}
break;
case 3 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:586:9: ( literal )=> literal
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:593:9: ( literal )=> literal
{
- pushFollow(FOLLOW_literal_in_primary3099);
+ pushFollow(FOLLOW_literal_in_primary3105);
literal11=literal();
state._fsp--;
if (state.failed) return result;
@@ -4497,39 +4500,39 @@ else if ( (((helper.validateIdentifierKey(DroolsSoftKeywords.THIS)))) ) {
}
break;
case 4 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:588:9: ( super_key )=> super_key superSuffix
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:595:9: ( super_key )=> super_key superSuffix
{
- pushFollow(FOLLOW_super_key_in_primary3121);
+ pushFollow(FOLLOW_super_key_in_primary3127);
super_key();
state._fsp--;
if (state.failed) return result;
- pushFollow(FOLLOW_superSuffix_in_primary3123);
+ pushFollow(FOLLOW_superSuffix_in_primary3129);
superSuffix();
state._fsp--;
if (state.failed) return result;
}
break;
case 5 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:589:9: ( new_key )=> new_key creator
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:596:9: ( new_key )=> new_key creator
{
- pushFollow(FOLLOW_new_key_in_primary3138);
+ pushFollow(FOLLOW_new_key_in_primary3144);
new_key();
state._fsp--;
if (state.failed) return result;
- pushFollow(FOLLOW_creator_in_primary3140);
+ pushFollow(FOLLOW_creator_in_primary3146);
creator();
state._fsp--;
if (state.failed) return result;
}
break;
case 6 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:590:9: ( primitiveType )=> primitiveType ( LEFT_SQUARE RIGHT_SQUARE )* DOT class_key
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:597:9: ( primitiveType )=> primitiveType ( LEFT_SQUARE RIGHT_SQUARE )* DOT class_key
{
- pushFollow(FOLLOW_primitiveType_in_primary3155);
+ pushFollow(FOLLOW_primitiveType_in_primary3161);
primitiveType();
state._fsp--;
if (state.failed) return result;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:590:41: ( LEFT_SQUARE RIGHT_SQUARE )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:597:41: ( LEFT_SQUARE RIGHT_SQUARE )*
loop64:
while (true) {
int alt64=2;
@@ -4540,10 +4543,10 @@ else if ( (((helper.validateIdentifierKey(DroolsSoftKeywords.THIS)))) ) {
switch (alt64) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:590:42: LEFT_SQUARE RIGHT_SQUARE
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:597:42: LEFT_SQUARE RIGHT_SQUARE
{
- match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_primary3158); if (state.failed) return result;
- match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_primary3160); if (state.failed) return result;
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_primary3164); if (state.failed) return result;
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_primary3166); if (state.failed) return result;
}
break;
@@ -4552,37 +4555,37 @@ else if ( (((helper.validateIdentifierKey(DroolsSoftKeywords.THIS)))) ) {
}
}
- match(input,DOT,FOLLOW_DOT_in_primary3164); if (state.failed) return result;
- pushFollow(FOLLOW_class_key_in_primary3166);
+ match(input,DOT,FOLLOW_DOT_in_primary3170); if (state.failed) return result;
+ pushFollow(FOLLOW_class_key_in_primary3172);
class_key();
state._fsp--;
if (state.failed) return result;
}
break;
case 7 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:592:9: ( inlineMapExpression )=> inlineMapExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:599:9: ( inlineMapExpression )=> inlineMapExpression
{
- pushFollow(FOLLOW_inlineMapExpression_in_primary3186);
+ pushFollow(FOLLOW_inlineMapExpression_in_primary3192);
inlineMapExpression();
state._fsp--;
if (state.failed) return result;
}
break;
case 8 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:593:9: ( inlineListExpression )=> inlineListExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:600:9: ( inlineListExpression )=> inlineListExpression
{
- pushFollow(FOLLOW_inlineListExpression_in_primary3201);
+ pushFollow(FOLLOW_inlineListExpression_in_primary3207);
inlineListExpression();
state._fsp--;
if (state.failed) return result;
}
break;
case 9 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:594:9: ( ID )=>i1= ID ( ( ( DOT ID )=>d= DOT i2= ID ) | ( ( ( DOT | NULL_SAFE_DOT ) LEFT_PAREN )=>d= ( DOT | NULL_SAFE_DOT ) LEFT_PAREN expression ( COMMA expression )* RIGHT_PAREN ) | ( ( HASH ID )=>h= HASH i2= ID ) | ( ( NULL_SAFE_DOT ID )=>n= NULL_SAFE_DOT i2= ID ) )* ( ( identifierSuffix )=> identifierSuffix )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:601:9: ( ID )=>i1= ID ( ( ( DOT ID )=>d= DOT i2= ID ) | ( ( ( DOT | NULL_SAFE_DOT ) LEFT_PAREN )=>d= ( DOT | NULL_SAFE_DOT ) LEFT_PAREN expression ( COMMA expression )* RIGHT_PAREN ) | ( ( HASH ID )=>h= HASH i2= ID ) | ( ( NULL_SAFE_DOT ID )=>n= NULL_SAFE_DOT i2= ID ) )* ( ( identifierSuffix )=> identifierSuffix )?
{
- i1=(Token)match(input,ID,FOLLOW_ID_in_primary3217); if (state.failed) return result;
+ i1=(Token)match(input,ID,FOLLOW_ID_in_primary3223); if (state.failed) return result;
if ( state.backtracking==0 ) { helper.emit(i1, DroolsEditorType.IDENTIFIER); }
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:595:9: ( ( ( DOT ID )=>d= DOT i2= ID ) | ( ( ( DOT | NULL_SAFE_DOT ) LEFT_PAREN )=>d= ( DOT | NULL_SAFE_DOT ) LEFT_PAREN expression ( COMMA expression )* RIGHT_PAREN ) | ( ( HASH ID )=>h= HASH i2= ID ) | ( ( NULL_SAFE_DOT ID )=>n= NULL_SAFE_DOT i2= ID ) )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:602:9: ( ( ( DOT ID )=>d= DOT i2= ID ) | ( ( ( DOT | NULL_SAFE_DOT ) LEFT_PAREN )=>d= ( DOT | NULL_SAFE_DOT ) LEFT_PAREN expression ( COMMA expression )* RIGHT_PAREN ) | ( ( HASH ID )=>h= HASH i2= ID ) | ( ( NULL_SAFE_DOT ID )=>n= NULL_SAFE_DOT i2= ID ) )*
loop66:
while (true) {
int alt66=5;
@@ -4621,23 +4624,23 @@ else if ( (LA66_0==HASH) && (synpred35_DRL6Expressions())) {
switch (alt66) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:596:13: ( ( DOT ID )=>d= DOT i2= ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:603:13: ( ( DOT ID )=>d= DOT i2= ID )
{
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:596:13: ( ( DOT ID )=>d= DOT i2= ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:596:15: ( DOT ID )=>d= DOT i2= ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:603:13: ( ( DOT ID )=>d= DOT i2= ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:603:15: ( DOT ID )=>d= DOT i2= ID
{
- d=(Token)match(input,DOT,FOLLOW_DOT_in_primary3253); if (state.failed) return result;
- i2=(Token)match(input,ID,FOLLOW_ID_in_primary3257); if (state.failed) return result;
+ d=(Token)match(input,DOT,FOLLOW_DOT_in_primary3259); if (state.failed) return result;
+ i2=(Token)match(input,ID,FOLLOW_ID_in_primary3263); if (state.failed) return result;
if ( state.backtracking==0 ) { helper.emit(d, DroolsEditorType.SYMBOL); helper.emit(i2, DroolsEditorType.IDENTIFIER); }
}
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:598:13: ( ( ( DOT | NULL_SAFE_DOT ) LEFT_PAREN )=>d= ( DOT | NULL_SAFE_DOT ) LEFT_PAREN expression ( COMMA expression )* RIGHT_PAREN )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:605:13: ( ( ( DOT | NULL_SAFE_DOT ) LEFT_PAREN )=>d= ( DOT | NULL_SAFE_DOT ) LEFT_PAREN expression ( COMMA expression )* RIGHT_PAREN )
{
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:598:13: ( ( ( DOT | NULL_SAFE_DOT ) LEFT_PAREN )=>d= ( DOT | NULL_SAFE_DOT ) LEFT_PAREN expression ( COMMA expression )* RIGHT_PAREN )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:598:15: ( ( DOT | NULL_SAFE_DOT ) LEFT_PAREN )=>d= ( DOT | NULL_SAFE_DOT ) LEFT_PAREN expression ( COMMA expression )* RIGHT_PAREN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:605:13: ( ( ( DOT | NULL_SAFE_DOT ) LEFT_PAREN )=>d= ( DOT | NULL_SAFE_DOT ) LEFT_PAREN expression ( COMMA expression )* RIGHT_PAREN )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:605:15: ( ( DOT | NULL_SAFE_DOT ) LEFT_PAREN )=>d= ( DOT | NULL_SAFE_DOT ) LEFT_PAREN expression ( COMMA expression )* RIGHT_PAREN
{
d=input.LT(1);
if ( input.LA(1)==DOT||input.LA(1)==NULL_SAFE_DOT ) {
@@ -4650,13 +4653,13 @@ else if ( (LA66_0==HASH) && (synpred35_DRL6Expressions())) {
MismatchedSetException mse = new MismatchedSetException(null,input);
throw mse;
}
- LEFT_PAREN12=(Token)match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_primary3309); if (state.failed) return result;
+ LEFT_PAREN12=(Token)match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_primary3315); if (state.failed) return result;
if ( state.backtracking==0 ) { helper.emit(d, DroolsEditorType.SYMBOL); helper.emit(LEFT_PAREN12, DroolsEditorType.SYMBOL); }
- pushFollow(FOLLOW_expression_in_primary3349);
+ pushFollow(FOLLOW_expression_in_primary3355);
expression();
state._fsp--;
if (state.failed) return result;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:599:48: ( COMMA expression )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:606:48: ( COMMA expression )*
loop65:
while (true) {
int alt65=2;
@@ -4667,11 +4670,11 @@ else if ( (LA66_0==HASH) && (synpred35_DRL6Expressions())) {
switch (alt65) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:599:49: COMMA expression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:606:49: COMMA expression
{
- COMMA13=(Token)match(input,COMMA,FOLLOW_COMMA_in_primary3352); if (state.failed) return result;
+ COMMA13=(Token)match(input,COMMA,FOLLOW_COMMA_in_primary3358); if (state.failed) return result;
if ( state.backtracking==0 ) { helper.emit(COMMA13, DroolsEditorType.SYMBOL); }
- pushFollow(FOLLOW_expression_in_primary3356);
+ pushFollow(FOLLOW_expression_in_primary3362);
expression();
state._fsp--;
if (state.failed) return result;
@@ -4683,33 +4686,33 @@ else if ( (LA66_0==HASH) && (synpred35_DRL6Expressions())) {
}
}
- RIGHT_PAREN14=(Token)match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_primary3396); if (state.failed) return result;
+ RIGHT_PAREN14=(Token)match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_primary3402); if (state.failed) return result;
if ( state.backtracking==0 ) { helper.emit(RIGHT_PAREN14, DroolsEditorType.SYMBOL); }
}
}
break;
case 3 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:603:13: ( ( HASH ID )=>h= HASH i2= ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:610:13: ( ( HASH ID )=>h= HASH i2= ID )
{
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:603:13: ( ( HASH ID )=>h= HASH i2= ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:603:15: ( HASH ID )=>h= HASH i2= ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:610:13: ( ( HASH ID )=>h= HASH i2= ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:610:15: ( HASH ID )=>h= HASH i2= ID
{
- h=(Token)match(input,HASH,FOLLOW_HASH_in_primary3450); if (state.failed) return result;
- i2=(Token)match(input,ID,FOLLOW_ID_in_primary3454); if (state.failed) return result;
+ h=(Token)match(input,HASH,FOLLOW_HASH_in_primary3456); if (state.failed) return result;
+ i2=(Token)match(input,ID,FOLLOW_ID_in_primary3460); if (state.failed) return result;
if ( state.backtracking==0 ) { helper.emit(h, DroolsEditorType.SYMBOL); helper.emit(i2, DroolsEditorType.IDENTIFIER); }
}
}
break;
case 4 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:605:13: ( ( NULL_SAFE_DOT ID )=>n= NULL_SAFE_DOT i2= ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:612:13: ( ( NULL_SAFE_DOT ID )=>n= NULL_SAFE_DOT i2= ID )
{
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:605:13: ( ( NULL_SAFE_DOT ID )=>n= NULL_SAFE_DOT i2= ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:605:15: ( NULL_SAFE_DOT ID )=>n= NULL_SAFE_DOT i2= ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:612:13: ( ( NULL_SAFE_DOT ID )=>n= NULL_SAFE_DOT i2= ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:612:15: ( NULL_SAFE_DOT ID )=>n= NULL_SAFE_DOT i2= ID
{
- n=(Token)match(input,NULL_SAFE_DOT,FOLLOW_NULL_SAFE_DOT_in_primary3496); if (state.failed) return result;
- i2=(Token)match(input,ID,FOLLOW_ID_in_primary3500); if (state.failed) return result;
+ n=(Token)match(input,NULL_SAFE_DOT,FOLLOW_NULL_SAFE_DOT_in_primary3502); if (state.failed) return result;
+ i2=(Token)match(input,ID,FOLLOW_ID_in_primary3506); if (state.failed) return result;
if ( state.backtracking==0 ) { helper.emit(n, DroolsEditorType.SYMBOL); helper.emit(i2, DroolsEditorType.IDENTIFIER); }
}
@@ -4721,7 +4724,7 @@ else if ( (LA66_0==HASH) && (synpred35_DRL6Expressions())) {
}
}
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:606:12: ( ( identifierSuffix )=> identifierSuffix )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:613:12: ( ( identifierSuffix )=> identifierSuffix )?
int alt67=2;
int LA67_0 = input.LA(1);
if ( (LA67_0==LEFT_SQUARE) ) {
@@ -4738,9 +4741,9 @@ else if ( (LA67_0==LEFT_PAREN) ) {
}
switch (alt67) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:606:13: ( identifierSuffix )=> identifierSuffix
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:613:13: ( identifierSuffix )=> identifierSuffix
{
- pushFollow(FOLLOW_identifierSuffix_in_primary3522);
+ pushFollow(FOLLOW_identifierSuffix_in_primary3528);
identifierSuffix();
state._fsp--;
if (state.failed) return result;
@@ -4769,14 +4772,14 @@ else if ( (LA67_0==LEFT_PAREN) ) {
// $ANTLR start "inlineListExpression"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:609:1: inlineListExpression : LEFT_SQUARE ( expressionList )? RIGHT_SQUARE ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:616:1: inlineListExpression : LEFT_SQUARE ( expressionList )? RIGHT_SQUARE ;
public final void inlineListExpression() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:610:5: ( LEFT_SQUARE ( expressionList )? RIGHT_SQUARE )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:610:9: LEFT_SQUARE ( expressionList )? RIGHT_SQUARE
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:617:5: ( LEFT_SQUARE ( expressionList )? RIGHT_SQUARE )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:617:9: LEFT_SQUARE ( expressionList )? RIGHT_SQUARE
{
- match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_inlineListExpression3543); if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:610:21: ( expressionList )?
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_inlineListExpression3549); if (state.failed) return;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:617:21: ( expressionList )?
int alt69=2;
int LA69_0 = input.LA(1);
if ( (LA69_0==BOOL||(LA69_0 >= DECIMAL && LA69_0 <= DIV)||LA69_0==DOT||LA69_0==FLOAT||LA69_0==HEX||(LA69_0 >= ID && LA69_0 <= INCR)||(LA69_0 >= LEFT_PAREN && LA69_0 <= LESS)||LA69_0==MINUS||LA69_0==NEGATION||LA69_0==NULL||LA69_0==PLUS||LA69_0==QUESTION_DIV||(LA69_0 >= STAR && LA69_0 <= TIME_INTERVAL)) ) {
@@ -4784,9 +4787,9 @@ public final void inlineListExpression() throws RecognitionException {
}
switch (alt69) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:610:21: expressionList
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:617:21: expressionList
{
- pushFollow(FOLLOW_expressionList_in_inlineListExpression3545);
+ pushFollow(FOLLOW_expressionList_in_inlineListExpression3551);
expressionList();
state._fsp--;
if (state.failed) return;
@@ -4795,7 +4798,7 @@ public final void inlineListExpression() throws RecognitionException {
}
- match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_inlineListExpression3548); if (state.failed) return;
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_inlineListExpression3554); if (state.failed) return;
}
}
@@ -4813,19 +4816,19 @@ public final void inlineListExpression() throws RecognitionException {
// $ANTLR start "inlineMapExpression"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:613:1: inlineMapExpression : LEFT_SQUARE mapExpressionList RIGHT_SQUARE ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:620:1: inlineMapExpression : LEFT_SQUARE mapExpressionList RIGHT_SQUARE ;
public final void inlineMapExpression() throws RecognitionException {
inMap++;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:615:5: ( LEFT_SQUARE mapExpressionList RIGHT_SQUARE )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:615:7: LEFT_SQUARE mapExpressionList RIGHT_SQUARE
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:622:5: ( LEFT_SQUARE mapExpressionList RIGHT_SQUARE )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:622:7: LEFT_SQUARE mapExpressionList RIGHT_SQUARE
{
- match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_inlineMapExpression3569); if (state.failed) return;
- pushFollow(FOLLOW_mapExpressionList_in_inlineMapExpression3571);
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_inlineMapExpression3575); if (state.failed) return;
+ pushFollow(FOLLOW_mapExpressionList_in_inlineMapExpression3577);
mapExpressionList();
state._fsp--;
if (state.failed) return;
- match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_inlineMapExpression3573); if (state.failed) return;
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_inlineMapExpression3579); if (state.failed) return;
}
}
@@ -4844,17 +4847,17 @@ public final void inlineMapExpression() throws RecognitionException {
// $ANTLR start "mapExpressionList"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:619:1: mapExpressionList : mapEntry ( COMMA mapEntry )* ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:626:1: mapExpressionList : mapEntry ( COMMA mapEntry )* ;
public final void mapExpressionList() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:620:5: ( mapEntry ( COMMA mapEntry )* )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:620:7: mapEntry ( COMMA mapEntry )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:627:5: ( mapEntry ( COMMA mapEntry )* )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:627:7: mapEntry ( COMMA mapEntry )*
{
- pushFollow(FOLLOW_mapEntry_in_mapExpressionList3594);
+ pushFollow(FOLLOW_mapEntry_in_mapExpressionList3600);
mapEntry();
state._fsp--;
if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:620:16: ( COMMA mapEntry )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:627:16: ( COMMA mapEntry )*
loop70:
while (true) {
int alt70=2;
@@ -4865,10 +4868,10 @@ public final void mapExpressionList() throws RecognitionException {
switch (alt70) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:620:17: COMMA mapEntry
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:627:17: COMMA mapEntry
{
- match(input,COMMA,FOLLOW_COMMA_in_mapExpressionList3597); if (state.failed) return;
- pushFollow(FOLLOW_mapEntry_in_mapExpressionList3599);
+ match(input,COMMA,FOLLOW_COMMA_in_mapExpressionList3603); if (state.failed) return;
+ pushFollow(FOLLOW_mapEntry_in_mapExpressionList3605);
mapEntry();
state._fsp--;
if (state.failed) return;
@@ -4897,18 +4900,18 @@ public final void mapExpressionList() throws RecognitionException {
// $ANTLR start "mapEntry"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:623:1: mapEntry : expression COLON expression ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:630:1: mapEntry : expression COLON expression ;
public final void mapEntry() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:624:5: ( expression COLON expression )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:624:7: expression COLON expression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:631:5: ( expression COLON expression )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:631:7: expression COLON expression
{
- pushFollow(FOLLOW_expression_in_mapEntry3618);
+ pushFollow(FOLLOW_expression_in_mapEntry3624);
expression();
state._fsp--;
if (state.failed) return;
- match(input,COLON,FOLLOW_COLON_in_mapEntry3620); if (state.failed) return;
- pushFollow(FOLLOW_expression_in_mapEntry3622);
+ match(input,COLON,FOLLOW_COLON_in_mapEntry3626); if (state.failed) return;
+ pushFollow(FOLLOW_expression_in_mapEntry3628);
expression();
state._fsp--;
if (state.failed) return;
@@ -4929,7 +4932,7 @@ public final void mapEntry() throws RecognitionException {
// $ANTLR start "parExpression"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:627:1: parExpression returns [BaseDescr result] : LEFT_PAREN expr= expression RIGHT_PAREN ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:634:1: parExpression returns [BaseDescr result] : LEFT_PAREN expr= expression RIGHT_PAREN ;
public final BaseDescr parExpression() throws RecognitionException {
BaseDescr result = null;
@@ -4937,15 +4940,15 @@ public final BaseDescr parExpression() throws RecognitionException {
ParserRuleReturnScope expr =null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:628:5: ( LEFT_PAREN expr= expression RIGHT_PAREN )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:628:7: LEFT_PAREN expr= expression RIGHT_PAREN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:635:5: ( LEFT_PAREN expr= expression RIGHT_PAREN )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:635:7: LEFT_PAREN expr= expression RIGHT_PAREN
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_parExpression3643); if (state.failed) return result;
- pushFollow(FOLLOW_expression_in_parExpression3647);
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_parExpression3649); if (state.failed) return result;
+ pushFollow(FOLLOW_expression_in_parExpression3653);
expr=expression();
state._fsp--;
if (state.failed) return result;
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_parExpression3649); if (state.failed) return result;
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_parExpression3655); if (state.failed) return result;
if ( state.backtracking==0 ) { if( buildDescr ) {
result = (expr!=null?((DRL6Expressions.expression_return)expr).result:null);
if( result instanceof AtomicExprDescr ) {
@@ -4971,7 +4974,7 @@ public final BaseDescr parExpression() throws RecognitionException {
// $ANTLR start "identifierSuffix"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:638:1: identifierSuffix : ( ( LEFT_SQUARE RIGHT_SQUARE )=> ( LEFT_SQUARE RIGHT_SQUARE )+ DOT class_key | ( ( LEFT_SQUARE )=> LEFT_SQUARE expression RIGHT_SQUARE )+ | arguments );
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:645:1: identifierSuffix : ( ( LEFT_SQUARE RIGHT_SQUARE )=> ( LEFT_SQUARE RIGHT_SQUARE )+ DOT class_key | ( ( LEFT_SQUARE )=> LEFT_SQUARE expression RIGHT_SQUARE )+ | arguments );
public final void identifierSuffix() throws RecognitionException {
Token LEFT_SQUARE15=null;
Token RIGHT_SQUARE16=null;
@@ -4980,7 +4983,7 @@ public final void identifierSuffix() throws RecognitionException {
Token RIGHT_SQUARE19=null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:639:5: ( ( LEFT_SQUARE RIGHT_SQUARE )=> ( LEFT_SQUARE RIGHT_SQUARE )+ DOT class_key | ( ( LEFT_SQUARE )=> LEFT_SQUARE expression RIGHT_SQUARE )+ | arguments )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:646:5: ( ( LEFT_SQUARE RIGHT_SQUARE )=> ( LEFT_SQUARE RIGHT_SQUARE )+ DOT class_key | ( ( LEFT_SQUARE )=> LEFT_SQUARE expression RIGHT_SQUARE )+ | arguments )
int alt73=3;
int LA73_0 = input.LA(1);
if ( (LA73_0==LEFT_SQUARE) ) {
@@ -5019,9 +5022,9 @@ else if ( (LA73_0==LEFT_PAREN) ) {
switch (alt73) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:639:7: ( LEFT_SQUARE RIGHT_SQUARE )=> ( LEFT_SQUARE RIGHT_SQUARE )+ DOT class_key
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:646:7: ( LEFT_SQUARE RIGHT_SQUARE )=> ( LEFT_SQUARE RIGHT_SQUARE )+ DOT class_key
{
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:639:35: ( LEFT_SQUARE RIGHT_SQUARE )+
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:646:35: ( LEFT_SQUARE RIGHT_SQUARE )+
int cnt71=0;
loop71:
while (true) {
@@ -5033,11 +5036,11 @@ else if ( (LA73_0==LEFT_PAREN) ) {
switch (alt71) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:639:36: LEFT_SQUARE RIGHT_SQUARE
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:646:36: LEFT_SQUARE RIGHT_SQUARE
{
- LEFT_SQUARE15=(Token)match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_identifierSuffix3683); if (state.failed) return;
+ LEFT_SQUARE15=(Token)match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_identifierSuffix3689); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(LEFT_SQUARE15, DroolsEditorType.SYMBOL); }
- RIGHT_SQUARE16=(Token)match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_identifierSuffix3724); if (state.failed) return;
+ RIGHT_SQUARE16=(Token)match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_identifierSuffix3730); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(RIGHT_SQUARE16, DroolsEditorType.SYMBOL); }
}
break;
@@ -5051,18 +5054,18 @@ else if ( (LA73_0==LEFT_PAREN) ) {
cnt71++;
}
- DOT17=(Token)match(input,DOT,FOLLOW_DOT_in_identifierSuffix3768); if (state.failed) return;
+ DOT17=(Token)match(input,DOT,FOLLOW_DOT_in_identifierSuffix3774); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(DOT17, DroolsEditorType.SYMBOL); }
- pushFollow(FOLLOW_class_key_in_identifierSuffix3772);
+ pushFollow(FOLLOW_class_key_in_identifierSuffix3778);
class_key();
state._fsp--;
if (state.failed) return;
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:642:7: ( ( LEFT_SQUARE )=> LEFT_SQUARE expression RIGHT_SQUARE )+
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:649:7: ( ( LEFT_SQUARE )=> LEFT_SQUARE expression RIGHT_SQUARE )+
{
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:642:7: ( ( LEFT_SQUARE )=> LEFT_SQUARE expression RIGHT_SQUARE )+
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:649:7: ( ( LEFT_SQUARE )=> LEFT_SQUARE expression RIGHT_SQUARE )+
int cnt72=0;
loop72:
while (true) {
@@ -5078,15 +5081,15 @@ else if ( (LA73_0==LEFT_PAREN) ) {
switch (alt72) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:642:8: ( LEFT_SQUARE )=> LEFT_SQUARE expression RIGHT_SQUARE
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:649:8: ( LEFT_SQUARE )=> LEFT_SQUARE expression RIGHT_SQUARE
{
- LEFT_SQUARE18=(Token)match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_identifierSuffix3787); if (state.failed) return;
+ LEFT_SQUARE18=(Token)match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_identifierSuffix3793); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(LEFT_SQUARE18, DroolsEditorType.SYMBOL); }
- pushFollow(FOLLOW_expression_in_identifierSuffix3817);
+ pushFollow(FOLLOW_expression_in_identifierSuffix3823);
expression();
state._fsp--;
if (state.failed) return;
- RIGHT_SQUARE19=(Token)match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_identifierSuffix3845); if (state.failed) return;
+ RIGHT_SQUARE19=(Token)match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_identifierSuffix3851); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(RIGHT_SQUARE19, DroolsEditorType.SYMBOL); }
}
break;
@@ -5103,9 +5106,9 @@ else if ( (LA73_0==LEFT_PAREN) ) {
}
break;
case 3 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:645:9: arguments
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:652:9: arguments
{
- pushFollow(FOLLOW_arguments_in_identifierSuffix3861);
+ pushFollow(FOLLOW_arguments_in_identifierSuffix3867);
arguments();
state._fsp--;
if (state.failed) return;
@@ -5128,13 +5131,13 @@ else if ( (LA73_0==LEFT_PAREN) ) {
// $ANTLR start "creator"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:653:1: creator : ( nonWildcardTypeArguments )? createdName ( arrayCreatorRest | classCreatorRest ) ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:660:1: creator : ( nonWildcardTypeArguments )? createdName ( arrayCreatorRest | classCreatorRest ) ;
public final void creator() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:654:5: ( ( nonWildcardTypeArguments )? createdName ( arrayCreatorRest | classCreatorRest ) )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:654:7: ( nonWildcardTypeArguments )? createdName ( arrayCreatorRest | classCreatorRest )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:661:5: ( ( nonWildcardTypeArguments )? createdName ( arrayCreatorRest | classCreatorRest ) )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:661:7: ( nonWildcardTypeArguments )? createdName ( arrayCreatorRest | classCreatorRest )
{
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:654:7: ( nonWildcardTypeArguments )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:661:7: ( nonWildcardTypeArguments )?
int alt74=2;
int LA74_0 = input.LA(1);
if ( (LA74_0==LESS) ) {
@@ -5142,9 +5145,9 @@ public final void creator() throws RecognitionException {
}
switch (alt74) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:654:7: nonWildcardTypeArguments
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:661:7: nonWildcardTypeArguments
{
- pushFollow(FOLLOW_nonWildcardTypeArguments_in_creator3883);
+ pushFollow(FOLLOW_nonWildcardTypeArguments_in_creator3889);
nonWildcardTypeArguments();
state._fsp--;
if (state.failed) return;
@@ -5153,11 +5156,11 @@ public final void creator() throws RecognitionException {
}
- pushFollow(FOLLOW_createdName_in_creator3886);
+ pushFollow(FOLLOW_createdName_in_creator3892);
createdName();
state._fsp--;
if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:655:9: ( arrayCreatorRest | classCreatorRest )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:662:9: ( arrayCreatorRest | classCreatorRest )
int alt75=2;
int LA75_0 = input.LA(1);
if ( (LA75_0==LEFT_SQUARE) ) {
@@ -5176,18 +5179,18 @@ else if ( (LA75_0==LEFT_PAREN) ) {
switch (alt75) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:655:10: arrayCreatorRest
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:662:10: arrayCreatorRest
{
- pushFollow(FOLLOW_arrayCreatorRest_in_creator3897);
+ pushFollow(FOLLOW_arrayCreatorRest_in_creator3903);
arrayCreatorRest();
state._fsp--;
if (state.failed) return;
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:655:29: classCreatorRest
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:662:29: classCreatorRest
{
- pushFollow(FOLLOW_classCreatorRest_in_creator3901);
+ pushFollow(FOLLOW_classCreatorRest_in_creator3907);
classCreatorRest();
state._fsp--;
if (state.failed) return;
@@ -5213,10 +5216,10 @@ else if ( (LA75_0==LEFT_PAREN) ) {
// $ANTLR start "createdName"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:658:1: createdName : ( ID ( typeArguments )? ( DOT ID ( typeArguments )? )* | primitiveType );
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:665:1: createdName : ( ID ( typeArguments )? ( DOT ID ( typeArguments )? )* | primitiveType );
public final void createdName() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:659:5: ( ID ( typeArguments )? ( DOT ID ( typeArguments )? )* | primitiveType )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:666:5: ( ID ( typeArguments )? ( DOT ID ( typeArguments )? )* | primitiveType )
int alt79=2;
int LA79_0 = input.LA(1);
if ( (LA79_0==ID) ) {
@@ -5252,10 +5255,10 @@ else if ( ((((helper.validateIdentifierKey(DroolsSoftKeywords.SHORT)))||((helper
switch (alt79) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:659:7: ID ( typeArguments )? ( DOT ID ( typeArguments )? )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:666:7: ID ( typeArguments )? ( DOT ID ( typeArguments )? )*
{
- match(input,ID,FOLLOW_ID_in_createdName3919); if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:659:10: ( typeArguments )?
+ match(input,ID,FOLLOW_ID_in_createdName3925); if (state.failed) return;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:666:10: ( typeArguments )?
int alt76=2;
int LA76_0 = input.LA(1);
if ( (LA76_0==LESS) ) {
@@ -5263,9 +5266,9 @@ else if ( ((((helper.validateIdentifierKey(DroolsSoftKeywords.SHORT)))||((helper
}
switch (alt76) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:659:10: typeArguments
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:666:10: typeArguments
{
- pushFollow(FOLLOW_typeArguments_in_createdName3921);
+ pushFollow(FOLLOW_typeArguments_in_createdName3927);
typeArguments();
state._fsp--;
if (state.failed) return;
@@ -5274,7 +5277,7 @@ else if ( ((((helper.validateIdentifierKey(DroolsSoftKeywords.SHORT)))||((helper
}
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:660:9: ( DOT ID ( typeArguments )? )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:667:9: ( DOT ID ( typeArguments )? )*
loop78:
while (true) {
int alt78=2;
@@ -5285,11 +5288,11 @@ else if ( ((((helper.validateIdentifierKey(DroolsSoftKeywords.SHORT)))||((helper
switch (alt78) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:660:11: DOT ID ( typeArguments )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:667:11: DOT ID ( typeArguments )?
{
- match(input,DOT,FOLLOW_DOT_in_createdName3934); if (state.failed) return;
- match(input,ID,FOLLOW_ID_in_createdName3936); if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:660:18: ( typeArguments )?
+ match(input,DOT,FOLLOW_DOT_in_createdName3940); if (state.failed) return;
+ match(input,ID,FOLLOW_ID_in_createdName3942); if (state.failed) return;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:667:18: ( typeArguments )?
int alt77=2;
int LA77_0 = input.LA(1);
if ( (LA77_0==LESS) ) {
@@ -5297,9 +5300,9 @@ else if ( ((((helper.validateIdentifierKey(DroolsSoftKeywords.SHORT)))||((helper
}
switch (alt77) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:660:18: typeArguments
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:667:18: typeArguments
{
- pushFollow(FOLLOW_typeArguments_in_createdName3938);
+ pushFollow(FOLLOW_typeArguments_in_createdName3944);
typeArguments();
state._fsp--;
if (state.failed) return;
@@ -5319,9 +5322,9 @@ else if ( ((((helper.validateIdentifierKey(DroolsSoftKeywords.SHORT)))||((helper
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:661:11: primitiveType
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:668:11: primitiveType
{
- pushFollow(FOLLOW_primitiveType_in_createdName3953);
+ pushFollow(FOLLOW_primitiveType_in_createdName3959);
primitiveType();
state._fsp--;
if (state.failed) return;
@@ -5344,18 +5347,18 @@ else if ( ((((helper.validateIdentifierKey(DroolsSoftKeywords.SHORT)))||((helper
// $ANTLR start "innerCreator"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:664:1: innerCreator :{...}? => ID classCreatorRest ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:671:1: innerCreator :{...}? => ID classCreatorRest ;
public final void innerCreator() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:665:5: ({...}? => ID classCreatorRest )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:665:7: {...}? => ID classCreatorRest
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:672:5: ({...}? => ID classCreatorRest )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:672:7: {...}? => ID classCreatorRest
{
if ( !((!(helper.validateIdentifierKey(DroolsSoftKeywords.INSTANCEOF)))) ) {
if (state.backtracking>0) {state.failed=true; return;}
throw new FailedPredicateException(input, "innerCreator", "!(helper.validateIdentifierKey(DroolsSoftKeywords.INSTANCEOF))");
}
- match(input,ID,FOLLOW_ID_in_innerCreator3973); if (state.failed) return;
- pushFollow(FOLLOW_classCreatorRest_in_innerCreator3975);
+ match(input,ID,FOLLOW_ID_in_innerCreator3979); if (state.failed) return;
+ pushFollow(FOLLOW_classCreatorRest_in_innerCreator3981);
classCreatorRest();
state._fsp--;
if (state.failed) return;
@@ -5376,14 +5379,14 @@ public final void innerCreator() throws RecognitionException {
// $ANTLR start "arrayCreatorRest"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:668:1: arrayCreatorRest : LEFT_SQUARE ( RIGHT_SQUARE ( LEFT_SQUARE RIGHT_SQUARE )* arrayInitializer | expression RIGHT_SQUARE ({...}? => LEFT_SQUARE expression RIGHT_SQUARE )* ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )* ) ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:675:1: arrayCreatorRest : LEFT_SQUARE ( RIGHT_SQUARE ( LEFT_SQUARE RIGHT_SQUARE )* arrayInitializer | expression RIGHT_SQUARE ({...}? => LEFT_SQUARE expression RIGHT_SQUARE )* ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )* ) ;
public final void arrayCreatorRest() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:669:5: ( LEFT_SQUARE ( RIGHT_SQUARE ( LEFT_SQUARE RIGHT_SQUARE )* arrayInitializer | expression RIGHT_SQUARE ({...}? => LEFT_SQUARE expression RIGHT_SQUARE )* ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )* ) )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:669:9: LEFT_SQUARE ( RIGHT_SQUARE ( LEFT_SQUARE RIGHT_SQUARE )* arrayInitializer | expression RIGHT_SQUARE ({...}? => LEFT_SQUARE expression RIGHT_SQUARE )* ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )* )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:676:5: ( LEFT_SQUARE ( RIGHT_SQUARE ( LEFT_SQUARE RIGHT_SQUARE )* arrayInitializer | expression RIGHT_SQUARE ({...}? => LEFT_SQUARE expression RIGHT_SQUARE )* ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )* ) )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:676:9: LEFT_SQUARE ( RIGHT_SQUARE ( LEFT_SQUARE RIGHT_SQUARE )* arrayInitializer | expression RIGHT_SQUARE ({...}? => LEFT_SQUARE expression RIGHT_SQUARE )* ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )* )
{
- match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_arrayCreatorRest3994); if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:670:5: ( RIGHT_SQUARE ( LEFT_SQUARE RIGHT_SQUARE )* arrayInitializer | expression RIGHT_SQUARE ({...}? => LEFT_SQUARE expression RIGHT_SQUARE )* ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )* )
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_arrayCreatorRest4000); if (state.failed) return;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:677:5: ( RIGHT_SQUARE ( LEFT_SQUARE RIGHT_SQUARE )* arrayInitializer | expression RIGHT_SQUARE ({...}? => LEFT_SQUARE expression RIGHT_SQUARE )* ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )* )
int alt83=2;
int LA83_0 = input.LA(1);
if ( (LA83_0==RIGHT_SQUARE) ) {
@@ -5402,10 +5405,10 @@ else if ( (LA83_0==BOOL||(LA83_0 >= DECIMAL && LA83_0 <= DIV)||LA83_0==DOT||LA83
switch (alt83) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:670:9: RIGHT_SQUARE ( LEFT_SQUARE RIGHT_SQUARE )* arrayInitializer
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:677:9: RIGHT_SQUARE ( LEFT_SQUARE RIGHT_SQUARE )* arrayInitializer
{
- match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_arrayCreatorRest4004); if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:670:22: ( LEFT_SQUARE RIGHT_SQUARE )*
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_arrayCreatorRest4010); if (state.failed) return;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:677:22: ( LEFT_SQUARE RIGHT_SQUARE )*
loop80:
while (true) {
int alt80=2;
@@ -5416,10 +5419,10 @@ else if ( (LA83_0==BOOL||(LA83_0 >= DECIMAL && LA83_0 <= DIV)||LA83_0==DOT||LA83
switch (alt80) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:670:23: LEFT_SQUARE RIGHT_SQUARE
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:677:23: LEFT_SQUARE RIGHT_SQUARE
{
- match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_arrayCreatorRest4007); if (state.failed) return;
- match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_arrayCreatorRest4009); if (state.failed) return;
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_arrayCreatorRest4013); if (state.failed) return;
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_arrayCreatorRest4015); if (state.failed) return;
}
break;
@@ -5428,21 +5431,21 @@ else if ( (LA83_0==BOOL||(LA83_0 >= DECIMAL && LA83_0 <= DIV)||LA83_0==DOT||LA83
}
}
- pushFollow(FOLLOW_arrayInitializer_in_arrayCreatorRest4013);
+ pushFollow(FOLLOW_arrayInitializer_in_arrayCreatorRest4019);
arrayInitializer();
state._fsp--;
if (state.failed) return;
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:671:13: expression RIGHT_SQUARE ({...}? => LEFT_SQUARE expression RIGHT_SQUARE )* ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:678:13: expression RIGHT_SQUARE ({...}? => LEFT_SQUARE expression RIGHT_SQUARE )* ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )*
{
- pushFollow(FOLLOW_expression_in_arrayCreatorRest4027);
+ pushFollow(FOLLOW_expression_in_arrayCreatorRest4033);
expression();
state._fsp--;
if (state.failed) return;
- match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_arrayCreatorRest4029); if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:671:37: ({...}? => LEFT_SQUARE expression RIGHT_SQUARE )*
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_arrayCreatorRest4035); if (state.failed) return;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:678:37: ({...}? => LEFT_SQUARE expression RIGHT_SQUARE )*
loop81:
while (true) {
int alt81=2;
@@ -5457,18 +5460,18 @@ else if ( (LA83_0==BOOL||(LA83_0 >= DECIMAL && LA83_0 <= DIV)||LA83_0==DOT||LA83
switch (alt81) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:671:38: {...}? => LEFT_SQUARE expression RIGHT_SQUARE
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:678:38: {...}? => LEFT_SQUARE expression RIGHT_SQUARE
{
if ( !((!helper.validateLT(2,"]"))) ) {
if (state.backtracking>0) {state.failed=true; return;}
throw new FailedPredicateException(input, "arrayCreatorRest", "!helper.validateLT(2,\"]\")");
}
- match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_arrayCreatorRest4034); if (state.failed) return;
- pushFollow(FOLLOW_expression_in_arrayCreatorRest4036);
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_arrayCreatorRest4040); if (state.failed) return;
+ pushFollow(FOLLOW_expression_in_arrayCreatorRest4042);
expression();
state._fsp--;
if (state.failed) return;
- match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_arrayCreatorRest4038); if (state.failed) return;
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_arrayCreatorRest4044); if (state.failed) return;
}
break;
@@ -5477,7 +5480,7 @@ else if ( (LA83_0==BOOL||(LA83_0 >= DECIMAL && LA83_0 <= DIV)||LA83_0==DOT||LA83
}
}
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:671:106: ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:678:106: ( ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE )*
loop82:
while (true) {
int alt82=2;
@@ -5492,10 +5495,10 @@ else if ( (LA83_0==BOOL||(LA83_0 >= DECIMAL && LA83_0 <= DIV)||LA83_0==DOT||LA83
switch (alt82) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:671:107: ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:678:107: ( LEFT_SQUARE RIGHT_SQUARE )=> LEFT_SQUARE RIGHT_SQUARE
{
- match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_arrayCreatorRest4050); if (state.failed) return;
- match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_arrayCreatorRest4052); if (state.failed) return;
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_arrayCreatorRest4056); if (state.failed) return;
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_arrayCreatorRest4058); if (state.failed) return;
}
break;
@@ -5526,10 +5529,10 @@ else if ( (LA83_0==BOOL||(LA83_0 >= DECIMAL && LA83_0 <= DIV)||LA83_0==DOT||LA83
// $ANTLR start "variableInitializer"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:675:1: variableInitializer : ( arrayInitializer | expression );
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:682:1: variableInitializer : ( arrayInitializer | expression );
public final void variableInitializer() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:676:5: ( arrayInitializer | expression )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:683:5: ( arrayInitializer | expression )
int alt84=2;
int LA84_0 = input.LA(1);
if ( (LA84_0==LEFT_CURLY) ) {
@@ -5548,18 +5551,18 @@ else if ( (LA84_0==BOOL||(LA84_0 >= DECIMAL && LA84_0 <= DIV)||LA84_0==DOT||LA84
switch (alt84) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:676:7: arrayInitializer
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:683:7: arrayInitializer
{
- pushFollow(FOLLOW_arrayInitializer_in_variableInitializer4081);
+ pushFollow(FOLLOW_arrayInitializer_in_variableInitializer4087);
arrayInitializer();
state._fsp--;
if (state.failed) return;
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:677:13: expression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:684:13: expression
{
- pushFollow(FOLLOW_expression_in_variableInitializer4095);
+ pushFollow(FOLLOW_expression_in_variableInitializer4101);
expression();
state._fsp--;
if (state.failed) return;
@@ -5582,14 +5585,14 @@ else if ( (LA84_0==BOOL||(LA84_0 >= DECIMAL && LA84_0 <= DIV)||LA84_0==DOT||LA84
// $ANTLR start "arrayInitializer"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:680:1: arrayInitializer : LEFT_CURLY ( variableInitializer ( COMMA variableInitializer )* ( COMMA )? )? RIGHT_CURLY ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:687:1: arrayInitializer : LEFT_CURLY ( variableInitializer ( COMMA variableInitializer )* ( COMMA )? )? RIGHT_CURLY ;
public final void arrayInitializer() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:681:5: ( LEFT_CURLY ( variableInitializer ( COMMA variableInitializer )* ( COMMA )? )? RIGHT_CURLY )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:681:7: LEFT_CURLY ( variableInitializer ( COMMA variableInitializer )* ( COMMA )? )? RIGHT_CURLY
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:688:5: ( LEFT_CURLY ( variableInitializer ( COMMA variableInitializer )* ( COMMA )? )? RIGHT_CURLY )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:688:7: LEFT_CURLY ( variableInitializer ( COMMA variableInitializer )* ( COMMA )? )? RIGHT_CURLY
{
- match(input,LEFT_CURLY,FOLLOW_LEFT_CURLY_in_arrayInitializer4112); if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:681:18: ( variableInitializer ( COMMA variableInitializer )* ( COMMA )? )?
+ match(input,LEFT_CURLY,FOLLOW_LEFT_CURLY_in_arrayInitializer4118); if (state.failed) return;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:688:18: ( variableInitializer ( COMMA variableInitializer )* ( COMMA )? )?
int alt87=2;
int LA87_0 = input.LA(1);
if ( (LA87_0==BOOL||(LA87_0 >= DECIMAL && LA87_0 <= DIV)||LA87_0==DOT||LA87_0==FLOAT||LA87_0==HEX||(LA87_0 >= ID && LA87_0 <= INCR)||(LA87_0 >= LEFT_CURLY && LA87_0 <= LESS)||LA87_0==MINUS||LA87_0==NEGATION||LA87_0==NULL||LA87_0==PLUS||LA87_0==QUESTION_DIV||(LA87_0 >= STAR && LA87_0 <= TIME_INTERVAL)) ) {
@@ -5597,13 +5600,13 @@ public final void arrayInitializer() throws RecognitionException {
}
switch (alt87) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:681:19: variableInitializer ( COMMA variableInitializer )* ( COMMA )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:688:19: variableInitializer ( COMMA variableInitializer )* ( COMMA )?
{
- pushFollow(FOLLOW_variableInitializer_in_arrayInitializer4115);
+ pushFollow(FOLLOW_variableInitializer_in_arrayInitializer4121);
variableInitializer();
state._fsp--;
if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:681:39: ( COMMA variableInitializer )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:688:39: ( COMMA variableInitializer )*
loop85:
while (true) {
int alt85=2;
@@ -5618,10 +5621,10 @@ public final void arrayInitializer() throws RecognitionException {
switch (alt85) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:681:40: COMMA variableInitializer
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:688:40: COMMA variableInitializer
{
- match(input,COMMA,FOLLOW_COMMA_in_arrayInitializer4118); if (state.failed) return;
- pushFollow(FOLLOW_variableInitializer_in_arrayInitializer4120);
+ match(input,COMMA,FOLLOW_COMMA_in_arrayInitializer4124); if (state.failed) return;
+ pushFollow(FOLLOW_variableInitializer_in_arrayInitializer4126);
variableInitializer();
state._fsp--;
if (state.failed) return;
@@ -5633,7 +5636,7 @@ public final void arrayInitializer() throws RecognitionException {
}
}
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:681:68: ( COMMA )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:688:68: ( COMMA )?
int alt86=2;
int LA86_0 = input.LA(1);
if ( (LA86_0==COMMA) ) {
@@ -5641,9 +5644,9 @@ public final void arrayInitializer() throws RecognitionException {
}
switch (alt86) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:681:69: COMMA
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:688:69: COMMA
{
- match(input,COMMA,FOLLOW_COMMA_in_arrayInitializer4125); if (state.failed) return;
+ match(input,COMMA,FOLLOW_COMMA_in_arrayInitializer4131); if (state.failed) return;
}
break;
@@ -5654,7 +5657,7 @@ public final void arrayInitializer() throws RecognitionException {
}
- match(input,RIGHT_CURLY,FOLLOW_RIGHT_CURLY_in_arrayInitializer4132); if (state.failed) return;
+ match(input,RIGHT_CURLY,FOLLOW_RIGHT_CURLY_in_arrayInitializer4138); if (state.failed) return;
}
}
@@ -5672,13 +5675,13 @@ public final void arrayInitializer() throws RecognitionException {
// $ANTLR start "classCreatorRest"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:684:1: classCreatorRest : arguments ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:691:1: classCreatorRest : arguments ;
public final void classCreatorRest() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:685:5: ( arguments )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:685:7: arguments
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:692:5: ( arguments )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:692:7: arguments
{
- pushFollow(FOLLOW_arguments_in_classCreatorRest4149);
+ pushFollow(FOLLOW_arguments_in_classCreatorRest4155);
arguments();
state._fsp--;
if (state.failed) return;
@@ -5699,17 +5702,17 @@ public final void classCreatorRest() throws RecognitionException {
// $ANTLR start "explicitGenericInvocation"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:688:1: explicitGenericInvocation : nonWildcardTypeArguments arguments ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:695:1: explicitGenericInvocation : nonWildcardTypeArguments arguments ;
public final void explicitGenericInvocation() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:689:5: ( nonWildcardTypeArguments arguments )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:689:7: nonWildcardTypeArguments arguments
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:696:5: ( nonWildcardTypeArguments arguments )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:696:7: nonWildcardTypeArguments arguments
{
- pushFollow(FOLLOW_nonWildcardTypeArguments_in_explicitGenericInvocation4167);
+ pushFollow(FOLLOW_nonWildcardTypeArguments_in_explicitGenericInvocation4173);
nonWildcardTypeArguments();
state._fsp--;
if (state.failed) return;
- pushFollow(FOLLOW_arguments_in_explicitGenericInvocation4169);
+ pushFollow(FOLLOW_arguments_in_explicitGenericInvocation4175);
arguments();
state._fsp--;
if (state.failed) return;
@@ -5730,18 +5733,18 @@ public final void explicitGenericInvocation() throws RecognitionException {
// $ANTLR start "nonWildcardTypeArguments"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:692:1: nonWildcardTypeArguments : LESS typeList GREATER ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:699:1: nonWildcardTypeArguments : LESS typeList GREATER ;
public final void nonWildcardTypeArguments() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:693:5: ( LESS typeList GREATER )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:693:7: LESS typeList GREATER
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:700:5: ( LESS typeList GREATER )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:700:7: LESS typeList GREATER
{
- match(input,LESS,FOLLOW_LESS_in_nonWildcardTypeArguments4186); if (state.failed) return;
- pushFollow(FOLLOW_typeList_in_nonWildcardTypeArguments4188);
+ match(input,LESS,FOLLOW_LESS_in_nonWildcardTypeArguments4192); if (state.failed) return;
+ pushFollow(FOLLOW_typeList_in_nonWildcardTypeArguments4194);
typeList();
state._fsp--;
if (state.failed) return;
- match(input,GREATER,FOLLOW_GREATER_in_nonWildcardTypeArguments4190); if (state.failed) return;
+ match(input,GREATER,FOLLOW_GREATER_in_nonWildcardTypeArguments4196); if (state.failed) return;
}
}
@@ -5759,10 +5762,10 @@ public final void nonWildcardTypeArguments() throws RecognitionException {
// $ANTLR start "explicitGenericInvocationSuffix"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:696:1: explicitGenericInvocationSuffix : ( super_key superSuffix | ID arguments );
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:703:1: explicitGenericInvocationSuffix : ( super_key superSuffix | ID arguments );
public final void explicitGenericInvocationSuffix() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:697:5: ( super_key superSuffix | ID arguments )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:704:5: ( super_key superSuffix | ID arguments )
int alt88=2;
int LA88_0 = input.LA(1);
if ( (LA88_0==ID) ) {
@@ -5785,23 +5788,23 @@ else if ( (true) ) {
switch (alt88) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:697:7: super_key superSuffix
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:704:7: super_key superSuffix
{
- pushFollow(FOLLOW_super_key_in_explicitGenericInvocationSuffix4207);
+ pushFollow(FOLLOW_super_key_in_explicitGenericInvocationSuffix4213);
super_key();
state._fsp--;
if (state.failed) return;
- pushFollow(FOLLOW_superSuffix_in_explicitGenericInvocationSuffix4209);
+ pushFollow(FOLLOW_superSuffix_in_explicitGenericInvocationSuffix4215);
superSuffix();
state._fsp--;
if (state.failed) return;
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:698:10: ID arguments
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:705:10: ID arguments
{
- match(input,ID,FOLLOW_ID_in_explicitGenericInvocationSuffix4220); if (state.failed) return;
- pushFollow(FOLLOW_arguments_in_explicitGenericInvocationSuffix4222);
+ match(input,ID,FOLLOW_ID_in_explicitGenericInvocationSuffix4226); if (state.failed) return;
+ pushFollow(FOLLOW_arguments_in_explicitGenericInvocationSuffix4228);
arguments();
state._fsp--;
if (state.failed) return;
@@ -5824,7 +5827,7 @@ else if ( (true) ) {
// $ANTLR start "selector"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:701:1: selector : ( ( DOT super_key )=> DOT super_key superSuffix | ( DOT new_key )=> DOT new_key ( nonWildcardTypeArguments )? innerCreator | ( DOT ID )=> DOT ID ( ( LEFT_PAREN )=> arguments )? | ( NULL_SAFE_DOT ID )=> NULL_SAFE_DOT ID ( ( LEFT_PAREN )=> arguments )? | ( LEFT_SQUARE )=> LEFT_SQUARE expression RIGHT_SQUARE );
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:708:1: selector : ( ( DOT super_key )=> DOT super_key superSuffix | ( DOT new_key )=> DOT new_key ( nonWildcardTypeArguments )? innerCreator | ( DOT ID )=> DOT ID ( ( LEFT_PAREN )=> arguments )? | ( NULL_SAFE_DOT ID )=> NULL_SAFE_DOT ID ( ( LEFT_PAREN )=> arguments )? | ( LEFT_SQUARE )=> LEFT_SQUARE expression RIGHT_SQUARE );
public final void selector() throws RecognitionException {
Token DOT20=null;
Token DOT21=null;
@@ -5836,7 +5839,7 @@ public final void selector() throws RecognitionException {
Token RIGHT_SQUARE27=null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:702:5: ( ( DOT super_key )=> DOT super_key superSuffix | ( DOT new_key )=> DOT new_key ( nonWildcardTypeArguments )? innerCreator | ( DOT ID )=> DOT ID ( ( LEFT_PAREN )=> arguments )? | ( NULL_SAFE_DOT ID )=> NULL_SAFE_DOT ID ( ( LEFT_PAREN )=> arguments )? | ( LEFT_SQUARE )=> LEFT_SQUARE expression RIGHT_SQUARE )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:709:5: ( ( DOT super_key )=> DOT super_key superSuffix | ( DOT new_key )=> DOT new_key ( nonWildcardTypeArguments )? innerCreator | ( DOT ID )=> DOT ID ( ( LEFT_PAREN )=> arguments )? | ( NULL_SAFE_DOT ID )=> NULL_SAFE_DOT ID ( ( LEFT_PAREN )=> arguments )? | ( LEFT_SQUARE )=> LEFT_SQUARE expression RIGHT_SQUARE )
int alt92=5;
int LA92_0 = input.LA(1);
if ( (LA92_0==DOT) ) {
@@ -5874,30 +5877,30 @@ else if ( (LA92_0==LEFT_SQUARE) && (synpred47_DRL6Expressions())) {
switch (alt92) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:702:9: ( DOT super_key )=> DOT super_key superSuffix
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:709:9: ( DOT super_key )=> DOT super_key superSuffix
{
- DOT20=(Token)match(input,DOT,FOLLOW_DOT_in_selector4247); if (state.failed) return;
+ DOT20=(Token)match(input,DOT,FOLLOW_DOT_in_selector4253); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(DOT20, DroolsEditorType.SYMBOL); }
- pushFollow(FOLLOW_super_key_in_selector4251);
+ pushFollow(FOLLOW_super_key_in_selector4257);
super_key();
state._fsp--;
if (state.failed) return;
- pushFollow(FOLLOW_superSuffix_in_selector4253);
+ pushFollow(FOLLOW_superSuffix_in_selector4259);
superSuffix();
state._fsp--;
if (state.failed) return;
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:703:9: ( DOT new_key )=> DOT new_key ( nonWildcardTypeArguments )? innerCreator
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:710:9: ( DOT new_key )=> DOT new_key ( nonWildcardTypeArguments )? innerCreator
{
- DOT21=(Token)match(input,DOT,FOLLOW_DOT_in_selector4269); if (state.failed) return;
+ DOT21=(Token)match(input,DOT,FOLLOW_DOT_in_selector4275); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(DOT21, DroolsEditorType.SYMBOL); }
- pushFollow(FOLLOW_new_key_in_selector4273);
+ pushFollow(FOLLOW_new_key_in_selector4279);
new_key();
state._fsp--;
if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:703:84: ( nonWildcardTypeArguments )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:710:84: ( nonWildcardTypeArguments )?
int alt89=2;
int LA89_0 = input.LA(1);
if ( (LA89_0==LESS) ) {
@@ -5905,9 +5908,9 @@ else if ( (LA92_0==LEFT_SQUARE) && (synpred47_DRL6Expressions())) {
}
switch (alt89) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:703:85: nonWildcardTypeArguments
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:710:85: nonWildcardTypeArguments
{
- pushFollow(FOLLOW_nonWildcardTypeArguments_in_selector4276);
+ pushFollow(FOLLOW_nonWildcardTypeArguments_in_selector4282);
nonWildcardTypeArguments();
state._fsp--;
if (state.failed) return;
@@ -5916,20 +5919,20 @@ else if ( (LA92_0==LEFT_SQUARE) && (synpred47_DRL6Expressions())) {
}
- pushFollow(FOLLOW_innerCreator_in_selector4280);
+ pushFollow(FOLLOW_innerCreator_in_selector4286);
innerCreator();
state._fsp--;
if (state.failed) return;
}
break;
case 3 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:704:9: ( DOT ID )=> DOT ID ( ( LEFT_PAREN )=> arguments )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:711:9: ( DOT ID )=> DOT ID ( ( LEFT_PAREN )=> arguments )?
{
- DOT22=(Token)match(input,DOT,FOLLOW_DOT_in_selector4296); if (state.failed) return;
+ DOT22=(Token)match(input,DOT,FOLLOW_DOT_in_selector4302); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(DOT22, DroolsEditorType.SYMBOL); }
- ID23=(Token)match(input,ID,FOLLOW_ID_in_selector4318); if (state.failed) return;
+ ID23=(Token)match(input,ID,FOLLOW_ID_in_selector4324); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(ID23, DroolsEditorType.IDENTIFIER); }
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:706:19: ( ( LEFT_PAREN )=> arguments )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:713:19: ( ( LEFT_PAREN )=> arguments )?
int alt90=2;
int LA90_0 = input.LA(1);
if ( (LA90_0==LEFT_PAREN) ) {
@@ -5940,9 +5943,9 @@ else if ( (LA92_0==LEFT_SQUARE) && (synpred47_DRL6Expressions())) {
}
switch (alt90) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:706:20: ( LEFT_PAREN )=> arguments
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:713:20: ( LEFT_PAREN )=> arguments
{
- pushFollow(FOLLOW_arguments_in_selector4347);
+ pushFollow(FOLLOW_arguments_in_selector4353);
arguments();
state._fsp--;
if (state.failed) return;
@@ -5954,13 +5957,13 @@ else if ( (LA92_0==LEFT_SQUARE) && (synpred47_DRL6Expressions())) {
}
break;
case 4 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:707:9: ( NULL_SAFE_DOT ID )=> NULL_SAFE_DOT ID ( ( LEFT_PAREN )=> arguments )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:714:9: ( NULL_SAFE_DOT ID )=> NULL_SAFE_DOT ID ( ( LEFT_PAREN )=> arguments )?
{
- NULL_SAFE_DOT24=(Token)match(input,NULL_SAFE_DOT,FOLLOW_NULL_SAFE_DOT_in_selector4365); if (state.failed) return;
+ NULL_SAFE_DOT24=(Token)match(input,NULL_SAFE_DOT,FOLLOW_NULL_SAFE_DOT_in_selector4371); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(NULL_SAFE_DOT24, DroolsEditorType.SYMBOL); }
- ID25=(Token)match(input,ID,FOLLOW_ID_in_selector4387); if (state.failed) return;
+ ID25=(Token)match(input,ID,FOLLOW_ID_in_selector4393); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(ID25, DroolsEditorType.IDENTIFIER); }
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:709:19: ( ( LEFT_PAREN )=> arguments )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:716:19: ( ( LEFT_PAREN )=> arguments )?
int alt91=2;
int LA91_0 = input.LA(1);
if ( (LA91_0==LEFT_PAREN) ) {
@@ -5971,9 +5974,9 @@ else if ( (LA92_0==LEFT_SQUARE) && (synpred47_DRL6Expressions())) {
}
switch (alt91) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:709:20: ( LEFT_PAREN )=> arguments
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:716:20: ( LEFT_PAREN )=> arguments
{
- pushFollow(FOLLOW_arguments_in_selector4416);
+ pushFollow(FOLLOW_arguments_in_selector4422);
arguments();
state._fsp--;
if (state.failed) return;
@@ -5985,15 +5988,15 @@ else if ( (LA92_0==LEFT_SQUARE) && (synpred47_DRL6Expressions())) {
}
break;
case 5 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:711:9: ( LEFT_SQUARE )=> LEFT_SQUARE expression RIGHT_SQUARE
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:718:9: ( LEFT_SQUARE )=> LEFT_SQUARE expression RIGHT_SQUARE
{
- LEFT_SQUARE26=(Token)match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_selector4437); if (state.failed) return;
+ LEFT_SQUARE26=(Token)match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_selector4443); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(LEFT_SQUARE26, DroolsEditorType.SYMBOL); }
- pushFollow(FOLLOW_expression_in_selector4464);
+ pushFollow(FOLLOW_expression_in_selector4470);
expression();
state._fsp--;
if (state.failed) return;
- RIGHT_SQUARE27=(Token)match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_selector4489); if (state.failed) return;
+ RIGHT_SQUARE27=(Token)match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_selector4495); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(RIGHT_SQUARE27, DroolsEditorType.SYMBOL); }
}
break;
@@ -6014,10 +6017,10 @@ else if ( (LA92_0==LEFT_SQUARE) && (synpred47_DRL6Expressions())) {
// $ANTLR start "superSuffix"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:716:1: superSuffix : ( arguments | DOT ID ( ( LEFT_PAREN )=> arguments )? );
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:723:1: superSuffix : ( arguments | DOT ID ( ( LEFT_PAREN )=> arguments )? );
public final void superSuffix() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:717:5: ( arguments | DOT ID ( ( LEFT_PAREN )=> arguments )? )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:724:5: ( arguments | DOT ID ( ( LEFT_PAREN )=> arguments )? )
int alt94=2;
int LA94_0 = input.LA(1);
if ( (LA94_0==LEFT_PAREN) ) {
@@ -6036,20 +6039,20 @@ else if ( (LA94_0==DOT) ) {
switch (alt94) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:717:7: arguments
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:724:7: arguments
{
- pushFollow(FOLLOW_arguments_in_superSuffix4508);
+ pushFollow(FOLLOW_arguments_in_superSuffix4514);
arguments();
state._fsp--;
if (state.failed) return;
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:718:10: DOT ID ( ( LEFT_PAREN )=> arguments )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:725:10: DOT ID ( ( LEFT_PAREN )=> arguments )?
{
- match(input,DOT,FOLLOW_DOT_in_superSuffix4519); if (state.failed) return;
- match(input,ID,FOLLOW_ID_in_superSuffix4521); if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:718:17: ( ( LEFT_PAREN )=> arguments )?
+ match(input,DOT,FOLLOW_DOT_in_superSuffix4525); if (state.failed) return;
+ match(input,ID,FOLLOW_ID_in_superSuffix4527); if (state.failed) return;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:725:17: ( ( LEFT_PAREN )=> arguments )?
int alt93=2;
int LA93_0 = input.LA(1);
if ( (LA93_0==LEFT_PAREN) ) {
@@ -6060,9 +6063,9 @@ else if ( (LA94_0==DOT) ) {
}
switch (alt93) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:718:18: ( LEFT_PAREN )=> arguments
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:725:18: ( LEFT_PAREN )=> arguments
{
- pushFollow(FOLLOW_arguments_in_superSuffix4530);
+ pushFollow(FOLLOW_arguments_in_superSuffix4536);
arguments();
state._fsp--;
if (state.failed) return;
@@ -6090,7 +6093,7 @@ else if ( (LA94_0==DOT) ) {
// $ANTLR start "squareArguments"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:721:1: squareArguments returns [java.util.List args] : LEFT_SQUARE (el= expressionList )? RIGHT_SQUARE ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:728:1: squareArguments returns [java.util.List args] : LEFT_SQUARE (el= expressionList )? RIGHT_SQUARE ;
public final java.util.List squareArguments() throws RecognitionException {
java.util.List args = null;
@@ -6098,11 +6101,11 @@ public final java.util.List squareArguments() throws RecognitionExceptio
java.util.List el =null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:722:5: ( LEFT_SQUARE (el= expressionList )? RIGHT_SQUARE )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:722:7: LEFT_SQUARE (el= expressionList )? RIGHT_SQUARE
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:729:5: ( LEFT_SQUARE (el= expressionList )? RIGHT_SQUARE )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:729:7: LEFT_SQUARE (el= expressionList )? RIGHT_SQUARE
{
- match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_squareArguments4553); if (state.failed) return args;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:722:19: (el= expressionList )?
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_squareArguments4559); if (state.failed) return args;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:729:19: (el= expressionList )?
int alt95=2;
int LA95_0 = input.LA(1);
if ( (LA95_0==BOOL||(LA95_0 >= DECIMAL && LA95_0 <= DIV)||LA95_0==DOT||LA95_0==FLOAT||LA95_0==HEX||(LA95_0 >= ID && LA95_0 <= INCR)||(LA95_0 >= LEFT_PAREN && LA95_0 <= LESS)||LA95_0==MINUS||LA95_0==NEGATION||LA95_0==NULL||LA95_0==PLUS||LA95_0==QUESTION_DIV||(LA95_0 >= STAR && LA95_0 <= TIME_INTERVAL)) ) {
@@ -6110,9 +6113,9 @@ public final java.util.List squareArguments() throws RecognitionExceptio
}
switch (alt95) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:722:20: el= expressionList
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:729:20: el= expressionList
{
- pushFollow(FOLLOW_expressionList_in_squareArguments4558);
+ pushFollow(FOLLOW_expressionList_in_squareArguments4564);
el=expressionList();
state._fsp--;
if (state.failed) return args;
@@ -6122,7 +6125,7 @@ public final java.util.List squareArguments() throws RecognitionExceptio
}
- match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_squareArguments4564); if (state.failed) return args;
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_squareArguments4570); if (state.failed) return args;
}
}
@@ -6141,18 +6144,18 @@ public final java.util.List squareArguments() throws RecognitionExceptio
// $ANTLR start "arguments"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:725:1: arguments : LEFT_PAREN ( expressionList )? RIGHT_PAREN ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:732:1: arguments : LEFT_PAREN ( expressionList )? RIGHT_PAREN ;
public final void arguments() throws RecognitionException {
Token LEFT_PAREN28=null;
Token RIGHT_PAREN29=null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:726:5: ( LEFT_PAREN ( expressionList )? RIGHT_PAREN )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:726:7: LEFT_PAREN ( expressionList )? RIGHT_PAREN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:733:5: ( LEFT_PAREN ( expressionList )? RIGHT_PAREN )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:733:7: LEFT_PAREN ( expressionList )? RIGHT_PAREN
{
- LEFT_PAREN28=(Token)match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_arguments4581); if (state.failed) return;
+ LEFT_PAREN28=(Token)match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_arguments4587); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(LEFT_PAREN28, DroolsEditorType.SYMBOL); }
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:727:9: ( expressionList )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:734:9: ( expressionList )?
int alt96=2;
int LA96_0 = input.LA(1);
if ( (LA96_0==BOOL||(LA96_0 >= DECIMAL && LA96_0 <= DIV)||LA96_0==DOT||LA96_0==FLOAT||LA96_0==HEX||(LA96_0 >= ID && LA96_0 <= INCR)||(LA96_0 >= LEFT_PAREN && LA96_0 <= LESS)||LA96_0==MINUS||LA96_0==NEGATION||LA96_0==NULL||LA96_0==PLUS||LA96_0==QUESTION_DIV||(LA96_0 >= STAR && LA96_0 <= TIME_INTERVAL)) ) {
@@ -6160,9 +6163,9 @@ public final void arguments() throws RecognitionException {
}
switch (alt96) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:727:9: expressionList
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:734:9: expressionList
{
- pushFollow(FOLLOW_expressionList_in_arguments4593);
+ pushFollow(FOLLOW_expressionList_in_arguments4599);
expressionList();
state._fsp--;
if (state.failed) return;
@@ -6171,7 +6174,7 @@ public final void arguments() throws RecognitionException {
}
- RIGHT_PAREN29=(Token)match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_arguments4604); if (state.failed) return;
+ RIGHT_PAREN29=(Token)match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_arguments4610); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(RIGHT_PAREN29, DroolsEditorType.SYMBOL); }
}
@@ -6190,7 +6193,7 @@ public final void arguments() throws RecognitionException {
// $ANTLR start "expressionList"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:731:1: expressionList returns [java.util.List exprs] : f= expression ( COMMA s= expression )* ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:738:1: expressionList returns [java.util.List exprs] : f= expression ( COMMA s= expression )* ;
public final java.util.List expressionList() throws RecognitionException {
java.util.List exprs = null;
@@ -6200,15 +6203,15 @@ public final java.util.List expressionList() throws RecognitionException
exprs = new java.util.ArrayList();
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:733:3: (f= expression ( COMMA s= expression )* )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:733:7: f= expression ( COMMA s= expression )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:740:3: (f= expression ( COMMA s= expression )* )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:740:7: f= expression ( COMMA s= expression )*
{
- pushFollow(FOLLOW_expression_in_expressionList4634);
+ pushFollow(FOLLOW_expression_in_expressionList4640);
f=expression();
state._fsp--;
if (state.failed) return exprs;
if ( state.backtracking==0 ) { exprs.add( (f!=null?input.toString(f.start,f.stop):null) ); }
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:734:7: ( COMMA s= expression )*
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:741:7: ( COMMA s= expression )*
loop97:
while (true) {
int alt97=2;
@@ -6219,10 +6222,10 @@ public final java.util.List expressionList() throws RecognitionException
switch (alt97) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:734:8: COMMA s= expression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:741:8: COMMA s= expression
{
- match(input,COMMA,FOLLOW_COMMA_in_expressionList4645); if (state.failed) return exprs;
- pushFollow(FOLLOW_expression_in_expressionList4649);
+ match(input,COMMA,FOLLOW_COMMA_in_expressionList4651); if (state.failed) return exprs;
+ pushFollow(FOLLOW_expression_in_expressionList4655);
s=expression();
state._fsp--;
if (state.failed) return exprs;
@@ -6253,10 +6256,10 @@ public final java.util.List expressionList() throws RecognitionException
// $ANTLR start "assignmentOperator"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:737:1: assignmentOperator : ( EQUALS_ASSIGN | PLUS_ASSIGN | MINUS_ASSIGN | MULT_ASSIGN | DIV_ASSIGN | AND_ASSIGN | OR_ASSIGN | XOR_ASSIGN | MOD_ASSIGN | LESS LESS EQUALS_ASSIGN | ( GREATER GREATER GREATER )=> GREATER GREATER GREATER EQUALS_ASSIGN | ( GREATER GREATER )=> GREATER GREATER EQUALS_ASSIGN );
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:744:1: assignmentOperator : ( EQUALS_ASSIGN | PLUS_ASSIGN | MINUS_ASSIGN | MULT_ASSIGN | DIV_ASSIGN | AND_ASSIGN | OR_ASSIGN | XOR_ASSIGN | MOD_ASSIGN | LESS LESS EQUALS_ASSIGN | ( GREATER GREATER GREATER )=> GREATER GREATER GREATER EQUALS_ASSIGN | ( GREATER GREATER )=> GREATER GREATER EQUALS_ASSIGN );
public final void assignmentOperator() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:738:5: ( EQUALS_ASSIGN | PLUS_ASSIGN | MINUS_ASSIGN | MULT_ASSIGN | DIV_ASSIGN | AND_ASSIGN | OR_ASSIGN | XOR_ASSIGN | MOD_ASSIGN | LESS LESS EQUALS_ASSIGN | ( GREATER GREATER GREATER )=> GREATER GREATER GREATER EQUALS_ASSIGN | ( GREATER GREATER )=> GREATER GREATER EQUALS_ASSIGN )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:745:5: ( EQUALS_ASSIGN | PLUS_ASSIGN | MINUS_ASSIGN | MULT_ASSIGN | DIV_ASSIGN | AND_ASSIGN | OR_ASSIGN | XOR_ASSIGN | MOD_ASSIGN | LESS LESS EQUALS_ASSIGN | ( GREATER GREATER GREATER )=> GREATER GREATER GREATER EQUALS_ASSIGN | ( GREATER GREATER )=> GREATER GREATER EQUALS_ASSIGN )
int alt98=12;
switch ( input.LA(1) ) {
case EQUALS_ASSIGN:
@@ -6346,82 +6349,82 @@ else if ( (LA98_12==EQUALS_ASSIGN) && (synpred50_DRL6Expressions())) {
}
switch (alt98) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:738:9: EQUALS_ASSIGN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:745:9: EQUALS_ASSIGN
{
- match(input,EQUALS_ASSIGN,FOLLOW_EQUALS_ASSIGN_in_assignmentOperator4670); if (state.failed) return;
+ match(input,EQUALS_ASSIGN,FOLLOW_EQUALS_ASSIGN_in_assignmentOperator4676); if (state.failed) return;
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:739:7: PLUS_ASSIGN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:746:7: PLUS_ASSIGN
{
- match(input,PLUS_ASSIGN,FOLLOW_PLUS_ASSIGN_in_assignmentOperator4678); if (state.failed) return;
+ match(input,PLUS_ASSIGN,FOLLOW_PLUS_ASSIGN_in_assignmentOperator4684); if (state.failed) return;
}
break;
case 3 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:740:7: MINUS_ASSIGN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:747:7: MINUS_ASSIGN
{
- match(input,MINUS_ASSIGN,FOLLOW_MINUS_ASSIGN_in_assignmentOperator4686); if (state.failed) return;
+ match(input,MINUS_ASSIGN,FOLLOW_MINUS_ASSIGN_in_assignmentOperator4692); if (state.failed) return;
}
break;
case 4 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:741:7: MULT_ASSIGN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:748:7: MULT_ASSIGN
{
- match(input,MULT_ASSIGN,FOLLOW_MULT_ASSIGN_in_assignmentOperator4694); if (state.failed) return;
+ match(input,MULT_ASSIGN,FOLLOW_MULT_ASSIGN_in_assignmentOperator4700); if (state.failed) return;
}
break;
case 5 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:742:7: DIV_ASSIGN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:749:7: DIV_ASSIGN
{
- match(input,DIV_ASSIGN,FOLLOW_DIV_ASSIGN_in_assignmentOperator4702); if (state.failed) return;
+ match(input,DIV_ASSIGN,FOLLOW_DIV_ASSIGN_in_assignmentOperator4708); if (state.failed) return;
}
break;
case 6 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:743:7: AND_ASSIGN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:750:7: AND_ASSIGN
{
- match(input,AND_ASSIGN,FOLLOW_AND_ASSIGN_in_assignmentOperator4710); if (state.failed) return;
+ match(input,AND_ASSIGN,FOLLOW_AND_ASSIGN_in_assignmentOperator4716); if (state.failed) return;
}
break;
case 7 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:744:7: OR_ASSIGN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:751:7: OR_ASSIGN
{
- match(input,OR_ASSIGN,FOLLOW_OR_ASSIGN_in_assignmentOperator4718); if (state.failed) return;
+ match(input,OR_ASSIGN,FOLLOW_OR_ASSIGN_in_assignmentOperator4724); if (state.failed) return;
}
break;
case 8 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:745:7: XOR_ASSIGN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:752:7: XOR_ASSIGN
{
- match(input,XOR_ASSIGN,FOLLOW_XOR_ASSIGN_in_assignmentOperator4726); if (state.failed) return;
+ match(input,XOR_ASSIGN,FOLLOW_XOR_ASSIGN_in_assignmentOperator4732); if (state.failed) return;
}
break;
case 9 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:746:7: MOD_ASSIGN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:753:7: MOD_ASSIGN
{
- match(input,MOD_ASSIGN,FOLLOW_MOD_ASSIGN_in_assignmentOperator4734); if (state.failed) return;
+ match(input,MOD_ASSIGN,FOLLOW_MOD_ASSIGN_in_assignmentOperator4740); if (state.failed) return;
}
break;
case 10 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:747:7: LESS LESS EQUALS_ASSIGN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:754:7: LESS LESS EQUALS_ASSIGN
{
- match(input,LESS,FOLLOW_LESS_in_assignmentOperator4742); if (state.failed) return;
- match(input,LESS,FOLLOW_LESS_in_assignmentOperator4744); if (state.failed) return;
- match(input,EQUALS_ASSIGN,FOLLOW_EQUALS_ASSIGN_in_assignmentOperator4746); if (state.failed) return;
+ match(input,LESS,FOLLOW_LESS_in_assignmentOperator4748); if (state.failed) return;
+ match(input,LESS,FOLLOW_LESS_in_assignmentOperator4750); if (state.failed) return;
+ match(input,EQUALS_ASSIGN,FOLLOW_EQUALS_ASSIGN_in_assignmentOperator4752); if (state.failed) return;
}
break;
case 11 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:748:7: ( GREATER GREATER GREATER )=> GREATER GREATER GREATER EQUALS_ASSIGN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:755:7: ( GREATER GREATER GREATER )=> GREATER GREATER GREATER EQUALS_ASSIGN
{
- match(input,GREATER,FOLLOW_GREATER_in_assignmentOperator4763); if (state.failed) return;
- match(input,GREATER,FOLLOW_GREATER_in_assignmentOperator4765); if (state.failed) return;
- match(input,GREATER,FOLLOW_GREATER_in_assignmentOperator4767); if (state.failed) return;
- match(input,EQUALS_ASSIGN,FOLLOW_EQUALS_ASSIGN_in_assignmentOperator4769); if (state.failed) return;
+ match(input,GREATER,FOLLOW_GREATER_in_assignmentOperator4769); if (state.failed) return;
+ match(input,GREATER,FOLLOW_GREATER_in_assignmentOperator4771); if (state.failed) return;
+ match(input,GREATER,FOLLOW_GREATER_in_assignmentOperator4773); if (state.failed) return;
+ match(input,EQUALS_ASSIGN,FOLLOW_EQUALS_ASSIGN_in_assignmentOperator4775); if (state.failed) return;
}
break;
case 12 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:749:7: ( GREATER GREATER )=> GREATER GREATER EQUALS_ASSIGN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:756:7: ( GREATER GREATER )=> GREATER GREATER EQUALS_ASSIGN
{
- match(input,GREATER,FOLLOW_GREATER_in_assignmentOperator4784); if (state.failed) return;
- match(input,GREATER,FOLLOW_GREATER_in_assignmentOperator4786); if (state.failed) return;
- match(input,EQUALS_ASSIGN,FOLLOW_EQUALS_ASSIGN_in_assignmentOperator4788); if (state.failed) return;
+ match(input,GREATER,FOLLOW_GREATER_in_assignmentOperator4790); if (state.failed) return;
+ match(input,GREATER,FOLLOW_GREATER_in_assignmentOperator4792); if (state.failed) return;
+ match(input,EQUALS_ASSIGN,FOLLOW_EQUALS_ASSIGN_in_assignmentOperator4794); if (state.failed) return;
}
break;
@@ -6441,19 +6444,19 @@ else if ( (LA98_12==EQUALS_ASSIGN) && (synpred50_DRL6Expressions())) {
// $ANTLR start "extends_key"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:755:1: extends_key :{...}? =>id= ID ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:762:1: extends_key :{...}? =>id= ID ;
public final void extends_key() throws RecognitionException {
Token id=null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:756:5: ({...}? =>id= ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:756:12: {...}? =>id= ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:763:5: ({...}? =>id= ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:763:12: {...}? =>id= ID
{
if ( !(((helper.validateIdentifierKey(DroolsSoftKeywords.EXTENDS)))) ) {
if (state.backtracking>0) {state.failed=true; return;}
throw new FailedPredicateException(input, "extends_key", "(helper.validateIdentifierKey(DroolsSoftKeywords.EXTENDS))");
}
- id=(Token)match(input,ID,FOLLOW_ID_in_extends_key4818); if (state.failed) return;
+ id=(Token)match(input,ID,FOLLOW_ID_in_extends_key4824); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(id, DroolsEditorType.KEYWORD); }
}
@@ -6472,19 +6475,19 @@ public final void extends_key() throws RecognitionException {
// $ANTLR start "super_key"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:759:1: super_key :{...}? =>id= ID ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:766:1: super_key :{...}? =>id= ID ;
public final void super_key() throws RecognitionException {
Token id=null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:760:5: ({...}? =>id= ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:760:12: {...}? =>id= ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:767:5: ({...}? =>id= ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:767:12: {...}? =>id= ID
{
if ( !(((helper.validateIdentifierKey(DroolsSoftKeywords.SUPER)))) ) {
if (state.backtracking>0) {state.failed=true; return;}
throw new FailedPredicateException(input, "super_key", "(helper.validateIdentifierKey(DroolsSoftKeywords.SUPER))");
}
- id=(Token)match(input,ID,FOLLOW_ID_in_super_key4847); if (state.failed) return;
+ id=(Token)match(input,ID,FOLLOW_ID_in_super_key4853); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(id, DroolsEditorType.KEYWORD); }
}
@@ -6506,7 +6509,7 @@ public static class instanceof_key_return extends ParserRuleReturnScope {
// $ANTLR start "instanceof_key"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:763:1: instanceof_key :{...}? =>id= ID ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:770:1: instanceof_key :{...}? =>id= ID ;
public final DRL6Expressions.instanceof_key_return instanceof_key() throws RecognitionException {
DRL6Expressions.instanceof_key_return retval = new DRL6Expressions.instanceof_key_return();
retval.start = input.LT(1);
@@ -6514,14 +6517,14 @@ public final DRL6Expressions.instanceof_key_return instanceof_key() throws Recog
Token id=null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:764:5: ({...}? =>id= ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:764:12: {...}? =>id= ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:771:5: ({...}? =>id= ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:771:12: {...}? =>id= ID
{
if ( !(((helper.validateIdentifierKey(DroolsSoftKeywords.INSTANCEOF)))) ) {
if (state.backtracking>0) {state.failed=true; return retval;}
throw new FailedPredicateException(input, "instanceof_key", "(helper.validateIdentifierKey(DroolsSoftKeywords.INSTANCEOF))");
}
- id=(Token)match(input,ID,FOLLOW_ID_in_instanceof_key4876); if (state.failed) return retval;
+ id=(Token)match(input,ID,FOLLOW_ID_in_instanceof_key4882); if (state.failed) return retval;
if ( state.backtracking==0 ) { helper.emit(id, DroolsEditorType.KEYWORD); }
}
@@ -6543,19 +6546,19 @@ public final DRL6Expressions.instanceof_key_return instanceof_key() throws Recog
// $ANTLR start "boolean_key"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:767:1: boolean_key :{...}? =>id= ID ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:774:1: boolean_key :{...}? =>id= ID ;
public final void boolean_key() throws RecognitionException {
Token id=null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:768:5: ({...}? =>id= ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:768:12: {...}? =>id= ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:775:5: ({...}? =>id= ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:775:12: {...}? =>id= ID
{
if ( !(((helper.validateIdentifierKey(DroolsSoftKeywords.BOOLEAN)))) ) {
if (state.backtracking>0) {state.failed=true; return;}
throw new FailedPredicateException(input, "boolean_key", "(helper.validateIdentifierKey(DroolsSoftKeywords.BOOLEAN))");
}
- id=(Token)match(input,ID,FOLLOW_ID_in_boolean_key4905); if (state.failed) return;
+ id=(Token)match(input,ID,FOLLOW_ID_in_boolean_key4911); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(id, DroolsEditorType.KEYWORD); }
}
@@ -6574,19 +6577,19 @@ public final void boolean_key() throws RecognitionException {
// $ANTLR start "char_key"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:771:1: char_key :{...}? =>id= ID ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:778:1: char_key :{...}? =>id= ID ;
public final void char_key() throws RecognitionException {
Token id=null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:772:5: ({...}? =>id= ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:772:12: {...}? =>id= ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:779:5: ({...}? =>id= ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:779:12: {...}? =>id= ID
{
if ( !(((helper.validateIdentifierKey(DroolsSoftKeywords.CHAR)))) ) {
if (state.backtracking>0) {state.failed=true; return;}
throw new FailedPredicateException(input, "char_key", "(helper.validateIdentifierKey(DroolsSoftKeywords.CHAR))");
}
- id=(Token)match(input,ID,FOLLOW_ID_in_char_key4934); if (state.failed) return;
+ id=(Token)match(input,ID,FOLLOW_ID_in_char_key4940); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(id, DroolsEditorType.KEYWORD); }
}
@@ -6605,19 +6608,19 @@ public final void char_key() throws RecognitionException {
// $ANTLR start "byte_key"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:775:1: byte_key :{...}? =>id= ID ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:782:1: byte_key :{...}? =>id= ID ;
public final void byte_key() throws RecognitionException {
Token id=null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:776:5: ({...}? =>id= ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:776:12: {...}? =>id= ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:783:5: ({...}? =>id= ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:783:12: {...}? =>id= ID
{
if ( !(((helper.validateIdentifierKey(DroolsSoftKeywords.BYTE)))) ) {
if (state.backtracking>0) {state.failed=true; return;}
throw new FailedPredicateException(input, "byte_key", "(helper.validateIdentifierKey(DroolsSoftKeywords.BYTE))");
}
- id=(Token)match(input,ID,FOLLOW_ID_in_byte_key4963); if (state.failed) return;
+ id=(Token)match(input,ID,FOLLOW_ID_in_byte_key4969); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(id, DroolsEditorType.KEYWORD); }
}
@@ -6636,19 +6639,19 @@ public final void byte_key() throws RecognitionException {
// $ANTLR start "short_key"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:779:1: short_key :{...}? =>id= ID ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:786:1: short_key :{...}? =>id= ID ;
public final void short_key() throws RecognitionException {
Token id=null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:780:5: ({...}? =>id= ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:780:12: {...}? =>id= ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:787:5: ({...}? =>id= ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:787:12: {...}? =>id= ID
{
if ( !(((helper.validateIdentifierKey(DroolsSoftKeywords.SHORT)))) ) {
if (state.backtracking>0) {state.failed=true; return;}
throw new FailedPredicateException(input, "short_key", "(helper.validateIdentifierKey(DroolsSoftKeywords.SHORT))");
}
- id=(Token)match(input,ID,FOLLOW_ID_in_short_key4992); if (state.failed) return;
+ id=(Token)match(input,ID,FOLLOW_ID_in_short_key4998); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(id, DroolsEditorType.KEYWORD); }
}
@@ -6667,19 +6670,19 @@ public final void short_key() throws RecognitionException {
// $ANTLR start "int_key"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:783:1: int_key :{...}? =>id= ID ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:790:1: int_key :{...}? =>id= ID ;
public final void int_key() throws RecognitionException {
Token id=null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:784:5: ({...}? =>id= ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:784:12: {...}? =>id= ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:791:5: ({...}? =>id= ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:791:12: {...}? =>id= ID
{
if ( !(((helper.validateIdentifierKey(DroolsSoftKeywords.INT)))) ) {
if (state.backtracking>0) {state.failed=true; return;}
throw new FailedPredicateException(input, "int_key", "(helper.validateIdentifierKey(DroolsSoftKeywords.INT))");
}
- id=(Token)match(input,ID,FOLLOW_ID_in_int_key5021); if (state.failed) return;
+ id=(Token)match(input,ID,FOLLOW_ID_in_int_key5027); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(id, DroolsEditorType.KEYWORD); }
}
@@ -6698,19 +6701,19 @@ public final void int_key() throws RecognitionException {
// $ANTLR start "float_key"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:787:1: float_key :{...}? =>id= ID ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:794:1: float_key :{...}? =>id= ID ;
public final void float_key() throws RecognitionException {
Token id=null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:788:5: ({...}? =>id= ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:788:12: {...}? =>id= ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:795:5: ({...}? =>id= ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:795:12: {...}? =>id= ID
{
if ( !(((helper.validateIdentifierKey(DroolsSoftKeywords.FLOAT)))) ) {
if (state.backtracking>0) {state.failed=true; return;}
throw new FailedPredicateException(input, "float_key", "(helper.validateIdentifierKey(DroolsSoftKeywords.FLOAT))");
}
- id=(Token)match(input,ID,FOLLOW_ID_in_float_key5050); if (state.failed) return;
+ id=(Token)match(input,ID,FOLLOW_ID_in_float_key5056); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(id, DroolsEditorType.KEYWORD); }
}
@@ -6729,19 +6732,19 @@ public final void float_key() throws RecognitionException {
// $ANTLR start "long_key"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:791:1: long_key :{...}? =>id= ID ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:798:1: long_key :{...}? =>id= ID ;
public final void long_key() throws RecognitionException {
Token id=null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:792:5: ({...}? =>id= ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:792:12: {...}? =>id= ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:799:5: ({...}? =>id= ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:799:12: {...}? =>id= ID
{
if ( !(((helper.validateIdentifierKey(DroolsSoftKeywords.LONG)))) ) {
if (state.backtracking>0) {state.failed=true; return;}
throw new FailedPredicateException(input, "long_key", "(helper.validateIdentifierKey(DroolsSoftKeywords.LONG))");
}
- id=(Token)match(input,ID,FOLLOW_ID_in_long_key5079); if (state.failed) return;
+ id=(Token)match(input,ID,FOLLOW_ID_in_long_key5085); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(id, DroolsEditorType.KEYWORD); }
}
@@ -6760,19 +6763,19 @@ public final void long_key() throws RecognitionException {
// $ANTLR start "double_key"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:795:1: double_key :{...}? =>id= ID ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:802:1: double_key :{...}? =>id= ID ;
public final void double_key() throws RecognitionException {
Token id=null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:796:5: ({...}? =>id= ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:796:12: {...}? =>id= ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:803:5: ({...}? =>id= ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:803:12: {...}? =>id= ID
{
if ( !(((helper.validateIdentifierKey(DroolsSoftKeywords.DOUBLE)))) ) {
if (state.backtracking>0) {state.failed=true; return;}
throw new FailedPredicateException(input, "double_key", "(helper.validateIdentifierKey(DroolsSoftKeywords.DOUBLE))");
}
- id=(Token)match(input,ID,FOLLOW_ID_in_double_key5108); if (state.failed) return;
+ id=(Token)match(input,ID,FOLLOW_ID_in_double_key5114); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(id, DroolsEditorType.KEYWORD); }
}
@@ -6791,19 +6794,19 @@ public final void double_key() throws RecognitionException {
// $ANTLR start "void_key"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:799:1: void_key :{...}? =>id= ID ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:806:1: void_key :{...}? =>id= ID ;
public final void void_key() throws RecognitionException {
Token id=null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:800:5: ({...}? =>id= ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:800:12: {...}? =>id= ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:807:5: ({...}? =>id= ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:807:12: {...}? =>id= ID
{
if ( !(((helper.validateIdentifierKey(DroolsSoftKeywords.VOID)))) ) {
if (state.backtracking>0) {state.failed=true; return;}
throw new FailedPredicateException(input, "void_key", "(helper.validateIdentifierKey(DroolsSoftKeywords.VOID))");
}
- id=(Token)match(input,ID,FOLLOW_ID_in_void_key5137); if (state.failed) return;
+ id=(Token)match(input,ID,FOLLOW_ID_in_void_key5143); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(id, DroolsEditorType.KEYWORD); }
}
@@ -6822,19 +6825,19 @@ public final void void_key() throws RecognitionException {
// $ANTLR start "this_key"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:803:1: this_key :{...}? =>id= ID ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:810:1: this_key :{...}? =>id= ID ;
public final void this_key() throws RecognitionException {
Token id=null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:804:5: ({...}? =>id= ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:804:12: {...}? =>id= ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:811:5: ({...}? =>id= ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:811:12: {...}? =>id= ID
{
if ( !(((helper.validateIdentifierKey(DroolsSoftKeywords.THIS)))) ) {
if (state.backtracking>0) {state.failed=true; return;}
throw new FailedPredicateException(input, "this_key", "(helper.validateIdentifierKey(DroolsSoftKeywords.THIS))");
}
- id=(Token)match(input,ID,FOLLOW_ID_in_this_key5166); if (state.failed) return;
+ id=(Token)match(input,ID,FOLLOW_ID_in_this_key5172); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(id, DroolsEditorType.KEYWORD); }
}
@@ -6853,19 +6856,19 @@ public final void this_key() throws RecognitionException {
// $ANTLR start "class_key"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:807:1: class_key :{...}? =>id= ID ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:814:1: class_key :{...}? =>id= ID ;
public final void class_key() throws RecognitionException {
Token id=null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:808:5: ({...}? =>id= ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:808:12: {...}? =>id= ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:815:5: ({...}? =>id= ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:815:12: {...}? =>id= ID
{
if ( !(((helper.validateIdentifierKey(DroolsSoftKeywords.CLASS)))) ) {
if (state.backtracking>0) {state.failed=true; return;}
throw new FailedPredicateException(input, "class_key", "(helper.validateIdentifierKey(DroolsSoftKeywords.CLASS))");
}
- id=(Token)match(input,ID,FOLLOW_ID_in_class_key5195); if (state.failed) return;
+ id=(Token)match(input,ID,FOLLOW_ID_in_class_key5201); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(id, DroolsEditorType.KEYWORD); }
}
@@ -6884,19 +6887,19 @@ public final void class_key() throws RecognitionException {
// $ANTLR start "new_key"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:811:1: new_key :{...}? =>id= ID ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:818:1: new_key :{...}? =>id= ID ;
public final void new_key() throws RecognitionException {
Token id=null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:812:5: ({...}? =>id= ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:812:12: {...}? =>id= ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:819:5: ({...}? =>id= ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:819:12: {...}? =>id= ID
{
if ( !(((helper.validateIdentifierKey(DroolsSoftKeywords.NEW)))) ) {
if (state.backtracking>0) {state.failed=true; return;}
throw new FailedPredicateException(input, "new_key", "(helper.validateIdentifierKey(DroolsSoftKeywords.NEW))");
}
- id=(Token)match(input,ID,FOLLOW_ID_in_new_key5225); if (state.failed) return;
+ id=(Token)match(input,ID,FOLLOW_ID_in_new_key5231); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(id, DroolsEditorType.KEYWORD); }
}
@@ -6915,19 +6918,19 @@ public final void new_key() throws RecognitionException {
// $ANTLR start "not_key"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:815:1: not_key :{...}? =>id= ID ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:822:1: not_key :{...}? =>id= ID ;
public final void not_key() throws RecognitionException {
Token id=null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:816:5: ({...}? =>id= ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:816:12: {...}? =>id= ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:823:5: ({...}? =>id= ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:823:12: {...}? =>id= ID
{
if ( !(((helper.validateIdentifierKey(DroolsSoftKeywords.NOT)))) ) {
if (state.backtracking>0) {state.failed=true; return;}
throw new FailedPredicateException(input, "not_key", "(helper.validateIdentifierKey(DroolsSoftKeywords.NOT))");
}
- id=(Token)match(input,ID,FOLLOW_ID_in_not_key5254); if (state.failed) return;
+ id=(Token)match(input,ID,FOLLOW_ID_in_not_key5260); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(id, DroolsEditorType.KEYWORD); }
}
@@ -6946,19 +6949,19 @@ public final void not_key() throws RecognitionException {
// $ANTLR start "in_key"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:819:1: in_key :{...}? =>id= ID ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:826:1: in_key :{...}? =>id= ID ;
public final void in_key() throws RecognitionException {
Token id=null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:820:3: ({...}? =>id= ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:820:10: {...}? =>id= ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:827:3: ({...}? =>id= ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:827:10: {...}? =>id= ID
{
if ( !(((helper.validateIdentifierKey(DroolsSoftKeywords.IN)))) ) {
if (state.backtracking>0) {state.failed=true; return;}
throw new FailedPredicateException(input, "in_key", "(helper.validateIdentifierKey(DroolsSoftKeywords.IN))");
}
- id=(Token)match(input,ID,FOLLOW_ID_in_in_key5281); if (state.failed) return;
+ id=(Token)match(input,ID,FOLLOW_ID_in_in_key5287); if (state.failed) return;
if ( state.backtracking==0 ) { helper.emit(id, DroolsEditorType.KEYWORD); }
}
@@ -6980,7 +6983,7 @@ public static class operator_key_return extends ParserRuleReturnScope {
// $ANTLR start "operator_key"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:823:1: operator_key :{...}? =>id= ID ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:830:1: operator_key :{...}? =>id= ID ;
public final DRL6Expressions.operator_key_return operator_key() throws RecognitionException {
DRL6Expressions.operator_key_return retval = new DRL6Expressions.operator_key_return();
retval.start = input.LT(1);
@@ -6988,14 +6991,14 @@ public final DRL6Expressions.operator_key_return operator_key() throws Recogniti
Token id=null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:824:3: ({...}? =>id= ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:824:10: {...}? =>id= ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:831:3: ({...}? =>id= ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:831:10: {...}? =>id= ID
{
if ( !(((helper.isPluggableEvaluator(false)))) ) {
if (state.backtracking>0) {state.failed=true; return retval;}
throw new FailedPredicateException(input, "operator_key", "(helper.isPluggableEvaluator(false))");
}
- id=(Token)match(input,ID,FOLLOW_ID_in_operator_key5306); if (state.failed) return retval;
+ id=(Token)match(input,ID,FOLLOW_ID_in_operator_key5312); if (state.failed) return retval;
if ( state.backtracking==0 ) { helper.emit(id, DroolsEditorType.KEYWORD); }
}
@@ -7020,7 +7023,7 @@ public static class neg_operator_key_return extends ParserRuleReturnScope {
// $ANTLR start "neg_operator_key"
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:827:1: neg_operator_key :{...}? =>id= ID ;
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:834:1: neg_operator_key :{...}? =>id= ID ;
public final DRL6Expressions.neg_operator_key_return neg_operator_key() throws RecognitionException {
DRL6Expressions.neg_operator_key_return retval = new DRL6Expressions.neg_operator_key_return();
retval.start = input.LT(1);
@@ -7028,14 +7031,14 @@ public final DRL6Expressions.neg_operator_key_return neg_operator_key() throws R
Token id=null;
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:828:3: ({...}? =>id= ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:828:10: {...}? =>id= ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:835:3: ({...}? =>id= ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:835:10: {...}? =>id= ID
{
if ( !(((helper.isPluggableEvaluator(true)))) ) {
if (state.backtracking>0) {state.failed=true; return retval;}
throw new FailedPredicateException(input, "neg_operator_key", "(helper.isPluggableEvaluator(true))");
}
- id=(Token)match(input,ID,FOLLOW_ID_in_neg_operator_key5331); if (state.failed) return retval;
+ id=(Token)match(input,ID,FOLLOW_ID_in_neg_operator_key5337); if (state.failed) return retval;
if ( state.backtracking==0 ) { helper.emit(id, DroolsEditorType.KEYWORD); }
}
@@ -7056,8 +7059,8 @@ public final DRL6Expressions.neg_operator_key_return neg_operator_key() throws R
// $ANTLR start synpred1_DRL6Expressions
public final void synpred1_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:138:8: ( primitiveType )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:138:9: primitiveType
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:145:8: ( primitiveType )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:145:9: primitiveType
{
pushFollow(FOLLOW_primitiveType_in_synpred1_DRL6Expressions548);
primitiveType();
@@ -7070,8 +7073,8 @@ public final void synpred1_DRL6Expressions_fragment() throws RecognitionExceptio
// $ANTLR start synpred2_DRL6Expressions
public final void synpred2_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:138:44: ( LEFT_SQUARE RIGHT_SQUARE )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:138:45: LEFT_SQUARE RIGHT_SQUARE
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:145:44: ( LEFT_SQUARE RIGHT_SQUARE )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:145:45: LEFT_SQUARE RIGHT_SQUARE
{
match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_synpred2_DRL6Expressions559); if (state.failed) return;
match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_synpred2_DRL6Expressions561); if (state.failed) return;
@@ -7082,8 +7085,8 @@ public final void synpred2_DRL6Expressions_fragment() throws RecognitionExceptio
// $ANTLR start synpred3_DRL6Expressions
public final void synpred3_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:139:13: ( typeArguments )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:139:14: typeArguments
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:146:13: ( typeArguments )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:146:14: typeArguments
{
pushFollow(FOLLOW_typeArguments_in_synpred3_DRL6Expressions585);
typeArguments();
@@ -7096,8 +7099,8 @@ public final void synpred3_DRL6Expressions_fragment() throws RecognitionExceptio
// $ANTLR start synpred4_DRL6Expressions
public final void synpred4_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:139:55: ( typeArguments )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:139:56: typeArguments
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:146:55: ( typeArguments )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:146:56: typeArguments
{
pushFollow(FOLLOW_typeArguments_in_synpred4_DRL6Expressions599);
typeArguments();
@@ -7110,8 +7113,8 @@ public final void synpred4_DRL6Expressions_fragment() throws RecognitionExceptio
// $ANTLR start synpred5_DRL6Expressions
public final void synpred5_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:139:92: ( LEFT_SQUARE RIGHT_SQUARE )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:139:93: LEFT_SQUARE RIGHT_SQUARE
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:146:92: ( LEFT_SQUARE RIGHT_SQUARE )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:146:93: LEFT_SQUARE RIGHT_SQUARE
{
match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_synpred5_DRL6Expressions611); if (state.failed) return;
match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_synpred5_DRL6Expressions613); if (state.failed) return;
@@ -7122,8 +7125,8 @@ public final void synpred5_DRL6Expressions_fragment() throws RecognitionExceptio
// $ANTLR start synpred6_DRL6Expressions
public final void synpred6_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:165:10: ( assignmentOperator )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:165:11: assignmentOperator
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:172:10: ( assignmentOperator )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:172:11: assignmentOperator
{
pushFollow(FOLLOW_assignmentOperator_in_synpred6_DRL6Expressions782);
assignmentOperator();
@@ -7136,8 +7139,8 @@ public final void synpred6_DRL6Expressions_fragment() throws RecognitionExceptio
// $ANTLR start synpred7_DRL6Expressions
public final void synpred7_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:199:8: ( ID EQUALS_ASSIGN )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:199:9: ID EQUALS_ASSIGN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:206:8: ( ID EQUALS_ASSIGN )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:206:9: ID EQUALS_ASSIGN
{
match(input,ID,FOLLOW_ID_in_synpred7_DRL6Expressions961); if (state.failed) return;
match(input,EQUALS_ASSIGN,FOLLOW_EQUALS_ASSIGN_in_synpred7_DRL6Expressions963); if (state.failed) return;
@@ -7148,8 +7151,8 @@ public final void synpred7_DRL6Expressions_fragment() throws RecognitionExceptio
// $ANTLR start synpred8_DRL6Expressions
public final void synpred8_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:337:6: ( not_key in_key )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:337:7: not_key in_key
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:344:6: ( not_key in_key )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:344:7: not_key in_key
{
pushFollow(FOLLOW_not_key_in_synpred8_DRL6Expressions1629);
not_key();
@@ -7166,7 +7169,7 @@ public final void synpred8_DRL6Expressions_fragment() throws RecognitionExceptio
// $ANTLR start synpred9_DRL6Expressions
public final void synpred9_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:396:5: ( operator | LEFT_PAREN )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:403:5: ( operator | LEFT_PAREN )
int alt99=2;
int LA99_0 = input.LA(1);
if ( (LA99_0==EQUALS||(LA99_0 >= GREATER && LA99_0 <= GREATER_EQUALS)||(LA99_0 >= LESS && LA99_0 <= LESS_EQUALS)||LA99_0==NOT_EQUALS||LA99_0==TILDE) ) {
@@ -7188,7 +7191,7 @@ else if ( (LA99_0==LEFT_PAREN) ) {
switch (alt99) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:396:7: operator
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:403:7: operator
{
pushFollow(FOLLOW_operator_in_synpred9_DRL6Expressions1846);
operator();
@@ -7197,7 +7200,7 @@ else if ( (LA99_0==LEFT_PAREN) ) {
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:396:18: LEFT_PAREN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:403:18: LEFT_PAREN
{
match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_synpred9_DRL6Expressions1850); if (state.failed) return;
}
@@ -7209,11 +7212,11 @@ else if ( (LA99_0==LEFT_PAREN) ) {
// $ANTLR start synpred10_DRL6Expressions
public final void synpred10_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:407:7: ( DOUBLE_PIPE ( fullAnnotation[null] )? andRestriction )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:407:8: DOUBLE_PIPE ( fullAnnotation[null] )? andRestriction
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:414:7: ( DOUBLE_PIPE ( fullAnnotation[null] )? andRestriction )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:414:8: DOUBLE_PIPE ( fullAnnotation[null] )? andRestriction
{
match(input,DOUBLE_PIPE,FOLLOW_DOUBLE_PIPE_in_synpred10_DRL6Expressions1903); if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:407:20: ( fullAnnotation[null] )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:414:20: ( fullAnnotation[null] )?
int alt100=2;
int LA100_0 = input.LA(1);
if ( (LA100_0==AT) ) {
@@ -7221,7 +7224,7 @@ public final void synpred10_DRL6Expressions_fragment() throws RecognitionExcepti
}
switch (alt100) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:407:20: fullAnnotation[null]
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:414:20: fullAnnotation[null]
{
pushFollow(FOLLOW_fullAnnotation_in_synpred10_DRL6Expressions1905);
fullAnnotation(null);
@@ -7243,11 +7246,11 @@ public final void synpred10_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred11_DRL6Expressions
public final void synpred11_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:421:5: ( DOUBLE_AMPER ( fullAnnotation[null] )? operator )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:421:6: DOUBLE_AMPER ( fullAnnotation[null] )? operator
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:428:5: ( DOUBLE_AMPER ( fullAnnotation[null] )? operator )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:428:6: DOUBLE_AMPER ( fullAnnotation[null] )? operator
{
match(input,DOUBLE_AMPER,FOLLOW_DOUBLE_AMPER_in_synpred11_DRL6Expressions1972); if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:421:19: ( fullAnnotation[null] )?
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:428:19: ( fullAnnotation[null] )?
int alt101=2;
int LA101_0 = input.LA(1);
if ( (LA101_0==AT) ) {
@@ -7255,7 +7258,7 @@ public final void synpred11_DRL6Expressions_fragment() throws RecognitionExcepti
}
switch (alt101) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:421:19: fullAnnotation[null]
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:428:19: fullAnnotation[null]
{
pushFollow(FOLLOW_fullAnnotation_in_synpred11_DRL6Expressions1974);
fullAnnotation(null);
@@ -7277,8 +7280,8 @@ public final void synpred11_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred12_DRL6Expressions
public final void synpred12_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:438:8: ( squareArguments shiftExpression )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:438:9: squareArguments shiftExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:445:8: ( squareArguments shiftExpression )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:445:9: squareArguments shiftExpression
{
pushFollow(FOLLOW_squareArguments_in_synpred12_DRL6Expressions2066);
squareArguments();
@@ -7295,8 +7298,8 @@ public final void synpred12_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred13_DRL6Expressions
public final void synpred13_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:461:7: ( shiftOp )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:461:8: shiftOp
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:468:7: ( shiftOp )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:468:8: shiftOp
{
pushFollow(FOLLOW_shiftOp_in_synpred13_DRL6Expressions2157);
shiftOp();
@@ -7309,8 +7312,8 @@ public final void synpred13_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred14_DRL6Expressions
public final void synpred14_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:472:11: ( PLUS | MINUS )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:479:11: ( PLUS | MINUS )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:
{
if ( input.LA(1)==MINUS||input.LA(1)==PLUS ) {
input.consume();
@@ -7329,8 +7332,8 @@ public final void synpred14_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred15_DRL6Expressions
public final void synpred15_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:509:9: ( castExpression )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:509:10: castExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:516:9: ( castExpression )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:516:10: castExpression
{
pushFollow(FOLLOW_castExpression_in_synpred15_DRL6Expressions2489);
castExpression();
@@ -7343,8 +7346,8 @@ public final void synpred15_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred16_DRL6Expressions
public final void synpred16_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:510:9: ( backReferenceExpression )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:510:10: backReferenceExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:517:9: ( backReferenceExpression )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:517:10: backReferenceExpression
{
pushFollow(FOLLOW_backReferenceExpression_in_synpred16_DRL6Expressions2503);
backReferenceExpression();
@@ -7357,8 +7360,8 @@ public final void synpred16_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred17_DRL6Expressions
public final void synpred17_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:518:11: ( xpathSeparator ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:518:12: xpathSeparator ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:525:11: ( xpathSeparator ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:525:12: xpathSeparator ID
{
pushFollow(FOLLOW_xpathSeparator_in_synpred17_DRL6Expressions2624);
xpathSeparator();
@@ -7372,8 +7375,8 @@ public final void synpred17_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred18_DRL6Expressions
public final void synpred18_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:522:10: ( selector )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:522:11: selector
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:529:10: ( selector )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:529:11: selector
{
pushFollow(FOLLOW_selector_in_synpred18_DRL6Expressions2674);
selector();
@@ -7386,8 +7389,8 @@ public final void synpred18_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred19_DRL6Expressions
public final void synpred19_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:541:10: ( INCR | DECR )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:548:10: ( INCR | DECR )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:
{
if ( input.LA(1)==DECR||input.LA(1)==INCR ) {
input.consume();
@@ -7406,8 +7409,8 @@ public final void synpred19_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred20_DRL6Expressions
public final void synpred20_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:545:8: ( LEFT_PAREN primitiveType )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:545:9: LEFT_PAREN primitiveType
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:552:8: ( LEFT_PAREN primitiveType )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:552:9: LEFT_PAREN primitiveType
{
match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_synpred20_DRL6Expressions2732); if (state.failed) return;
pushFollow(FOLLOW_primitiveType_in_synpred20_DRL6Expressions2734);
@@ -7421,8 +7424,8 @@ public final void synpred20_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred21_DRL6Expressions
public final void synpred21_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:546:8: ( LEFT_PAREN type )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:546:9: LEFT_PAREN type
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:553:8: ( LEFT_PAREN type )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:553:9: LEFT_PAREN type
{
match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_synpred21_DRL6Expressions2757); if (state.failed) return;
pushFollow(FOLLOW_type_in_synpred21_DRL6Expressions2759);
@@ -7436,10 +7439,10 @@ public final void synpred21_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred24_DRL6Expressions
public final void synpred24_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:584:7: ( LEFT_PAREN )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:584:8: LEFT_PAREN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:591:7: ( LEFT_PAREN )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:591:8: LEFT_PAREN
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_synpred24_DRL6Expressions3051); if (state.failed) return;
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_synpred24_DRL6Expressions3057); if (state.failed) return;
}
}
@@ -7447,10 +7450,10 @@ public final void synpred24_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred25_DRL6Expressions
public final void synpred25_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:585:9: ( nonWildcardTypeArguments )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:585:10: nonWildcardTypeArguments
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:592:9: ( nonWildcardTypeArguments )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:592:10: nonWildcardTypeArguments
{
- pushFollow(FOLLOW_nonWildcardTypeArguments_in_synpred25_DRL6Expressions3070);
+ pushFollow(FOLLOW_nonWildcardTypeArguments_in_synpred25_DRL6Expressions3076);
nonWildcardTypeArguments();
state._fsp--;
if (state.failed) return;
@@ -7461,10 +7464,10 @@ public final void synpred25_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred26_DRL6Expressions
public final void synpred26_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:586:9: ( literal )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:586:10: literal
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:593:9: ( literal )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:593:10: literal
{
- pushFollow(FOLLOW_literal_in_synpred26_DRL6Expressions3095);
+ pushFollow(FOLLOW_literal_in_synpred26_DRL6Expressions3101);
literal();
state._fsp--;
if (state.failed) return;
@@ -7475,10 +7478,10 @@ public final void synpred26_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred27_DRL6Expressions
public final void synpred27_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:588:9: ( super_key )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:588:10: super_key
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:595:9: ( super_key )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:595:10: super_key
{
- pushFollow(FOLLOW_super_key_in_synpred27_DRL6Expressions3117);
+ pushFollow(FOLLOW_super_key_in_synpred27_DRL6Expressions3123);
super_key();
state._fsp--;
if (state.failed) return;
@@ -7489,10 +7492,10 @@ public final void synpred27_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred28_DRL6Expressions
public final void synpred28_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:589:9: ( new_key )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:589:10: new_key
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:596:9: ( new_key )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:596:10: new_key
{
- pushFollow(FOLLOW_new_key_in_synpred28_DRL6Expressions3134);
+ pushFollow(FOLLOW_new_key_in_synpred28_DRL6Expressions3140);
new_key();
state._fsp--;
if (state.failed) return;
@@ -7503,10 +7506,10 @@ public final void synpred28_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred29_DRL6Expressions
public final void synpred29_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:590:9: ( primitiveType )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:590:10: primitiveType
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:597:9: ( primitiveType )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:597:10: primitiveType
{
- pushFollow(FOLLOW_primitiveType_in_synpred29_DRL6Expressions3151);
+ pushFollow(FOLLOW_primitiveType_in_synpred29_DRL6Expressions3157);
primitiveType();
state._fsp--;
if (state.failed) return;
@@ -7517,10 +7520,10 @@ public final void synpred29_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred30_DRL6Expressions
public final void synpred30_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:592:9: ( inlineMapExpression )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:592:10: inlineMapExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:599:9: ( inlineMapExpression )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:599:10: inlineMapExpression
{
- pushFollow(FOLLOW_inlineMapExpression_in_synpred30_DRL6Expressions3182);
+ pushFollow(FOLLOW_inlineMapExpression_in_synpred30_DRL6Expressions3188);
inlineMapExpression();
state._fsp--;
if (state.failed) return;
@@ -7531,10 +7534,10 @@ public final void synpred30_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred31_DRL6Expressions
public final void synpred31_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:593:9: ( inlineListExpression )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:593:10: inlineListExpression
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:600:9: ( inlineListExpression )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:600:10: inlineListExpression
{
- pushFollow(FOLLOW_inlineListExpression_in_synpred31_DRL6Expressions3197);
+ pushFollow(FOLLOW_inlineListExpression_in_synpred31_DRL6Expressions3203);
inlineListExpression();
state._fsp--;
if (state.failed) return;
@@ -7545,10 +7548,10 @@ public final void synpred31_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred32_DRL6Expressions
public final void synpred32_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:594:9: ( ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:594:10: ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:601:9: ( ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:601:10: ID
{
- match(input,ID,FOLLOW_ID_in_synpred32_DRL6Expressions3212); if (state.failed) return;
+ match(input,ID,FOLLOW_ID_in_synpred32_DRL6Expressions3218); if (state.failed) return;
}
}
@@ -7556,11 +7559,11 @@ public final void synpred32_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred33_DRL6Expressions
public final void synpred33_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:596:15: ( DOT ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:596:16: DOT ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:603:15: ( DOT ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:603:16: DOT ID
{
- match(input,DOT,FOLLOW_DOT_in_synpred33_DRL6Expressions3246); if (state.failed) return;
- match(input,ID,FOLLOW_ID_in_synpred33_DRL6Expressions3248); if (state.failed) return;
+ match(input,DOT,FOLLOW_DOT_in_synpred33_DRL6Expressions3252); if (state.failed) return;
+ match(input,ID,FOLLOW_ID_in_synpred33_DRL6Expressions3254); if (state.failed) return;
}
}
@@ -7568,8 +7571,8 @@ public final void synpred33_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred34_DRL6Expressions
public final void synpred34_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:598:15: ( ( DOT | NULL_SAFE_DOT ) LEFT_PAREN )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:598:16: ( DOT | NULL_SAFE_DOT ) LEFT_PAREN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:605:15: ( ( DOT | NULL_SAFE_DOT ) LEFT_PAREN )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:605:16: ( DOT | NULL_SAFE_DOT ) LEFT_PAREN
{
if ( input.LA(1)==DOT||input.LA(1)==NULL_SAFE_DOT ) {
input.consume();
@@ -7581,7 +7584,7 @@ public final void synpred34_DRL6Expressions_fragment() throws RecognitionExcepti
MismatchedSetException mse = new MismatchedSetException(null,input);
throw mse;
}
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_synpred34_DRL6Expressions3298); if (state.failed) return;
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_synpred34_DRL6Expressions3304); if (state.failed) return;
}
}
@@ -7589,11 +7592,11 @@ public final void synpred34_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred35_DRL6Expressions
public final void synpred35_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:603:15: ( HASH ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:603:16: HASH ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:610:15: ( HASH ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:610:16: HASH ID
{
- match(input,HASH,FOLLOW_HASH_in_synpred35_DRL6Expressions3443); if (state.failed) return;
- match(input,ID,FOLLOW_ID_in_synpred35_DRL6Expressions3445); if (state.failed) return;
+ match(input,HASH,FOLLOW_HASH_in_synpred35_DRL6Expressions3449); if (state.failed) return;
+ match(input,ID,FOLLOW_ID_in_synpred35_DRL6Expressions3451); if (state.failed) return;
}
}
@@ -7601,11 +7604,11 @@ public final void synpred35_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred36_DRL6Expressions
public final void synpred36_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:605:15: ( NULL_SAFE_DOT ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:605:16: NULL_SAFE_DOT ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:612:15: ( NULL_SAFE_DOT ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:612:16: NULL_SAFE_DOT ID
{
- match(input,NULL_SAFE_DOT,FOLLOW_NULL_SAFE_DOT_in_synpred36_DRL6Expressions3489); if (state.failed) return;
- match(input,ID,FOLLOW_ID_in_synpred36_DRL6Expressions3491); if (state.failed) return;
+ match(input,NULL_SAFE_DOT,FOLLOW_NULL_SAFE_DOT_in_synpred36_DRL6Expressions3495); if (state.failed) return;
+ match(input,ID,FOLLOW_ID_in_synpred36_DRL6Expressions3497); if (state.failed) return;
}
}
@@ -7613,10 +7616,10 @@ public final void synpred36_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred37_DRL6Expressions
public final void synpred37_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:606:13: ( identifierSuffix )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:606:14: identifierSuffix
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:613:13: ( identifierSuffix )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:613:14: identifierSuffix
{
- pushFollow(FOLLOW_identifierSuffix_in_synpred37_DRL6Expressions3519);
+ pushFollow(FOLLOW_identifierSuffix_in_synpred37_DRL6Expressions3525);
identifierSuffix();
state._fsp--;
if (state.failed) return;
@@ -7627,11 +7630,11 @@ public final void synpred37_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred38_DRL6Expressions
public final void synpred38_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:639:7: ( LEFT_SQUARE RIGHT_SQUARE )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:639:8: LEFT_SQUARE RIGHT_SQUARE
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:646:7: ( LEFT_SQUARE RIGHT_SQUARE )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:646:8: LEFT_SQUARE RIGHT_SQUARE
{
- match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_synpred38_DRL6Expressions3677); if (state.failed) return;
- match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_synpred38_DRL6Expressions3679); if (state.failed) return;
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_synpred38_DRL6Expressions3683); if (state.failed) return;
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_synpred38_DRL6Expressions3685); if (state.failed) return;
}
}
@@ -7639,10 +7642,10 @@ public final void synpred38_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred39_DRL6Expressions
public final void synpred39_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:642:8: ( LEFT_SQUARE )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:642:9: LEFT_SQUARE
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:649:8: ( LEFT_SQUARE )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:649:9: LEFT_SQUARE
{
- match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_synpred39_DRL6Expressions3782); if (state.failed) return;
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_synpred39_DRL6Expressions3788); if (state.failed) return;
}
}
@@ -7650,11 +7653,11 @@ public final void synpred39_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred40_DRL6Expressions
public final void synpred40_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:671:107: ( LEFT_SQUARE RIGHT_SQUARE )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:671:108: LEFT_SQUARE RIGHT_SQUARE
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:678:107: ( LEFT_SQUARE RIGHT_SQUARE )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:678:108: LEFT_SQUARE RIGHT_SQUARE
{
- match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_synpred40_DRL6Expressions4044); if (state.failed) return;
- match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_synpred40_DRL6Expressions4046); if (state.failed) return;
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_synpred40_DRL6Expressions4050); if (state.failed) return;
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_synpred40_DRL6Expressions4052); if (state.failed) return;
}
}
@@ -7662,11 +7665,11 @@ public final void synpred40_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred41_DRL6Expressions
public final void synpred41_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:702:9: ( DOT super_key )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:702:10: DOT super_key
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:709:9: ( DOT super_key )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:709:10: DOT super_key
{
- match(input,DOT,FOLLOW_DOT_in_synpred41_DRL6Expressions4242); if (state.failed) return;
- pushFollow(FOLLOW_super_key_in_synpred41_DRL6Expressions4244);
+ match(input,DOT,FOLLOW_DOT_in_synpred41_DRL6Expressions4248); if (state.failed) return;
+ pushFollow(FOLLOW_super_key_in_synpred41_DRL6Expressions4250);
super_key();
state._fsp--;
if (state.failed) return;
@@ -7677,11 +7680,11 @@ public final void synpred41_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred42_DRL6Expressions
public final void synpred42_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:703:9: ( DOT new_key )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:703:10: DOT new_key
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:710:9: ( DOT new_key )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:710:10: DOT new_key
{
- match(input,DOT,FOLLOW_DOT_in_synpred42_DRL6Expressions4264); if (state.failed) return;
- pushFollow(FOLLOW_new_key_in_synpred42_DRL6Expressions4266);
+ match(input,DOT,FOLLOW_DOT_in_synpred42_DRL6Expressions4270); if (state.failed) return;
+ pushFollow(FOLLOW_new_key_in_synpred42_DRL6Expressions4272);
new_key();
state._fsp--;
if (state.failed) return;
@@ -7692,11 +7695,11 @@ public final void synpred42_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred43_DRL6Expressions
public final void synpred43_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:704:9: ( DOT ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:704:10: DOT ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:711:9: ( DOT ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:711:10: DOT ID
{
- match(input,DOT,FOLLOW_DOT_in_synpred43_DRL6Expressions4291); if (state.failed) return;
- match(input,ID,FOLLOW_ID_in_synpred43_DRL6Expressions4293); if (state.failed) return;
+ match(input,DOT,FOLLOW_DOT_in_synpred43_DRL6Expressions4297); if (state.failed) return;
+ match(input,ID,FOLLOW_ID_in_synpred43_DRL6Expressions4299); if (state.failed) return;
}
}
@@ -7704,10 +7707,10 @@ public final void synpred43_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred44_DRL6Expressions
public final void synpred44_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:706:20: ( LEFT_PAREN )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:706:21: LEFT_PAREN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:713:20: ( LEFT_PAREN )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:713:21: LEFT_PAREN
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_synpred44_DRL6Expressions4342); if (state.failed) return;
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_synpred44_DRL6Expressions4348); if (state.failed) return;
}
}
@@ -7715,11 +7718,11 @@ public final void synpred44_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred45_DRL6Expressions
public final void synpred45_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:707:9: ( NULL_SAFE_DOT ID )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:707:10: NULL_SAFE_DOT ID
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:714:9: ( NULL_SAFE_DOT ID )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:714:10: NULL_SAFE_DOT ID
{
- match(input,NULL_SAFE_DOT,FOLLOW_NULL_SAFE_DOT_in_synpred45_DRL6Expressions4360); if (state.failed) return;
- match(input,ID,FOLLOW_ID_in_synpred45_DRL6Expressions4362); if (state.failed) return;
+ match(input,NULL_SAFE_DOT,FOLLOW_NULL_SAFE_DOT_in_synpred45_DRL6Expressions4366); if (state.failed) return;
+ match(input,ID,FOLLOW_ID_in_synpred45_DRL6Expressions4368); if (state.failed) return;
}
}
@@ -7727,10 +7730,10 @@ public final void synpred45_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred46_DRL6Expressions
public final void synpred46_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:709:20: ( LEFT_PAREN )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:709:21: LEFT_PAREN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:716:20: ( LEFT_PAREN )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:716:21: LEFT_PAREN
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_synpred46_DRL6Expressions4411); if (state.failed) return;
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_synpred46_DRL6Expressions4417); if (state.failed) return;
}
}
@@ -7738,10 +7741,10 @@ public final void synpred46_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred47_DRL6Expressions
public final void synpred47_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:711:9: ( LEFT_SQUARE )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:711:10: LEFT_SQUARE
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:718:9: ( LEFT_SQUARE )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:718:10: LEFT_SQUARE
{
- match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_synpred47_DRL6Expressions4434); if (state.failed) return;
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_synpred47_DRL6Expressions4440); if (state.failed) return;
}
}
@@ -7749,10 +7752,10 @@ public final void synpred47_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred48_DRL6Expressions
public final void synpred48_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:718:18: ( LEFT_PAREN )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:718:19: LEFT_PAREN
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:725:18: ( LEFT_PAREN )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:725:19: LEFT_PAREN
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_synpred48_DRL6Expressions4525); if (state.failed) return;
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_synpred48_DRL6Expressions4531); if (state.failed) return;
}
}
@@ -7760,12 +7763,12 @@ public final void synpred48_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred49_DRL6Expressions
public final void synpred49_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:748:7: ( GREATER GREATER GREATER )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:748:8: GREATER GREATER GREATER
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:755:7: ( GREATER GREATER GREATER )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:755:8: GREATER GREATER GREATER
{
- match(input,GREATER,FOLLOW_GREATER_in_synpred49_DRL6Expressions4755); if (state.failed) return;
- match(input,GREATER,FOLLOW_GREATER_in_synpred49_DRL6Expressions4757); if (state.failed) return;
- match(input,GREATER,FOLLOW_GREATER_in_synpred49_DRL6Expressions4759); if (state.failed) return;
+ match(input,GREATER,FOLLOW_GREATER_in_synpred49_DRL6Expressions4761); if (state.failed) return;
+ match(input,GREATER,FOLLOW_GREATER_in_synpred49_DRL6Expressions4763); if (state.failed) return;
+ match(input,GREATER,FOLLOW_GREATER_in_synpred49_DRL6Expressions4765); if (state.failed) return;
}
}
@@ -7773,11 +7776,11 @@ public final void synpred49_DRL6Expressions_fragment() throws RecognitionExcepti
// $ANTLR start synpred50_DRL6Expressions
public final void synpred50_DRL6Expressions_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:749:7: ( GREATER GREATER )
- // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:749:8: GREATER GREATER
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:756:7: ( GREATER GREATER )
+ // src/main/resources/org/drools/drl/parser/DRL6Expressions.g:756:8: GREATER GREATER
{
- match(input,GREATER,FOLLOW_GREATER_in_synpred50_DRL6Expressions4778); if (state.failed) return;
- match(input,GREATER,FOLLOW_GREATER_in_synpred50_DRL6Expressions4780); if (state.failed) return;
+ match(input,GREATER,FOLLOW_GREATER_in_synpred50_DRL6Expressions4784); if (state.failed) return;
+ match(input,GREATER,FOLLOW_GREATER_in_synpred50_DRL6Expressions4786); if (state.failed) return;
}
}
@@ -8658,181 +8661,182 @@ public final boolean synpred26_DRL6Expressions() {
public static final BitSet FOLLOW_float_key_in_primitiveType2874 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_double_key_in_primitiveType2882 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_xpathChunk_in_xpathPrimary2930 = new BitSet(new long[]{0x0400000000004002L});
- public static final BitSet FOLLOW_xpathSeparator_in_xpathChunk2959 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_ID_in_xpathChunk2961 = new BitSet(new long[]{0x0000004010010002L});
- public static final BitSet FOLLOW_DOT_in_xpathChunk2964 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_ID_in_xpathChunk2966 = new BitSet(new long[]{0x0000004010010002L});
- public static final BitSet FOLLOW_HASH_in_xpathChunk2971 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_ID_in_xpathChunk2973 = new BitSet(new long[]{0x0000004000000002L});
- public static final BitSet FOLLOW_LEFT_SQUARE_in_xpathChunk2978 = new BitSet(new long[]{0x048502E1A1017100L,0x000000000000000FL});
- public static final BitSet FOLLOW_xpathExpressionList_in_xpathChunk2980 = new BitSet(new long[]{0x2000000000000000L});
- public static final BitSet FOLLOW_RIGHT_SQUARE_in_xpathChunk2982 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_expression_in_xpathExpressionList3012 = new BitSet(new long[]{0x0000000000000402L});
- public static final BitSet FOLLOW_COMMA_in_xpathExpressionList3023 = new BitSet(new long[]{0x048502E1A1017100L,0x000000000000000FL});
- public static final BitSet FOLLOW_expression_in_xpathExpressionList3027 = new BitSet(new long[]{0x0000000000000402L});
- public static final BitSet FOLLOW_parExpression_in_primary3057 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_nonWildcardTypeArguments_in_primary3074 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_explicitGenericInvocationSuffix_in_primary3077 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_this_key_in_primary3081 = new BitSet(new long[]{0x0000002000000000L});
- public static final BitSet FOLLOW_arguments_in_primary3083 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_literal_in_primary3099 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_super_key_in_primary3121 = new BitSet(new long[]{0x0000002000010000L});
- public static final BitSet FOLLOW_superSuffix_in_primary3123 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_new_key_in_primary3138 = new BitSet(new long[]{0x0000008080000000L});
- public static final BitSet FOLLOW_creator_in_primary3140 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_primitiveType_in_primary3155 = new BitSet(new long[]{0x0000004000010000L});
- public static final BitSet FOLLOW_LEFT_SQUARE_in_primary3158 = new BitSet(new long[]{0x2000000000000000L});
- public static final BitSet FOLLOW_RIGHT_SQUARE_in_primary3160 = new BitSet(new long[]{0x0000004000010000L});
- public static final BitSet FOLLOW_DOT_in_primary3164 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_class_key_in_primary3166 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_inlineMapExpression_in_primary3186 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_inlineListExpression_in_primary3201 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_primary3217 = new BitSet(new long[]{0x0008006010010002L});
- public static final BitSet FOLLOW_DOT_in_primary3253 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_ID_in_primary3257 = new BitSet(new long[]{0x0008006010010002L});
- public static final BitSet FOLLOW_set_in_primary3303 = new BitSet(new long[]{0x0000002000000000L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_primary3309 = new BitSet(new long[]{0x048502E1A1017100L,0x000000000000000FL});
- public static final BitSet FOLLOW_expression_in_primary3349 = new BitSet(new long[]{0x1000000000000400L});
- public static final BitSet FOLLOW_COMMA_in_primary3352 = new BitSet(new long[]{0x048502E1A1017100L,0x000000000000000FL});
- public static final BitSet FOLLOW_expression_in_primary3356 = new BitSet(new long[]{0x1000000000000400L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_primary3396 = new BitSet(new long[]{0x0008006010010002L});
- public static final BitSet FOLLOW_HASH_in_primary3450 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_ID_in_primary3454 = new BitSet(new long[]{0x0008006010010002L});
- public static final BitSet FOLLOW_NULL_SAFE_DOT_in_primary3496 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_ID_in_primary3500 = new BitSet(new long[]{0x0008006010010002L});
- public static final BitSet FOLLOW_identifierSuffix_in_primary3522 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_SQUARE_in_inlineListExpression3543 = new BitSet(new long[]{0x248502E1A1017100L,0x000000000000000FL});
- public static final BitSet FOLLOW_expressionList_in_inlineListExpression3545 = new BitSet(new long[]{0x2000000000000000L});
- public static final BitSet FOLLOW_RIGHT_SQUARE_in_inlineListExpression3548 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_SQUARE_in_inlineMapExpression3569 = new BitSet(new long[]{0x048502E1A1017100L,0x000000000000000FL});
- public static final BitSet FOLLOW_mapExpressionList_in_inlineMapExpression3571 = new BitSet(new long[]{0x2000000000000000L});
- public static final BitSet FOLLOW_RIGHT_SQUARE_in_inlineMapExpression3573 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_mapEntry_in_mapExpressionList3594 = new BitSet(new long[]{0x0000000000000402L});
- public static final BitSet FOLLOW_COMMA_in_mapExpressionList3597 = new BitSet(new long[]{0x048502E1A1017100L,0x000000000000000FL});
- public static final BitSet FOLLOW_mapEntry_in_mapExpressionList3599 = new BitSet(new long[]{0x0000000000000402L});
- public static final BitSet FOLLOW_expression_in_mapEntry3618 = new BitSet(new long[]{0x0000000000000200L});
- public static final BitSet FOLLOW_COLON_in_mapEntry3620 = new BitSet(new long[]{0x048502E1A1017100L,0x000000000000000FL});
- public static final BitSet FOLLOW_expression_in_mapEntry3622 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_parExpression3643 = new BitSet(new long[]{0x048502E1A1017100L,0x000000000000000FL});
- public static final BitSet FOLLOW_expression_in_parExpression3647 = new BitSet(new long[]{0x1000000000000000L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_parExpression3649 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_SQUARE_in_identifierSuffix3683 = new BitSet(new long[]{0x2000000000000000L});
- public static final BitSet FOLLOW_RIGHT_SQUARE_in_identifierSuffix3724 = new BitSet(new long[]{0x0000004000010000L});
- public static final BitSet FOLLOW_DOT_in_identifierSuffix3768 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_class_key_in_identifierSuffix3772 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_SQUARE_in_identifierSuffix3787 = new BitSet(new long[]{0x048502E1A1017100L,0x000000000000000FL});
- public static final BitSet FOLLOW_expression_in_identifierSuffix3817 = new BitSet(new long[]{0x2000000000000000L});
- public static final BitSet FOLLOW_RIGHT_SQUARE_in_identifierSuffix3845 = new BitSet(new long[]{0x0000004000000002L});
- public static final BitSet FOLLOW_arguments_in_identifierSuffix3861 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_nonWildcardTypeArguments_in_creator3883 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_createdName_in_creator3886 = new BitSet(new long[]{0x0000006000000000L});
- public static final BitSet FOLLOW_arrayCreatorRest_in_creator3897 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_classCreatorRest_in_creator3901 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_createdName3919 = new BitSet(new long[]{0x0000008000010002L});
- public static final BitSet FOLLOW_typeArguments_in_createdName3921 = new BitSet(new long[]{0x0000000000010002L});
- public static final BitSet FOLLOW_DOT_in_createdName3934 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_ID_in_createdName3936 = new BitSet(new long[]{0x0000008000010002L});
- public static final BitSet FOLLOW_typeArguments_in_createdName3938 = new BitSet(new long[]{0x0000000000010002L});
- public static final BitSet FOLLOW_primitiveType_in_createdName3953 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_innerCreator3973 = new BitSet(new long[]{0x0000002000000000L});
- public static final BitSet FOLLOW_classCreatorRest_in_innerCreator3975 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_SQUARE_in_arrayCreatorRest3994 = new BitSet(new long[]{0x248502E1A1017100L,0x000000000000000FL});
- public static final BitSet FOLLOW_RIGHT_SQUARE_in_arrayCreatorRest4004 = new BitSet(new long[]{0x0000005000000000L});
- public static final BitSet FOLLOW_LEFT_SQUARE_in_arrayCreatorRest4007 = new BitSet(new long[]{0x2000000000000000L});
- public static final BitSet FOLLOW_RIGHT_SQUARE_in_arrayCreatorRest4009 = new BitSet(new long[]{0x0000005000000000L});
- public static final BitSet FOLLOW_arrayInitializer_in_arrayCreatorRest4013 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_expression_in_arrayCreatorRest4027 = new BitSet(new long[]{0x2000000000000000L});
- public static final BitSet FOLLOW_RIGHT_SQUARE_in_arrayCreatorRest4029 = new BitSet(new long[]{0x0000004000000002L});
- public static final BitSet FOLLOW_LEFT_SQUARE_in_arrayCreatorRest4034 = new BitSet(new long[]{0x048502E1A1017100L,0x000000000000000FL});
- public static final BitSet FOLLOW_expression_in_arrayCreatorRest4036 = new BitSet(new long[]{0x2000000000000000L});
- public static final BitSet FOLLOW_RIGHT_SQUARE_in_arrayCreatorRest4038 = new BitSet(new long[]{0x0000004000000002L});
- public static final BitSet FOLLOW_LEFT_SQUARE_in_arrayCreatorRest4050 = new BitSet(new long[]{0x2000000000000000L});
- public static final BitSet FOLLOW_RIGHT_SQUARE_in_arrayCreatorRest4052 = new BitSet(new long[]{0x0000004000000002L});
- public static final BitSet FOLLOW_arrayInitializer_in_variableInitializer4081 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_expression_in_variableInitializer4095 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_CURLY_in_arrayInitializer4112 = new BitSet(new long[]{0x0C8502F1A1017100L,0x000000000000000FL});
- public static final BitSet FOLLOW_variableInitializer_in_arrayInitializer4115 = new BitSet(new long[]{0x0800000000000400L});
- public static final BitSet FOLLOW_COMMA_in_arrayInitializer4118 = new BitSet(new long[]{0x048502F1A1017100L,0x000000000000000FL});
- public static final BitSet FOLLOW_variableInitializer_in_arrayInitializer4120 = new BitSet(new long[]{0x0800000000000400L});
- public static final BitSet FOLLOW_COMMA_in_arrayInitializer4125 = new BitSet(new long[]{0x0800000000000000L});
- public static final BitSet FOLLOW_RIGHT_CURLY_in_arrayInitializer4132 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_arguments_in_classCreatorRest4149 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_nonWildcardTypeArguments_in_explicitGenericInvocation4167 = new BitSet(new long[]{0x0000002000000000L});
- public static final BitSet FOLLOW_arguments_in_explicitGenericInvocation4169 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LESS_in_nonWildcardTypeArguments4186 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_typeList_in_nonWildcardTypeArguments4188 = new BitSet(new long[]{0x0000000004000000L});
- public static final BitSet FOLLOW_GREATER_in_nonWildcardTypeArguments4190 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_super_key_in_explicitGenericInvocationSuffix4207 = new BitSet(new long[]{0x0000002000010000L});
- public static final BitSet FOLLOW_superSuffix_in_explicitGenericInvocationSuffix4209 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_explicitGenericInvocationSuffix4220 = new BitSet(new long[]{0x0000002000000000L});
- public static final BitSet FOLLOW_arguments_in_explicitGenericInvocationSuffix4222 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_DOT_in_selector4247 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_super_key_in_selector4251 = new BitSet(new long[]{0x0000002000010000L});
- public static final BitSet FOLLOW_superSuffix_in_selector4253 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_DOT_in_selector4269 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_new_key_in_selector4273 = new BitSet(new long[]{0x0000008080000000L});
- public static final BitSet FOLLOW_nonWildcardTypeArguments_in_selector4276 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_innerCreator_in_selector4280 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_DOT_in_selector4296 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_ID_in_selector4318 = new BitSet(new long[]{0x0000002000000002L});
- public static final BitSet FOLLOW_arguments_in_selector4347 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_NULL_SAFE_DOT_in_selector4365 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_ID_in_selector4387 = new BitSet(new long[]{0x0000002000000002L});
- public static final BitSet FOLLOW_arguments_in_selector4416 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_SQUARE_in_selector4437 = new BitSet(new long[]{0x048502E1A1017100L,0x000000000000000FL});
- public static final BitSet FOLLOW_expression_in_selector4464 = new BitSet(new long[]{0x2000000000000000L});
- public static final BitSet FOLLOW_RIGHT_SQUARE_in_selector4489 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_arguments_in_superSuffix4508 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_DOT_in_superSuffix4519 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_ID_in_superSuffix4521 = new BitSet(new long[]{0x0000002000000002L});
- public static final BitSet FOLLOW_arguments_in_superSuffix4530 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_SQUARE_in_squareArguments4553 = new BitSet(new long[]{0x248502E1A1017100L,0x000000000000000FL});
- public static final BitSet FOLLOW_expressionList_in_squareArguments4558 = new BitSet(new long[]{0x2000000000000000L});
- public static final BitSet FOLLOW_RIGHT_SQUARE_in_squareArguments4564 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_arguments4581 = new BitSet(new long[]{0x148502E1A1017100L,0x000000000000000FL});
- public static final BitSet FOLLOW_expressionList_in_arguments4593 = new BitSet(new long[]{0x1000000000000000L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_arguments4604 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_expression_in_expressionList4634 = new BitSet(new long[]{0x0000000000000402L});
- public static final BitSet FOLLOW_COMMA_in_expressionList4645 = new BitSet(new long[]{0x048502E1A1017100L,0x000000000000000FL});
- public static final BitSet FOLLOW_expression_in_expressionList4649 = new BitSet(new long[]{0x0000000000000402L});
- public static final BitSet FOLLOW_EQUALS_ASSIGN_in_assignmentOperator4670 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_PLUS_ASSIGN_in_assignmentOperator4678 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_MINUS_ASSIGN_in_assignmentOperator4686 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_MULT_ASSIGN_in_assignmentOperator4694 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_DIV_ASSIGN_in_assignmentOperator4702 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_AND_ASSIGN_in_assignmentOperator4710 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_OR_ASSIGN_in_assignmentOperator4718 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_XOR_ASSIGN_in_assignmentOperator4726 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_MOD_ASSIGN_in_assignmentOperator4734 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LESS_in_assignmentOperator4742 = new BitSet(new long[]{0x0000008000000000L});
- public static final BitSet FOLLOW_LESS_in_assignmentOperator4744 = new BitSet(new long[]{0x0000000000200000L});
- public static final BitSet FOLLOW_EQUALS_ASSIGN_in_assignmentOperator4746 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_GREATER_in_assignmentOperator4763 = new BitSet(new long[]{0x0000000004000000L});
- public static final BitSet FOLLOW_GREATER_in_assignmentOperator4765 = new BitSet(new long[]{0x0000000004000000L});
- public static final BitSet FOLLOW_GREATER_in_assignmentOperator4767 = new BitSet(new long[]{0x0000000000200000L});
- public static final BitSet FOLLOW_EQUALS_ASSIGN_in_assignmentOperator4769 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_GREATER_in_assignmentOperator4784 = new BitSet(new long[]{0x0000000004000000L});
- public static final BitSet FOLLOW_GREATER_in_assignmentOperator4786 = new BitSet(new long[]{0x0000000000200000L});
- public static final BitSet FOLLOW_EQUALS_ASSIGN_in_assignmentOperator4788 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_extends_key4818 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_super_key4847 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_instanceof_key4876 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_boolean_key4905 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_char_key4934 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_byte_key4963 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_short_key4992 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_int_key5021 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_float_key5050 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_long_key5079 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_double_key5108 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_void_key5137 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_this_key5166 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_class_key5195 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_new_key5225 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_not_key5254 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_in_key5281 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_operator_key5306 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_neg_operator_key5331 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_xpathChunk_in_xpathPrimary2935 = new BitSet(new long[]{0x0400000000004002L});
+ public static final BitSet FOLLOW_xpathSeparator_in_xpathChunk2965 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_ID_in_xpathChunk2967 = new BitSet(new long[]{0x0000004010010002L});
+ public static final BitSet FOLLOW_DOT_in_xpathChunk2970 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_ID_in_xpathChunk2972 = new BitSet(new long[]{0x0000004010010002L});
+ public static final BitSet FOLLOW_HASH_in_xpathChunk2977 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_ID_in_xpathChunk2979 = new BitSet(new long[]{0x0000004000000002L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_xpathChunk2984 = new BitSet(new long[]{0x048502E1A1017100L,0x000000000000000FL});
+ public static final BitSet FOLLOW_xpathExpressionList_in_xpathChunk2986 = new BitSet(new long[]{0x2000000000000000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_xpathChunk2988 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_expression_in_xpathExpressionList3018 = new BitSet(new long[]{0x0000000000000402L});
+ public static final BitSet FOLLOW_COMMA_in_xpathExpressionList3029 = new BitSet(new long[]{0x048502E1A1017100L,0x000000000000000FL});
+ public static final BitSet FOLLOW_expression_in_xpathExpressionList3033 = new BitSet(new long[]{0x0000000000000402L});
+ public static final BitSet FOLLOW_parExpression_in_primary3063 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_nonWildcardTypeArguments_in_primary3080 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_explicitGenericInvocationSuffix_in_primary3083 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_this_key_in_primary3087 = new BitSet(new long[]{0x0000002000000000L});
+ public static final BitSet FOLLOW_arguments_in_primary3089 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_literal_in_primary3105 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_super_key_in_primary3127 = new BitSet(new long[]{0x0000002000010000L});
+ public static final BitSet FOLLOW_superSuffix_in_primary3129 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_new_key_in_primary3144 = new BitSet(new long[]{0x0000008080000000L});
+ public static final BitSet FOLLOW_creator_in_primary3146 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_primitiveType_in_primary3161 = new BitSet(new long[]{0x0000004000010000L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_primary3164 = new BitSet(new long[]{0x2000000000000000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_primary3166 = new BitSet(new long[]{0x0000004000010000L});
+ public static final BitSet FOLLOW_DOT_in_primary3170 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_class_key_in_primary3172 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_inlineMapExpression_in_primary3192 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_inlineListExpression_in_primary3207 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_primary3223 = new BitSet(new long[]{0x0008006010010002L});
+ public static final BitSet FOLLOW_DOT_in_primary3259 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_ID_in_primary3263 = new BitSet(new long[]{0x0008006010010002L});
+ public static final BitSet FOLLOW_set_in_primary3309 = new BitSet(new long[]{0x0000002000000000L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_primary3315 = new BitSet(new long[]{0x048502E1A1017100L,0x000000000000000FL});
+ public static final BitSet FOLLOW_expression_in_primary3355 = new BitSet(new long[]{0x1000000000000400L});
+ public static final BitSet FOLLOW_COMMA_in_primary3358 = new BitSet(new long[]{0x048502E1A1017100L,0x000000000000000FL});
+ public static final BitSet FOLLOW_expression_in_primary3362 = new BitSet(new long[]{0x1000000000000400L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_primary3402 = new BitSet(new long[]{0x0008006010010002L});
+ public static final BitSet FOLLOW_HASH_in_primary3456 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_ID_in_primary3460 = new BitSet(new long[]{0x0008006010010002L});
+ public static final BitSet FOLLOW_NULL_SAFE_DOT_in_primary3502 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_ID_in_primary3506 = new BitSet(new long[]{0x0008006010010002L});
+ public static final BitSet FOLLOW_identifierSuffix_in_primary3528 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_inlineListExpression3549 = new BitSet(new long[]{0x248502E1A1017100L,0x000000000000000FL});
+ public static final BitSet FOLLOW_expressionList_in_inlineListExpression3551 = new BitSet(new long[]{0x2000000000000000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_inlineListExpression3554 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_inlineMapExpression3575 = new BitSet(new long[]{0x048502E1A1017100L,0x000000000000000FL});
+ public static final BitSet FOLLOW_mapExpressionList_in_inlineMapExpression3577 = new BitSet(new long[]{0x2000000000000000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_inlineMapExpression3579 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_mapEntry_in_mapExpressionList3600 = new BitSet(new long[]{0x0000000000000402L});
+ public static final BitSet FOLLOW_COMMA_in_mapExpressionList3603 = new BitSet(new long[]{0x048502E1A1017100L,0x000000000000000FL});
+ public static final BitSet FOLLOW_mapEntry_in_mapExpressionList3605 = new BitSet(new long[]{0x0000000000000402L});
+ public static final BitSet FOLLOW_expression_in_mapEntry3624 = new BitSet(new long[]{0x0000000000000200L});
+ public static final BitSet FOLLOW_COLON_in_mapEntry3626 = new BitSet(new long[]{0x048502E1A1017100L,0x000000000000000FL});
+ public static final BitSet FOLLOW_expression_in_mapEntry3628 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_parExpression3649 = new BitSet(new long[]{0x048502E1A1017100L,0x000000000000000FL});
+ public static final BitSet FOLLOW_expression_in_parExpression3653 = new BitSet(new long[]{0x1000000000000000L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_parExpression3655 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_identifierSuffix3689 = new BitSet(new long[]{0x2000000000000000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_identifierSuffix3730 = new BitSet(new long[]{0x0000004000010000L});
+ public static final BitSet FOLLOW_DOT_in_identifierSuffix3774 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_class_key_in_identifierSuffix3778 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_identifierSuffix3793 = new BitSet(new long[]{0x048502E1A1017100L,0x000000000000000FL});
+ public static final BitSet FOLLOW_expression_in_identifierSuffix3823 = new BitSet(new long[]{0x2000000000000000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_identifierSuffix3851 = new BitSet(new long[]{0x0000004000000002L});
+ public static final BitSet FOLLOW_arguments_in_identifierSuffix3867 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_nonWildcardTypeArguments_in_creator3889 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_createdName_in_creator3892 = new BitSet(new long[]{0x0000006000000000L});
+ public static final BitSet FOLLOW_arrayCreatorRest_in_creator3903 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_classCreatorRest_in_creator3907 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_createdName3925 = new BitSet(new long[]{0x0000008000010002L});
+ public static final BitSet FOLLOW_typeArguments_in_createdName3927 = new BitSet(new long[]{0x0000000000010002L});
+ public static final BitSet FOLLOW_DOT_in_createdName3940 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_ID_in_createdName3942 = new BitSet(new long[]{0x0000008000010002L});
+ public static final BitSet FOLLOW_typeArguments_in_createdName3944 = new BitSet(new long[]{0x0000000000010002L});
+ public static final BitSet FOLLOW_primitiveType_in_createdName3959 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_innerCreator3979 = new BitSet(new long[]{0x0000002000000000L});
+ public static final BitSet FOLLOW_classCreatorRest_in_innerCreator3981 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_arrayCreatorRest4000 = new BitSet(new long[]{0x248502E1A1017100L,0x000000000000000FL});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_arrayCreatorRest4010 = new BitSet(new long[]{0x0000005000000000L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_arrayCreatorRest4013 = new BitSet(new long[]{0x2000000000000000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_arrayCreatorRest4015 = new BitSet(new long[]{0x0000005000000000L});
+ public static final BitSet FOLLOW_arrayInitializer_in_arrayCreatorRest4019 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_expression_in_arrayCreatorRest4033 = new BitSet(new long[]{0x2000000000000000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_arrayCreatorRest4035 = new BitSet(new long[]{0x0000004000000002L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_arrayCreatorRest4040 = new BitSet(new long[]{0x048502E1A1017100L,0x000000000000000FL});
+ public static final BitSet FOLLOW_expression_in_arrayCreatorRest4042 = new BitSet(new long[]{0x2000000000000000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_arrayCreatorRest4044 = new BitSet(new long[]{0x0000004000000002L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_arrayCreatorRest4056 = new BitSet(new long[]{0x2000000000000000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_arrayCreatorRest4058 = new BitSet(new long[]{0x0000004000000002L});
+ public static final BitSet FOLLOW_arrayInitializer_in_variableInitializer4087 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_expression_in_variableInitializer4101 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_CURLY_in_arrayInitializer4118 = new BitSet(new long[]{0x0C8502F1A1017100L,0x000000000000000FL});
+ public static final BitSet FOLLOW_variableInitializer_in_arrayInitializer4121 = new BitSet(new long[]{0x0800000000000400L});
+ public static final BitSet FOLLOW_COMMA_in_arrayInitializer4124 = new BitSet(new long[]{0x048502F1A1017100L,0x000000000000000FL});
+ public static final BitSet FOLLOW_variableInitializer_in_arrayInitializer4126 = new BitSet(new long[]{0x0800000000000400L});
+ public static final BitSet FOLLOW_COMMA_in_arrayInitializer4131 = new BitSet(new long[]{0x0800000000000000L});
+ public static final BitSet FOLLOW_RIGHT_CURLY_in_arrayInitializer4138 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_arguments_in_classCreatorRest4155 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_nonWildcardTypeArguments_in_explicitGenericInvocation4173 = new BitSet(new long[]{0x0000002000000000L});
+ public static final BitSet FOLLOW_arguments_in_explicitGenericInvocation4175 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LESS_in_nonWildcardTypeArguments4192 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_typeList_in_nonWildcardTypeArguments4194 = new BitSet(new long[]{0x0000000004000000L});
+ public static final BitSet FOLLOW_GREATER_in_nonWildcardTypeArguments4196 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_super_key_in_explicitGenericInvocationSuffix4213 = new BitSet(new long[]{0x0000002000010000L});
+ public static final BitSet FOLLOW_superSuffix_in_explicitGenericInvocationSuffix4215 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_explicitGenericInvocationSuffix4226 = new BitSet(new long[]{0x0000002000000000L});
+ public static final BitSet FOLLOW_arguments_in_explicitGenericInvocationSuffix4228 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_DOT_in_selector4253 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_super_key_in_selector4257 = new BitSet(new long[]{0x0000002000010000L});
+ public static final BitSet FOLLOW_superSuffix_in_selector4259 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_DOT_in_selector4275 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_new_key_in_selector4279 = new BitSet(new long[]{0x0000008080000000L});
+ public static final BitSet FOLLOW_nonWildcardTypeArguments_in_selector4282 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_innerCreator_in_selector4286 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_DOT_in_selector4302 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_ID_in_selector4324 = new BitSet(new long[]{0x0000002000000002L});
+ public static final BitSet FOLLOW_arguments_in_selector4353 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_NULL_SAFE_DOT_in_selector4371 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_ID_in_selector4393 = new BitSet(new long[]{0x0000002000000002L});
+ public static final BitSet FOLLOW_arguments_in_selector4422 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_selector4443 = new BitSet(new long[]{0x048502E1A1017100L,0x000000000000000FL});
+ public static final BitSet FOLLOW_expression_in_selector4470 = new BitSet(new long[]{0x2000000000000000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_selector4495 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_arguments_in_superSuffix4514 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_DOT_in_superSuffix4525 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_ID_in_superSuffix4527 = new BitSet(new long[]{0x0000002000000002L});
+ public static final BitSet FOLLOW_arguments_in_superSuffix4536 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_squareArguments4559 = new BitSet(new long[]{0x248502E1A1017100L,0x000000000000000FL});
+ public static final BitSet FOLLOW_expressionList_in_squareArguments4564 = new BitSet(new long[]{0x2000000000000000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_squareArguments4570 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_arguments4587 = new BitSet(new long[]{0x148502E1A1017100L,0x000000000000000FL});
+ public static final BitSet FOLLOW_expressionList_in_arguments4599 = new BitSet(new long[]{0x1000000000000000L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_arguments4610 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_expression_in_expressionList4640 = new BitSet(new long[]{0x0000000000000402L});
+ public static final BitSet FOLLOW_COMMA_in_expressionList4651 = new BitSet(new long[]{0x048502E1A1017100L,0x000000000000000FL});
+ public static final BitSet FOLLOW_expression_in_expressionList4655 = new BitSet(new long[]{0x0000000000000402L});
+ public static final BitSet FOLLOW_EQUALS_ASSIGN_in_assignmentOperator4676 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_PLUS_ASSIGN_in_assignmentOperator4684 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_MINUS_ASSIGN_in_assignmentOperator4692 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_MULT_ASSIGN_in_assignmentOperator4700 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_DIV_ASSIGN_in_assignmentOperator4708 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_AND_ASSIGN_in_assignmentOperator4716 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_OR_ASSIGN_in_assignmentOperator4724 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_XOR_ASSIGN_in_assignmentOperator4732 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_MOD_ASSIGN_in_assignmentOperator4740 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LESS_in_assignmentOperator4748 = new BitSet(new long[]{0x0000008000000000L});
+ public static final BitSet FOLLOW_LESS_in_assignmentOperator4750 = new BitSet(new long[]{0x0000000000200000L});
+ public static final BitSet FOLLOW_EQUALS_ASSIGN_in_assignmentOperator4752 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_GREATER_in_assignmentOperator4769 = new BitSet(new long[]{0x0000000004000000L});
+ public static final BitSet FOLLOW_GREATER_in_assignmentOperator4771 = new BitSet(new long[]{0x0000000004000000L});
+ public static final BitSet FOLLOW_GREATER_in_assignmentOperator4773 = new BitSet(new long[]{0x0000000000200000L});
+ public static final BitSet FOLLOW_EQUALS_ASSIGN_in_assignmentOperator4775 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_GREATER_in_assignmentOperator4790 = new BitSet(new long[]{0x0000000004000000L});
+ public static final BitSet FOLLOW_GREATER_in_assignmentOperator4792 = new BitSet(new long[]{0x0000000000200000L});
+ public static final BitSet FOLLOW_EQUALS_ASSIGN_in_assignmentOperator4794 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_extends_key4824 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_super_key4853 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_instanceof_key4882 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_boolean_key4911 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_char_key4940 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_byte_key4969 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_short_key4998 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_int_key5027 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_float_key5056 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_long_key5085 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_double_key5114 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_void_key5143 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_this_key5172 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_class_key5201 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_new_key5231 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_not_key5260 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_in_key5287 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_operator_key5312 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_neg_operator_key5337 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_primitiveType_in_synpred1_DRL6Expressions548 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_LEFT_SQUARE_in_synpred2_DRL6Expressions559 = new BitSet(new long[]{0x2000000000000000L});
public static final BitSet FOLLOW_RIGHT_SQUARE_in_synpred2_DRL6Expressions561 = new BitSet(new long[]{0x0000000000000002L});
@@ -8865,44 +8869,44 @@ public final boolean synpred26_DRL6Expressions() {
public static final BitSet FOLLOW_primitiveType_in_synpred20_DRL6Expressions2734 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_LEFT_PAREN_in_synpred21_DRL6Expressions2757 = new BitSet(new long[]{0x0000000080000000L});
public static final BitSet FOLLOW_type_in_synpred21_DRL6Expressions2759 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_synpred24_DRL6Expressions3051 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_nonWildcardTypeArguments_in_synpred25_DRL6Expressions3070 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_literal_in_synpred26_DRL6Expressions3095 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_super_key_in_synpred27_DRL6Expressions3117 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_new_key_in_synpred28_DRL6Expressions3134 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_primitiveType_in_synpred29_DRL6Expressions3151 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_inlineMapExpression_in_synpred30_DRL6Expressions3182 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_inlineListExpression_in_synpred31_DRL6Expressions3197 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_synpred32_DRL6Expressions3212 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_DOT_in_synpred33_DRL6Expressions3246 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_ID_in_synpred33_DRL6Expressions3248 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_set_in_synpred34_DRL6Expressions3292 = new BitSet(new long[]{0x0000002000000000L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_synpred34_DRL6Expressions3298 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_HASH_in_synpred35_DRL6Expressions3443 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_ID_in_synpred35_DRL6Expressions3445 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_NULL_SAFE_DOT_in_synpred36_DRL6Expressions3489 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_ID_in_synpred36_DRL6Expressions3491 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_identifierSuffix_in_synpred37_DRL6Expressions3519 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_SQUARE_in_synpred38_DRL6Expressions3677 = new BitSet(new long[]{0x2000000000000000L});
- public static final BitSet FOLLOW_RIGHT_SQUARE_in_synpred38_DRL6Expressions3679 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_SQUARE_in_synpred39_DRL6Expressions3782 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_SQUARE_in_synpred40_DRL6Expressions4044 = new BitSet(new long[]{0x2000000000000000L});
- public static final BitSet FOLLOW_RIGHT_SQUARE_in_synpred40_DRL6Expressions4046 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_DOT_in_synpred41_DRL6Expressions4242 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_super_key_in_synpred41_DRL6Expressions4244 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_DOT_in_synpred42_DRL6Expressions4264 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_new_key_in_synpred42_DRL6Expressions4266 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_DOT_in_synpred43_DRL6Expressions4291 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_ID_in_synpred43_DRL6Expressions4293 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_synpred44_DRL6Expressions4342 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_NULL_SAFE_DOT_in_synpred45_DRL6Expressions4360 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_ID_in_synpred45_DRL6Expressions4362 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_synpred46_DRL6Expressions4411 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_SQUARE_in_synpred47_DRL6Expressions4434 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_synpred48_DRL6Expressions4525 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_GREATER_in_synpred49_DRL6Expressions4755 = new BitSet(new long[]{0x0000000004000000L});
- public static final BitSet FOLLOW_GREATER_in_synpred49_DRL6Expressions4757 = new BitSet(new long[]{0x0000000004000000L});
- public static final BitSet FOLLOW_GREATER_in_synpred49_DRL6Expressions4759 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_GREATER_in_synpred50_DRL6Expressions4778 = new BitSet(new long[]{0x0000000004000000L});
- public static final BitSet FOLLOW_GREATER_in_synpred50_DRL6Expressions4780 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_synpred24_DRL6Expressions3057 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_nonWildcardTypeArguments_in_synpred25_DRL6Expressions3076 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_literal_in_synpred26_DRL6Expressions3101 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_super_key_in_synpred27_DRL6Expressions3123 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_new_key_in_synpred28_DRL6Expressions3140 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_primitiveType_in_synpred29_DRL6Expressions3157 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_inlineMapExpression_in_synpred30_DRL6Expressions3188 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_inlineListExpression_in_synpred31_DRL6Expressions3203 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_synpred32_DRL6Expressions3218 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_DOT_in_synpred33_DRL6Expressions3252 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_ID_in_synpred33_DRL6Expressions3254 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_set_in_synpred34_DRL6Expressions3298 = new BitSet(new long[]{0x0000002000000000L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_synpred34_DRL6Expressions3304 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_HASH_in_synpred35_DRL6Expressions3449 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_ID_in_synpred35_DRL6Expressions3451 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_NULL_SAFE_DOT_in_synpred36_DRL6Expressions3495 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_ID_in_synpred36_DRL6Expressions3497 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_identifierSuffix_in_synpred37_DRL6Expressions3525 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_synpred38_DRL6Expressions3683 = new BitSet(new long[]{0x2000000000000000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_synpred38_DRL6Expressions3685 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_synpred39_DRL6Expressions3788 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_synpred40_DRL6Expressions4050 = new BitSet(new long[]{0x2000000000000000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_synpred40_DRL6Expressions4052 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_DOT_in_synpred41_DRL6Expressions4248 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_super_key_in_synpred41_DRL6Expressions4250 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_DOT_in_synpred42_DRL6Expressions4270 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_new_key_in_synpred42_DRL6Expressions4272 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_DOT_in_synpred43_DRL6Expressions4297 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_ID_in_synpred43_DRL6Expressions4299 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_synpred44_DRL6Expressions4348 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_NULL_SAFE_DOT_in_synpred45_DRL6Expressions4366 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_ID_in_synpred45_DRL6Expressions4368 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_synpred46_DRL6Expressions4417 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_synpred47_DRL6Expressions4440 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_synpred48_DRL6Expressions4531 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_GREATER_in_synpred49_DRL6Expressions4761 = new BitSet(new long[]{0x0000000004000000L});
+ public static final BitSet FOLLOW_GREATER_in_synpred49_DRL6Expressions4763 = new BitSet(new long[]{0x0000000004000000L});
+ public static final BitSet FOLLOW_GREATER_in_synpred49_DRL6Expressions4765 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_GREATER_in_synpred50_DRL6Expressions4784 = new BitSet(new long[]{0x0000000004000000L});
+ public static final BitSet FOLLOW_GREATER_in_synpred50_DRL6Expressions4786 = new BitSet(new long[]{0x0000000000000002L});
}
diff --git a/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6Lexer.java b/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6Lexer.java
index 9d55b0afd9d..00d1241b68f 100644
--- a/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6Lexer.java
+++ b/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6Lexer.java
@@ -1,33 +1,18 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-// $ANTLR 3.5 src/main/resources/org/drools/compiler/lang/DRL6Lexer.g 2017-05-16 10:26:27
+// $ANTLR 3.5.2 src/main/resources/org/drools/drl/parser/DRL6Lexer.g 2024-01-03 11:41:50
package org.drools.drl.parser.lang;
import org.kie.internal.builder.conf.LanguageLevelOption;
import org.drools.drl.parser.DroolsParserException;
+ import org.drools.util.StringUtils;
- import org.antlr.runtime.*;
-
- import java.util.List;
+import org.antlr.runtime.*;
+import java.util.Stack;
+import java.util.List;
import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
@SuppressWarnings("all")
public class DRL6Lexer extends AbstractDRLLexer {
@@ -134,7 +119,7 @@ public void emitErrorMessage(String msg) {
}
public String normalizeString( String input ) {
- if( input != null && (input.length() == 2 || input.length() >= 4) ) {
+ if( input != null && (input.length() == 2 || input.length() >= 4) ) {
input = input.substring( 1, input.length() - 1 );
input = input.replaceAll( "\'", "'" );
input = input.replaceAll( "\"", "\\\"" );
@@ -165,17 +150,17 @@ public DRL6Lexer(CharStream input) {
public DRL6Lexer(CharStream input, RecognizerSharedState state) {
super(input,state);
}
- @Override public String getGrammarFileName() { return "src/main/resources/org/drools/compiler/lang/DRL6Lexer.g"; }
+ @Override public String getGrammarFileName() { return "src/main/resources/org/drools/drl/parser/DRL6Lexer.g"; }
// $ANTLR start "WS"
public final void mWS() throws RecognitionException {
try {
int _type = WS;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:71:9: ( ( ' ' | '\\t' | '\\f' | EOL )+ )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:71:17: ( ' ' | '\\t' | '\\f' | EOL )+
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:71:9: ( ( ' ' | '\\t' | '\\f' | EOL )+ )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:71:17: ( ' ' | '\\t' | '\\f' | EOL )+
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:71:17: ( ' ' | '\\t' | '\\f' | EOL )+
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:71:17: ( ' ' | '\\t' | '\\f' | EOL )+
int cnt1=0;
loop1:
while (true) {
@@ -205,25 +190,25 @@ public final void mWS() throws RecognitionException {
}
switch (alt1) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:71:19: ' '
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:71:19: ' '
{
match(' '); if (state.failed) return;
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:72:19: '\\t'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:72:19: '\\t'
{
match('\t'); if (state.failed) return;
}
break;
case 3 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:73:19: '\\f'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:73:19: '\\f'
{
match('\f'); if (state.failed) return;
}
break;
case 4 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:74:19: EOL
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:74:19: EOL
{
mEOL(); if (state.failed) return;
@@ -254,10 +239,10 @@ public final void mWS() throws RecognitionException {
// $ANTLR start "EOL"
public final void mEOL() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:80:6: ( ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' ) )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:81:12: ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:80:6: ( ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' ) )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:81:12: ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' )
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:81:12: ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:81:12: ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' )
int alt2=3;
int LA2_0 = input.LA(1);
if ( (LA2_0=='\r') ) {
@@ -280,20 +265,20 @@ else if ( (LA2_0=='\n') ) {
switch (alt2) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:81:20: ( '\\r\\n' )=> '\\r\\n'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:81:20: ( '\\r\\n' )=> '\\r\\n'
{
match("\r\n"); if (state.failed) return;
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:82:25: '\\r'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:82:25: '\\r'
{
match('\r'); if (state.failed) return;
}
break;
case 3 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:83:25: '\\n'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:83:25: '\\n'
{
match('\n'); if (state.failed) return;
}
@@ -315,14 +300,14 @@ public final void mFLOAT() throws RecognitionException {
try {
int _type = FLOAT;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:88:5: ( ( '0' .. '9' )+ '.' ( '0' .. '9' )* ( Exponent )? ( FloatTypeSuffix )? | '.' ( '0' .. '9' )+ ( Exponent )? ( FloatTypeSuffix )? | ( '0' .. '9' )+ Exponent ( FloatTypeSuffix )? | ( '0' .. '9' )+ FloatTypeSuffix )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:88:5: ( ( '0' .. '9' )+ '.' ( '0' .. '9' )* ( Exponent )? ( FloatTypeSuffix )? | '.' ( '0' .. '9' )+ ( Exponent )? ( FloatTypeSuffix )? | ( '0' .. '9' )+ Exponent ( FloatTypeSuffix )? | ( '0' .. '9' )+ FloatTypeSuffix )
int alt13=4;
alt13 = dfa13.predict(input);
switch (alt13) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:88:9: ( '0' .. '9' )+ '.' ( '0' .. '9' )* ( Exponent )? ( FloatTypeSuffix )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:88:9: ( '0' .. '9' )+ '.' ( '0' .. '9' )* ( Exponent )? ( FloatTypeSuffix )?
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:88:9: ( '0' .. '9' )+
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:88:9: ( '0' .. '9' )+
int cnt3=0;
loop3:
while (true) {
@@ -334,7 +319,7 @@ public final void mFLOAT() throws RecognitionException {
switch (alt3) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
@@ -359,7 +344,7 @@ public final void mFLOAT() throws RecognitionException {
}
match('.'); if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:88:25: ( '0' .. '9' )*
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:88:25: ( '0' .. '9' )*
loop4:
while (true) {
int alt4=2;
@@ -370,7 +355,7 @@ public final void mFLOAT() throws RecognitionException {
switch (alt4) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
@@ -390,7 +375,7 @@ public final void mFLOAT() throws RecognitionException {
}
}
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:88:37: ( Exponent )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:88:37: ( Exponent )?
int alt5=2;
int LA5_0 = input.LA(1);
if ( (LA5_0=='E'||LA5_0=='e') ) {
@@ -398,7 +383,7 @@ public final void mFLOAT() throws RecognitionException {
}
switch (alt5) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:88:37: Exponent
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:88:37: Exponent
{
mExponent(); if (state.failed) return;
@@ -407,7 +392,7 @@ public final void mFLOAT() throws RecognitionException {
}
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:88:47: ( FloatTypeSuffix )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:88:47: ( FloatTypeSuffix )?
int alt6=2;
int LA6_0 = input.LA(1);
if ( (LA6_0=='B'||LA6_0=='D'||LA6_0=='F'||LA6_0=='d'||LA6_0=='f') ) {
@@ -415,7 +400,7 @@ public final void mFLOAT() throws RecognitionException {
}
switch (alt6) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( input.LA(1)=='B'||input.LA(1)=='D'||input.LA(1)=='F'||input.LA(1)=='d'||input.LA(1)=='f' ) {
input.consume();
@@ -435,10 +420,10 @@ public final void mFLOAT() throws RecognitionException {
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:89:9: '.' ( '0' .. '9' )+ ( Exponent )? ( FloatTypeSuffix )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:89:9: '.' ( '0' .. '9' )+ ( Exponent )? ( FloatTypeSuffix )?
{
match('.'); if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:89:13: ( '0' .. '9' )+
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:89:13: ( '0' .. '9' )+
int cnt7=0;
loop7:
while (true) {
@@ -450,7 +435,7 @@ public final void mFLOAT() throws RecognitionException {
switch (alt7) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
@@ -474,7 +459,7 @@ public final void mFLOAT() throws RecognitionException {
cnt7++;
}
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:89:25: ( Exponent )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:89:25: ( Exponent )?
int alt8=2;
int LA8_0 = input.LA(1);
if ( (LA8_0=='E'||LA8_0=='e') ) {
@@ -482,7 +467,7 @@ public final void mFLOAT() throws RecognitionException {
}
switch (alt8) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:89:25: Exponent
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:89:25: Exponent
{
mExponent(); if (state.failed) return;
@@ -491,7 +476,7 @@ public final void mFLOAT() throws RecognitionException {
}
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:89:35: ( FloatTypeSuffix )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:89:35: ( FloatTypeSuffix )?
int alt9=2;
int LA9_0 = input.LA(1);
if ( (LA9_0=='B'||LA9_0=='D'||LA9_0=='F'||LA9_0=='d'||LA9_0=='f') ) {
@@ -499,7 +484,7 @@ public final void mFLOAT() throws RecognitionException {
}
switch (alt9) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( input.LA(1)=='B'||input.LA(1)=='D'||input.LA(1)=='F'||input.LA(1)=='d'||input.LA(1)=='f' ) {
input.consume();
@@ -519,9 +504,9 @@ public final void mFLOAT() throws RecognitionException {
}
break;
case 3 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:90:9: ( '0' .. '9' )+ Exponent ( FloatTypeSuffix )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:90:9: ( '0' .. '9' )+ Exponent ( FloatTypeSuffix )?
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:90:9: ( '0' .. '9' )+
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:90:9: ( '0' .. '9' )+
int cnt10=0;
loop10:
while (true) {
@@ -533,7 +518,7 @@ public final void mFLOAT() throws RecognitionException {
switch (alt10) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
@@ -559,7 +544,7 @@ public final void mFLOAT() throws RecognitionException {
mExponent(); if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:90:30: ( FloatTypeSuffix )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:90:30: ( FloatTypeSuffix )?
int alt11=2;
int LA11_0 = input.LA(1);
if ( (LA11_0=='B'||LA11_0=='D'||LA11_0=='F'||LA11_0=='d'||LA11_0=='f') ) {
@@ -567,7 +552,7 @@ public final void mFLOAT() throws RecognitionException {
}
switch (alt11) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( input.LA(1)=='B'||input.LA(1)=='D'||input.LA(1)=='F'||input.LA(1)=='d'||input.LA(1)=='f' ) {
input.consume();
@@ -587,9 +572,9 @@ public final void mFLOAT() throws RecognitionException {
}
break;
case 4 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:91:9: ( '0' .. '9' )+ FloatTypeSuffix
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:91:9: ( '0' .. '9' )+ FloatTypeSuffix
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:91:9: ( '0' .. '9' )+
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:91:9: ( '0' .. '9' )+
int cnt12=0;
loop12:
while (true) {
@@ -601,7 +586,7 @@ public final void mFLOAT() throws RecognitionException {
switch (alt12) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
@@ -643,8 +628,8 @@ public final void mFLOAT() throws RecognitionException {
// $ANTLR start "Exponent"
public final void mExponent() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:95:10: ( ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:95:12: ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:95:10: ( ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:95:12: ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+
{
if ( input.LA(1)=='E'||input.LA(1)=='e' ) {
input.consume();
@@ -656,7 +641,7 @@ public final void mExponent() throws RecognitionException {
recover(mse);
throw mse;
}
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:95:22: ( '+' | '-' )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:95:22: ( '+' | '-' )?
int alt14=2;
int LA14_0 = input.LA(1);
if ( (LA14_0=='+'||LA14_0=='-') ) {
@@ -664,7 +649,7 @@ public final void mExponent() throws RecognitionException {
}
switch (alt14) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( input.LA(1)=='+'||input.LA(1)=='-' ) {
input.consume();
@@ -681,7 +666,7 @@ public final void mExponent() throws RecognitionException {
}
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:95:33: ( '0' .. '9' )+
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:95:33: ( '0' .. '9' )+
int cnt15=0;
loop15:
while (true) {
@@ -693,7 +678,7 @@ public final void mExponent() throws RecognitionException {
switch (alt15) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
@@ -729,8 +714,8 @@ public final void mExponent() throws RecognitionException {
// $ANTLR start "FloatTypeSuffix"
public final void mFloatTypeSuffix() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:98:17: ( ( 'f' | 'F' | 'd' | 'D' | 'B' ) )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:98:17: ( ( 'f' | 'F' | 'd' | 'D' | 'B' ) )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( input.LA(1)=='B'||input.LA(1)=='D'||input.LA(1)=='F'||input.LA(1)=='d'||input.LA(1)=='f' ) {
input.consume();
@@ -756,8 +741,8 @@ public final void mHEX() throws RecognitionException {
try {
int _type = HEX;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:100:6: ( '0' ( 'x' | 'X' ) ( HexDigit )+ ( IntegerTypeSuffix )? )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:100:8: '0' ( 'x' | 'X' ) ( HexDigit )+ ( IntegerTypeSuffix )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:100:6: ( '0' ( 'x' | 'X' ) ( HexDigit )+ ( IntegerTypeSuffix )? )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:100:8: '0' ( 'x' | 'X' ) ( HexDigit )+ ( IntegerTypeSuffix )?
{
match('0'); if (state.failed) return;
if ( input.LA(1)=='X'||input.LA(1)=='x' ) {
@@ -770,7 +755,7 @@ public final void mHEX() throws RecognitionException {
recover(mse);
throw mse;
}
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:100:22: ( HexDigit )+
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:100:22: ( HexDigit )+
int cnt16=0;
loop16:
while (true) {
@@ -782,7 +767,7 @@ public final void mHEX() throws RecognitionException {
switch (alt16) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9')||(input.LA(1) >= 'A' && input.LA(1) <= 'F')||(input.LA(1) >= 'a' && input.LA(1) <= 'f') ) {
input.consume();
@@ -806,7 +791,7 @@ public final void mHEX() throws RecognitionException {
cnt16++;
}
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:100:32: ( IntegerTypeSuffix )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:100:32: ( IntegerTypeSuffix )?
int alt17=2;
int LA17_0 = input.LA(1);
if ( (LA17_0=='I'||LA17_0=='L'||LA17_0=='l') ) {
@@ -814,7 +799,7 @@ public final void mHEX() throws RecognitionException {
}
switch (alt17) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( input.LA(1)=='I'||input.LA(1)=='L'||input.LA(1)=='l' ) {
input.consume();
@@ -847,10 +832,10 @@ public final void mDECIMAL() throws RecognitionException {
try {
int _type = DECIMAL;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:102:9: ( ( '0' .. '9' )+ ( IntegerTypeSuffix )? )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:102:11: ( '0' .. '9' )+ ( IntegerTypeSuffix )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:102:9: ( ( '0' .. '9' )+ ( IntegerTypeSuffix )? )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:102:11: ( '0' .. '9' )+ ( IntegerTypeSuffix )?
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:102:11: ( '0' .. '9' )+
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:102:11: ( '0' .. '9' )+
int cnt18=0;
loop18:
while (true) {
@@ -862,7 +847,7 @@ public final void mDECIMAL() throws RecognitionException {
switch (alt18) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
@@ -886,7 +871,7 @@ public final void mDECIMAL() throws RecognitionException {
cnt18++;
}
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:102:23: ( IntegerTypeSuffix )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:102:23: ( IntegerTypeSuffix )?
int alt19=2;
int LA19_0 = input.LA(1);
if ( (LA19_0=='I'||LA19_0=='L'||LA19_0=='l') ) {
@@ -894,7 +879,7 @@ public final void mDECIMAL() throws RecognitionException {
}
switch (alt19) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( input.LA(1)=='I'||input.LA(1)=='L'||input.LA(1)=='l' ) {
input.consume();
@@ -925,8 +910,8 @@ public final void mDECIMAL() throws RecognitionException {
// $ANTLR start "IntegerTypeSuffix"
public final void mIntegerTypeSuffix() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:105:19: ( ( 'l' | 'L' | 'I' ) )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:105:19: ( ( 'l' | 'L' | 'I' ) )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( input.LA(1)=='I'||input.LA(1)=='L'||input.LA(1)=='l' ) {
input.consume();
@@ -952,7 +937,7 @@ public final void mSTRING() throws RecognitionException {
try {
int _type = STRING;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:108:5: ( ( '\"' ( EscapeSequence |~ ( '\\\\' | '\"' ) )* '\"' ) | ( '\\'' ( EscapeSequence |~ ( '\\\\' | '\\'' ) )* '\\'' ) )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:108:5: ( ( '\"' ( EscapeSequence |~ ( '\\\\' | '\"' ) )* '\"' ) | ( '\\'' ( EscapeSequence |~ ( '\\\\' | '\\'' ) )* '\\'' ) )
int alt22=2;
int LA22_0 = input.LA(1);
if ( (LA22_0=='\"') ) {
@@ -971,13 +956,13 @@ else if ( (LA22_0=='\'') ) {
switch (alt22) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:108:8: ( '\"' ( EscapeSequence |~ ( '\\\\' | '\"' ) )* '\"' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:108:8: ( '\"' ( EscapeSequence |~ ( '\\\\' | '\"' ) )* '\"' )
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:108:8: ( '\"' ( EscapeSequence |~ ( '\\\\' | '\"' ) )* '\"' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:108:9: '\"' ( EscapeSequence |~ ( '\\\\' | '\"' ) )* '\"'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:108:8: ( '\"' ( EscapeSequence |~ ( '\\\\' | '\"' ) )* '\"' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:108:9: '\"' ( EscapeSequence |~ ( '\\\\' | '\"' ) )* '\"'
{
match('\"'); if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:108:13: ( EscapeSequence |~ ( '\\\\' | '\"' ) )*
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:108:13: ( EscapeSequence |~ ( '\\\\' | '\"' ) )*
loop20:
while (true) {
int alt20=3;
@@ -991,14 +976,14 @@ else if ( ((LA20_0 >= '\u0000' && LA20_0 <= '!')||(LA20_0 >= '#' && LA20_0 <= '[
switch (alt20) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:108:15: EscapeSequence
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:108:15: EscapeSequence
{
mEscapeSequence(); if (state.failed) return;
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:108:32: ~ ( '\\\\' | '\"' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:108:32: ~ ( '\\\\' | '\"' )
{
if ( (input.LA(1) >= '\u0000' && input.LA(1) <= '!')||(input.LA(1) >= '#' && input.LA(1) <= '[')||(input.LA(1) >= ']' && input.LA(1) <= '\uFFFF') ) {
input.consume();
@@ -1024,13 +1009,13 @@ else if ( ((LA20_0 >= '\u0000' && LA20_0 <= '!')||(LA20_0 >= '#' && LA20_0 <= '[
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:109:8: ( '\\'' ( EscapeSequence |~ ( '\\\\' | '\\'' ) )* '\\'' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:109:8: ( '\\'' ( EscapeSequence |~ ( '\\\\' | '\\'' ) )* '\\'' )
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:109:8: ( '\\'' ( EscapeSequence |~ ( '\\\\' | '\\'' ) )* '\\'' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:109:9: '\\'' ( EscapeSequence |~ ( '\\\\' | '\\'' ) )* '\\''
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:109:8: ( '\\'' ( EscapeSequence |~ ( '\\\\' | '\\'' ) )* '\\'' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:109:9: '\\'' ( EscapeSequence |~ ( '\\\\' | '\\'' ) )* '\\''
{
match('\''); if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:109:14: ( EscapeSequence |~ ( '\\\\' | '\\'' ) )*
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:109:14: ( EscapeSequence |~ ( '\\\\' | '\\'' ) )*
loop21:
while (true) {
int alt21=3;
@@ -1044,14 +1029,14 @@ else if ( ((LA21_0 >= '\u0000' && LA21_0 <= '&')||(LA21_0 >= '(' && LA21_0 <= '[
switch (alt21) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:109:16: EscapeSequence
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:109:16: EscapeSequence
{
mEscapeSequence(); if (state.failed) return;
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:109:33: ~ ( '\\\\' | '\\'' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:109:33: ~ ( '\\\\' | '\\'' )
{
if ( (input.LA(1) >= '\u0000' && input.LA(1) <= '&')||(input.LA(1) >= '(' && input.LA(1) <= '[')||(input.LA(1) >= ']' && input.LA(1) <= '\uFFFF') ) {
input.consume();
@@ -1093,17 +1078,17 @@ public final void mTIME_INTERVAL() throws RecognitionException {
try {
int _type = TIME_INTERVAL;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:114:5: ( ( ( '0' .. '9' )+ 'd' ) ( ( '0' .. '9' )+ 'h' )? ( ( '0' .. '9' )+ 'm' )? ( ( '0' .. '9' )+ 's' )? ( ( '0' .. '9' )+ ( 'ms' )? )? | ( ( '0' .. '9' )+ 'h' ) ( ( '0' .. '9' )+ 'm' )? ( ( '0' .. '9' )+ 's' )? ( ( '0' .. '9' )+ ( 'ms' )? )? | ( ( '0' .. '9' )+ 'm' ) ( ( '0' .. '9' )+ 's' )? ( ( '0' .. '9' )+ ( 'ms' )? )? | ( ( '0' .. '9' )+ 's' ) ( ( '0' .. '9' )+ ( 'ms' )? )? | ( ( '0' .. '9' )+ ( 'ms' )? ) )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:114:5: ( ( ( '0' .. '9' )+ 'd' ) ( ( '0' .. '9' )+ 'h' )? ( ( '0' .. '9' )+ 'm' )? ( ( '0' .. '9' )+ 's' )? ( ( '0' .. '9' )+ ( 'ms' )? )? | ( ( '0' .. '9' )+ 'h' ) ( ( '0' .. '9' )+ 'm' )? ( ( '0' .. '9' )+ 's' )? ( ( '0' .. '9' )+ ( 'ms' )? )? | ( ( '0' .. '9' )+ 'm' ) ( ( '0' .. '9' )+ 's' )? ( ( '0' .. '9' )+ ( 'ms' )? )? | ( ( '0' .. '9' )+ 's' ) ( ( '0' .. '9' )+ ( 'ms' )? )? | ( ( '0' .. '9' )+ ( 'ms' )? ) )
int alt53=5;
alt53 = dfa53.predict(input);
switch (alt53) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:114:7: ( ( '0' .. '9' )+ 'd' ) ( ( '0' .. '9' )+ 'h' )? ( ( '0' .. '9' )+ 'm' )? ( ( '0' .. '9' )+ 's' )? ( ( '0' .. '9' )+ ( 'ms' )? )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:114:7: ( ( '0' .. '9' )+ 'd' ) ( ( '0' .. '9' )+ 'h' )? ( ( '0' .. '9' )+ 'm' )? ( ( '0' .. '9' )+ 's' )? ( ( '0' .. '9' )+ ( 'ms' )? )?
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:114:7: ( ( '0' .. '9' )+ 'd' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:114:8: ( '0' .. '9' )+ 'd'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:114:7: ( ( '0' .. '9' )+ 'd' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:114:8: ( '0' .. '9' )+ 'd'
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:114:8: ( '0' .. '9' )+
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:114:8: ( '0' .. '9' )+
int cnt23=0;
loop23:
while (true) {
@@ -1115,7 +1100,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
switch (alt23) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
@@ -1142,14 +1127,14 @@ public final void mTIME_INTERVAL() throws RecognitionException {
match('d'); if (state.failed) return;
}
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:114:25: ( ( '0' .. '9' )+ 'h' )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:114:25: ( ( '0' .. '9' )+ 'h' )?
int alt25=2;
alt25 = dfa25.predict(input);
switch (alt25) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:114:26: ( '0' .. '9' )+ 'h'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:114:26: ( '0' .. '9' )+ 'h'
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:114:26: ( '0' .. '9' )+
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:114:26: ( '0' .. '9' )+
int cnt24=0;
loop24:
while (true) {
@@ -1161,7 +1146,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
switch (alt24) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
@@ -1191,14 +1176,14 @@ public final void mTIME_INTERVAL() throws RecognitionException {
}
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:114:43: ( ( '0' .. '9' )+ 'm' )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:114:43: ( ( '0' .. '9' )+ 'm' )?
int alt27=2;
alt27 = dfa27.predict(input);
switch (alt27) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:114:44: ( '0' .. '9' )+ 'm'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:114:44: ( '0' .. '9' )+ 'm'
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:114:44: ( '0' .. '9' )+
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:114:44: ( '0' .. '9' )+
int cnt26=0;
loop26:
while (true) {
@@ -1210,7 +1195,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
switch (alt26) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
@@ -1240,14 +1225,14 @@ public final void mTIME_INTERVAL() throws RecognitionException {
}
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:114:61: ( ( '0' .. '9' )+ 's' )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:114:61: ( ( '0' .. '9' )+ 's' )?
int alt29=2;
alt29 = dfa29.predict(input);
switch (alt29) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:114:62: ( '0' .. '9' )+ 's'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:114:62: ( '0' .. '9' )+ 's'
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:114:62: ( '0' .. '9' )+
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:114:62: ( '0' .. '9' )+
int cnt28=0;
loop28:
while (true) {
@@ -1259,7 +1244,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
switch (alt28) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
@@ -1289,7 +1274,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
}
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:114:79: ( ( '0' .. '9' )+ ( 'ms' )? )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:114:79: ( ( '0' .. '9' )+ ( 'ms' )? )?
int alt32=2;
int LA32_0 = input.LA(1);
if ( ((LA32_0 >= '0' && LA32_0 <= '9')) ) {
@@ -1297,9 +1282,9 @@ public final void mTIME_INTERVAL() throws RecognitionException {
}
switch (alt32) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:114:80: ( '0' .. '9' )+ ( 'ms' )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:114:80: ( '0' .. '9' )+ ( 'ms' )?
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:114:80: ( '0' .. '9' )+
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:114:80: ( '0' .. '9' )+
int cnt30=0;
loop30:
while (true) {
@@ -1311,7 +1296,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
switch (alt30) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
@@ -1335,7 +1320,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
cnt30++;
}
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:114:92: ( 'ms' )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:114:92: ( 'ms' )?
int alt31=2;
int LA31_0 = input.LA(1);
if ( (LA31_0=='m') ) {
@@ -1343,7 +1328,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
}
switch (alt31) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:114:92: 'ms'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:114:92: 'ms'
{
match("ms"); if (state.failed) return;
@@ -1360,12 +1345,12 @@ public final void mTIME_INTERVAL() throws RecognitionException {
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:115:7: ( ( '0' .. '9' )+ 'h' ) ( ( '0' .. '9' )+ 'm' )? ( ( '0' .. '9' )+ 's' )? ( ( '0' .. '9' )+ ( 'ms' )? )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:115:7: ( ( '0' .. '9' )+ 'h' ) ( ( '0' .. '9' )+ 'm' )? ( ( '0' .. '9' )+ 's' )? ( ( '0' .. '9' )+ ( 'ms' )? )?
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:115:7: ( ( '0' .. '9' )+ 'h' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:115:8: ( '0' .. '9' )+ 'h'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:115:7: ( ( '0' .. '9' )+ 'h' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:115:8: ( '0' .. '9' )+ 'h'
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:115:8: ( '0' .. '9' )+
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:115:8: ( '0' .. '9' )+
int cnt33=0;
loop33:
while (true) {
@@ -1377,7 +1362,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
switch (alt33) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
@@ -1404,14 +1389,14 @@ public final void mTIME_INTERVAL() throws RecognitionException {
match('h'); if (state.failed) return;
}
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:115:25: ( ( '0' .. '9' )+ 'm' )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:115:25: ( ( '0' .. '9' )+ 'm' )?
int alt35=2;
alt35 = dfa35.predict(input);
switch (alt35) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:115:26: ( '0' .. '9' )+ 'm'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:115:26: ( '0' .. '9' )+ 'm'
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:115:26: ( '0' .. '9' )+
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:115:26: ( '0' .. '9' )+
int cnt34=0;
loop34:
while (true) {
@@ -1423,7 +1408,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
switch (alt34) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
@@ -1453,14 +1438,14 @@ public final void mTIME_INTERVAL() throws RecognitionException {
}
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:115:43: ( ( '0' .. '9' )+ 's' )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:115:43: ( ( '0' .. '9' )+ 's' )?
int alt37=2;
alt37 = dfa37.predict(input);
switch (alt37) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:115:44: ( '0' .. '9' )+ 's'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:115:44: ( '0' .. '9' )+ 's'
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:115:44: ( '0' .. '9' )+
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:115:44: ( '0' .. '9' )+
int cnt36=0;
loop36:
while (true) {
@@ -1472,7 +1457,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
switch (alt36) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
@@ -1502,7 +1487,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
}
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:115:61: ( ( '0' .. '9' )+ ( 'ms' )? )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:115:61: ( ( '0' .. '9' )+ ( 'ms' )? )?
int alt40=2;
int LA40_0 = input.LA(1);
if ( ((LA40_0 >= '0' && LA40_0 <= '9')) ) {
@@ -1510,9 +1495,9 @@ public final void mTIME_INTERVAL() throws RecognitionException {
}
switch (alt40) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:115:62: ( '0' .. '9' )+ ( 'ms' )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:115:62: ( '0' .. '9' )+ ( 'ms' )?
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:115:62: ( '0' .. '9' )+
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:115:62: ( '0' .. '9' )+
int cnt38=0;
loop38:
while (true) {
@@ -1524,7 +1509,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
switch (alt38) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
@@ -1548,7 +1533,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
cnt38++;
}
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:115:74: ( 'ms' )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:115:74: ( 'ms' )?
int alt39=2;
int LA39_0 = input.LA(1);
if ( (LA39_0=='m') ) {
@@ -1556,7 +1541,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
}
switch (alt39) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:115:74: 'ms'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:115:74: 'ms'
{
match("ms"); if (state.failed) return;
@@ -1573,12 +1558,12 @@ public final void mTIME_INTERVAL() throws RecognitionException {
}
break;
case 3 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:116:7: ( ( '0' .. '9' )+ 'm' ) ( ( '0' .. '9' )+ 's' )? ( ( '0' .. '9' )+ ( 'ms' )? )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:116:7: ( ( '0' .. '9' )+ 'm' ) ( ( '0' .. '9' )+ 's' )? ( ( '0' .. '9' )+ ( 'ms' )? )?
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:116:7: ( ( '0' .. '9' )+ 'm' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:116:8: ( '0' .. '9' )+ 'm'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:116:7: ( ( '0' .. '9' )+ 'm' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:116:8: ( '0' .. '9' )+ 'm'
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:116:8: ( '0' .. '9' )+
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:116:8: ( '0' .. '9' )+
int cnt41=0;
loop41:
while (true) {
@@ -1590,7 +1575,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
switch (alt41) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
@@ -1617,14 +1602,14 @@ public final void mTIME_INTERVAL() throws RecognitionException {
match('m'); if (state.failed) return;
}
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:116:25: ( ( '0' .. '9' )+ 's' )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:116:25: ( ( '0' .. '9' )+ 's' )?
int alt43=2;
alt43 = dfa43.predict(input);
switch (alt43) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:116:26: ( '0' .. '9' )+ 's'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:116:26: ( '0' .. '9' )+ 's'
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:116:26: ( '0' .. '9' )+
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:116:26: ( '0' .. '9' )+
int cnt42=0;
loop42:
while (true) {
@@ -1636,7 +1621,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
switch (alt42) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
@@ -1666,7 +1651,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
}
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:116:43: ( ( '0' .. '9' )+ ( 'ms' )? )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:116:43: ( ( '0' .. '9' )+ ( 'ms' )? )?
int alt46=2;
int LA46_0 = input.LA(1);
if ( ((LA46_0 >= '0' && LA46_0 <= '9')) ) {
@@ -1674,9 +1659,9 @@ public final void mTIME_INTERVAL() throws RecognitionException {
}
switch (alt46) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:116:44: ( '0' .. '9' )+ ( 'ms' )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:116:44: ( '0' .. '9' )+ ( 'ms' )?
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:116:44: ( '0' .. '9' )+
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:116:44: ( '0' .. '9' )+
int cnt44=0;
loop44:
while (true) {
@@ -1688,7 +1673,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
switch (alt44) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
@@ -1712,7 +1697,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
cnt44++;
}
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:116:56: ( 'ms' )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:116:56: ( 'ms' )?
int alt45=2;
int LA45_0 = input.LA(1);
if ( (LA45_0=='m') ) {
@@ -1720,7 +1705,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
}
switch (alt45) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:116:56: 'ms'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:116:56: 'ms'
{
match("ms"); if (state.failed) return;
@@ -1737,12 +1722,12 @@ public final void mTIME_INTERVAL() throws RecognitionException {
}
break;
case 4 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:117:7: ( ( '0' .. '9' )+ 's' ) ( ( '0' .. '9' )+ ( 'ms' )? )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:117:7: ( ( '0' .. '9' )+ 's' ) ( ( '0' .. '9' )+ ( 'ms' )? )?
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:117:7: ( ( '0' .. '9' )+ 's' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:117:8: ( '0' .. '9' )+ 's'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:117:7: ( ( '0' .. '9' )+ 's' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:117:8: ( '0' .. '9' )+ 's'
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:117:8: ( '0' .. '9' )+
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:117:8: ( '0' .. '9' )+
int cnt47=0;
loop47:
while (true) {
@@ -1754,7 +1739,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
switch (alt47) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
@@ -1781,7 +1766,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
match('s'); if (state.failed) return;
}
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:117:25: ( ( '0' .. '9' )+ ( 'ms' )? )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:117:25: ( ( '0' .. '9' )+ ( 'ms' )? )?
int alt50=2;
int LA50_0 = input.LA(1);
if ( ((LA50_0 >= '0' && LA50_0 <= '9')) ) {
@@ -1789,9 +1774,9 @@ public final void mTIME_INTERVAL() throws RecognitionException {
}
switch (alt50) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:117:26: ( '0' .. '9' )+ ( 'ms' )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:117:26: ( '0' .. '9' )+ ( 'ms' )?
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:117:26: ( '0' .. '9' )+
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:117:26: ( '0' .. '9' )+
int cnt48=0;
loop48:
while (true) {
@@ -1803,7 +1788,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
switch (alt48) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
@@ -1827,7 +1812,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
cnt48++;
}
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:117:38: ( 'ms' )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:117:38: ( 'ms' )?
int alt49=2;
int LA49_0 = input.LA(1);
if ( (LA49_0=='m') ) {
@@ -1835,7 +1820,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
}
switch (alt49) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:117:38: 'ms'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:117:38: 'ms'
{
match("ms"); if (state.failed) return;
@@ -1852,12 +1837,12 @@ public final void mTIME_INTERVAL() throws RecognitionException {
}
break;
case 5 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:118:7: ( ( '0' .. '9' )+ ( 'ms' )? )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:118:7: ( ( '0' .. '9' )+ ( 'ms' )? )
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:118:7: ( ( '0' .. '9' )+ ( 'ms' )? )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:118:8: ( '0' .. '9' )+ ( 'ms' )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:118:7: ( ( '0' .. '9' )+ ( 'ms' )? )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:118:8: ( '0' .. '9' )+ ( 'ms' )?
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:118:8: ( '0' .. '9' )+
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:118:8: ( '0' .. '9' )+
int cnt51=0;
loop51:
while (true) {
@@ -1869,7 +1854,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
switch (alt51) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
@@ -1893,7 +1878,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
cnt51++;
}
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:118:20: ( 'ms' )?
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:118:20: ( 'ms' )?
int alt52=2;
int LA52_0 = input.LA(1);
if ( (LA52_0=='m') ) {
@@ -1901,7 +1886,7 @@ public final void mTIME_INTERVAL() throws RecognitionException {
}
switch (alt52) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:118:20: 'ms'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:118:20: 'ms'
{
match("ms"); if (state.failed) return;
@@ -1928,8 +1913,8 @@ public final void mTIME_INTERVAL() throws RecognitionException {
// $ANTLR start "HexDigit"
public final void mHexDigit() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:122:10: ( ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:122:10: ( ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9')||(input.LA(1) >= 'A' && input.LA(1) <= 'F')||(input.LA(1) >= 'a' && input.LA(1) <= 'f') ) {
input.consume();
@@ -1953,7 +1938,7 @@ public final void mHexDigit() throws RecognitionException {
// $ANTLR start "EscapeSequence"
public final void mEscapeSequence() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:126:5: ( '\\\\' ( 'b' | 'B' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' | '.' | 'o' | 'x' | 'a' | 'e' | 'c' | 'd' | 'D' | 's' | 'S' | 'w' | 'W' | 'p' | 'A' | 'G' | 'Z' | 'z' | 'Q' | 'E' | '*' | '[' | ']' | '(' | ')' | '$' | '^' | '{' | '}' | '?' | '+' | '-' | '&' | '|' ) | UnicodeEscape | OctalEscape )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:126:5: ( '\\\\' ( 'b' | 'B' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' | '.' | 'o' | 'x' | 'a' | 'e' | 'c' | 'd' | 'D' | 's' | 'S' | 'w' | 'W' | 'p' | 'A' | 'G' | 'Z' | 'z' | 'Q' | 'E' | '*' | '[' | ']' | '(' | ')' | '$' | '^' | '{' | '}' | '?' | '+' | '-' | '&' | '|' ) | UnicodeEscape | OctalEscape )
int alt54=3;
int LA54_0 = input.LA(1);
if ( (LA54_0=='\\') ) {
@@ -2044,7 +2029,7 @@ public final void mEscapeSequence() throws RecognitionException {
switch (alt54) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:126:9: '\\\\' ( 'b' | 'B' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' | '.' | 'o' | 'x' | 'a' | 'e' | 'c' | 'd' | 'D' | 's' | 'S' | 'w' | 'W' | 'p' | 'A' | 'G' | 'Z' | 'z' | 'Q' | 'E' | '*' | '[' | ']' | '(' | ')' | '$' | '^' | '{' | '}' | '?' | '+' | '-' | '&' | '|' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:126:9: '\\\\' ( 'b' | 'B' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' | '.' | 'o' | 'x' | 'a' | 'e' | 'c' | 'd' | 'D' | 's' | 'S' | 'w' | 'W' | 'p' | 'A' | 'G' | 'Z' | 'z' | 'Q' | 'E' | '*' | '[' | ']' | '(' | ')' | '$' | '^' | '{' | '}' | '?' | '+' | '-' | '&' | '|' )
{
match('\\'); if (state.failed) return;
if ( input.LA(1)=='\"'||input.LA(1)=='$'||(input.LA(1) >= '&' && input.LA(1) <= '+')||(input.LA(1) >= '-' && input.LA(1) <= '.')||input.LA(1)=='?'||(input.LA(1) >= 'A' && input.LA(1) <= 'B')||(input.LA(1) >= 'D' && input.LA(1) <= 'E')||input.LA(1)=='G'||input.LA(1)=='Q'||input.LA(1)=='S'||input.LA(1)=='W'||(input.LA(1) >= 'Z' && input.LA(1) <= '^')||(input.LA(1) >= 'a' && input.LA(1) <= 'f')||(input.LA(1) >= 'n' && input.LA(1) <= 'p')||(input.LA(1) >= 'r' && input.LA(1) <= 't')||(input.LA(1) >= 'w' && input.LA(1) <= 'x')||(input.LA(1) >= 'z' && input.LA(1) <= '}') ) {
@@ -2060,14 +2045,14 @@ public final void mEscapeSequence() throws RecognitionException {
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:130:9: UnicodeEscape
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:130:9: UnicodeEscape
{
mUnicodeEscape(); if (state.failed) return;
}
break;
case 3 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:131:9: OctalEscape
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:131:9: OctalEscape
{
mOctalEscape(); if (state.failed) return;
@@ -2085,7 +2070,7 @@ public final void mEscapeSequence() throws RecognitionException {
// $ANTLR start "OctalEscape"
public final void mOctalEscape() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:136:5: ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:136:5: ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) )
int alt55=3;
int LA55_0 = input.LA(1);
if ( (LA55_0=='\\') ) {
@@ -2145,7 +2130,7 @@ else if ( ((LA55_1 >= '4' && LA55_1 <= '7')) ) {
switch (alt55) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:136:9: '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:136:9: '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' )
{
match('\\'); if (state.failed) return;
if ( (input.LA(1) >= '0' && input.LA(1) <= '3') ) {
@@ -2181,7 +2166,7 @@ else if ( ((LA55_1 >= '4' && LA55_1 <= '7')) ) {
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:137:9: '\\\\' ( '0' .. '7' ) ( '0' .. '7' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:137:9: '\\\\' ( '0' .. '7' ) ( '0' .. '7' )
{
match('\\'); if (state.failed) return;
if ( (input.LA(1) >= '0' && input.LA(1) <= '7') ) {
@@ -2207,7 +2192,7 @@ else if ( ((LA55_1 >= '4' && LA55_1 <= '7')) ) {
}
break;
case 3 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:138:9: '\\\\' ( '0' .. '7' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:138:9: '\\\\' ( '0' .. '7' )
{
match('\\'); if (state.failed) return;
if ( (input.LA(1) >= '0' && input.LA(1) <= '7') ) {
@@ -2234,8 +2219,8 @@ else if ( ((LA55_1 >= '4' && LA55_1 <= '7')) ) {
// $ANTLR start "UnicodeEscape"
public final void mUnicodeEscape() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:143:5: ( '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:143:9: '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:143:5: ( '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:143:9: '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit
{
match('\\'); if (state.failed) return;
match('u'); if (state.failed) return;
@@ -2261,10 +2246,10 @@ public final void mBOOL() throws RecognitionException {
try {
int _type = BOOL;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:146:6: ( ( 'true' | 'false' ) )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:146:8: ( 'true' | 'false' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:146:6: ( ( 'true' | 'false' ) )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:146:8: ( 'true' | 'false' )
{
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:146:8: ( 'true' | 'false' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:146:8: ( 'true' | 'false' )
int alt56=2;
int LA56_0 = input.LA(1);
if ( (LA56_0=='t') ) {
@@ -2283,14 +2268,14 @@ else if ( (LA56_0=='f') ) {
switch (alt56) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:146:9: 'true'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:146:9: 'true'
{
match("true"); if (state.failed) return;
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:146:16: 'false'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:146:16: 'false'
{
match("false"); if (state.failed) return;
@@ -2315,8 +2300,8 @@ public final void mNULL() throws RecognitionException {
try {
int _type = NULL;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:149:6: ( 'null' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:149:8: 'null'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:149:6: ( 'null' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:149:8: 'null'
{
match("null"); if (state.failed) return;
@@ -2336,8 +2321,8 @@ public final void mAT() throws RecognitionException {
try {
int _type = AT;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:152:4: ( '@' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:152:6: '@'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:152:4: ( '@' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:152:6: '@'
{
match('@'); if (state.failed) return;
}
@@ -2356,8 +2341,8 @@ public final void mPLUS_ASSIGN() throws RecognitionException {
try {
int _type = PLUS_ASSIGN;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:156:5: ( '+=' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:156:7: '+='
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:156:5: ( '+=' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:156:7: '+='
{
match("+="); if (state.failed) return;
@@ -2377,8 +2362,8 @@ public final void mMINUS_ASSIGN() throws RecognitionException {
try {
int _type = MINUS_ASSIGN;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:160:5: ( '-=' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:160:7: '-='
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:160:5: ( '-=' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:160:7: '-='
{
match("-="); if (state.failed) return;
@@ -2398,8 +2383,8 @@ public final void mMULT_ASSIGN() throws RecognitionException {
try {
int _type = MULT_ASSIGN;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:164:5: ( '*=' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:164:7: '*='
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:164:5: ( '*=' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:164:7: '*='
{
match("*="); if (state.failed) return;
@@ -2419,8 +2404,8 @@ public final void mDIV_ASSIGN() throws RecognitionException {
try {
int _type = DIV_ASSIGN;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:168:5: ( '/=' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:168:7: '/='
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:168:5: ( '/=' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:168:7: '/='
{
match("/="); if (state.failed) return;
@@ -2440,8 +2425,8 @@ public final void mAND_ASSIGN() throws RecognitionException {
try {
int _type = AND_ASSIGN;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:172:5: ( '&=' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:172:7: '&='
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:172:5: ( '&=' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:172:7: '&='
{
match("&="); if (state.failed) return;
@@ -2461,8 +2446,8 @@ public final void mOR_ASSIGN() throws RecognitionException {
try {
int _type = OR_ASSIGN;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:176:5: ( '|=' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:176:7: '|='
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:176:5: ( '|=' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:176:7: '|='
{
match("|="); if (state.failed) return;
@@ -2482,8 +2467,8 @@ public final void mXOR_ASSIGN() throws RecognitionException {
try {
int _type = XOR_ASSIGN;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:180:5: ( '^=' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:180:7: '^='
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:180:5: ( '^=' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:180:7: '^='
{
match("^="); if (state.failed) return;
@@ -2503,8 +2488,8 @@ public final void mMOD_ASSIGN() throws RecognitionException {
try {
int _type = MOD_ASSIGN;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:184:5: ( '%=' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:184:7: '%='
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:184:5: ( '%=' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:184:7: '%='
{
match("%="); if (state.failed) return;
@@ -2524,8 +2509,8 @@ public final void mUNIFY() throws RecognitionException {
try {
int _type = UNIFY;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:188:5: ( ':=' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:188:7: ':='
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:188:5: ( ':=' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:188:7: ':='
{
match(":="); if (state.failed) return;
@@ -2545,8 +2530,8 @@ public final void mDECR() throws RecognitionException {
try {
int _type = DECR;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:191:6: ( '--' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:191:8: '--'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:191:6: ( '--' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:191:8: '--'
{
match("--"); if (state.failed) return;
@@ -2566,8 +2551,8 @@ public final void mINCR() throws RecognitionException {
try {
int _type = INCR;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:194:6: ( '++' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:194:8: '++'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:194:6: ( '++' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:194:8: '++'
{
match("++"); if (state.failed) return;
@@ -2587,8 +2572,8 @@ public final void mARROW() throws RecognitionException {
try {
int _type = ARROW;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:198:5: ( '->' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:198:7: '->'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:198:5: ( '->' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:198:7: '->'
{
match("->"); if (state.failed) return;
@@ -2608,8 +2593,8 @@ public final void mSEMICOLON() throws RecognitionException {
try {
int _type = SEMICOLON;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:202:5: ( ';' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:202:7: ';'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:202:5: ( ';' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:202:7: ';'
{
match(';'); if (state.failed) return;
}
@@ -2628,8 +2613,8 @@ public final void mCOLON() throws RecognitionException {
try {
int _type = COLON;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:206:5: ( ':' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:206:7: ':'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:206:5: ( ':' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:206:7: ':'
{
match(':'); if (state.failed) return;
}
@@ -2648,8 +2633,8 @@ public final void mEQUALS() throws RecognitionException {
try {
int _type = EQUALS;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:210:5: ( '==' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:210:7: '=='
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:210:5: ( '==' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:210:7: '=='
{
match("=="); if (state.failed) return;
@@ -2669,8 +2654,8 @@ public final void mNOT_EQUALS() throws RecognitionException {
try {
int _type = NOT_EQUALS;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:214:5: ( '!=' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:214:7: '!='
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:214:5: ( '!=' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:214:7: '!='
{
match("!="); if (state.failed) return;
@@ -2690,8 +2675,8 @@ public final void mGREATER_EQUALS() throws RecognitionException {
try {
int _type = GREATER_EQUALS;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:218:5: ( '>=' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:218:7: '>='
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:218:5: ( '>=' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:218:7: '>='
{
match(">="); if (state.failed) return;
@@ -2711,8 +2696,8 @@ public final void mLESS_EQUALS() throws RecognitionException {
try {
int _type = LESS_EQUALS;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:222:5: ( '<=' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:222:7: '<='
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:222:5: ( '<=' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:222:7: '<='
{
match("<="); if (state.failed) return;
@@ -2732,8 +2717,8 @@ public final void mGREATER() throws RecognitionException {
try {
int _type = GREATER;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:226:5: ( '>' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:226:7: '>'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:226:5: ( '>' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:226:7: '>'
{
match('>'); if (state.failed) return;
}
@@ -2752,8 +2737,8 @@ public final void mLESS() throws RecognitionException {
try {
int _type = LESS;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:230:5: ( '<' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:230:7: '<'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:230:5: ( '<' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:230:7: '<'
{
match('<'); if (state.failed) return;
}
@@ -2772,8 +2757,8 @@ public final void mEQUALS_ASSIGN() throws RecognitionException {
try {
int _type = EQUALS_ASSIGN;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:234:5: ( '=' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:234:7: '='
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:234:5: ( '=' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:234:7: '='
{
match('='); if (state.failed) return;
}
@@ -2792,8 +2777,8 @@ public final void mLEFT_PAREN() throws RecognitionException {
try {
int _type = LEFT_PAREN;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:238:9: ( '(' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:238:11: '('
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:238:9: ( '(' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:238:11: '('
{
match('('); if (state.failed) return;
}
@@ -2812,8 +2797,8 @@ public final void mRIGHT_PAREN() throws RecognitionException {
try {
int _type = RIGHT_PAREN;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:242:9: ( ')' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:242:11: ')'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:242:9: ( ')' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:242:11: ')'
{
match(')'); if (state.failed) return;
}
@@ -2832,8 +2817,8 @@ public final void mLEFT_SQUARE() throws RecognitionException {
try {
int _type = LEFT_SQUARE;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:246:9: ( '[' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:246:11: '['
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:246:9: ( '[' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:246:11: '['
{
match('['); if (state.failed) return;
}
@@ -2852,8 +2837,8 @@ public final void mRIGHT_SQUARE() throws RecognitionException {
try {
int _type = RIGHT_SQUARE;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:250:9: ( ']' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:250:11: ']'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:250:9: ( ']' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:250:11: ']'
{
match(']'); if (state.failed) return;
}
@@ -2872,8 +2857,8 @@ public final void mLEFT_CURLY() throws RecognitionException {
try {
int _type = LEFT_CURLY;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:254:9: ( '{' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:254:11: '{'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:254:9: ( '{' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:254:11: '{'
{
match('{'); if (state.failed) return;
}
@@ -2892,8 +2877,8 @@ public final void mRIGHT_CURLY() throws RecognitionException {
try {
int _type = RIGHT_CURLY;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:258:9: ( '}' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:258:11: '}'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:258:9: ( '}' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:258:11: '}'
{
match('}'); if (state.failed) return;
}
@@ -2912,8 +2897,8 @@ public final void mCOMMA() throws RecognitionException {
try {
int _type = COMMA;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:261:7: ( ',' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:261:9: ','
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:261:7: ( ',' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:261:9: ','
{
match(','); if (state.failed) return;
}
@@ -2932,8 +2917,8 @@ public final void mDOT() throws RecognitionException {
try {
int _type = DOT;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:264:5: ( '.' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:264:7: '.'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:264:5: ( '.' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:264:7: '.'
{
match('.'); if (state.failed) return;
}
@@ -2952,8 +2937,8 @@ public final void mNULL_SAFE_DOT() throws RecognitionException {
try {
int _type = NULL_SAFE_DOT;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:267:15: ( '!.' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:267:17: '!.'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:267:15: ( '!.' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:267:17: '!.'
{
match("!."); if (state.failed) return;
@@ -2973,8 +2958,8 @@ public final void mDOUBLE_AMPER() throws RecognitionException {
try {
int _type = DOUBLE_AMPER;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:271:5: ( '&&' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:271:7: '&&'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:271:5: ( '&&' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:271:7: '&&'
{
match("&&"); if (state.failed) return;
@@ -2994,8 +2979,8 @@ public final void mDOUBLE_PIPE() throws RecognitionException {
try {
int _type = DOUBLE_PIPE;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:275:5: ( '||' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:275:7: '||'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:275:5: ( '||' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:275:7: '||'
{
match("||"); if (state.failed) return;
@@ -3015,8 +3000,8 @@ public final void mQUESTION() throws RecognitionException {
try {
int _type = QUESTION;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:279:5: ( '?' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:279:7: '?'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:279:5: ( '?' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:279:7: '?'
{
match('?'); if (state.failed) return;
}
@@ -3035,8 +3020,8 @@ public final void mNEGATION() throws RecognitionException {
try {
int _type = NEGATION;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:283:5: ( '!' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:283:7: '!'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:283:5: ( '!' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:283:7: '!'
{
match('!'); if (state.failed) return;
}
@@ -3055,8 +3040,8 @@ public final void mTILDE() throws RecognitionException {
try {
int _type = TILDE;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:287:5: ( '~' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:287:7: '~'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:287:5: ( '~' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:287:7: '~'
{
match('~'); if (state.failed) return;
}
@@ -3075,8 +3060,8 @@ public final void mPIPE() throws RecognitionException {
try {
int _type = PIPE;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:291:5: ( '|' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:291:7: '|'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:291:5: ( '|' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:291:7: '|'
{
match('|'); if (state.failed) return;
}
@@ -3095,8 +3080,8 @@ public final void mAMPER() throws RecognitionException {
try {
int _type = AMPER;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:295:5: ( '&' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:295:7: '&'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:295:5: ( '&' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:295:7: '&'
{
match('&'); if (state.failed) return;
}
@@ -3115,8 +3100,8 @@ public final void mXOR() throws RecognitionException {
try {
int _type = XOR;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:299:5: ( '^' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:299:7: '^'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:299:5: ( '^' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:299:7: '^'
{
match('^'); if (state.failed) return;
}
@@ -3135,8 +3120,8 @@ public final void mMOD() throws RecognitionException {
try {
int _type = MOD;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:303:5: ( '%' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:303:7: '%'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:303:5: ( '%' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:303:7: '%'
{
match('%'); if (state.failed) return;
}
@@ -3155,8 +3140,8 @@ public final void mSTAR() throws RecognitionException {
try {
int _type = STAR;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:306:6: ( '*' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:306:8: '*'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:306:6: ( '*' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:306:8: '*'
{
match('*'); if (state.failed) return;
}
@@ -3175,8 +3160,8 @@ public final void mMINUS() throws RecognitionException {
try {
int _type = MINUS;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:309:7: ( '-' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:309:9: '-'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:309:7: ( '-' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:309:9: '-'
{
match('-'); if (state.failed) return;
}
@@ -3195,8 +3180,8 @@ public final void mPLUS() throws RecognitionException {
try {
int _type = PLUS;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:312:6: ( '+' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:312:8: '+'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:312:6: ( '+' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:312:8: '+'
{
match('+'); if (state.failed) return;
}
@@ -3215,8 +3200,8 @@ public final void mHASH() throws RecognitionException {
try {
int _type = HASH;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:315:9: ( '#' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:315:13: '#'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:315:9: ( '#' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:315:13: '#'
{
match('#'); if (state.failed) return;
}
@@ -3235,12 +3220,12 @@ public final void mC_STYLE_SINGLE_LINE_COMMENT() throws RecognitionException {
try {
int _type = C_STYLE_SINGLE_LINE_COMMENT;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:319:5: ( '//' (~ ( '\\r' | '\\n' ) )* ( EOL | EOF ) )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:319:7: '//' (~ ( '\\r' | '\\n' ) )* ( EOL | EOF )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:319:5: ( '//' (~ ( '\\r' | '\\n' ) )* ( EOL | EOF ) )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:319:7: '//' (~ ( '\\r' | '\\n' ) )* ( EOL | EOF )
{
match("//"); if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:319:12: (~ ( '\\r' | '\\n' ) )*
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:319:12: (~ ( '\\r' | '\\n' ) )*
loop57:
while (true) {
int alt57=2;
@@ -3251,7 +3236,7 @@ public final void mC_STYLE_SINGLE_LINE_COMMENT() throws RecognitionException {
switch (alt57) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '\u0000' && input.LA(1) <= '\t')||(input.LA(1) >= '\u000B' && input.LA(1) <= '\f')||(input.LA(1) >= '\u000E' && input.LA(1) <= '\uFFFF') ) {
input.consume();
@@ -3271,7 +3256,7 @@ public final void mC_STYLE_SINGLE_LINE_COMMENT() throws RecognitionException {
}
}
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:319:28: ( EOL | EOF )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:319:28: ( EOL | EOF )
int alt58=2;
int LA58_0 = input.LA(1);
if ( (LA58_0=='\n'||LA58_0=='\r') ) {
@@ -3284,14 +3269,14 @@ public final void mC_STYLE_SINGLE_LINE_COMMENT() throws RecognitionException {
switch (alt58) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:319:29: EOL
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:319:29: EOL
{
mEOL(); if (state.failed) return;
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:319:33: EOF
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:319:33: EOF
{
match(EOF); if (state.failed) return;
@@ -3317,12 +3302,12 @@ public final void mMULTI_LINE_COMMENT() throws RecognitionException {
try {
int _type = MULTI_LINE_COMMENT;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:324:5: ( '/*' ( options {greedy=false; } : . )* '*/' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:324:7: '/*' ( options {greedy=false; } : . )* '*/'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:324:5: ( '/*' ( options {greedy=false; } : . )* '*/' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:324:7: '/*' ( options {greedy=false; } : . )* '*/'
{
match("/*"); if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:324:12: ( options {greedy=false; } : . )*
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:324:12: ( options {greedy=false; } : . )*
loop59:
while (true) {
int alt59=2;
@@ -3343,7 +3328,7 @@ else if ( ((LA59_0 >= '\u0000' && LA59_0 <= ')')||(LA59_0 >= '+' && LA59_0 <= '\
switch (alt59) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:324:38: .
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:324:38: .
{
matchAny(); if (state.failed) return;
}
@@ -3373,7 +3358,7 @@ public final void mID() throws RecognitionException {
try {
int _type = ID;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:329:5: ( IdentifierStart ( IdentifierPart )* | '`' IdentifierStart ( IdentifierPart )* '`' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:329:5: ( IdentifierStart ( IdentifierPart )* | '`' IdentifierStart ( IdentifierPart )* '`' )
int alt62=2;
int LA62_0 = input.LA(1);
if ( (LA62_0=='$'||(LA62_0 >= 'A' && LA62_0 <= 'Z')||LA62_0=='_'||(LA62_0 >= 'a' && LA62_0 <= 'z')||(LA62_0 >= '\u00A2' && LA62_0 <= '\u00A5')||LA62_0=='\u00AA'||LA62_0=='\u00B5'||LA62_0=='\u00BA'||(LA62_0 >= '\u00C0' && LA62_0 <= '\u00D6')||(LA62_0 >= '\u00D8' && LA62_0 <= '\u00F6')||(LA62_0 >= '\u00F8' && LA62_0 <= '\u0236')||(LA62_0 >= '\u0250' && LA62_0 <= '\u02C1')||(LA62_0 >= '\u02C6' && LA62_0 <= '\u02D1')||(LA62_0 >= '\u02E0' && LA62_0 <= '\u02E4')||LA62_0=='\u02EE'||LA62_0=='\u037A'||LA62_0=='\u0386'||(LA62_0 >= '\u0388' && LA62_0 <= '\u038A')||LA62_0=='\u038C'||(LA62_0 >= '\u038E' && LA62_0 <= '\u03A1')||(LA62_0 >= '\u03A3' && LA62_0 <= '\u03CE')||(LA62_0 >= '\u03D0' && LA62_0 <= '\u03F5')||(LA62_0 >= '\u03F7' && LA62_0 <= '\u03FB')||(LA62_0 >= '\u0400' && LA62_0 <= '\u0481')||(LA62_0 >= '\u048A' && LA62_0 <= '\u04CE')||(LA62_0 >= '\u04D0' && LA62_0 <= '\u04F5')||(LA62_0 >= '\u04F8' && LA62_0 <= '\u04F9')||(LA62_0 >= '\u0500' && LA62_0 <= '\u050F')||(LA62_0 >= '\u0531' && LA62_0 <= '\u0556')||LA62_0=='\u0559'||(LA62_0 >= '\u0561' && LA62_0 <= '\u0587')||(LA62_0 >= '\u05D0' && LA62_0 <= '\u05EA')||(LA62_0 >= '\u05F0' && LA62_0 <= '\u05F2')||(LA62_0 >= '\u0621' && LA62_0 <= '\u063A')||(LA62_0 >= '\u0640' && LA62_0 <= '\u064A')||(LA62_0 >= '\u066E' && LA62_0 <= '\u066F')||(LA62_0 >= '\u0671' && LA62_0 <= '\u06D3')||LA62_0=='\u06D5'||(LA62_0 >= '\u06E5' && LA62_0 <= '\u06E6')||(LA62_0 >= '\u06EE' && LA62_0 <= '\u06EF')||(LA62_0 >= '\u06FA' && LA62_0 <= '\u06FC')||LA62_0=='\u06FF'||LA62_0=='\u0710'||(LA62_0 >= '\u0712' && LA62_0 <= '\u072F')||(LA62_0 >= '\u074D' && LA62_0 <= '\u074F')||(LA62_0 >= '\u0780' && LA62_0 <= '\u07A5')||LA62_0=='\u07B1'||(LA62_0 >= '\u0904' && LA62_0 <= '\u0939')||LA62_0=='\u093D'||LA62_0=='\u0950'||(LA62_0 >= '\u0958' && LA62_0 <= '\u0961')||(LA62_0 >= '\u0985' && LA62_0 <= '\u098C')||(LA62_0 >= '\u098F' && LA62_0 <= '\u0990')||(LA62_0 >= '\u0993' && LA62_0 <= '\u09A8')||(LA62_0 >= '\u09AA' && LA62_0 <= '\u09B0')||LA62_0=='\u09B2'||(LA62_0 >= '\u09B6' && LA62_0 <= '\u09B9')||LA62_0=='\u09BD'||(LA62_0 >= '\u09DC' && LA62_0 <= '\u09DD')||(LA62_0 >= '\u09DF' && LA62_0 <= '\u09E1')||(LA62_0 >= '\u09F0' && LA62_0 <= '\u09F3')||(LA62_0 >= '\u0A05' && LA62_0 <= '\u0A0A')||(LA62_0 >= '\u0A0F' && LA62_0 <= '\u0A10')||(LA62_0 >= '\u0A13' && LA62_0 <= '\u0A28')||(LA62_0 >= '\u0A2A' && LA62_0 <= '\u0A30')||(LA62_0 >= '\u0A32' && LA62_0 <= '\u0A33')||(LA62_0 >= '\u0A35' && LA62_0 <= '\u0A36')||(LA62_0 >= '\u0A38' && LA62_0 <= '\u0A39')||(LA62_0 >= '\u0A59' && LA62_0 <= '\u0A5C')||LA62_0=='\u0A5E'||(LA62_0 >= '\u0A72' && LA62_0 <= '\u0A74')||(LA62_0 >= '\u0A85' && LA62_0 <= '\u0A8D')||(LA62_0 >= '\u0A8F' && LA62_0 <= '\u0A91')||(LA62_0 >= '\u0A93' && LA62_0 <= '\u0AA8')||(LA62_0 >= '\u0AAA' && LA62_0 <= '\u0AB0')||(LA62_0 >= '\u0AB2' && LA62_0 <= '\u0AB3')||(LA62_0 >= '\u0AB5' && LA62_0 <= '\u0AB9')||LA62_0=='\u0ABD'||LA62_0=='\u0AD0'||(LA62_0 >= '\u0AE0' && LA62_0 <= '\u0AE1')||LA62_0=='\u0AF1'||(LA62_0 >= '\u0B05' && LA62_0 <= '\u0B0C')||(LA62_0 >= '\u0B0F' && LA62_0 <= '\u0B10')||(LA62_0 >= '\u0B13' && LA62_0 <= '\u0B28')||(LA62_0 >= '\u0B2A' && LA62_0 <= '\u0B30')||(LA62_0 >= '\u0B32' && LA62_0 <= '\u0B33')||(LA62_0 >= '\u0B35' && LA62_0 <= '\u0B39')||LA62_0=='\u0B3D'||(LA62_0 >= '\u0B5C' && LA62_0 <= '\u0B5D')||(LA62_0 >= '\u0B5F' && LA62_0 <= '\u0B61')||LA62_0=='\u0B71'||LA62_0=='\u0B83'||(LA62_0 >= '\u0B85' && LA62_0 <= '\u0B8A')||(LA62_0 >= '\u0B8E' && LA62_0 <= '\u0B90')||(LA62_0 >= '\u0B92' && LA62_0 <= '\u0B95')||(LA62_0 >= '\u0B99' && LA62_0 <= '\u0B9A')||LA62_0=='\u0B9C'||(LA62_0 >= '\u0B9E' && LA62_0 <= '\u0B9F')||(LA62_0 >= '\u0BA3' && LA62_0 <= '\u0BA4')||(LA62_0 >= '\u0BA8' && LA62_0 <= '\u0BAA')||(LA62_0 >= '\u0BAE' && LA62_0 <= '\u0BB5')||(LA62_0 >= '\u0BB7' && LA62_0 <= '\u0BB9')||LA62_0=='\u0BF9'||(LA62_0 >= '\u0C05' && LA62_0 <= '\u0C0C')||(LA62_0 >= '\u0C0E' && LA62_0 <= '\u0C10')||(LA62_0 >= '\u0C12' && LA62_0 <= '\u0C28')||(LA62_0 >= '\u0C2A' && LA62_0 <= '\u0C33')||(LA62_0 >= '\u0C35' && LA62_0 <= '\u0C39')||(LA62_0 >= '\u0C60' && LA62_0 <= '\u0C61')||(LA62_0 >= '\u0C85' && LA62_0 <= '\u0C8C')||(LA62_0 >= '\u0C8E' && LA62_0 <= '\u0C90')||(LA62_0 >= '\u0C92' && LA62_0 <= '\u0CA8')||(LA62_0 >= '\u0CAA' && LA62_0 <= '\u0CB3')||(LA62_0 >= '\u0CB5' && LA62_0 <= '\u0CB9')||LA62_0=='\u0CBD'||LA62_0=='\u0CDE'||(LA62_0 >= '\u0CE0' && LA62_0 <= '\u0CE1')||(LA62_0 >= '\u0D05' && LA62_0 <= '\u0D0C')||(LA62_0 >= '\u0D0E' && LA62_0 <= '\u0D10')||(LA62_0 >= '\u0D12' && LA62_0 <= '\u0D28')||(LA62_0 >= '\u0D2A' && LA62_0 <= '\u0D39')||(LA62_0 >= '\u0D60' && LA62_0 <= '\u0D61')||(LA62_0 >= '\u0D85' && LA62_0 <= '\u0D96')||(LA62_0 >= '\u0D9A' && LA62_0 <= '\u0DB1')||(LA62_0 >= '\u0DB3' && LA62_0 <= '\u0DBB')||LA62_0=='\u0DBD'||(LA62_0 >= '\u0DC0' && LA62_0 <= '\u0DC6')||(LA62_0 >= '\u0E01' && LA62_0 <= '\u0E30')||(LA62_0 >= '\u0E32' && LA62_0 <= '\u0E33')||(LA62_0 >= '\u0E3F' && LA62_0 <= '\u0E46')||(LA62_0 >= '\u0E81' && LA62_0 <= '\u0E82')||LA62_0=='\u0E84'||(LA62_0 >= '\u0E87' && LA62_0 <= '\u0E88')||LA62_0=='\u0E8A'||LA62_0=='\u0E8D'||(LA62_0 >= '\u0E94' && LA62_0 <= '\u0E97')||(LA62_0 >= '\u0E99' && LA62_0 <= '\u0E9F')||(LA62_0 >= '\u0EA1' && LA62_0 <= '\u0EA3')||LA62_0=='\u0EA5'||LA62_0=='\u0EA7'||(LA62_0 >= '\u0EAA' && LA62_0 <= '\u0EAB')||(LA62_0 >= '\u0EAD' && LA62_0 <= '\u0EB0')||(LA62_0 >= '\u0EB2' && LA62_0 <= '\u0EB3')||LA62_0=='\u0EBD'||(LA62_0 >= '\u0EC0' && LA62_0 <= '\u0EC4')||LA62_0=='\u0EC6'||(LA62_0 >= '\u0EDC' && LA62_0 <= '\u0EDD')||LA62_0=='\u0F00'||(LA62_0 >= '\u0F40' && LA62_0 <= '\u0F47')||(LA62_0 >= '\u0F49' && LA62_0 <= '\u0F6A')||(LA62_0 >= '\u0F88' && LA62_0 <= '\u0F8B')||(LA62_0 >= '\u1000' && LA62_0 <= '\u1021')||(LA62_0 >= '\u1023' && LA62_0 <= '\u1027')||(LA62_0 >= '\u1029' && LA62_0 <= '\u102A')||(LA62_0 >= '\u1050' && LA62_0 <= '\u1055')||(LA62_0 >= '\u10A0' && LA62_0 <= '\u10C5')||(LA62_0 >= '\u10D0' && LA62_0 <= '\u10F8')||(LA62_0 >= '\u1100' && LA62_0 <= '\u1159')||(LA62_0 >= '\u115F' && LA62_0 <= '\u11A2')||(LA62_0 >= '\u11A8' && LA62_0 <= '\u11F9')||(LA62_0 >= '\u1200' && LA62_0 <= '\u1206')||(LA62_0 >= '\u1208' && LA62_0 <= '\u1246')||LA62_0=='\u1248'||(LA62_0 >= '\u124A' && LA62_0 <= '\u124D')||(LA62_0 >= '\u1250' && LA62_0 <= '\u1256')||LA62_0=='\u1258'||(LA62_0 >= '\u125A' && LA62_0 <= '\u125D')||(LA62_0 >= '\u1260' && LA62_0 <= '\u1286')||LA62_0=='\u1288'||(LA62_0 >= '\u128A' && LA62_0 <= '\u128D')||(LA62_0 >= '\u1290' && LA62_0 <= '\u12AE')||LA62_0=='\u12B0'||(LA62_0 >= '\u12B2' && LA62_0 <= '\u12B5')||(LA62_0 >= '\u12B8' && LA62_0 <= '\u12BE')||LA62_0=='\u12C0'||(LA62_0 >= '\u12C2' && LA62_0 <= '\u12C5')||(LA62_0 >= '\u12C8' && LA62_0 <= '\u12CE')||(LA62_0 >= '\u12D0' && LA62_0 <= '\u12D6')||(LA62_0 >= '\u12D8' && LA62_0 <= '\u12EE')||(LA62_0 >= '\u12F0' && LA62_0 <= '\u130E')||LA62_0=='\u1310'||(LA62_0 >= '\u1312' && LA62_0 <= '\u1315')||(LA62_0 >= '\u1318' && LA62_0 <= '\u131E')||(LA62_0 >= '\u1320' && LA62_0 <= '\u1346')||(LA62_0 >= '\u1348' && LA62_0 <= '\u135A')||(LA62_0 >= '\u13A0' && LA62_0 <= '\u13F4')||(LA62_0 >= '\u1401' && LA62_0 <= '\u166C')||(LA62_0 >= '\u166F' && LA62_0 <= '\u1676')||(LA62_0 >= '\u1681' && LA62_0 <= '\u169A')||(LA62_0 >= '\u16A0' && LA62_0 <= '\u16EA')||(LA62_0 >= '\u16EE' && LA62_0 <= '\u16F0')||(LA62_0 >= '\u1700' && LA62_0 <= '\u170C')||(LA62_0 >= '\u170E' && LA62_0 <= '\u1711')||(LA62_0 >= '\u1720' && LA62_0 <= '\u1731')||(LA62_0 >= '\u1740' && LA62_0 <= '\u1751')||(LA62_0 >= '\u1760' && LA62_0 <= '\u176C')||(LA62_0 >= '\u176E' && LA62_0 <= '\u1770')||(LA62_0 >= '\u1780' && LA62_0 <= '\u17B3')||LA62_0=='\u17D7'||(LA62_0 >= '\u17DB' && LA62_0 <= '\u17DC')||(LA62_0 >= '\u1820' && LA62_0 <= '\u1877')||(LA62_0 >= '\u1880' && LA62_0 <= '\u18A8')||(LA62_0 >= '\u1900' && LA62_0 <= '\u191C')||(LA62_0 >= '\u1950' && LA62_0 <= '\u196D')||(LA62_0 >= '\u1970' && LA62_0 <= '\u1974')||(LA62_0 >= '\u1D00' && LA62_0 <= '\u1D6B')||(LA62_0 >= '\u1E00' && LA62_0 <= '\u1E9B')||(LA62_0 >= '\u1EA0' && LA62_0 <= '\u1EF9')||(LA62_0 >= '\u1F00' && LA62_0 <= '\u1F15')||(LA62_0 >= '\u1F18' && LA62_0 <= '\u1F1D')||(LA62_0 >= '\u1F20' && LA62_0 <= '\u1F45')||(LA62_0 >= '\u1F48' && LA62_0 <= '\u1F4D')||(LA62_0 >= '\u1F50' && LA62_0 <= '\u1F57')||LA62_0=='\u1F59'||LA62_0=='\u1F5B'||LA62_0=='\u1F5D'||(LA62_0 >= '\u1F5F' && LA62_0 <= '\u1F7D')||(LA62_0 >= '\u1F80' && LA62_0 <= '\u1FB4')||(LA62_0 >= '\u1FB6' && LA62_0 <= '\u1FBC')||LA62_0=='\u1FBE'||(LA62_0 >= '\u1FC2' && LA62_0 <= '\u1FC4')||(LA62_0 >= '\u1FC6' && LA62_0 <= '\u1FCC')||(LA62_0 >= '\u1FD0' && LA62_0 <= '\u1FD3')||(LA62_0 >= '\u1FD6' && LA62_0 <= '\u1FDB')||(LA62_0 >= '\u1FE0' && LA62_0 <= '\u1FEC')||(LA62_0 >= '\u1FF2' && LA62_0 <= '\u1FF4')||(LA62_0 >= '\u1FF6' && LA62_0 <= '\u1FFC')||(LA62_0 >= '\u203F' && LA62_0 <= '\u2040')||LA62_0=='\u2054'||LA62_0=='\u2071'||LA62_0=='\u207F'||(LA62_0 >= '\u20A0' && LA62_0 <= '\u20B1')||LA62_0=='\u2102'||LA62_0=='\u2107'||(LA62_0 >= '\u210A' && LA62_0 <= '\u2113')||LA62_0=='\u2115'||(LA62_0 >= '\u2119' && LA62_0 <= '\u211D')||LA62_0=='\u2124'||LA62_0=='\u2126'||LA62_0=='\u2128'||(LA62_0 >= '\u212A' && LA62_0 <= '\u212D')||(LA62_0 >= '\u212F' && LA62_0 <= '\u2131')||(LA62_0 >= '\u2133' && LA62_0 <= '\u2139')||(LA62_0 >= '\u213D' && LA62_0 <= '\u213F')||(LA62_0 >= '\u2145' && LA62_0 <= '\u2149')||(LA62_0 >= '\u2160' && LA62_0 <= '\u2183')||(LA62_0 >= '\u3005' && LA62_0 <= '\u3007')||(LA62_0 >= '\u3021' && LA62_0 <= '\u3029')||(LA62_0 >= '\u3031' && LA62_0 <= '\u3035')||(LA62_0 >= '\u3038' && LA62_0 <= '\u303C')||(LA62_0 >= '\u3041' && LA62_0 <= '\u3096')||(LA62_0 >= '\u309D' && LA62_0 <= '\u309F')||(LA62_0 >= '\u30A1' && LA62_0 <= '\u30FF')||(LA62_0 >= '\u3105' && LA62_0 <= '\u312C')||(LA62_0 >= '\u3131' && LA62_0 <= '\u318E')||(LA62_0 >= '\u31A0' && LA62_0 <= '\u31B7')||(LA62_0 >= '\u31F0' && LA62_0 <= '\u31FF')||(LA62_0 >= '\u3400' && LA62_0 <= '\u4DB5')||(LA62_0 >= '\u4E00' && LA62_0 <= '\u9FA5')||(LA62_0 >= '\uA000' && LA62_0 <= '\uA48C')||(LA62_0 >= '\uAC00' && LA62_0 <= '\uD7A3')||(LA62_0 >= '\uF900' && LA62_0 <= '\uFA2D')||(LA62_0 >= '\uFA30' && LA62_0 <= '\uFA6A')||(LA62_0 >= '\uFB00' && LA62_0 <= '\uFB06')||(LA62_0 >= '\uFB13' && LA62_0 <= '\uFB17')||LA62_0=='\uFB1D'||(LA62_0 >= '\uFB1F' && LA62_0 <= '\uFB28')||(LA62_0 >= '\uFB2A' && LA62_0 <= '\uFB36')||(LA62_0 >= '\uFB38' && LA62_0 <= '\uFB3C')||LA62_0=='\uFB3E'||(LA62_0 >= '\uFB40' && LA62_0 <= '\uFB41')||(LA62_0 >= '\uFB43' && LA62_0 <= '\uFB44')||(LA62_0 >= '\uFB46' && LA62_0 <= '\uFBB1')||(LA62_0 >= '\uFBD3' && LA62_0 <= '\uFD3D')||(LA62_0 >= '\uFD50' && LA62_0 <= '\uFD8F')||(LA62_0 >= '\uFD92' && LA62_0 <= '\uFDC7')||(LA62_0 >= '\uFDF0' && LA62_0 <= '\uFDFC')||(LA62_0 >= '\uFE33' && LA62_0 <= '\uFE34')||(LA62_0 >= '\uFE4D' && LA62_0 <= '\uFE4F')||LA62_0=='\uFE69'||(LA62_0 >= '\uFE70' && LA62_0 <= '\uFE74')||(LA62_0 >= '\uFE76' && LA62_0 <= '\uFEFC')||LA62_0=='\uFF04'||(LA62_0 >= '\uFF21' && LA62_0 <= '\uFF3A')||LA62_0=='\uFF3F'||(LA62_0 >= '\uFF41' && LA62_0 <= '\uFF5A')||(LA62_0 >= '\uFF65' && LA62_0 <= '\uFFBE')||(LA62_0 >= '\uFFC2' && LA62_0 <= '\uFFC7')||(LA62_0 >= '\uFFCA' && LA62_0 <= '\uFFCF')||(LA62_0 >= '\uFFD2' && LA62_0 <= '\uFFD7')||(LA62_0 >= '\uFFDA' && LA62_0 <= '\uFFDC')||(LA62_0 >= '\uFFE0' && LA62_0 <= '\uFFE1')||(LA62_0 >= '\uFFE5' && LA62_0 <= '\uFFE6')) ) {
@@ -3392,11 +3377,11 @@ else if ( (LA62_0=='`') ) {
switch (alt62) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:329:7: IdentifierStart ( IdentifierPart )*
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:329:7: IdentifierStart ( IdentifierPart )*
{
mIdentifierStart(); if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:329:23: ( IdentifierPart )*
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:329:23: ( IdentifierPart )*
loop60:
while (true) {
int alt60=2;
@@ -3407,7 +3392,7 @@ else if ( (LA62_0=='`') ) {
switch (alt60) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '\u0000' && input.LA(1) <= '\b')||(input.LA(1) >= '\u000E' && input.LA(1) <= '\u001B')||input.LA(1)=='$'||(input.LA(1) >= '0' && input.LA(1) <= '9')||(input.LA(1) >= 'A' && input.LA(1) <= 'Z')||input.LA(1)=='_'||(input.LA(1) >= 'a' && input.LA(1) <= 'z')||(input.LA(1) >= '\u007F' && input.LA(1) <= '\u009F')||(input.LA(1) >= '\u00A2' && input.LA(1) <= '\u00A5')||input.LA(1)=='\u00AA'||input.LA(1)=='\u00AD'||input.LA(1)=='\u00B5'||input.LA(1)=='\u00BA'||(input.LA(1) >= '\u00C0' && input.LA(1) <= '\u00D6')||(input.LA(1) >= '\u00D8' && input.LA(1) <= '\u00F6')||(input.LA(1) >= '\u00F8' && input.LA(1) <= '\u0236')||(input.LA(1) >= '\u0250' && input.LA(1) <= '\u02C1')||(input.LA(1) >= '\u02C6' && input.LA(1) <= '\u02D1')||(input.LA(1) >= '\u02E0' && input.LA(1) <= '\u02E4')||input.LA(1)=='\u02EE'||(input.LA(1) >= '\u0300' && input.LA(1) <= '\u0357')||(input.LA(1) >= '\u035D' && input.LA(1) <= '\u036F')||input.LA(1)=='\u037A'||input.LA(1)=='\u0386'||(input.LA(1) >= '\u0388' && input.LA(1) <= '\u038A')||input.LA(1)=='\u038C'||(input.LA(1) >= '\u038E' && input.LA(1) <= '\u03A1')||(input.LA(1) >= '\u03A3' && input.LA(1) <= '\u03CE')||(input.LA(1) >= '\u03D0' && input.LA(1) <= '\u03F5')||(input.LA(1) >= '\u03F7' && input.LA(1) <= '\u03FB')||(input.LA(1) >= '\u0400' && input.LA(1) <= '\u0481')||(input.LA(1) >= '\u0483' && input.LA(1) <= '\u0486')||(input.LA(1) >= '\u048A' && input.LA(1) <= '\u04CE')||(input.LA(1) >= '\u04D0' && input.LA(1) <= '\u04F5')||(input.LA(1) >= '\u04F8' && input.LA(1) <= '\u04F9')||(input.LA(1) >= '\u0500' && input.LA(1) <= '\u050F')||(input.LA(1) >= '\u0531' && input.LA(1) <= '\u0556')||input.LA(1)=='\u0559'||(input.LA(1) >= '\u0561' && input.LA(1) <= '\u0587')||(input.LA(1) >= '\u0591' && input.LA(1) <= '\u05A1')||(input.LA(1) >= '\u05A3' && input.LA(1) <= '\u05B9')||(input.LA(1) >= '\u05BB' && input.LA(1) <= '\u05BD')||input.LA(1)=='\u05BF'||(input.LA(1) >= '\u05C1' && input.LA(1) <= '\u05C2')||input.LA(1)=='\u05C4'||(input.LA(1) >= '\u05D0' && input.LA(1) <= '\u05EA')||(input.LA(1) >= '\u05F0' && input.LA(1) <= '\u05F2')||(input.LA(1) >= '\u0600' && input.LA(1) <= '\u0603')||(input.LA(1) >= '\u0610' && input.LA(1) <= '\u0615')||(input.LA(1) >= '\u0621' && input.LA(1) <= '\u063A')||(input.LA(1) >= '\u0640' && input.LA(1) <= '\u0658')||(input.LA(1) >= '\u0660' && input.LA(1) <= '\u0669')||(input.LA(1) >= '\u066E' && input.LA(1) <= '\u06D3')||(input.LA(1) >= '\u06D5' && input.LA(1) <= '\u06DD')||(input.LA(1) >= '\u06DF' && input.LA(1) <= '\u06E8')||(input.LA(1) >= '\u06EA' && input.LA(1) <= '\u06FC')||input.LA(1)=='\u06FF'||(input.LA(1) >= '\u070F' && input.LA(1) <= '\u074A')||(input.LA(1) >= '\u074D' && input.LA(1) <= '\u074F')||(input.LA(1) >= '\u0780' && input.LA(1) <= '\u07B1')||(input.LA(1) >= '\u0901' && input.LA(1) <= '\u0939')||(input.LA(1) >= '\u093C' && input.LA(1) <= '\u094D')||(input.LA(1) >= '\u0950' && input.LA(1) <= '\u0954')||(input.LA(1) >= '\u0958' && input.LA(1) <= '\u0963')||(input.LA(1) >= '\u0966' && input.LA(1) <= '\u096F')||(input.LA(1) >= '\u0981' && input.LA(1) <= '\u0983')||(input.LA(1) >= '\u0985' && input.LA(1) <= '\u098C')||(input.LA(1) >= '\u098F' && input.LA(1) <= '\u0990')||(input.LA(1) >= '\u0993' && input.LA(1) <= '\u09A8')||(input.LA(1) >= '\u09AA' && input.LA(1) <= '\u09B0')||input.LA(1)=='\u09B2'||(input.LA(1) >= '\u09B6' && input.LA(1) <= '\u09B9')||(input.LA(1) >= '\u09BC' && input.LA(1) <= '\u09C4')||(input.LA(1) >= '\u09C7' && input.LA(1) <= '\u09C8')||(input.LA(1) >= '\u09CB' && input.LA(1) <= '\u09CD')||input.LA(1)=='\u09D7'||(input.LA(1) >= '\u09DC' && input.LA(1) <= '\u09DD')||(input.LA(1) >= '\u09DF' && input.LA(1) <= '\u09E3')||(input.LA(1) >= '\u09E6' && input.LA(1) <= '\u09F3')||(input.LA(1) >= '\u0A01' && input.LA(1) <= '\u0A03')||(input.LA(1) >= '\u0A05' && input.LA(1) <= '\u0A0A')||(input.LA(1) >= '\u0A0F' && input.LA(1) <= '\u0A10')||(input.LA(1) >= '\u0A13' && input.LA(1) <= '\u0A28')||(input.LA(1) >= '\u0A2A' && input.LA(1) <= '\u0A30')||(input.LA(1) >= '\u0A32' && input.LA(1) <= '\u0A33')||(input.LA(1) >= '\u0A35' && input.LA(1) <= '\u0A36')||(input.LA(1) >= '\u0A38' && input.LA(1) <= '\u0A39')||input.LA(1)=='\u0A3C'||(input.LA(1) >= '\u0A3E' && input.LA(1) <= '\u0A42')||(input.LA(1) >= '\u0A47' && input.LA(1) <= '\u0A48')||(input.LA(1) >= '\u0A4B' && input.LA(1) <= '\u0A4D')||(input.LA(1) >= '\u0A59' && input.LA(1) <= '\u0A5C')||input.LA(1)=='\u0A5E'||(input.LA(1) >= '\u0A66' && input.LA(1) <= '\u0A74')||(input.LA(1) >= '\u0A81' && input.LA(1) <= '\u0A83')||(input.LA(1) >= '\u0A85' && input.LA(1) <= '\u0A8D')||(input.LA(1) >= '\u0A8F' && input.LA(1) <= '\u0A91')||(input.LA(1) >= '\u0A93' && input.LA(1) <= '\u0AA8')||(input.LA(1) >= '\u0AAA' && input.LA(1) <= '\u0AB0')||(input.LA(1) >= '\u0AB2' && input.LA(1) <= '\u0AB3')||(input.LA(1) >= '\u0AB5' && input.LA(1) <= '\u0AB9')||(input.LA(1) >= '\u0ABC' && input.LA(1) <= '\u0AC5')||(input.LA(1) >= '\u0AC7' && input.LA(1) <= '\u0AC9')||(input.LA(1) >= '\u0ACB' && input.LA(1) <= '\u0ACD')||input.LA(1)=='\u0AD0'||(input.LA(1) >= '\u0AE0' && input.LA(1) <= '\u0AE3')||(input.LA(1) >= '\u0AE6' && input.LA(1) <= '\u0AEF')||input.LA(1)=='\u0AF1'||(input.LA(1) >= '\u0B01' && input.LA(1) <= '\u0B03')||(input.LA(1) >= '\u0B05' && input.LA(1) <= '\u0B0C')||(input.LA(1) >= '\u0B0F' && input.LA(1) <= '\u0B10')||(input.LA(1) >= '\u0B13' && input.LA(1) <= '\u0B28')||(input.LA(1) >= '\u0B2A' && input.LA(1) <= '\u0B30')||(input.LA(1) >= '\u0B32' && input.LA(1) <= '\u0B33')||(input.LA(1) >= '\u0B35' && input.LA(1) <= '\u0B39')||(input.LA(1) >= '\u0B3C' && input.LA(1) <= '\u0B43')||(input.LA(1) >= '\u0B47' && input.LA(1) <= '\u0B48')||(input.LA(1) >= '\u0B4B' && input.LA(1) <= '\u0B4D')||(input.LA(1) >= '\u0B56' && input.LA(1) <= '\u0B57')||(input.LA(1) >= '\u0B5C' && input.LA(1) <= '\u0B5D')||(input.LA(1) >= '\u0B5F' && input.LA(1) <= '\u0B61')||(input.LA(1) >= '\u0B66' && input.LA(1) <= '\u0B6F')||input.LA(1)=='\u0B71'||(input.LA(1) >= '\u0B82' && input.LA(1) <= '\u0B83')||(input.LA(1) >= '\u0B85' && input.LA(1) <= '\u0B8A')||(input.LA(1) >= '\u0B8E' && input.LA(1) <= '\u0B90')||(input.LA(1) >= '\u0B92' && input.LA(1) <= '\u0B95')||(input.LA(1) >= '\u0B99' && input.LA(1) <= '\u0B9A')||input.LA(1)=='\u0B9C'||(input.LA(1) >= '\u0B9E' && input.LA(1) <= '\u0B9F')||(input.LA(1) >= '\u0BA3' && input.LA(1) <= '\u0BA4')||(input.LA(1) >= '\u0BA8' && input.LA(1) <= '\u0BAA')||(input.LA(1) >= '\u0BAE' && input.LA(1) <= '\u0BB5')||(input.LA(1) >= '\u0BB7' && input.LA(1) <= '\u0BB9')||(input.LA(1) >= '\u0BBE' && input.LA(1) <= '\u0BC2')||(input.LA(1) >= '\u0BC6' && input.LA(1) <= '\u0BC8')||(input.LA(1) >= '\u0BCA' && input.LA(1) <= '\u0BCD')||input.LA(1)=='\u0BD7'||(input.LA(1) >= '\u0BE7' && input.LA(1) <= '\u0BEF')||input.LA(1)=='\u0BF9'||(input.LA(1) >= '\u0C01' && input.LA(1) <= '\u0C03')||(input.LA(1) >= '\u0C05' && input.LA(1) <= '\u0C0C')||(input.LA(1) >= '\u0C0E' && input.LA(1) <= '\u0C10')||(input.LA(1) >= '\u0C12' && input.LA(1) <= '\u0C28')||(input.LA(1) >= '\u0C2A' && input.LA(1) <= '\u0C33')||(input.LA(1) >= '\u0C35' && input.LA(1) <= '\u0C39')||(input.LA(1) >= '\u0C3E' && input.LA(1) <= '\u0C44')||(input.LA(1) >= '\u0C46' && input.LA(1) <= '\u0C48')||(input.LA(1) >= '\u0C4A' && input.LA(1) <= '\u0C4D')||(input.LA(1) >= '\u0C55' && input.LA(1) <= '\u0C56')||(input.LA(1) >= '\u0C60' && input.LA(1) <= '\u0C61')||(input.LA(1) >= '\u0C66' && input.LA(1) <= '\u0C6F')||(input.LA(1) >= '\u0C82' && input.LA(1) <= '\u0C83')||(input.LA(1) >= '\u0C85' && input.LA(1) <= '\u0C8C')||(input.LA(1) >= '\u0C8E' && input.LA(1) <= '\u0C90')||(input.LA(1) >= '\u0C92' && input.LA(1) <= '\u0CA8')||(input.LA(1) >= '\u0CAA' && input.LA(1) <= '\u0CB3')||(input.LA(1) >= '\u0CB5' && input.LA(1) <= '\u0CB9')||(input.LA(1) >= '\u0CBC' && input.LA(1) <= '\u0CC4')||(input.LA(1) >= '\u0CC6' && input.LA(1) <= '\u0CC8')||(input.LA(1) >= '\u0CCA' && input.LA(1) <= '\u0CCD')||(input.LA(1) >= '\u0CD5' && input.LA(1) <= '\u0CD6')||input.LA(1)=='\u0CDE'||(input.LA(1) >= '\u0CE0' && input.LA(1) <= '\u0CE1')||(input.LA(1) >= '\u0CE6' && input.LA(1) <= '\u0CEF')||(input.LA(1) >= '\u0D02' && input.LA(1) <= '\u0D03')||(input.LA(1) >= '\u0D05' && input.LA(1) <= '\u0D0C')||(input.LA(1) >= '\u0D0E' && input.LA(1) <= '\u0D10')||(input.LA(1) >= '\u0D12' && input.LA(1) <= '\u0D28')||(input.LA(1) >= '\u0D2A' && input.LA(1) <= '\u0D39')||(input.LA(1) >= '\u0D3E' && input.LA(1) <= '\u0D43')||(input.LA(1) >= '\u0D46' && input.LA(1) <= '\u0D48')||(input.LA(1) >= '\u0D4A' && input.LA(1) <= '\u0D4D')||input.LA(1)=='\u0D57'||(input.LA(1) >= '\u0D60' && input.LA(1) <= '\u0D61')||(input.LA(1) >= '\u0D66' && input.LA(1) <= '\u0D6F')||(input.LA(1) >= '\u0D82' && input.LA(1) <= '\u0D83')||(input.LA(1) >= '\u0D85' && input.LA(1) <= '\u0D96')||(input.LA(1) >= '\u0D9A' && input.LA(1) <= '\u0DB1')||(input.LA(1) >= '\u0DB3' && input.LA(1) <= '\u0DBB')||input.LA(1)=='\u0DBD'||(input.LA(1) >= '\u0DC0' && input.LA(1) <= '\u0DC6')||input.LA(1)=='\u0DCA'||(input.LA(1) >= '\u0DCF' && input.LA(1) <= '\u0DD4')||input.LA(1)=='\u0DD6'||(input.LA(1) >= '\u0DD8' && input.LA(1) <= '\u0DDF')||(input.LA(1) >= '\u0DF2' && input.LA(1) <= '\u0DF3')||(input.LA(1) >= '\u0E01' && input.LA(1) <= '\u0E3A')||(input.LA(1) >= '\u0E3F' && input.LA(1) <= '\u0E4E')||(input.LA(1) >= '\u0E50' && input.LA(1) <= '\u0E59')||(input.LA(1) >= '\u0E81' && input.LA(1) <= '\u0E82')||input.LA(1)=='\u0E84'||(input.LA(1) >= '\u0E87' && input.LA(1) <= '\u0E88')||input.LA(1)=='\u0E8A'||input.LA(1)=='\u0E8D'||(input.LA(1) >= '\u0E94' && input.LA(1) <= '\u0E97')||(input.LA(1) >= '\u0E99' && input.LA(1) <= '\u0E9F')||(input.LA(1) >= '\u0EA1' && input.LA(1) <= '\u0EA3')||input.LA(1)=='\u0EA5'||input.LA(1)=='\u0EA7'||(input.LA(1) >= '\u0EAA' && input.LA(1) <= '\u0EAB')||(input.LA(1) >= '\u0EAD' && input.LA(1) <= '\u0EB9')||(input.LA(1) >= '\u0EBB' && input.LA(1) <= '\u0EBD')||(input.LA(1) >= '\u0EC0' && input.LA(1) <= '\u0EC4')||input.LA(1)=='\u0EC6'||(input.LA(1) >= '\u0EC8' && input.LA(1) <= '\u0ECD')||(input.LA(1) >= '\u0ED0' && input.LA(1) <= '\u0ED9')||(input.LA(1) >= '\u0EDC' && input.LA(1) <= '\u0EDD')||input.LA(1)=='\u0F00'||(input.LA(1) >= '\u0F18' && input.LA(1) <= '\u0F19')||(input.LA(1) >= '\u0F20' && input.LA(1) <= '\u0F29')||input.LA(1)=='\u0F35'||input.LA(1)=='\u0F37'||input.LA(1)=='\u0F39'||(input.LA(1) >= '\u0F3E' && input.LA(1) <= '\u0F47')||(input.LA(1) >= '\u0F49' && input.LA(1) <= '\u0F6A')||(input.LA(1) >= '\u0F71' && input.LA(1) <= '\u0F84')||(input.LA(1) >= '\u0F86' && input.LA(1) <= '\u0F8B')||(input.LA(1) >= '\u0F90' && input.LA(1) <= '\u0F97')||(input.LA(1) >= '\u0F99' && input.LA(1) <= '\u0FBC')||input.LA(1)=='\u0FC6'||(input.LA(1) >= '\u1000' && input.LA(1) <= '\u1021')||(input.LA(1) >= '\u1023' && input.LA(1) <= '\u1027')||(input.LA(1) >= '\u1029' && input.LA(1) <= '\u102A')||(input.LA(1) >= '\u102C' && input.LA(1) <= '\u1032')||(input.LA(1) >= '\u1036' && input.LA(1) <= '\u1039')||(input.LA(1) >= '\u1040' && input.LA(1) <= '\u1049')||(input.LA(1) >= '\u1050' && input.LA(1) <= '\u1059')||(input.LA(1) >= '\u10A0' && input.LA(1) <= '\u10C5')||(input.LA(1) >= '\u10D0' && input.LA(1) <= '\u10F8')||(input.LA(1) >= '\u1100' && input.LA(1) <= '\u1159')||(input.LA(1) >= '\u115F' && input.LA(1) <= '\u11A2')||(input.LA(1) >= '\u11A8' && input.LA(1) <= '\u11F9')||(input.LA(1) >= '\u1200' && input.LA(1) <= '\u1206')||(input.LA(1) >= '\u1208' && input.LA(1) <= '\u1246')||input.LA(1)=='\u1248'||(input.LA(1) >= '\u124A' && input.LA(1) <= '\u124D')||(input.LA(1) >= '\u1250' && input.LA(1) <= '\u1256')||input.LA(1)=='\u1258'||(input.LA(1) >= '\u125A' && input.LA(1) <= '\u125D')||(input.LA(1) >= '\u1260' && input.LA(1) <= '\u1286')||input.LA(1)=='\u1288'||(input.LA(1) >= '\u128A' && input.LA(1) <= '\u128D')||(input.LA(1) >= '\u1290' && input.LA(1) <= '\u12AE')||input.LA(1)=='\u12B0'||(input.LA(1) >= '\u12B2' && input.LA(1) <= '\u12B5')||(input.LA(1) >= '\u12B8' && input.LA(1) <= '\u12BE')||input.LA(1)=='\u12C0'||(input.LA(1) >= '\u12C2' && input.LA(1) <= '\u12C5')||(input.LA(1) >= '\u12C8' && input.LA(1) <= '\u12CE')||(input.LA(1) >= '\u12D0' && input.LA(1) <= '\u12D6')||(input.LA(1) >= '\u12D8' && input.LA(1) <= '\u12EE')||(input.LA(1) >= '\u12F0' && input.LA(1) <= '\u130E')||input.LA(1)=='\u1310'||(input.LA(1) >= '\u1312' && input.LA(1) <= '\u1315')||(input.LA(1) >= '\u1318' && input.LA(1) <= '\u131E')||(input.LA(1) >= '\u1320' && input.LA(1) <= '\u1346')||(input.LA(1) >= '\u1348' && input.LA(1) <= '\u135A')||(input.LA(1) >= '\u1369' && input.LA(1) <= '\u1371')||(input.LA(1) >= '\u13A0' && input.LA(1) <= '\u13F4')||(input.LA(1) >= '\u1401' && input.LA(1) <= '\u166C')||(input.LA(1) >= '\u166F' && input.LA(1) <= '\u1676')||(input.LA(1) >= '\u1681' && input.LA(1) <= '\u169A')||(input.LA(1) >= '\u16A0' && input.LA(1) <= '\u16EA')||(input.LA(1) >= '\u16EE' && input.LA(1) <= '\u16F0')||(input.LA(1) >= '\u1700' && input.LA(1) <= '\u170C')||(input.LA(1) >= '\u170E' && input.LA(1) <= '\u1714')||(input.LA(1) >= '\u1720' && input.LA(1) <= '\u1734')||(input.LA(1) >= '\u1740' && input.LA(1) <= '\u1753')||(input.LA(1) >= '\u1760' && input.LA(1) <= '\u176C')||(input.LA(1) >= '\u176E' && input.LA(1) <= '\u1770')||(input.LA(1) >= '\u1772' && input.LA(1) <= '\u1773')||(input.LA(1) >= '\u1780' && input.LA(1) <= '\u17D3')||input.LA(1)=='\u17D7'||(input.LA(1) >= '\u17DB' && input.LA(1) <= '\u17DD')||(input.LA(1) >= '\u17E0' && input.LA(1) <= '\u17E9')||(input.LA(1) >= '\u180B' && input.LA(1) <= '\u180D')||(input.LA(1) >= '\u1810' && input.LA(1) <= '\u1819')||(input.LA(1) >= '\u1820' && input.LA(1) <= '\u1877')||(input.LA(1) >= '\u1880' && input.LA(1) <= '\u18A9')||(input.LA(1) >= '\u1900' && input.LA(1) <= '\u191C')||(input.LA(1) >= '\u1920' && input.LA(1) <= '\u192B')||(input.LA(1) >= '\u1930' && input.LA(1) <= '\u193B')||(input.LA(1) >= '\u1946' && input.LA(1) <= '\u196D')||(input.LA(1) >= '\u1970' && input.LA(1) <= '\u1974')||(input.LA(1) >= '\u1D00' && input.LA(1) <= '\u1D6B')||(input.LA(1) >= '\u1E00' && input.LA(1) <= '\u1E9B')||(input.LA(1) >= '\u1EA0' && input.LA(1) <= '\u1EF9')||(input.LA(1) >= '\u1F00' && input.LA(1) <= '\u1F15')||(input.LA(1) >= '\u1F18' && input.LA(1) <= '\u1F1D')||(input.LA(1) >= '\u1F20' && input.LA(1) <= '\u1F45')||(input.LA(1) >= '\u1F48' && input.LA(1) <= '\u1F4D')||(input.LA(1) >= '\u1F50' && input.LA(1) <= '\u1F57')||input.LA(1)=='\u1F59'||input.LA(1)=='\u1F5B'||input.LA(1)=='\u1F5D'||(input.LA(1) >= '\u1F5F' && input.LA(1) <= '\u1F7D')||(input.LA(1) >= '\u1F80' && input.LA(1) <= '\u1FB4')||(input.LA(1) >= '\u1FB6' && input.LA(1) <= '\u1FBC')||input.LA(1)=='\u1FBE'||(input.LA(1) >= '\u1FC2' && input.LA(1) <= '\u1FC4')||(input.LA(1) >= '\u1FC6' && input.LA(1) <= '\u1FCC')||(input.LA(1) >= '\u1FD0' && input.LA(1) <= '\u1FD3')||(input.LA(1) >= '\u1FD6' && input.LA(1) <= '\u1FDB')||(input.LA(1) >= '\u1FE0' && input.LA(1) <= '\u1FEC')||(input.LA(1) >= '\u1FF2' && input.LA(1) <= '\u1FF4')||(input.LA(1) >= '\u1FF6' && input.LA(1) <= '\u1FFC')||(input.LA(1) >= '\u200C' && input.LA(1) <= '\u200F')||(input.LA(1) >= '\u202A' && input.LA(1) <= '\u202E')||(input.LA(1) >= '\u203F' && input.LA(1) <= '\u2040')||input.LA(1)=='\u2054'||(input.LA(1) >= '\u2060' && input.LA(1) <= '\u2063')||(input.LA(1) >= '\u206A' && input.LA(1) <= '\u206F')||input.LA(1)=='\u2071'||input.LA(1)=='\u207F'||(input.LA(1) >= '\u20A0' && input.LA(1) <= '\u20B1')||(input.LA(1) >= '\u20D0' && input.LA(1) <= '\u20DC')||input.LA(1)=='\u20E1'||(input.LA(1) >= '\u20E5' && input.LA(1) <= '\u20EA')||input.LA(1)=='\u2102'||input.LA(1)=='\u2107'||(input.LA(1) >= '\u210A' && input.LA(1) <= '\u2113')||input.LA(1)=='\u2115'||(input.LA(1) >= '\u2119' && input.LA(1) <= '\u211D')||input.LA(1)=='\u2124'||input.LA(1)=='\u2126'||input.LA(1)=='\u2128'||(input.LA(1) >= '\u212A' && input.LA(1) <= '\u212D')||(input.LA(1) >= '\u212F' && input.LA(1) <= '\u2131')||(input.LA(1) >= '\u2133' && input.LA(1) <= '\u2139')||(input.LA(1) >= '\u213D' && input.LA(1) <= '\u213F')||(input.LA(1) >= '\u2145' && input.LA(1) <= '\u2149')||(input.LA(1) >= '\u2160' && input.LA(1) <= '\u2183')||(input.LA(1) >= '\u3005' && input.LA(1) <= '\u3007')||(input.LA(1) >= '\u3021' && input.LA(1) <= '\u302F')||(input.LA(1) >= '\u3031' && input.LA(1) <= '\u3035')||(input.LA(1) >= '\u3038' && input.LA(1) <= '\u303C')||(input.LA(1) >= '\u3041' && input.LA(1) <= '\u3096')||(input.LA(1) >= '\u3099' && input.LA(1) <= '\u309A')||(input.LA(1) >= '\u309D' && input.LA(1) <= '\u309F')||(input.LA(1) >= '\u30A1' && input.LA(1) <= '\u30FF')||(input.LA(1) >= '\u3105' && input.LA(1) <= '\u312C')||(input.LA(1) >= '\u3131' && input.LA(1) <= '\u318E')||(input.LA(1) >= '\u31A0' && input.LA(1) <= '\u31B7')||(input.LA(1) >= '\u31F0' && input.LA(1) <= '\u31FF')||(input.LA(1) >= '\u3400' && input.LA(1) <= '\u4DB5')||(input.LA(1) >= '\u4E00' && input.LA(1) <= '\u9FA5')||(input.LA(1) >= '\uA000' && input.LA(1) <= '\uA48C')||(input.LA(1) >= '\uAC00' && input.LA(1) <= '\uD7A3')||(input.LA(1) >= '\uF900' && input.LA(1) <= '\uFA2D')||(input.LA(1) >= '\uFA30' && input.LA(1) <= '\uFA6A')||(input.LA(1) >= '\uFB00' && input.LA(1) <= '\uFB06')||(input.LA(1) >= '\uFB13' && input.LA(1) <= '\uFB17')||(input.LA(1) >= '\uFB1D' && input.LA(1) <= '\uFB28')||(input.LA(1) >= '\uFB2A' && input.LA(1) <= '\uFB36')||(input.LA(1) >= '\uFB38' && input.LA(1) <= '\uFB3C')||input.LA(1)=='\uFB3E'||(input.LA(1) >= '\uFB40' && input.LA(1) <= '\uFB41')||(input.LA(1) >= '\uFB43' && input.LA(1) <= '\uFB44')||(input.LA(1) >= '\uFB46' && input.LA(1) <= '\uFBB1')||(input.LA(1) >= '\uFBD3' && input.LA(1) <= '\uFD3D')||(input.LA(1) >= '\uFD50' && input.LA(1) <= '\uFD8F')||(input.LA(1) >= '\uFD92' && input.LA(1) <= '\uFDC7')||(input.LA(1) >= '\uFDF0' && input.LA(1) <= '\uFDFC')||(input.LA(1) >= '\uFE00' && input.LA(1) <= '\uFE0F')||(input.LA(1) >= '\uFE20' && input.LA(1) <= '\uFE23')||(input.LA(1) >= '\uFE33' && input.LA(1) <= '\uFE34')||(input.LA(1) >= '\uFE4D' && input.LA(1) <= '\uFE4F')||input.LA(1)=='\uFE69'||(input.LA(1) >= '\uFE70' && input.LA(1) <= '\uFE74')||(input.LA(1) >= '\uFE76' && input.LA(1) <= '\uFEFC')||input.LA(1)=='\uFEFF'||input.LA(1)=='\uFF04'||(input.LA(1) >= '\uFF10' && input.LA(1) <= '\uFF19')||(input.LA(1) >= '\uFF21' && input.LA(1) <= '\uFF3A')||input.LA(1)=='\uFF3F'||(input.LA(1) >= '\uFF41' && input.LA(1) <= '\uFF5A')||(input.LA(1) >= '\uFF65' && input.LA(1) <= '\uFFBE')||(input.LA(1) >= '\uFFC2' && input.LA(1) <= '\uFFC7')||(input.LA(1) >= '\uFFCA' && input.LA(1) <= '\uFFCF')||(input.LA(1) >= '\uFFD2' && input.LA(1) <= '\uFFD7')||(input.LA(1) >= '\uFFDA' && input.LA(1) <= '\uFFDC')||(input.LA(1) >= '\uFFE0' && input.LA(1) <= '\uFFE1')||(input.LA(1) >= '\uFFE5' && input.LA(1) <= '\uFFE6')||(input.LA(1) >= '\uFFF9' && input.LA(1) <= '\uFFFB') ) {
input.consume();
@@ -3430,12 +3415,12 @@ else if ( (LA62_0=='`') ) {
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:330:7: '`' IdentifierStart ( IdentifierPart )* '`'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:330:7: '`' IdentifierStart ( IdentifierPart )* '`'
{
match('`'); if (state.failed) return;
mIdentifierStart(); if (state.failed) return;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:330:27: ( IdentifierPart )*
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:330:27: ( IdentifierPart )*
loop61:
while (true) {
int alt61=2;
@@ -3446,7 +3431,7 @@ else if ( (LA62_0=='`') ) {
switch (alt61) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '\u0000' && input.LA(1) <= '\b')||(input.LA(1) >= '\u000E' && input.LA(1) <= '\u001B')||input.LA(1)=='$'||(input.LA(1) >= '0' && input.LA(1) <= '9')||(input.LA(1) >= 'A' && input.LA(1) <= 'Z')||input.LA(1)=='_'||(input.LA(1) >= 'a' && input.LA(1) <= 'z')||(input.LA(1) >= '\u007F' && input.LA(1) <= '\u009F')||(input.LA(1) >= '\u00A2' && input.LA(1) <= '\u00A5')||input.LA(1)=='\u00AA'||input.LA(1)=='\u00AD'||input.LA(1)=='\u00B5'||input.LA(1)=='\u00BA'||(input.LA(1) >= '\u00C0' && input.LA(1) <= '\u00D6')||(input.LA(1) >= '\u00D8' && input.LA(1) <= '\u00F6')||(input.LA(1) >= '\u00F8' && input.LA(1) <= '\u0236')||(input.LA(1) >= '\u0250' && input.LA(1) <= '\u02C1')||(input.LA(1) >= '\u02C6' && input.LA(1) <= '\u02D1')||(input.LA(1) >= '\u02E0' && input.LA(1) <= '\u02E4')||input.LA(1)=='\u02EE'||(input.LA(1) >= '\u0300' && input.LA(1) <= '\u0357')||(input.LA(1) >= '\u035D' && input.LA(1) <= '\u036F')||input.LA(1)=='\u037A'||input.LA(1)=='\u0386'||(input.LA(1) >= '\u0388' && input.LA(1) <= '\u038A')||input.LA(1)=='\u038C'||(input.LA(1) >= '\u038E' && input.LA(1) <= '\u03A1')||(input.LA(1) >= '\u03A3' && input.LA(1) <= '\u03CE')||(input.LA(1) >= '\u03D0' && input.LA(1) <= '\u03F5')||(input.LA(1) >= '\u03F7' && input.LA(1) <= '\u03FB')||(input.LA(1) >= '\u0400' && input.LA(1) <= '\u0481')||(input.LA(1) >= '\u0483' && input.LA(1) <= '\u0486')||(input.LA(1) >= '\u048A' && input.LA(1) <= '\u04CE')||(input.LA(1) >= '\u04D0' && input.LA(1) <= '\u04F5')||(input.LA(1) >= '\u04F8' && input.LA(1) <= '\u04F9')||(input.LA(1) >= '\u0500' && input.LA(1) <= '\u050F')||(input.LA(1) >= '\u0531' && input.LA(1) <= '\u0556')||input.LA(1)=='\u0559'||(input.LA(1) >= '\u0561' && input.LA(1) <= '\u0587')||(input.LA(1) >= '\u0591' && input.LA(1) <= '\u05A1')||(input.LA(1) >= '\u05A3' && input.LA(1) <= '\u05B9')||(input.LA(1) >= '\u05BB' && input.LA(1) <= '\u05BD')||input.LA(1)=='\u05BF'||(input.LA(1) >= '\u05C1' && input.LA(1) <= '\u05C2')||input.LA(1)=='\u05C4'||(input.LA(1) >= '\u05D0' && input.LA(1) <= '\u05EA')||(input.LA(1) >= '\u05F0' && input.LA(1) <= '\u05F2')||(input.LA(1) >= '\u0600' && input.LA(1) <= '\u0603')||(input.LA(1) >= '\u0610' && input.LA(1) <= '\u0615')||(input.LA(1) >= '\u0621' && input.LA(1) <= '\u063A')||(input.LA(1) >= '\u0640' && input.LA(1) <= '\u0658')||(input.LA(1) >= '\u0660' && input.LA(1) <= '\u0669')||(input.LA(1) >= '\u066E' && input.LA(1) <= '\u06D3')||(input.LA(1) >= '\u06D5' && input.LA(1) <= '\u06DD')||(input.LA(1) >= '\u06DF' && input.LA(1) <= '\u06E8')||(input.LA(1) >= '\u06EA' && input.LA(1) <= '\u06FC')||input.LA(1)=='\u06FF'||(input.LA(1) >= '\u070F' && input.LA(1) <= '\u074A')||(input.LA(1) >= '\u074D' && input.LA(1) <= '\u074F')||(input.LA(1) >= '\u0780' && input.LA(1) <= '\u07B1')||(input.LA(1) >= '\u0901' && input.LA(1) <= '\u0939')||(input.LA(1) >= '\u093C' && input.LA(1) <= '\u094D')||(input.LA(1) >= '\u0950' && input.LA(1) <= '\u0954')||(input.LA(1) >= '\u0958' && input.LA(1) <= '\u0963')||(input.LA(1) >= '\u0966' && input.LA(1) <= '\u096F')||(input.LA(1) >= '\u0981' && input.LA(1) <= '\u0983')||(input.LA(1) >= '\u0985' && input.LA(1) <= '\u098C')||(input.LA(1) >= '\u098F' && input.LA(1) <= '\u0990')||(input.LA(1) >= '\u0993' && input.LA(1) <= '\u09A8')||(input.LA(1) >= '\u09AA' && input.LA(1) <= '\u09B0')||input.LA(1)=='\u09B2'||(input.LA(1) >= '\u09B6' && input.LA(1) <= '\u09B9')||(input.LA(1) >= '\u09BC' && input.LA(1) <= '\u09C4')||(input.LA(1) >= '\u09C7' && input.LA(1) <= '\u09C8')||(input.LA(1) >= '\u09CB' && input.LA(1) <= '\u09CD')||input.LA(1)=='\u09D7'||(input.LA(1) >= '\u09DC' && input.LA(1) <= '\u09DD')||(input.LA(1) >= '\u09DF' && input.LA(1) <= '\u09E3')||(input.LA(1) >= '\u09E6' && input.LA(1) <= '\u09F3')||(input.LA(1) >= '\u0A01' && input.LA(1) <= '\u0A03')||(input.LA(1) >= '\u0A05' && input.LA(1) <= '\u0A0A')||(input.LA(1) >= '\u0A0F' && input.LA(1) <= '\u0A10')||(input.LA(1) >= '\u0A13' && input.LA(1) <= '\u0A28')||(input.LA(1) >= '\u0A2A' && input.LA(1) <= '\u0A30')||(input.LA(1) >= '\u0A32' && input.LA(1) <= '\u0A33')||(input.LA(1) >= '\u0A35' && input.LA(1) <= '\u0A36')||(input.LA(1) >= '\u0A38' && input.LA(1) <= '\u0A39')||input.LA(1)=='\u0A3C'||(input.LA(1) >= '\u0A3E' && input.LA(1) <= '\u0A42')||(input.LA(1) >= '\u0A47' && input.LA(1) <= '\u0A48')||(input.LA(1) >= '\u0A4B' && input.LA(1) <= '\u0A4D')||(input.LA(1) >= '\u0A59' && input.LA(1) <= '\u0A5C')||input.LA(1)=='\u0A5E'||(input.LA(1) >= '\u0A66' && input.LA(1) <= '\u0A74')||(input.LA(1) >= '\u0A81' && input.LA(1) <= '\u0A83')||(input.LA(1) >= '\u0A85' && input.LA(1) <= '\u0A8D')||(input.LA(1) >= '\u0A8F' && input.LA(1) <= '\u0A91')||(input.LA(1) >= '\u0A93' && input.LA(1) <= '\u0AA8')||(input.LA(1) >= '\u0AAA' && input.LA(1) <= '\u0AB0')||(input.LA(1) >= '\u0AB2' && input.LA(1) <= '\u0AB3')||(input.LA(1) >= '\u0AB5' && input.LA(1) <= '\u0AB9')||(input.LA(1) >= '\u0ABC' && input.LA(1) <= '\u0AC5')||(input.LA(1) >= '\u0AC7' && input.LA(1) <= '\u0AC9')||(input.LA(1) >= '\u0ACB' && input.LA(1) <= '\u0ACD')||input.LA(1)=='\u0AD0'||(input.LA(1) >= '\u0AE0' && input.LA(1) <= '\u0AE3')||(input.LA(1) >= '\u0AE6' && input.LA(1) <= '\u0AEF')||input.LA(1)=='\u0AF1'||(input.LA(1) >= '\u0B01' && input.LA(1) <= '\u0B03')||(input.LA(1) >= '\u0B05' && input.LA(1) <= '\u0B0C')||(input.LA(1) >= '\u0B0F' && input.LA(1) <= '\u0B10')||(input.LA(1) >= '\u0B13' && input.LA(1) <= '\u0B28')||(input.LA(1) >= '\u0B2A' && input.LA(1) <= '\u0B30')||(input.LA(1) >= '\u0B32' && input.LA(1) <= '\u0B33')||(input.LA(1) >= '\u0B35' && input.LA(1) <= '\u0B39')||(input.LA(1) >= '\u0B3C' && input.LA(1) <= '\u0B43')||(input.LA(1) >= '\u0B47' && input.LA(1) <= '\u0B48')||(input.LA(1) >= '\u0B4B' && input.LA(1) <= '\u0B4D')||(input.LA(1) >= '\u0B56' && input.LA(1) <= '\u0B57')||(input.LA(1) >= '\u0B5C' && input.LA(1) <= '\u0B5D')||(input.LA(1) >= '\u0B5F' && input.LA(1) <= '\u0B61')||(input.LA(1) >= '\u0B66' && input.LA(1) <= '\u0B6F')||input.LA(1)=='\u0B71'||(input.LA(1) >= '\u0B82' && input.LA(1) <= '\u0B83')||(input.LA(1) >= '\u0B85' && input.LA(1) <= '\u0B8A')||(input.LA(1) >= '\u0B8E' && input.LA(1) <= '\u0B90')||(input.LA(1) >= '\u0B92' && input.LA(1) <= '\u0B95')||(input.LA(1) >= '\u0B99' && input.LA(1) <= '\u0B9A')||input.LA(1)=='\u0B9C'||(input.LA(1) >= '\u0B9E' && input.LA(1) <= '\u0B9F')||(input.LA(1) >= '\u0BA3' && input.LA(1) <= '\u0BA4')||(input.LA(1) >= '\u0BA8' && input.LA(1) <= '\u0BAA')||(input.LA(1) >= '\u0BAE' && input.LA(1) <= '\u0BB5')||(input.LA(1) >= '\u0BB7' && input.LA(1) <= '\u0BB9')||(input.LA(1) >= '\u0BBE' && input.LA(1) <= '\u0BC2')||(input.LA(1) >= '\u0BC6' && input.LA(1) <= '\u0BC8')||(input.LA(1) >= '\u0BCA' && input.LA(1) <= '\u0BCD')||input.LA(1)=='\u0BD7'||(input.LA(1) >= '\u0BE7' && input.LA(1) <= '\u0BEF')||input.LA(1)=='\u0BF9'||(input.LA(1) >= '\u0C01' && input.LA(1) <= '\u0C03')||(input.LA(1) >= '\u0C05' && input.LA(1) <= '\u0C0C')||(input.LA(1) >= '\u0C0E' && input.LA(1) <= '\u0C10')||(input.LA(1) >= '\u0C12' && input.LA(1) <= '\u0C28')||(input.LA(1) >= '\u0C2A' && input.LA(1) <= '\u0C33')||(input.LA(1) >= '\u0C35' && input.LA(1) <= '\u0C39')||(input.LA(1) >= '\u0C3E' && input.LA(1) <= '\u0C44')||(input.LA(1) >= '\u0C46' && input.LA(1) <= '\u0C48')||(input.LA(1) >= '\u0C4A' && input.LA(1) <= '\u0C4D')||(input.LA(1) >= '\u0C55' && input.LA(1) <= '\u0C56')||(input.LA(1) >= '\u0C60' && input.LA(1) <= '\u0C61')||(input.LA(1) >= '\u0C66' && input.LA(1) <= '\u0C6F')||(input.LA(1) >= '\u0C82' && input.LA(1) <= '\u0C83')||(input.LA(1) >= '\u0C85' && input.LA(1) <= '\u0C8C')||(input.LA(1) >= '\u0C8E' && input.LA(1) <= '\u0C90')||(input.LA(1) >= '\u0C92' && input.LA(1) <= '\u0CA8')||(input.LA(1) >= '\u0CAA' && input.LA(1) <= '\u0CB3')||(input.LA(1) >= '\u0CB5' && input.LA(1) <= '\u0CB9')||(input.LA(1) >= '\u0CBC' && input.LA(1) <= '\u0CC4')||(input.LA(1) >= '\u0CC6' && input.LA(1) <= '\u0CC8')||(input.LA(1) >= '\u0CCA' && input.LA(1) <= '\u0CCD')||(input.LA(1) >= '\u0CD5' && input.LA(1) <= '\u0CD6')||input.LA(1)=='\u0CDE'||(input.LA(1) >= '\u0CE0' && input.LA(1) <= '\u0CE1')||(input.LA(1) >= '\u0CE6' && input.LA(1) <= '\u0CEF')||(input.LA(1) >= '\u0D02' && input.LA(1) <= '\u0D03')||(input.LA(1) >= '\u0D05' && input.LA(1) <= '\u0D0C')||(input.LA(1) >= '\u0D0E' && input.LA(1) <= '\u0D10')||(input.LA(1) >= '\u0D12' && input.LA(1) <= '\u0D28')||(input.LA(1) >= '\u0D2A' && input.LA(1) <= '\u0D39')||(input.LA(1) >= '\u0D3E' && input.LA(1) <= '\u0D43')||(input.LA(1) >= '\u0D46' && input.LA(1) <= '\u0D48')||(input.LA(1) >= '\u0D4A' && input.LA(1) <= '\u0D4D')||input.LA(1)=='\u0D57'||(input.LA(1) >= '\u0D60' && input.LA(1) <= '\u0D61')||(input.LA(1) >= '\u0D66' && input.LA(1) <= '\u0D6F')||(input.LA(1) >= '\u0D82' && input.LA(1) <= '\u0D83')||(input.LA(1) >= '\u0D85' && input.LA(1) <= '\u0D96')||(input.LA(1) >= '\u0D9A' && input.LA(1) <= '\u0DB1')||(input.LA(1) >= '\u0DB3' && input.LA(1) <= '\u0DBB')||input.LA(1)=='\u0DBD'||(input.LA(1) >= '\u0DC0' && input.LA(1) <= '\u0DC6')||input.LA(1)=='\u0DCA'||(input.LA(1) >= '\u0DCF' && input.LA(1) <= '\u0DD4')||input.LA(1)=='\u0DD6'||(input.LA(1) >= '\u0DD8' && input.LA(1) <= '\u0DDF')||(input.LA(1) >= '\u0DF2' && input.LA(1) <= '\u0DF3')||(input.LA(1) >= '\u0E01' && input.LA(1) <= '\u0E3A')||(input.LA(1) >= '\u0E3F' && input.LA(1) <= '\u0E4E')||(input.LA(1) >= '\u0E50' && input.LA(1) <= '\u0E59')||(input.LA(1) >= '\u0E81' && input.LA(1) <= '\u0E82')||input.LA(1)=='\u0E84'||(input.LA(1) >= '\u0E87' && input.LA(1) <= '\u0E88')||input.LA(1)=='\u0E8A'||input.LA(1)=='\u0E8D'||(input.LA(1) >= '\u0E94' && input.LA(1) <= '\u0E97')||(input.LA(1) >= '\u0E99' && input.LA(1) <= '\u0E9F')||(input.LA(1) >= '\u0EA1' && input.LA(1) <= '\u0EA3')||input.LA(1)=='\u0EA5'||input.LA(1)=='\u0EA7'||(input.LA(1) >= '\u0EAA' && input.LA(1) <= '\u0EAB')||(input.LA(1) >= '\u0EAD' && input.LA(1) <= '\u0EB9')||(input.LA(1) >= '\u0EBB' && input.LA(1) <= '\u0EBD')||(input.LA(1) >= '\u0EC0' && input.LA(1) <= '\u0EC4')||input.LA(1)=='\u0EC6'||(input.LA(1) >= '\u0EC8' && input.LA(1) <= '\u0ECD')||(input.LA(1) >= '\u0ED0' && input.LA(1) <= '\u0ED9')||(input.LA(1) >= '\u0EDC' && input.LA(1) <= '\u0EDD')||input.LA(1)=='\u0F00'||(input.LA(1) >= '\u0F18' && input.LA(1) <= '\u0F19')||(input.LA(1) >= '\u0F20' && input.LA(1) <= '\u0F29')||input.LA(1)=='\u0F35'||input.LA(1)=='\u0F37'||input.LA(1)=='\u0F39'||(input.LA(1) >= '\u0F3E' && input.LA(1) <= '\u0F47')||(input.LA(1) >= '\u0F49' && input.LA(1) <= '\u0F6A')||(input.LA(1) >= '\u0F71' && input.LA(1) <= '\u0F84')||(input.LA(1) >= '\u0F86' && input.LA(1) <= '\u0F8B')||(input.LA(1) >= '\u0F90' && input.LA(1) <= '\u0F97')||(input.LA(1) >= '\u0F99' && input.LA(1) <= '\u0FBC')||input.LA(1)=='\u0FC6'||(input.LA(1) >= '\u1000' && input.LA(1) <= '\u1021')||(input.LA(1) >= '\u1023' && input.LA(1) <= '\u1027')||(input.LA(1) >= '\u1029' && input.LA(1) <= '\u102A')||(input.LA(1) >= '\u102C' && input.LA(1) <= '\u1032')||(input.LA(1) >= '\u1036' && input.LA(1) <= '\u1039')||(input.LA(1) >= '\u1040' && input.LA(1) <= '\u1049')||(input.LA(1) >= '\u1050' && input.LA(1) <= '\u1059')||(input.LA(1) >= '\u10A0' && input.LA(1) <= '\u10C5')||(input.LA(1) >= '\u10D0' && input.LA(1) <= '\u10F8')||(input.LA(1) >= '\u1100' && input.LA(1) <= '\u1159')||(input.LA(1) >= '\u115F' && input.LA(1) <= '\u11A2')||(input.LA(1) >= '\u11A8' && input.LA(1) <= '\u11F9')||(input.LA(1) >= '\u1200' && input.LA(1) <= '\u1206')||(input.LA(1) >= '\u1208' && input.LA(1) <= '\u1246')||input.LA(1)=='\u1248'||(input.LA(1) >= '\u124A' && input.LA(1) <= '\u124D')||(input.LA(1) >= '\u1250' && input.LA(1) <= '\u1256')||input.LA(1)=='\u1258'||(input.LA(1) >= '\u125A' && input.LA(1) <= '\u125D')||(input.LA(1) >= '\u1260' && input.LA(1) <= '\u1286')||input.LA(1)=='\u1288'||(input.LA(1) >= '\u128A' && input.LA(1) <= '\u128D')||(input.LA(1) >= '\u1290' && input.LA(1) <= '\u12AE')||input.LA(1)=='\u12B0'||(input.LA(1) >= '\u12B2' && input.LA(1) <= '\u12B5')||(input.LA(1) >= '\u12B8' && input.LA(1) <= '\u12BE')||input.LA(1)=='\u12C0'||(input.LA(1) >= '\u12C2' && input.LA(1) <= '\u12C5')||(input.LA(1) >= '\u12C8' && input.LA(1) <= '\u12CE')||(input.LA(1) >= '\u12D0' && input.LA(1) <= '\u12D6')||(input.LA(1) >= '\u12D8' && input.LA(1) <= '\u12EE')||(input.LA(1) >= '\u12F0' && input.LA(1) <= '\u130E')||input.LA(1)=='\u1310'||(input.LA(1) >= '\u1312' && input.LA(1) <= '\u1315')||(input.LA(1) >= '\u1318' && input.LA(1) <= '\u131E')||(input.LA(1) >= '\u1320' && input.LA(1) <= '\u1346')||(input.LA(1) >= '\u1348' && input.LA(1) <= '\u135A')||(input.LA(1) >= '\u1369' && input.LA(1) <= '\u1371')||(input.LA(1) >= '\u13A0' && input.LA(1) <= '\u13F4')||(input.LA(1) >= '\u1401' && input.LA(1) <= '\u166C')||(input.LA(1) >= '\u166F' && input.LA(1) <= '\u1676')||(input.LA(1) >= '\u1681' && input.LA(1) <= '\u169A')||(input.LA(1) >= '\u16A0' && input.LA(1) <= '\u16EA')||(input.LA(1) >= '\u16EE' && input.LA(1) <= '\u16F0')||(input.LA(1) >= '\u1700' && input.LA(1) <= '\u170C')||(input.LA(1) >= '\u170E' && input.LA(1) <= '\u1714')||(input.LA(1) >= '\u1720' && input.LA(1) <= '\u1734')||(input.LA(1) >= '\u1740' && input.LA(1) <= '\u1753')||(input.LA(1) >= '\u1760' && input.LA(1) <= '\u176C')||(input.LA(1) >= '\u176E' && input.LA(1) <= '\u1770')||(input.LA(1) >= '\u1772' && input.LA(1) <= '\u1773')||(input.LA(1) >= '\u1780' && input.LA(1) <= '\u17D3')||input.LA(1)=='\u17D7'||(input.LA(1) >= '\u17DB' && input.LA(1) <= '\u17DD')||(input.LA(1) >= '\u17E0' && input.LA(1) <= '\u17E9')||(input.LA(1) >= '\u180B' && input.LA(1) <= '\u180D')||(input.LA(1) >= '\u1810' && input.LA(1) <= '\u1819')||(input.LA(1) >= '\u1820' && input.LA(1) <= '\u1877')||(input.LA(1) >= '\u1880' && input.LA(1) <= '\u18A9')||(input.LA(1) >= '\u1900' && input.LA(1) <= '\u191C')||(input.LA(1) >= '\u1920' && input.LA(1) <= '\u192B')||(input.LA(1) >= '\u1930' && input.LA(1) <= '\u193B')||(input.LA(1) >= '\u1946' && input.LA(1) <= '\u196D')||(input.LA(1) >= '\u1970' && input.LA(1) <= '\u1974')||(input.LA(1) >= '\u1D00' && input.LA(1) <= '\u1D6B')||(input.LA(1) >= '\u1E00' && input.LA(1) <= '\u1E9B')||(input.LA(1) >= '\u1EA0' && input.LA(1) <= '\u1EF9')||(input.LA(1) >= '\u1F00' && input.LA(1) <= '\u1F15')||(input.LA(1) >= '\u1F18' && input.LA(1) <= '\u1F1D')||(input.LA(1) >= '\u1F20' && input.LA(1) <= '\u1F45')||(input.LA(1) >= '\u1F48' && input.LA(1) <= '\u1F4D')||(input.LA(1) >= '\u1F50' && input.LA(1) <= '\u1F57')||input.LA(1)=='\u1F59'||input.LA(1)=='\u1F5B'||input.LA(1)=='\u1F5D'||(input.LA(1) >= '\u1F5F' && input.LA(1) <= '\u1F7D')||(input.LA(1) >= '\u1F80' && input.LA(1) <= '\u1FB4')||(input.LA(1) >= '\u1FB6' && input.LA(1) <= '\u1FBC')||input.LA(1)=='\u1FBE'||(input.LA(1) >= '\u1FC2' && input.LA(1) <= '\u1FC4')||(input.LA(1) >= '\u1FC6' && input.LA(1) <= '\u1FCC')||(input.LA(1) >= '\u1FD0' && input.LA(1) <= '\u1FD3')||(input.LA(1) >= '\u1FD6' && input.LA(1) <= '\u1FDB')||(input.LA(1) >= '\u1FE0' && input.LA(1) <= '\u1FEC')||(input.LA(1) >= '\u1FF2' && input.LA(1) <= '\u1FF4')||(input.LA(1) >= '\u1FF6' && input.LA(1) <= '\u1FFC')||(input.LA(1) >= '\u200C' && input.LA(1) <= '\u200F')||(input.LA(1) >= '\u202A' && input.LA(1) <= '\u202E')||(input.LA(1) >= '\u203F' && input.LA(1) <= '\u2040')||input.LA(1)=='\u2054'||(input.LA(1) >= '\u2060' && input.LA(1) <= '\u2063')||(input.LA(1) >= '\u206A' && input.LA(1) <= '\u206F')||input.LA(1)=='\u2071'||input.LA(1)=='\u207F'||(input.LA(1) >= '\u20A0' && input.LA(1) <= '\u20B1')||(input.LA(1) >= '\u20D0' && input.LA(1) <= '\u20DC')||input.LA(1)=='\u20E1'||(input.LA(1) >= '\u20E5' && input.LA(1) <= '\u20EA')||input.LA(1)=='\u2102'||input.LA(1)=='\u2107'||(input.LA(1) >= '\u210A' && input.LA(1) <= '\u2113')||input.LA(1)=='\u2115'||(input.LA(1) >= '\u2119' && input.LA(1) <= '\u211D')||input.LA(1)=='\u2124'||input.LA(1)=='\u2126'||input.LA(1)=='\u2128'||(input.LA(1) >= '\u212A' && input.LA(1) <= '\u212D')||(input.LA(1) >= '\u212F' && input.LA(1) <= '\u2131')||(input.LA(1) >= '\u2133' && input.LA(1) <= '\u2139')||(input.LA(1) >= '\u213D' && input.LA(1) <= '\u213F')||(input.LA(1) >= '\u2145' && input.LA(1) <= '\u2149')||(input.LA(1) >= '\u2160' && input.LA(1) <= '\u2183')||(input.LA(1) >= '\u3005' && input.LA(1) <= '\u3007')||(input.LA(1) >= '\u3021' && input.LA(1) <= '\u302F')||(input.LA(1) >= '\u3031' && input.LA(1) <= '\u3035')||(input.LA(1) >= '\u3038' && input.LA(1) <= '\u303C')||(input.LA(1) >= '\u3041' && input.LA(1) <= '\u3096')||(input.LA(1) >= '\u3099' && input.LA(1) <= '\u309A')||(input.LA(1) >= '\u309D' && input.LA(1) <= '\u309F')||(input.LA(1) >= '\u30A1' && input.LA(1) <= '\u30FF')||(input.LA(1) >= '\u3105' && input.LA(1) <= '\u312C')||(input.LA(1) >= '\u3131' && input.LA(1) <= '\u318E')||(input.LA(1) >= '\u31A0' && input.LA(1) <= '\u31B7')||(input.LA(1) >= '\u31F0' && input.LA(1) <= '\u31FF')||(input.LA(1) >= '\u3400' && input.LA(1) <= '\u4DB5')||(input.LA(1) >= '\u4E00' && input.LA(1) <= '\u9FA5')||(input.LA(1) >= '\uA000' && input.LA(1) <= '\uA48C')||(input.LA(1) >= '\uAC00' && input.LA(1) <= '\uD7A3')||(input.LA(1) >= '\uF900' && input.LA(1) <= '\uFA2D')||(input.LA(1) >= '\uFA30' && input.LA(1) <= '\uFA6A')||(input.LA(1) >= '\uFB00' && input.LA(1) <= '\uFB06')||(input.LA(1) >= '\uFB13' && input.LA(1) <= '\uFB17')||(input.LA(1) >= '\uFB1D' && input.LA(1) <= '\uFB28')||(input.LA(1) >= '\uFB2A' && input.LA(1) <= '\uFB36')||(input.LA(1) >= '\uFB38' && input.LA(1) <= '\uFB3C')||input.LA(1)=='\uFB3E'||(input.LA(1) >= '\uFB40' && input.LA(1) <= '\uFB41')||(input.LA(1) >= '\uFB43' && input.LA(1) <= '\uFB44')||(input.LA(1) >= '\uFB46' && input.LA(1) <= '\uFBB1')||(input.LA(1) >= '\uFBD3' && input.LA(1) <= '\uFD3D')||(input.LA(1) >= '\uFD50' && input.LA(1) <= '\uFD8F')||(input.LA(1) >= '\uFD92' && input.LA(1) <= '\uFDC7')||(input.LA(1) >= '\uFDF0' && input.LA(1) <= '\uFDFC')||(input.LA(1) >= '\uFE00' && input.LA(1) <= '\uFE0F')||(input.LA(1) >= '\uFE20' && input.LA(1) <= '\uFE23')||(input.LA(1) >= '\uFE33' && input.LA(1) <= '\uFE34')||(input.LA(1) >= '\uFE4D' && input.LA(1) <= '\uFE4F')||input.LA(1)=='\uFE69'||(input.LA(1) >= '\uFE70' && input.LA(1) <= '\uFE74')||(input.LA(1) >= '\uFE76' && input.LA(1) <= '\uFEFC')||input.LA(1)=='\uFEFF'||input.LA(1)=='\uFF04'||(input.LA(1) >= '\uFF10' && input.LA(1) <= '\uFF19')||(input.LA(1) >= '\uFF21' && input.LA(1) <= '\uFF3A')||input.LA(1)=='\uFF3F'||(input.LA(1) >= '\uFF41' && input.LA(1) <= '\uFF5A')||(input.LA(1) >= '\uFF65' && input.LA(1) <= '\uFFBE')||(input.LA(1) >= '\uFFC2' && input.LA(1) <= '\uFFC7')||(input.LA(1) >= '\uFFCA' && input.LA(1) <= '\uFFCF')||(input.LA(1) >= '\uFFD2' && input.LA(1) <= '\uFFD7')||(input.LA(1) >= '\uFFDA' && input.LA(1) <= '\uFFDC')||(input.LA(1) >= '\uFFE0' && input.LA(1) <= '\uFFE1')||(input.LA(1) >= '\uFFE5' && input.LA(1) <= '\uFFE6')||(input.LA(1) >= '\uFFF9' && input.LA(1) <= '\uFFFB') ) {
input.consume();
@@ -3486,8 +3471,8 @@ public final void mDIV() throws RecognitionException {
try {
int _type = DIV;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:335:5: ( '/' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:335:7: '/'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:335:5: ( '/' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:335:7: '/'
{
match('/'); if (state.failed) return;
}
@@ -3506,8 +3491,8 @@ public final void mQUESTION_DIV() throws RecognitionException {
try {
int _type = QUESTION_DIV;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:339:5: ( '?/' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:339:7: '?/'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:339:5: ( '?/' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:339:7: '?/'
{
match("?/"); if (state.failed) return;
@@ -3527,8 +3512,8 @@ public final void mMISC() throws RecognitionException {
try {
int _type = MISC;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:342:7: ( '\\'' | '\\\\' | '$' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:342:7: ( '\\'' | '\\\\' | '$' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( input.LA(1)=='$'||input.LA(1)=='\''||input.LA(1)=='\\' ) {
input.consume();
@@ -3554,8 +3539,8 @@ public final void mMISC() throws RecognitionException {
// $ANTLR start "IdentifierStart"
public final void mIdentifierStart() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:348:5: ( '\\u0024' | '\\u0041' .. '\\u005a' | '\\u005f' | '\\u0061' .. '\\u007a' | '\\u00a2' .. '\\u00a5' | '\\u00aa' | '\\u00b5' | '\\u00ba' | '\\u00c0' .. '\\u00d6' | '\\u00d8' .. '\\u00f6' | '\\u00f8' .. '\\u0236' | '\\u0250' .. '\\u02c1' | '\\u02c6' .. '\\u02d1' | '\\u02e0' .. '\\u02e4' | '\\u02ee' | '\\u037a' | '\\u0386' | '\\u0388' .. '\\u038a' | '\\u038c' | '\\u038e' .. '\\u03a1' | '\\u03a3' .. '\\u03ce' | '\\u03d0' .. '\\u03f5' | '\\u03f7' .. '\\u03fb' | '\\u0400' .. '\\u0481' | '\\u048a' .. '\\u04ce' | '\\u04d0' .. '\\u04f5' | '\\u04f8' .. '\\u04f9' | '\\u0500' .. '\\u050f' | '\\u0531' .. '\\u0556' | '\\u0559' | '\\u0561' .. '\\u0587' | '\\u05d0' .. '\\u05ea' | '\\u05f0' .. '\\u05f2' | '\\u0621' .. '\\u063a' | '\\u0640' .. '\\u064a' | '\\u066e' .. '\\u066f' | '\\u0671' .. '\\u06d3' | '\\u06d5' | '\\u06e5' .. '\\u06e6' | '\\u06ee' .. '\\u06ef' | '\\u06fa' .. '\\u06fc' | '\\u06ff' | '\\u0710' | '\\u0712' .. '\\u072f' | '\\u074d' .. '\\u074f' | '\\u0780' .. '\\u07a5' | '\\u07b1' | '\\u0904' .. '\\u0939' | '\\u093d' | '\\u0950' | '\\u0958' .. '\\u0961' | '\\u0985' .. '\\u098c' | '\\u098f' .. '\\u0990' | '\\u0993' .. '\\u09a8' | '\\u09aa' .. '\\u09b0' | '\\u09b2' | '\\u09b6' .. '\\u09b9' | '\\u09bd' | '\\u09dc' .. '\\u09dd' | '\\u09df' .. '\\u09e1' | '\\u09f0' .. '\\u09f3' | '\\u0a05' .. '\\u0a0a' | '\\u0a0f' .. '\\u0a10' | '\\u0a13' .. '\\u0a28' | '\\u0a2a' .. '\\u0a30' | '\\u0a32' .. '\\u0a33' | '\\u0a35' .. '\\u0a36' | '\\u0a38' .. '\\u0a39' | '\\u0a59' .. '\\u0a5c' | '\\u0a5e' | '\\u0a72' .. '\\u0a74' | '\\u0a85' .. '\\u0a8d' | '\\u0a8f' .. '\\u0a91' | '\\u0a93' .. '\\u0aa8' | '\\u0aaa' .. '\\u0ab0' | '\\u0ab2' .. '\\u0ab3' | '\\u0ab5' .. '\\u0ab9' | '\\u0abd' | '\\u0ad0' | '\\u0ae0' .. '\\u0ae1' | '\\u0af1' | '\\u0b05' .. '\\u0b0c' | '\\u0b0f' .. '\\u0b10' | '\\u0b13' .. '\\u0b28' | '\\u0b2a' .. '\\u0b30' | '\\u0b32' .. '\\u0b33' | '\\u0b35' .. '\\u0b39' | '\\u0b3d' | '\\u0b5c' .. '\\u0b5d' | '\\u0b5f' .. '\\u0b61' | '\\u0b71' | '\\u0b83' | '\\u0b85' .. '\\u0b8a' | '\\u0b8e' .. '\\u0b90' | '\\u0b92' .. '\\u0b95' | '\\u0b99' .. '\\u0b9a' | '\\u0b9c' | '\\u0b9e' .. '\\u0b9f' | '\\u0ba3' .. '\\u0ba4' | '\\u0ba8' .. '\\u0baa' | '\\u0bae' .. '\\u0bb5' | '\\u0bb7' .. '\\u0bb9' | '\\u0bf9' | '\\u0c05' .. '\\u0c0c' | '\\u0c0e' .. '\\u0c10' | '\\u0c12' .. '\\u0c28' | '\\u0c2a' .. '\\u0c33' | '\\u0c35' .. '\\u0c39' | '\\u0c60' .. '\\u0c61' | '\\u0c85' .. '\\u0c8c' | '\\u0c8e' .. '\\u0c90' | '\\u0c92' .. '\\u0ca8' | '\\u0caa' .. '\\u0cb3' | '\\u0cb5' .. '\\u0cb9' | '\\u0cbd' | '\\u0cde' | '\\u0ce0' .. '\\u0ce1' | '\\u0d05' .. '\\u0d0c' | '\\u0d0e' .. '\\u0d10' | '\\u0d12' .. '\\u0d28' | '\\u0d2a' .. '\\u0d39' | '\\u0d60' .. '\\u0d61' | '\\u0d85' .. '\\u0d96' | '\\u0d9a' .. '\\u0db1' | '\\u0db3' .. '\\u0dbb' | '\\u0dbd' | '\\u0dc0' .. '\\u0dc6' | '\\u0e01' .. '\\u0e30' | '\\u0e32' .. '\\u0e33' | '\\u0e3f' .. '\\u0e46' | '\\u0e81' .. '\\u0e82' | '\\u0e84' | '\\u0e87' .. '\\u0e88' | '\\u0e8a' | '\\u0e8d' | '\\u0e94' .. '\\u0e97' | '\\u0e99' .. '\\u0e9f' | '\\u0ea1' .. '\\u0ea3' | '\\u0ea5' | '\\u0ea7' | '\\u0eaa' .. '\\u0eab' | '\\u0ead' .. '\\u0eb0' | '\\u0eb2' .. '\\u0eb3' | '\\u0ebd' | '\\u0ec0' .. '\\u0ec4' | '\\u0ec6' | '\\u0edc' .. '\\u0edd' | '\\u0f00' | '\\u0f40' .. '\\u0f47' | '\\u0f49' .. '\\u0f6a' | '\\u0f88' .. '\\u0f8b' | '\\u1000' .. '\\u1021' | '\\u1023' .. '\\u1027' | '\\u1029' .. '\\u102a' | '\\u1050' .. '\\u1055' | '\\u10a0' .. '\\u10c5' | '\\u10d0' .. '\\u10f8' | '\\u1100' .. '\\u1159' | '\\u115f' .. '\\u11a2' | '\\u11a8' .. '\\u11f9' | '\\u1200' .. '\\u1206' | '\\u1208' .. '\\u1246' | '\\u1248' | '\\u124a' .. '\\u124d' | '\\u1250' .. '\\u1256' | '\\u1258' | '\\u125a' .. '\\u125d' | '\\u1260' .. '\\u1286' | '\\u1288' | '\\u128a' .. '\\u128d' | '\\u1290' .. '\\u12ae' | '\\u12b0' | '\\u12b2' .. '\\u12b5' | '\\u12b8' .. '\\u12be' | '\\u12c0' | '\\u12c2' .. '\\u12c5' | '\\u12c8' .. '\\u12ce' | '\\u12d0' .. '\\u12d6' | '\\u12d8' .. '\\u12ee' | '\\u12f0' .. '\\u130e' | '\\u1310' | '\\u1312' .. '\\u1315' | '\\u1318' .. '\\u131e' | '\\u1320' .. '\\u1346' | '\\u1348' .. '\\u135a' | '\\u13a0' .. '\\u13f4' | '\\u1401' .. '\\u166c' | '\\u166f' .. '\\u1676' | '\\u1681' .. '\\u169a' | '\\u16a0' .. '\\u16ea' | '\\u16ee' .. '\\u16f0' | '\\u1700' .. '\\u170c' | '\\u170e' .. '\\u1711' | '\\u1720' .. '\\u1731' | '\\u1740' .. '\\u1751' | '\\u1760' .. '\\u176c' | '\\u176e' .. '\\u1770' | '\\u1780' .. '\\u17b3' | '\\u17d7' | '\\u17db' .. '\\u17dc' | '\\u1820' .. '\\u1877' | '\\u1880' .. '\\u18a8' | '\\u1900' .. '\\u191c' | '\\u1950' .. '\\u196d' | '\\u1970' .. '\\u1974' | '\\u1d00' .. '\\u1d6b' | '\\u1e00' .. '\\u1e9b' | '\\u1ea0' .. '\\u1ef9' | '\\u1f00' .. '\\u1f15' | '\\u1f18' .. '\\u1f1d' | '\\u1f20' .. '\\u1f45' | '\\u1f48' .. '\\u1f4d' | '\\u1f50' .. '\\u1f57' | '\\u1f59' | '\\u1f5b' | '\\u1f5d' | '\\u1f5f' .. '\\u1f7d' | '\\u1f80' .. '\\u1fb4' | '\\u1fb6' .. '\\u1fbc' | '\\u1fbe' | '\\u1fc2' .. '\\u1fc4' | '\\u1fc6' .. '\\u1fcc' | '\\u1fd0' .. '\\u1fd3' | '\\u1fd6' .. '\\u1fdb' | '\\u1fe0' .. '\\u1fec' | '\\u1ff2' .. '\\u1ff4' | '\\u1ff6' .. '\\u1ffc' | '\\u203f' .. '\\u2040' | '\\u2054' | '\\u2071' | '\\u207f' | '\\u20a0' .. '\\u20b1' | '\\u2102' | '\\u2107' | '\\u210a' .. '\\u2113' | '\\u2115' | '\\u2119' .. '\\u211d' | '\\u2124' | '\\u2126' | '\\u2128' | '\\u212a' .. '\\u212d' | '\\u212f' .. '\\u2131' | '\\u2133' .. '\\u2139' | '\\u213d' .. '\\u213f' | '\\u2145' .. '\\u2149' | '\\u2160' .. '\\u2183' | '\\u3005' .. '\\u3007' | '\\u3021' .. '\\u3029' | '\\u3031' .. '\\u3035' | '\\u3038' .. '\\u303c' | '\\u3041' .. '\\u3096' | '\\u309d' .. '\\u309f' | '\\u30a1' .. '\\u30ff' | '\\u3105' .. '\\u312c' | '\\u3131' .. '\\u318e' | '\\u31a0' .. '\\u31b7' | '\\u31f0' .. '\\u31ff' | '\\u3400' .. '\\u4db5' | '\\u4e00' .. '\\u9fa5' | '\\ua000' .. '\\ua48c' | '\\uac00' .. '\\ud7a3' | '\\uf900' .. '\\ufa2d' | '\\ufa30' .. '\\ufa6a' | '\\ufb00' .. '\\ufb06' | '\\ufb13' .. '\\ufb17' | '\\ufb1d' | '\\ufb1f' .. '\\ufb28' | '\\ufb2a' .. '\\ufb36' | '\\ufb38' .. '\\ufb3c' | '\\ufb3e' | '\\ufb40' .. '\\ufb41' | '\\ufb43' .. '\\ufb44' | '\\ufb46' .. '\\ufbb1' | '\\ufbd3' .. '\\ufd3d' | '\\ufd50' .. '\\ufd8f' | '\\ufd92' .. '\\ufdc7' | '\\ufdf0' .. '\\ufdfc' | '\\ufe33' .. '\\ufe34' | '\\ufe4d' .. '\\ufe4f' | '\\ufe69' | '\\ufe70' .. '\\ufe74' | '\\ufe76' .. '\\ufefc' | '\\uff04' | '\\uff21' .. '\\uff3a' | '\\uff3f' | '\\uff41' .. '\\uff5a' | '\\uff65' .. '\\uffbe' | '\\uffc2' .. '\\uffc7' | '\\uffca' .. '\\uffcf' | '\\uffd2' .. '\\uffd7' | '\\uffda' .. '\\uffdc' | '\\uffe0' .. '\\uffe1' | '\\uffe5' .. '\\uffe6' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:348:5: ( '\\u0024' | '\\u0041' .. '\\u005a' | '\\u005f' | '\\u0061' .. '\\u007a' | '\\u00a2' .. '\\u00a5' | '\\u00aa' | '\\u00b5' | '\\u00ba' | '\\u00c0' .. '\\u00d6' | '\\u00d8' .. '\\u00f6' | '\\u00f8' .. '\\u0236' | '\\u0250' .. '\\u02c1' | '\\u02c6' .. '\\u02d1' | '\\u02e0' .. '\\u02e4' | '\\u02ee' | '\\u037a' | '\\u0386' | '\\u0388' .. '\\u038a' | '\\u038c' | '\\u038e' .. '\\u03a1' | '\\u03a3' .. '\\u03ce' | '\\u03d0' .. '\\u03f5' | '\\u03f7' .. '\\u03fb' | '\\u0400' .. '\\u0481' | '\\u048a' .. '\\u04ce' | '\\u04d0' .. '\\u04f5' | '\\u04f8' .. '\\u04f9' | '\\u0500' .. '\\u050f' | '\\u0531' .. '\\u0556' | '\\u0559' | '\\u0561' .. '\\u0587' | '\\u05d0' .. '\\u05ea' | '\\u05f0' .. '\\u05f2' | '\\u0621' .. '\\u063a' | '\\u0640' .. '\\u064a' | '\\u066e' .. '\\u066f' | '\\u0671' .. '\\u06d3' | '\\u06d5' | '\\u06e5' .. '\\u06e6' | '\\u06ee' .. '\\u06ef' | '\\u06fa' .. '\\u06fc' | '\\u06ff' | '\\u0710' | '\\u0712' .. '\\u072f' | '\\u074d' .. '\\u074f' | '\\u0780' .. '\\u07a5' | '\\u07b1' | '\\u0904' .. '\\u0939' | '\\u093d' | '\\u0950' | '\\u0958' .. '\\u0961' | '\\u0985' .. '\\u098c' | '\\u098f' .. '\\u0990' | '\\u0993' .. '\\u09a8' | '\\u09aa' .. '\\u09b0' | '\\u09b2' | '\\u09b6' .. '\\u09b9' | '\\u09bd' | '\\u09dc' .. '\\u09dd' | '\\u09df' .. '\\u09e1' | '\\u09f0' .. '\\u09f3' | '\\u0a05' .. '\\u0a0a' | '\\u0a0f' .. '\\u0a10' | '\\u0a13' .. '\\u0a28' | '\\u0a2a' .. '\\u0a30' | '\\u0a32' .. '\\u0a33' | '\\u0a35' .. '\\u0a36' | '\\u0a38' .. '\\u0a39' | '\\u0a59' .. '\\u0a5c' | '\\u0a5e' | '\\u0a72' .. '\\u0a74' | '\\u0a85' .. '\\u0a8d' | '\\u0a8f' .. '\\u0a91' | '\\u0a93' .. '\\u0aa8' | '\\u0aaa' .. '\\u0ab0' | '\\u0ab2' .. '\\u0ab3' | '\\u0ab5' .. '\\u0ab9' | '\\u0abd' | '\\u0ad0' | '\\u0ae0' .. '\\u0ae1' | '\\u0af1' | '\\u0b05' .. '\\u0b0c' | '\\u0b0f' .. '\\u0b10' | '\\u0b13' .. '\\u0b28' | '\\u0b2a' .. '\\u0b30' | '\\u0b32' .. '\\u0b33' | '\\u0b35' .. '\\u0b39' | '\\u0b3d' | '\\u0b5c' .. '\\u0b5d' | '\\u0b5f' .. '\\u0b61' | '\\u0b71' | '\\u0b83' | '\\u0b85' .. '\\u0b8a' | '\\u0b8e' .. '\\u0b90' | '\\u0b92' .. '\\u0b95' | '\\u0b99' .. '\\u0b9a' | '\\u0b9c' | '\\u0b9e' .. '\\u0b9f' | '\\u0ba3' .. '\\u0ba4' | '\\u0ba8' .. '\\u0baa' | '\\u0bae' .. '\\u0bb5' | '\\u0bb7' .. '\\u0bb9' | '\\u0bf9' | '\\u0c05' .. '\\u0c0c' | '\\u0c0e' .. '\\u0c10' | '\\u0c12' .. '\\u0c28' | '\\u0c2a' .. '\\u0c33' | '\\u0c35' .. '\\u0c39' | '\\u0c60' .. '\\u0c61' | '\\u0c85' .. '\\u0c8c' | '\\u0c8e' .. '\\u0c90' | '\\u0c92' .. '\\u0ca8' | '\\u0caa' .. '\\u0cb3' | '\\u0cb5' .. '\\u0cb9' | '\\u0cbd' | '\\u0cde' | '\\u0ce0' .. '\\u0ce1' | '\\u0d05' .. '\\u0d0c' | '\\u0d0e' .. '\\u0d10' | '\\u0d12' .. '\\u0d28' | '\\u0d2a' .. '\\u0d39' | '\\u0d60' .. '\\u0d61' | '\\u0d85' .. '\\u0d96' | '\\u0d9a' .. '\\u0db1' | '\\u0db3' .. '\\u0dbb' | '\\u0dbd' | '\\u0dc0' .. '\\u0dc6' | '\\u0e01' .. '\\u0e30' | '\\u0e32' .. '\\u0e33' | '\\u0e3f' .. '\\u0e46' | '\\u0e81' .. '\\u0e82' | '\\u0e84' | '\\u0e87' .. '\\u0e88' | '\\u0e8a' | '\\u0e8d' | '\\u0e94' .. '\\u0e97' | '\\u0e99' .. '\\u0e9f' | '\\u0ea1' .. '\\u0ea3' | '\\u0ea5' | '\\u0ea7' | '\\u0eaa' .. '\\u0eab' | '\\u0ead' .. '\\u0eb0' | '\\u0eb2' .. '\\u0eb3' | '\\u0ebd' | '\\u0ec0' .. '\\u0ec4' | '\\u0ec6' | '\\u0edc' .. '\\u0edd' | '\\u0f00' | '\\u0f40' .. '\\u0f47' | '\\u0f49' .. '\\u0f6a' | '\\u0f88' .. '\\u0f8b' | '\\u1000' .. '\\u1021' | '\\u1023' .. '\\u1027' | '\\u1029' .. '\\u102a' | '\\u1050' .. '\\u1055' | '\\u10a0' .. '\\u10c5' | '\\u10d0' .. '\\u10f8' | '\\u1100' .. '\\u1159' | '\\u115f' .. '\\u11a2' | '\\u11a8' .. '\\u11f9' | '\\u1200' .. '\\u1206' | '\\u1208' .. '\\u1246' | '\\u1248' | '\\u124a' .. '\\u124d' | '\\u1250' .. '\\u1256' | '\\u1258' | '\\u125a' .. '\\u125d' | '\\u1260' .. '\\u1286' | '\\u1288' | '\\u128a' .. '\\u128d' | '\\u1290' .. '\\u12ae' | '\\u12b0' | '\\u12b2' .. '\\u12b5' | '\\u12b8' .. '\\u12be' | '\\u12c0' | '\\u12c2' .. '\\u12c5' | '\\u12c8' .. '\\u12ce' | '\\u12d0' .. '\\u12d6' | '\\u12d8' .. '\\u12ee' | '\\u12f0' .. '\\u130e' | '\\u1310' | '\\u1312' .. '\\u1315' | '\\u1318' .. '\\u131e' | '\\u1320' .. '\\u1346' | '\\u1348' .. '\\u135a' | '\\u13a0' .. '\\u13f4' | '\\u1401' .. '\\u166c' | '\\u166f' .. '\\u1676' | '\\u1681' .. '\\u169a' | '\\u16a0' .. '\\u16ea' | '\\u16ee' .. '\\u16f0' | '\\u1700' .. '\\u170c' | '\\u170e' .. '\\u1711' | '\\u1720' .. '\\u1731' | '\\u1740' .. '\\u1751' | '\\u1760' .. '\\u176c' | '\\u176e' .. '\\u1770' | '\\u1780' .. '\\u17b3' | '\\u17d7' | '\\u17db' .. '\\u17dc' | '\\u1820' .. '\\u1877' | '\\u1880' .. '\\u18a8' | '\\u1900' .. '\\u191c' | '\\u1950' .. '\\u196d' | '\\u1970' .. '\\u1974' | '\\u1d00' .. '\\u1d6b' | '\\u1e00' .. '\\u1e9b' | '\\u1ea0' .. '\\u1ef9' | '\\u1f00' .. '\\u1f15' | '\\u1f18' .. '\\u1f1d' | '\\u1f20' .. '\\u1f45' | '\\u1f48' .. '\\u1f4d' | '\\u1f50' .. '\\u1f57' | '\\u1f59' | '\\u1f5b' | '\\u1f5d' | '\\u1f5f' .. '\\u1f7d' | '\\u1f80' .. '\\u1fb4' | '\\u1fb6' .. '\\u1fbc' | '\\u1fbe' | '\\u1fc2' .. '\\u1fc4' | '\\u1fc6' .. '\\u1fcc' | '\\u1fd0' .. '\\u1fd3' | '\\u1fd6' .. '\\u1fdb' | '\\u1fe0' .. '\\u1fec' | '\\u1ff2' .. '\\u1ff4' | '\\u1ff6' .. '\\u1ffc' | '\\u203f' .. '\\u2040' | '\\u2054' | '\\u2071' | '\\u207f' | '\\u20a0' .. '\\u20b1' | '\\u2102' | '\\u2107' | '\\u210a' .. '\\u2113' | '\\u2115' | '\\u2119' .. '\\u211d' | '\\u2124' | '\\u2126' | '\\u2128' | '\\u212a' .. '\\u212d' | '\\u212f' .. '\\u2131' | '\\u2133' .. '\\u2139' | '\\u213d' .. '\\u213f' | '\\u2145' .. '\\u2149' | '\\u2160' .. '\\u2183' | '\\u3005' .. '\\u3007' | '\\u3021' .. '\\u3029' | '\\u3031' .. '\\u3035' | '\\u3038' .. '\\u303c' | '\\u3041' .. '\\u3096' | '\\u309d' .. '\\u309f' | '\\u30a1' .. '\\u30ff' | '\\u3105' .. '\\u312c' | '\\u3131' .. '\\u318e' | '\\u31a0' .. '\\u31b7' | '\\u31f0' .. '\\u31ff' | '\\u3400' .. '\\u4db5' | '\\u4e00' .. '\\u9fa5' | '\\ua000' .. '\\ua48c' | '\\uac00' .. '\\ud7a3' | '\\uf900' .. '\\ufa2d' | '\\ufa30' .. '\\ufa6a' | '\\ufb00' .. '\\ufb06' | '\\ufb13' .. '\\ufb17' | '\\ufb1d' | '\\ufb1f' .. '\\ufb28' | '\\ufb2a' .. '\\ufb36' | '\\ufb38' .. '\\ufb3c' | '\\ufb3e' | '\\ufb40' .. '\\ufb41' | '\\ufb43' .. '\\ufb44' | '\\ufb46' .. '\\ufbb1' | '\\ufbd3' .. '\\ufd3d' | '\\ufd50' .. '\\ufd8f' | '\\ufd92' .. '\\ufdc7' | '\\ufdf0' .. '\\ufdfc' | '\\ufe33' .. '\\ufe34' | '\\ufe4d' .. '\\ufe4f' | '\\ufe69' | '\\ufe70' .. '\\ufe74' | '\\ufe76' .. '\\ufefc' | '\\uff04' | '\\uff21' .. '\\uff3a' | '\\uff3f' | '\\uff41' .. '\\uff5a' | '\\uff65' .. '\\uffbe' | '\\uffc2' .. '\\uffc7' | '\\uffca' .. '\\uffcf' | '\\uffd2' .. '\\uffd7' | '\\uffda' .. '\\uffdc' | '\\uffe0' .. '\\uffe1' | '\\uffe5' .. '\\uffe6' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( input.LA(1)=='$'||(input.LA(1) >= 'A' && input.LA(1) <= 'Z')||input.LA(1)=='_'||(input.LA(1) >= 'a' && input.LA(1) <= 'z')||(input.LA(1) >= '\u00A2' && input.LA(1) <= '\u00A5')||input.LA(1)=='\u00AA'||input.LA(1)=='\u00B5'||input.LA(1)=='\u00BA'||(input.LA(1) >= '\u00C0' && input.LA(1) <= '\u00D6')||(input.LA(1) >= '\u00D8' && input.LA(1) <= '\u00F6')||(input.LA(1) >= '\u00F8' && input.LA(1) <= '\u0236')||(input.LA(1) >= '\u0250' && input.LA(1) <= '\u02C1')||(input.LA(1) >= '\u02C6' && input.LA(1) <= '\u02D1')||(input.LA(1) >= '\u02E0' && input.LA(1) <= '\u02E4')||input.LA(1)=='\u02EE'||input.LA(1)=='\u037A'||input.LA(1)=='\u0386'||(input.LA(1) >= '\u0388' && input.LA(1) <= '\u038A')||input.LA(1)=='\u038C'||(input.LA(1) >= '\u038E' && input.LA(1) <= '\u03A1')||(input.LA(1) >= '\u03A3' && input.LA(1) <= '\u03CE')||(input.LA(1) >= '\u03D0' && input.LA(1) <= '\u03F5')||(input.LA(1) >= '\u03F7' && input.LA(1) <= '\u03FB')||(input.LA(1) >= '\u0400' && input.LA(1) <= '\u0481')||(input.LA(1) >= '\u048A' && input.LA(1) <= '\u04CE')||(input.LA(1) >= '\u04D0' && input.LA(1) <= '\u04F5')||(input.LA(1) >= '\u04F8' && input.LA(1) <= '\u04F9')||(input.LA(1) >= '\u0500' && input.LA(1) <= '\u050F')||(input.LA(1) >= '\u0531' && input.LA(1) <= '\u0556')||input.LA(1)=='\u0559'||(input.LA(1) >= '\u0561' && input.LA(1) <= '\u0587')||(input.LA(1) >= '\u05D0' && input.LA(1) <= '\u05EA')||(input.LA(1) >= '\u05F0' && input.LA(1) <= '\u05F2')||(input.LA(1) >= '\u0621' && input.LA(1) <= '\u063A')||(input.LA(1) >= '\u0640' && input.LA(1) <= '\u064A')||(input.LA(1) >= '\u066E' && input.LA(1) <= '\u066F')||(input.LA(1) >= '\u0671' && input.LA(1) <= '\u06D3')||input.LA(1)=='\u06D5'||(input.LA(1) >= '\u06E5' && input.LA(1) <= '\u06E6')||(input.LA(1) >= '\u06EE' && input.LA(1) <= '\u06EF')||(input.LA(1) >= '\u06FA' && input.LA(1) <= '\u06FC')||input.LA(1)=='\u06FF'||input.LA(1)=='\u0710'||(input.LA(1) >= '\u0712' && input.LA(1) <= '\u072F')||(input.LA(1) >= '\u074D' && input.LA(1) <= '\u074F')||(input.LA(1) >= '\u0780' && input.LA(1) <= '\u07A5')||input.LA(1)=='\u07B1'||(input.LA(1) >= '\u0904' && input.LA(1) <= '\u0939')||input.LA(1)=='\u093D'||input.LA(1)=='\u0950'||(input.LA(1) >= '\u0958' && input.LA(1) <= '\u0961')||(input.LA(1) >= '\u0985' && input.LA(1) <= '\u098C')||(input.LA(1) >= '\u098F' && input.LA(1) <= '\u0990')||(input.LA(1) >= '\u0993' && input.LA(1) <= '\u09A8')||(input.LA(1) >= '\u09AA' && input.LA(1) <= '\u09B0')||input.LA(1)=='\u09B2'||(input.LA(1) >= '\u09B6' && input.LA(1) <= '\u09B9')||input.LA(1)=='\u09BD'||(input.LA(1) >= '\u09DC' && input.LA(1) <= '\u09DD')||(input.LA(1) >= '\u09DF' && input.LA(1) <= '\u09E1')||(input.LA(1) >= '\u09F0' && input.LA(1) <= '\u09F3')||(input.LA(1) >= '\u0A05' && input.LA(1) <= '\u0A0A')||(input.LA(1) >= '\u0A0F' && input.LA(1) <= '\u0A10')||(input.LA(1) >= '\u0A13' && input.LA(1) <= '\u0A28')||(input.LA(1) >= '\u0A2A' && input.LA(1) <= '\u0A30')||(input.LA(1) >= '\u0A32' && input.LA(1) <= '\u0A33')||(input.LA(1) >= '\u0A35' && input.LA(1) <= '\u0A36')||(input.LA(1) >= '\u0A38' && input.LA(1) <= '\u0A39')||(input.LA(1) >= '\u0A59' && input.LA(1) <= '\u0A5C')||input.LA(1)=='\u0A5E'||(input.LA(1) >= '\u0A72' && input.LA(1) <= '\u0A74')||(input.LA(1) >= '\u0A85' && input.LA(1) <= '\u0A8D')||(input.LA(1) >= '\u0A8F' && input.LA(1) <= '\u0A91')||(input.LA(1) >= '\u0A93' && input.LA(1) <= '\u0AA8')||(input.LA(1) >= '\u0AAA' && input.LA(1) <= '\u0AB0')||(input.LA(1) >= '\u0AB2' && input.LA(1) <= '\u0AB3')||(input.LA(1) >= '\u0AB5' && input.LA(1) <= '\u0AB9')||input.LA(1)=='\u0ABD'||input.LA(1)=='\u0AD0'||(input.LA(1) >= '\u0AE0' && input.LA(1) <= '\u0AE1')||input.LA(1)=='\u0AF1'||(input.LA(1) >= '\u0B05' && input.LA(1) <= '\u0B0C')||(input.LA(1) >= '\u0B0F' && input.LA(1) <= '\u0B10')||(input.LA(1) >= '\u0B13' && input.LA(1) <= '\u0B28')||(input.LA(1) >= '\u0B2A' && input.LA(1) <= '\u0B30')||(input.LA(1) >= '\u0B32' && input.LA(1) <= '\u0B33')||(input.LA(1) >= '\u0B35' && input.LA(1) <= '\u0B39')||input.LA(1)=='\u0B3D'||(input.LA(1) >= '\u0B5C' && input.LA(1) <= '\u0B5D')||(input.LA(1) >= '\u0B5F' && input.LA(1) <= '\u0B61')||input.LA(1)=='\u0B71'||input.LA(1)=='\u0B83'||(input.LA(1) >= '\u0B85' && input.LA(1) <= '\u0B8A')||(input.LA(1) >= '\u0B8E' && input.LA(1) <= '\u0B90')||(input.LA(1) >= '\u0B92' && input.LA(1) <= '\u0B95')||(input.LA(1) >= '\u0B99' && input.LA(1) <= '\u0B9A')||input.LA(1)=='\u0B9C'||(input.LA(1) >= '\u0B9E' && input.LA(1) <= '\u0B9F')||(input.LA(1) >= '\u0BA3' && input.LA(1) <= '\u0BA4')||(input.LA(1) >= '\u0BA8' && input.LA(1) <= '\u0BAA')||(input.LA(1) >= '\u0BAE' && input.LA(1) <= '\u0BB5')||(input.LA(1) >= '\u0BB7' && input.LA(1) <= '\u0BB9')||input.LA(1)=='\u0BF9'||(input.LA(1) >= '\u0C05' && input.LA(1) <= '\u0C0C')||(input.LA(1) >= '\u0C0E' && input.LA(1) <= '\u0C10')||(input.LA(1) >= '\u0C12' && input.LA(1) <= '\u0C28')||(input.LA(1) >= '\u0C2A' && input.LA(1) <= '\u0C33')||(input.LA(1) >= '\u0C35' && input.LA(1) <= '\u0C39')||(input.LA(1) >= '\u0C60' && input.LA(1) <= '\u0C61')||(input.LA(1) >= '\u0C85' && input.LA(1) <= '\u0C8C')||(input.LA(1) >= '\u0C8E' && input.LA(1) <= '\u0C90')||(input.LA(1) >= '\u0C92' && input.LA(1) <= '\u0CA8')||(input.LA(1) >= '\u0CAA' && input.LA(1) <= '\u0CB3')||(input.LA(1) >= '\u0CB5' && input.LA(1) <= '\u0CB9')||input.LA(1)=='\u0CBD'||input.LA(1)=='\u0CDE'||(input.LA(1) >= '\u0CE0' && input.LA(1) <= '\u0CE1')||(input.LA(1) >= '\u0D05' && input.LA(1) <= '\u0D0C')||(input.LA(1) >= '\u0D0E' && input.LA(1) <= '\u0D10')||(input.LA(1) >= '\u0D12' && input.LA(1) <= '\u0D28')||(input.LA(1) >= '\u0D2A' && input.LA(1) <= '\u0D39')||(input.LA(1) >= '\u0D60' && input.LA(1) <= '\u0D61')||(input.LA(1) >= '\u0D85' && input.LA(1) <= '\u0D96')||(input.LA(1) >= '\u0D9A' && input.LA(1) <= '\u0DB1')||(input.LA(1) >= '\u0DB3' && input.LA(1) <= '\u0DBB')||input.LA(1)=='\u0DBD'||(input.LA(1) >= '\u0DC0' && input.LA(1) <= '\u0DC6')||(input.LA(1) >= '\u0E01' && input.LA(1) <= '\u0E30')||(input.LA(1) >= '\u0E32' && input.LA(1) <= '\u0E33')||(input.LA(1) >= '\u0E3F' && input.LA(1) <= '\u0E46')||(input.LA(1) >= '\u0E81' && input.LA(1) <= '\u0E82')||input.LA(1)=='\u0E84'||(input.LA(1) >= '\u0E87' && input.LA(1) <= '\u0E88')||input.LA(1)=='\u0E8A'||input.LA(1)=='\u0E8D'||(input.LA(1) >= '\u0E94' && input.LA(1) <= '\u0E97')||(input.LA(1) >= '\u0E99' && input.LA(1) <= '\u0E9F')||(input.LA(1) >= '\u0EA1' && input.LA(1) <= '\u0EA3')||input.LA(1)=='\u0EA5'||input.LA(1)=='\u0EA7'||(input.LA(1) >= '\u0EAA' && input.LA(1) <= '\u0EAB')||(input.LA(1) >= '\u0EAD' && input.LA(1) <= '\u0EB0')||(input.LA(1) >= '\u0EB2' && input.LA(1) <= '\u0EB3')||input.LA(1)=='\u0EBD'||(input.LA(1) >= '\u0EC0' && input.LA(1) <= '\u0EC4')||input.LA(1)=='\u0EC6'||(input.LA(1) >= '\u0EDC' && input.LA(1) <= '\u0EDD')||input.LA(1)=='\u0F00'||(input.LA(1) >= '\u0F40' && input.LA(1) <= '\u0F47')||(input.LA(1) >= '\u0F49' && input.LA(1) <= '\u0F6A')||(input.LA(1) >= '\u0F88' && input.LA(1) <= '\u0F8B')||(input.LA(1) >= '\u1000' && input.LA(1) <= '\u1021')||(input.LA(1) >= '\u1023' && input.LA(1) <= '\u1027')||(input.LA(1) >= '\u1029' && input.LA(1) <= '\u102A')||(input.LA(1) >= '\u1050' && input.LA(1) <= '\u1055')||(input.LA(1) >= '\u10A0' && input.LA(1) <= '\u10C5')||(input.LA(1) >= '\u10D0' && input.LA(1) <= '\u10F8')||(input.LA(1) >= '\u1100' && input.LA(1) <= '\u1159')||(input.LA(1) >= '\u115F' && input.LA(1) <= '\u11A2')||(input.LA(1) >= '\u11A8' && input.LA(1) <= '\u11F9')||(input.LA(1) >= '\u1200' && input.LA(1) <= '\u1206')||(input.LA(1) >= '\u1208' && input.LA(1) <= '\u1246')||input.LA(1)=='\u1248'||(input.LA(1) >= '\u124A' && input.LA(1) <= '\u124D')||(input.LA(1) >= '\u1250' && input.LA(1) <= '\u1256')||input.LA(1)=='\u1258'||(input.LA(1) >= '\u125A' && input.LA(1) <= '\u125D')||(input.LA(1) >= '\u1260' && input.LA(1) <= '\u1286')||input.LA(1)=='\u1288'||(input.LA(1) >= '\u128A' && input.LA(1) <= '\u128D')||(input.LA(1) >= '\u1290' && input.LA(1) <= '\u12AE')||input.LA(1)=='\u12B0'||(input.LA(1) >= '\u12B2' && input.LA(1) <= '\u12B5')||(input.LA(1) >= '\u12B8' && input.LA(1) <= '\u12BE')||input.LA(1)=='\u12C0'||(input.LA(1) >= '\u12C2' && input.LA(1) <= '\u12C5')||(input.LA(1) >= '\u12C8' && input.LA(1) <= '\u12CE')||(input.LA(1) >= '\u12D0' && input.LA(1) <= '\u12D6')||(input.LA(1) >= '\u12D8' && input.LA(1) <= '\u12EE')||(input.LA(1) >= '\u12F0' && input.LA(1) <= '\u130E')||input.LA(1)=='\u1310'||(input.LA(1) >= '\u1312' && input.LA(1) <= '\u1315')||(input.LA(1) >= '\u1318' && input.LA(1) <= '\u131E')||(input.LA(1) >= '\u1320' && input.LA(1) <= '\u1346')||(input.LA(1) >= '\u1348' && input.LA(1) <= '\u135A')||(input.LA(1) >= '\u13A0' && input.LA(1) <= '\u13F4')||(input.LA(1) >= '\u1401' && input.LA(1) <= '\u166C')||(input.LA(1) >= '\u166F' && input.LA(1) <= '\u1676')||(input.LA(1) >= '\u1681' && input.LA(1) <= '\u169A')||(input.LA(1) >= '\u16A0' && input.LA(1) <= '\u16EA')||(input.LA(1) >= '\u16EE' && input.LA(1) <= '\u16F0')||(input.LA(1) >= '\u1700' && input.LA(1) <= '\u170C')||(input.LA(1) >= '\u170E' && input.LA(1) <= '\u1711')||(input.LA(1) >= '\u1720' && input.LA(1) <= '\u1731')||(input.LA(1) >= '\u1740' && input.LA(1) <= '\u1751')||(input.LA(1) >= '\u1760' && input.LA(1) <= '\u176C')||(input.LA(1) >= '\u176E' && input.LA(1) <= '\u1770')||(input.LA(1) >= '\u1780' && input.LA(1) <= '\u17B3')||input.LA(1)=='\u17D7'||(input.LA(1) >= '\u17DB' && input.LA(1) <= '\u17DC')||(input.LA(1) >= '\u1820' && input.LA(1) <= '\u1877')||(input.LA(1) >= '\u1880' && input.LA(1) <= '\u18A8')||(input.LA(1) >= '\u1900' && input.LA(1) <= '\u191C')||(input.LA(1) >= '\u1950' && input.LA(1) <= '\u196D')||(input.LA(1) >= '\u1970' && input.LA(1) <= '\u1974')||(input.LA(1) >= '\u1D00' && input.LA(1) <= '\u1D6B')||(input.LA(1) >= '\u1E00' && input.LA(1) <= '\u1E9B')||(input.LA(1) >= '\u1EA0' && input.LA(1) <= '\u1EF9')||(input.LA(1) >= '\u1F00' && input.LA(1) <= '\u1F15')||(input.LA(1) >= '\u1F18' && input.LA(1) <= '\u1F1D')||(input.LA(1) >= '\u1F20' && input.LA(1) <= '\u1F45')||(input.LA(1) >= '\u1F48' && input.LA(1) <= '\u1F4D')||(input.LA(1) >= '\u1F50' && input.LA(1) <= '\u1F57')||input.LA(1)=='\u1F59'||input.LA(1)=='\u1F5B'||input.LA(1)=='\u1F5D'||(input.LA(1) >= '\u1F5F' && input.LA(1) <= '\u1F7D')||(input.LA(1) >= '\u1F80' && input.LA(1) <= '\u1FB4')||(input.LA(1) >= '\u1FB6' && input.LA(1) <= '\u1FBC')||input.LA(1)=='\u1FBE'||(input.LA(1) >= '\u1FC2' && input.LA(1) <= '\u1FC4')||(input.LA(1) >= '\u1FC6' && input.LA(1) <= '\u1FCC')||(input.LA(1) >= '\u1FD0' && input.LA(1) <= '\u1FD3')||(input.LA(1) >= '\u1FD6' && input.LA(1) <= '\u1FDB')||(input.LA(1) >= '\u1FE0' && input.LA(1) <= '\u1FEC')||(input.LA(1) >= '\u1FF2' && input.LA(1) <= '\u1FF4')||(input.LA(1) >= '\u1FF6' && input.LA(1) <= '\u1FFC')||(input.LA(1) >= '\u203F' && input.LA(1) <= '\u2040')||input.LA(1)=='\u2054'||input.LA(1)=='\u2071'||input.LA(1)=='\u207F'||(input.LA(1) >= '\u20A0' && input.LA(1) <= '\u20B1')||input.LA(1)=='\u2102'||input.LA(1)=='\u2107'||(input.LA(1) >= '\u210A' && input.LA(1) <= '\u2113')||input.LA(1)=='\u2115'||(input.LA(1) >= '\u2119' && input.LA(1) <= '\u211D')||input.LA(1)=='\u2124'||input.LA(1)=='\u2126'||input.LA(1)=='\u2128'||(input.LA(1) >= '\u212A' && input.LA(1) <= '\u212D')||(input.LA(1) >= '\u212F' && input.LA(1) <= '\u2131')||(input.LA(1) >= '\u2133' && input.LA(1) <= '\u2139')||(input.LA(1) >= '\u213D' && input.LA(1) <= '\u213F')||(input.LA(1) >= '\u2145' && input.LA(1) <= '\u2149')||(input.LA(1) >= '\u2160' && input.LA(1) <= '\u2183')||(input.LA(1) >= '\u3005' && input.LA(1) <= '\u3007')||(input.LA(1) >= '\u3021' && input.LA(1) <= '\u3029')||(input.LA(1) >= '\u3031' && input.LA(1) <= '\u3035')||(input.LA(1) >= '\u3038' && input.LA(1) <= '\u303C')||(input.LA(1) >= '\u3041' && input.LA(1) <= '\u3096')||(input.LA(1) >= '\u309D' && input.LA(1) <= '\u309F')||(input.LA(1) >= '\u30A1' && input.LA(1) <= '\u30FF')||(input.LA(1) >= '\u3105' && input.LA(1) <= '\u312C')||(input.LA(1) >= '\u3131' && input.LA(1) <= '\u318E')||(input.LA(1) >= '\u31A0' && input.LA(1) <= '\u31B7')||(input.LA(1) >= '\u31F0' && input.LA(1) <= '\u31FF')||(input.LA(1) >= '\u3400' && input.LA(1) <= '\u4DB5')||(input.LA(1) >= '\u4E00' && input.LA(1) <= '\u9FA5')||(input.LA(1) >= '\uA000' && input.LA(1) <= '\uA48C')||(input.LA(1) >= '\uAC00' && input.LA(1) <= '\uD7A3')||(input.LA(1) >= '\uF900' && input.LA(1) <= '\uFA2D')||(input.LA(1) >= '\uFA30' && input.LA(1) <= '\uFA6A')||(input.LA(1) >= '\uFB00' && input.LA(1) <= '\uFB06')||(input.LA(1) >= '\uFB13' && input.LA(1) <= '\uFB17')||input.LA(1)=='\uFB1D'||(input.LA(1) >= '\uFB1F' && input.LA(1) <= '\uFB28')||(input.LA(1) >= '\uFB2A' && input.LA(1) <= '\uFB36')||(input.LA(1) >= '\uFB38' && input.LA(1) <= '\uFB3C')||input.LA(1)=='\uFB3E'||(input.LA(1) >= '\uFB40' && input.LA(1) <= '\uFB41')||(input.LA(1) >= '\uFB43' && input.LA(1) <= '\uFB44')||(input.LA(1) >= '\uFB46' && input.LA(1) <= '\uFBB1')||(input.LA(1) >= '\uFBD3' && input.LA(1) <= '\uFD3D')||(input.LA(1) >= '\uFD50' && input.LA(1) <= '\uFD8F')||(input.LA(1) >= '\uFD92' && input.LA(1) <= '\uFDC7')||(input.LA(1) >= '\uFDF0' && input.LA(1) <= '\uFDFC')||(input.LA(1) >= '\uFE33' && input.LA(1) <= '\uFE34')||(input.LA(1) >= '\uFE4D' && input.LA(1) <= '\uFE4F')||input.LA(1)=='\uFE69'||(input.LA(1) >= '\uFE70' && input.LA(1) <= '\uFE74')||(input.LA(1) >= '\uFE76' && input.LA(1) <= '\uFEFC')||input.LA(1)=='\uFF04'||(input.LA(1) >= '\uFF21' && input.LA(1) <= '\uFF3A')||input.LA(1)=='\uFF3F'||(input.LA(1) >= '\uFF41' && input.LA(1) <= '\uFF5A')||(input.LA(1) >= '\uFF65' && input.LA(1) <= '\uFFBE')||(input.LA(1) >= '\uFFC2' && input.LA(1) <= '\uFFC7')||(input.LA(1) >= '\uFFCA' && input.LA(1) <= '\uFFCF')||(input.LA(1) >= '\uFFD2' && input.LA(1) <= '\uFFD7')||(input.LA(1) >= '\uFFDA' && input.LA(1) <= '\uFFDC')||(input.LA(1) >= '\uFFE0' && input.LA(1) <= '\uFFE1')||(input.LA(1) >= '\uFFE5' && input.LA(1) <= '\uFFE6') ) {
input.consume();
@@ -3579,8 +3564,8 @@ public final void mIdentifierStart() throws RecognitionException {
// $ANTLR start "IdentifierPart"
public final void mIdentifierPart() throws RecognitionException {
try {
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:646:5: ( '\\u0000' .. '\\u0008' | '\\u000e' .. '\\u001b' | '\\u0024' | '\\u0030' .. '\\u0039' | '\\u0041' .. '\\u005a' | '\\u005f' | '\\u0061' .. '\\u007a' | '\\u007f' .. '\\u009f' | '\\u00a2' .. '\\u00a5' | '\\u00aa' | '\\u00ad' | '\\u00b5' | '\\u00ba' | '\\u00c0' .. '\\u00d6' | '\\u00d8' .. '\\u00f6' | '\\u00f8' .. '\\u0236' | '\\u0250' .. '\\u02c1' | '\\u02c6' .. '\\u02d1' | '\\u02e0' .. '\\u02e4' | '\\u02ee' | '\\u0300' .. '\\u0357' | '\\u035d' .. '\\u036f' | '\\u037a' | '\\u0386' | '\\u0388' .. '\\u038a' | '\\u038c' | '\\u038e' .. '\\u03a1' | '\\u03a3' .. '\\u03ce' | '\\u03d0' .. '\\u03f5' | '\\u03f7' .. '\\u03fb' | '\\u0400' .. '\\u0481' | '\\u0483' .. '\\u0486' | '\\u048a' .. '\\u04ce' | '\\u04d0' .. '\\u04f5' | '\\u04f8' .. '\\u04f9' | '\\u0500' .. '\\u050f' | '\\u0531' .. '\\u0556' | '\\u0559' | '\\u0561' .. '\\u0587' | '\\u0591' .. '\\u05a1' | '\\u05a3' .. '\\u05b9' | '\\u05bb' .. '\\u05bd' | '\\u05bf' | '\\u05c1' .. '\\u05c2' | '\\u05c4' | '\\u05d0' .. '\\u05ea' | '\\u05f0' .. '\\u05f2' | '\\u0600' .. '\\u0603' | '\\u0610' .. '\\u0615' | '\\u0621' .. '\\u063a' | '\\u0640' .. '\\u0658' | '\\u0660' .. '\\u0669' | '\\u066e' .. '\\u06d3' | '\\u06d5' .. '\\u06dd' | '\\u06df' .. '\\u06e8' | '\\u06ea' .. '\\u06fc' | '\\u06ff' | '\\u070f' .. '\\u074a' | '\\u074d' .. '\\u074f' | '\\u0780' .. '\\u07b1' | '\\u0901' .. '\\u0939' | '\\u093c' .. '\\u094d' | '\\u0950' .. '\\u0954' | '\\u0958' .. '\\u0963' | '\\u0966' .. '\\u096f' | '\\u0981' .. '\\u0983' | '\\u0985' .. '\\u098c' | '\\u098f' .. '\\u0990' | '\\u0993' .. '\\u09a8' | '\\u09aa' .. '\\u09b0' | '\\u09b2' | '\\u09b6' .. '\\u09b9' | '\\u09bc' .. '\\u09c4' | '\\u09c7' .. '\\u09c8' | '\\u09cb' .. '\\u09cd' | '\\u09d7' | '\\u09dc' .. '\\u09dd' | '\\u09df' .. '\\u09e3' | '\\u09e6' .. '\\u09f3' | '\\u0a01' .. '\\u0a03' | '\\u0a05' .. '\\u0a0a' | '\\u0a0f' .. '\\u0a10' | '\\u0a13' .. '\\u0a28' | '\\u0a2a' .. '\\u0a30' | '\\u0a32' .. '\\u0a33' | '\\u0a35' .. '\\u0a36' | '\\u0a38' .. '\\u0a39' | '\\u0a3c' | '\\u0a3e' .. '\\u0a42' | '\\u0a47' .. '\\u0a48' | '\\u0a4b' .. '\\u0a4d' | '\\u0a59' .. '\\u0a5c' | '\\u0a5e' | '\\u0a66' .. '\\u0a74' | '\\u0a81' .. '\\u0a83' | '\\u0a85' .. '\\u0a8d' | '\\u0a8f' .. '\\u0a91' | '\\u0a93' .. '\\u0aa8' | '\\u0aaa' .. '\\u0ab0' | '\\u0ab2' .. '\\u0ab3' | '\\u0ab5' .. '\\u0ab9' | '\\u0abc' .. '\\u0ac5' | '\\u0ac7' .. '\\u0ac9' | '\\u0acb' .. '\\u0acd' | '\\u0ad0' | '\\u0ae0' .. '\\u0ae3' | '\\u0ae6' .. '\\u0aef' | '\\u0af1' | '\\u0b01' .. '\\u0b03' | '\\u0b05' .. '\\u0b0c' | '\\u0b0f' .. '\\u0b10' | '\\u0b13' .. '\\u0b28' | '\\u0b2a' .. '\\u0b30' | '\\u0b32' .. '\\u0b33' | '\\u0b35' .. '\\u0b39' | '\\u0b3c' .. '\\u0b43' | '\\u0b47' .. '\\u0b48' | '\\u0b4b' .. '\\u0b4d' | '\\u0b56' .. '\\u0b57' | '\\u0b5c' .. '\\u0b5d' | '\\u0b5f' .. '\\u0b61' | '\\u0b66' .. '\\u0b6f' | '\\u0b71' | '\\u0b82' .. '\\u0b83' | '\\u0b85' .. '\\u0b8a' | '\\u0b8e' .. '\\u0b90' | '\\u0b92' .. '\\u0b95' | '\\u0b99' .. '\\u0b9a' | '\\u0b9c' | '\\u0b9e' .. '\\u0b9f' | '\\u0ba3' .. '\\u0ba4' | '\\u0ba8' .. '\\u0baa' | '\\u0bae' .. '\\u0bb5' | '\\u0bb7' .. '\\u0bb9' | '\\u0bbe' .. '\\u0bc2' | '\\u0bc6' .. '\\u0bc8' | '\\u0bca' .. '\\u0bcd' | '\\u0bd7' | '\\u0be7' .. '\\u0bef' | '\\u0bf9' | '\\u0c01' .. '\\u0c03' | '\\u0c05' .. '\\u0c0c' | '\\u0c0e' .. '\\u0c10' | '\\u0c12' .. '\\u0c28' | '\\u0c2a' .. '\\u0c33' | '\\u0c35' .. '\\u0c39' | '\\u0c3e' .. '\\u0c44' | '\\u0c46' .. '\\u0c48' | '\\u0c4a' .. '\\u0c4d' | '\\u0c55' .. '\\u0c56' | '\\u0c60' .. '\\u0c61' | '\\u0c66' .. '\\u0c6f' | '\\u0c82' .. '\\u0c83' | '\\u0c85' .. '\\u0c8c' | '\\u0c8e' .. '\\u0c90' | '\\u0c92' .. '\\u0ca8' | '\\u0caa' .. '\\u0cb3' | '\\u0cb5' .. '\\u0cb9' | '\\u0cbc' .. '\\u0cc4' | '\\u0cc6' .. '\\u0cc8' | '\\u0cca' .. '\\u0ccd' | '\\u0cd5' .. '\\u0cd6' | '\\u0cde' | '\\u0ce0' .. '\\u0ce1' | '\\u0ce6' .. '\\u0cef' | '\\u0d02' .. '\\u0d03' | '\\u0d05' .. '\\u0d0c' | '\\u0d0e' .. '\\u0d10' | '\\u0d12' .. '\\u0d28' | '\\u0d2a' .. '\\u0d39' | '\\u0d3e' .. '\\u0d43' | '\\u0d46' .. '\\u0d48' | '\\u0d4a' .. '\\u0d4d' | '\\u0d57' | '\\u0d60' .. '\\u0d61' | '\\u0d66' .. '\\u0d6f' | '\\u0d82' .. '\\u0d83' | '\\u0d85' .. '\\u0d96' | '\\u0d9a' .. '\\u0db1' | '\\u0db3' .. '\\u0dbb' | '\\u0dbd' | '\\u0dc0' .. '\\u0dc6' | '\\u0dca' | '\\u0dcf' .. '\\u0dd4' | '\\u0dd6' | '\\u0dd8' .. '\\u0ddf' | '\\u0df2' .. '\\u0df3' | '\\u0e01' .. '\\u0e3a' | '\\u0e3f' .. '\\u0e4e' | '\\u0e50' .. '\\u0e59' | '\\u0e81' .. '\\u0e82' | '\\u0e84' | '\\u0e87' .. '\\u0e88' | '\\u0e8a' | '\\u0e8d' | '\\u0e94' .. '\\u0e97' | '\\u0e99' .. '\\u0e9f' | '\\u0ea1' .. '\\u0ea3' | '\\u0ea5' | '\\u0ea7' | '\\u0eaa' .. '\\u0eab' | '\\u0ead' .. '\\u0eb9' | '\\u0ebb' .. '\\u0ebd' | '\\u0ec0' .. '\\u0ec4' | '\\u0ec6' | '\\u0ec8' .. '\\u0ecd' | '\\u0ed0' .. '\\u0ed9' | '\\u0edc' .. '\\u0edd' | '\\u0f00' | '\\u0f18' .. '\\u0f19' | '\\u0f20' .. '\\u0f29' | '\\u0f35' | '\\u0f37' | '\\u0f39' | '\\u0f3e' .. '\\u0f47' | '\\u0f49' .. '\\u0f6a' | '\\u0f71' .. '\\u0f84' | '\\u0f86' .. '\\u0f8b' | '\\u0f90' .. '\\u0f97' | '\\u0f99' .. '\\u0fbc' | '\\u0fc6' | '\\u1000' .. '\\u1021' | '\\u1023' .. '\\u1027' | '\\u1029' .. '\\u102a' | '\\u102c' .. '\\u1032' | '\\u1036' .. '\\u1039' | '\\u1040' .. '\\u1049' | '\\u1050' .. '\\u1059' | '\\u10a0' .. '\\u10c5' | '\\u10d0' .. '\\u10f8' | '\\u1100' .. '\\u1159' | '\\u115f' .. '\\u11a2' | '\\u11a8' .. '\\u11f9' | '\\u1200' .. '\\u1206' | '\\u1208' .. '\\u1246' | '\\u1248' | '\\u124a' .. '\\u124d' | '\\u1250' .. '\\u1256' | '\\u1258' | '\\u125a' .. '\\u125d' | '\\u1260' .. '\\u1286' | '\\u1288' | '\\u128a' .. '\\u128d' | '\\u1290' .. '\\u12ae' | '\\u12b0' | '\\u12b2' .. '\\u12b5' | '\\u12b8' .. '\\u12be' | '\\u12c0' | '\\u12c2' .. '\\u12c5' | '\\u12c8' .. '\\u12ce' | '\\u12d0' .. '\\u12d6' | '\\u12d8' .. '\\u12ee' | '\\u12f0' .. '\\u130e' | '\\u1310' | '\\u1312' .. '\\u1315' | '\\u1318' .. '\\u131e' | '\\u1320' .. '\\u1346' | '\\u1348' .. '\\u135a' | '\\u1369' .. '\\u1371' | '\\u13a0' .. '\\u13f4' | '\\u1401' .. '\\u166c' | '\\u166f' .. '\\u1676' | '\\u1681' .. '\\u169a' | '\\u16a0' .. '\\u16ea' | '\\u16ee' .. '\\u16f0' | '\\u1700' .. '\\u170c' | '\\u170e' .. '\\u1714' | '\\u1720' .. '\\u1734' | '\\u1740' .. '\\u1753' | '\\u1760' .. '\\u176c' | '\\u176e' .. '\\u1770' | '\\u1772' .. '\\u1773' | '\\u1780' .. '\\u17d3' | '\\u17d7' | '\\u17db' .. '\\u17dd' | '\\u17e0' .. '\\u17e9' | '\\u180b' .. '\\u180d' | '\\u1810' .. '\\u1819' | '\\u1820' .. '\\u1877' | '\\u1880' .. '\\u18a9' | '\\u1900' .. '\\u191c' | '\\u1920' .. '\\u192b' | '\\u1930' .. '\\u193b' | '\\u1946' .. '\\u196d' | '\\u1970' .. '\\u1974' | '\\u1d00' .. '\\u1d6b' | '\\u1e00' .. '\\u1e9b' | '\\u1ea0' .. '\\u1ef9' | '\\u1f00' .. '\\u1f15' | '\\u1f18' .. '\\u1f1d' | '\\u1f20' .. '\\u1f45' | '\\u1f48' .. '\\u1f4d' | '\\u1f50' .. '\\u1f57' | '\\u1f59' | '\\u1f5b' | '\\u1f5d' | '\\u1f5f' .. '\\u1f7d' | '\\u1f80' .. '\\u1fb4' | '\\u1fb6' .. '\\u1fbc' | '\\u1fbe' | '\\u1fc2' .. '\\u1fc4' | '\\u1fc6' .. '\\u1fcc' | '\\u1fd0' .. '\\u1fd3' | '\\u1fd6' .. '\\u1fdb' | '\\u1fe0' .. '\\u1fec' | '\\u1ff2' .. '\\u1ff4' | '\\u1ff6' .. '\\u1ffc' | '\\u200c' .. '\\u200f' | '\\u202a' .. '\\u202e' | '\\u203f' .. '\\u2040' | '\\u2054' | '\\u2060' .. '\\u2063' | '\\u206a' .. '\\u206f' | '\\u2071' | '\\u207f' | '\\u20a0' .. '\\u20b1' | '\\u20d0' .. '\\u20dc' | '\\u20e1' | '\\u20e5' .. '\\u20ea' | '\\u2102' | '\\u2107' | '\\u210a' .. '\\u2113' | '\\u2115' | '\\u2119' .. '\\u211d' | '\\u2124' | '\\u2126' | '\\u2128' | '\\u212a' .. '\\u212d' | '\\u212f' .. '\\u2131' | '\\u2133' .. '\\u2139' | '\\u213d' .. '\\u213f' | '\\u2145' .. '\\u2149' | '\\u2160' .. '\\u2183' | '\\u3005' .. '\\u3007' | '\\u3021' .. '\\u302f' | '\\u3031' .. '\\u3035' | '\\u3038' .. '\\u303c' | '\\u3041' .. '\\u3096' | '\\u3099' .. '\\u309a' | '\\u309d' .. '\\u309f' | '\\u30a1' .. '\\u30ff' | '\\u3105' .. '\\u312c' | '\\u3131' .. '\\u318e' | '\\u31a0' .. '\\u31b7' | '\\u31f0' .. '\\u31ff' | '\\u3400' .. '\\u4db5' | '\\u4e00' .. '\\u9fa5' | '\\ua000' .. '\\ua48c' | '\\uac00' .. '\\ud7a3' | '\\uf900' .. '\\ufa2d' | '\\ufa30' .. '\\ufa6a' | '\\ufb00' .. '\\ufb06' | '\\ufb13' .. '\\ufb17' | '\\ufb1d' .. '\\ufb28' | '\\ufb2a' .. '\\ufb36' | '\\ufb38' .. '\\ufb3c' | '\\ufb3e' | '\\ufb40' .. '\\ufb41' | '\\ufb43' .. '\\ufb44' | '\\ufb46' .. '\\ufbb1' | '\\ufbd3' .. '\\ufd3d' | '\\ufd50' .. '\\ufd8f' | '\\ufd92' .. '\\ufdc7' | '\\ufdf0' .. '\\ufdfc' | '\\ufe00' .. '\\ufe0f' | '\\ufe20' .. '\\ufe23' | '\\ufe33' .. '\\ufe34' | '\\ufe4d' .. '\\ufe4f' | '\\ufe69' | '\\ufe70' .. '\\ufe74' | '\\ufe76' .. '\\ufefc' | '\\ufeff' | '\\uff04' | '\\uff10' .. '\\uff19' | '\\uff21' .. '\\uff3a' | '\\uff3f' | '\\uff41' .. '\\uff5a' | '\\uff65' .. '\\uffbe' | '\\uffc2' .. '\\uffc7' | '\\uffca' .. '\\uffcf' | '\\uffd2' .. '\\uffd7' | '\\uffda' .. '\\uffdc' | '\\uffe0' .. '\\uffe1' | '\\uffe5' .. '\\uffe6' | '\\ufff9' .. '\\ufffb' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:646:5: ( '\\u0000' .. '\\u0008' | '\\u000e' .. '\\u001b' | '\\u0024' | '\\u0030' .. '\\u0039' | '\\u0041' .. '\\u005a' | '\\u005f' | '\\u0061' .. '\\u007a' | '\\u007f' .. '\\u009f' | '\\u00a2' .. '\\u00a5' | '\\u00aa' | '\\u00ad' | '\\u00b5' | '\\u00ba' | '\\u00c0' .. '\\u00d6' | '\\u00d8' .. '\\u00f6' | '\\u00f8' .. '\\u0236' | '\\u0250' .. '\\u02c1' | '\\u02c6' .. '\\u02d1' | '\\u02e0' .. '\\u02e4' | '\\u02ee' | '\\u0300' .. '\\u0357' | '\\u035d' .. '\\u036f' | '\\u037a' | '\\u0386' | '\\u0388' .. '\\u038a' | '\\u038c' | '\\u038e' .. '\\u03a1' | '\\u03a3' .. '\\u03ce' | '\\u03d0' .. '\\u03f5' | '\\u03f7' .. '\\u03fb' | '\\u0400' .. '\\u0481' | '\\u0483' .. '\\u0486' | '\\u048a' .. '\\u04ce' | '\\u04d0' .. '\\u04f5' | '\\u04f8' .. '\\u04f9' | '\\u0500' .. '\\u050f' | '\\u0531' .. '\\u0556' | '\\u0559' | '\\u0561' .. '\\u0587' | '\\u0591' .. '\\u05a1' | '\\u05a3' .. '\\u05b9' | '\\u05bb' .. '\\u05bd' | '\\u05bf' | '\\u05c1' .. '\\u05c2' | '\\u05c4' | '\\u05d0' .. '\\u05ea' | '\\u05f0' .. '\\u05f2' | '\\u0600' .. '\\u0603' | '\\u0610' .. '\\u0615' | '\\u0621' .. '\\u063a' | '\\u0640' .. '\\u0658' | '\\u0660' .. '\\u0669' | '\\u066e' .. '\\u06d3' | '\\u06d5' .. '\\u06dd' | '\\u06df' .. '\\u06e8' | '\\u06ea' .. '\\u06fc' | '\\u06ff' | '\\u070f' .. '\\u074a' | '\\u074d' .. '\\u074f' | '\\u0780' .. '\\u07b1' | '\\u0901' .. '\\u0939' | '\\u093c' .. '\\u094d' | '\\u0950' .. '\\u0954' | '\\u0958' .. '\\u0963' | '\\u0966' .. '\\u096f' | '\\u0981' .. '\\u0983' | '\\u0985' .. '\\u098c' | '\\u098f' .. '\\u0990' | '\\u0993' .. '\\u09a8' | '\\u09aa' .. '\\u09b0' | '\\u09b2' | '\\u09b6' .. '\\u09b9' | '\\u09bc' .. '\\u09c4' | '\\u09c7' .. '\\u09c8' | '\\u09cb' .. '\\u09cd' | '\\u09d7' | '\\u09dc' .. '\\u09dd' | '\\u09df' .. '\\u09e3' | '\\u09e6' .. '\\u09f3' | '\\u0a01' .. '\\u0a03' | '\\u0a05' .. '\\u0a0a' | '\\u0a0f' .. '\\u0a10' | '\\u0a13' .. '\\u0a28' | '\\u0a2a' .. '\\u0a30' | '\\u0a32' .. '\\u0a33' | '\\u0a35' .. '\\u0a36' | '\\u0a38' .. '\\u0a39' | '\\u0a3c' | '\\u0a3e' .. '\\u0a42' | '\\u0a47' .. '\\u0a48' | '\\u0a4b' .. '\\u0a4d' | '\\u0a59' .. '\\u0a5c' | '\\u0a5e' | '\\u0a66' .. '\\u0a74' | '\\u0a81' .. '\\u0a83' | '\\u0a85' .. '\\u0a8d' | '\\u0a8f' .. '\\u0a91' | '\\u0a93' .. '\\u0aa8' | '\\u0aaa' .. '\\u0ab0' | '\\u0ab2' .. '\\u0ab3' | '\\u0ab5' .. '\\u0ab9' | '\\u0abc' .. '\\u0ac5' | '\\u0ac7' .. '\\u0ac9' | '\\u0acb' .. '\\u0acd' | '\\u0ad0' | '\\u0ae0' .. '\\u0ae3' | '\\u0ae6' .. '\\u0aef' | '\\u0af1' | '\\u0b01' .. '\\u0b03' | '\\u0b05' .. '\\u0b0c' | '\\u0b0f' .. '\\u0b10' | '\\u0b13' .. '\\u0b28' | '\\u0b2a' .. '\\u0b30' | '\\u0b32' .. '\\u0b33' | '\\u0b35' .. '\\u0b39' | '\\u0b3c' .. '\\u0b43' | '\\u0b47' .. '\\u0b48' | '\\u0b4b' .. '\\u0b4d' | '\\u0b56' .. '\\u0b57' | '\\u0b5c' .. '\\u0b5d' | '\\u0b5f' .. '\\u0b61' | '\\u0b66' .. '\\u0b6f' | '\\u0b71' | '\\u0b82' .. '\\u0b83' | '\\u0b85' .. '\\u0b8a' | '\\u0b8e' .. '\\u0b90' | '\\u0b92' .. '\\u0b95' | '\\u0b99' .. '\\u0b9a' | '\\u0b9c' | '\\u0b9e' .. '\\u0b9f' | '\\u0ba3' .. '\\u0ba4' | '\\u0ba8' .. '\\u0baa' | '\\u0bae' .. '\\u0bb5' | '\\u0bb7' .. '\\u0bb9' | '\\u0bbe' .. '\\u0bc2' | '\\u0bc6' .. '\\u0bc8' | '\\u0bca' .. '\\u0bcd' | '\\u0bd7' | '\\u0be7' .. '\\u0bef' | '\\u0bf9' | '\\u0c01' .. '\\u0c03' | '\\u0c05' .. '\\u0c0c' | '\\u0c0e' .. '\\u0c10' | '\\u0c12' .. '\\u0c28' | '\\u0c2a' .. '\\u0c33' | '\\u0c35' .. '\\u0c39' | '\\u0c3e' .. '\\u0c44' | '\\u0c46' .. '\\u0c48' | '\\u0c4a' .. '\\u0c4d' | '\\u0c55' .. '\\u0c56' | '\\u0c60' .. '\\u0c61' | '\\u0c66' .. '\\u0c6f' | '\\u0c82' .. '\\u0c83' | '\\u0c85' .. '\\u0c8c' | '\\u0c8e' .. '\\u0c90' | '\\u0c92' .. '\\u0ca8' | '\\u0caa' .. '\\u0cb3' | '\\u0cb5' .. '\\u0cb9' | '\\u0cbc' .. '\\u0cc4' | '\\u0cc6' .. '\\u0cc8' | '\\u0cca' .. '\\u0ccd' | '\\u0cd5' .. '\\u0cd6' | '\\u0cde' | '\\u0ce0' .. '\\u0ce1' | '\\u0ce6' .. '\\u0cef' | '\\u0d02' .. '\\u0d03' | '\\u0d05' .. '\\u0d0c' | '\\u0d0e' .. '\\u0d10' | '\\u0d12' .. '\\u0d28' | '\\u0d2a' .. '\\u0d39' | '\\u0d3e' .. '\\u0d43' | '\\u0d46' .. '\\u0d48' | '\\u0d4a' .. '\\u0d4d' | '\\u0d57' | '\\u0d60' .. '\\u0d61' | '\\u0d66' .. '\\u0d6f' | '\\u0d82' .. '\\u0d83' | '\\u0d85' .. '\\u0d96' | '\\u0d9a' .. '\\u0db1' | '\\u0db3' .. '\\u0dbb' | '\\u0dbd' | '\\u0dc0' .. '\\u0dc6' | '\\u0dca' | '\\u0dcf' .. '\\u0dd4' | '\\u0dd6' | '\\u0dd8' .. '\\u0ddf' | '\\u0df2' .. '\\u0df3' | '\\u0e01' .. '\\u0e3a' | '\\u0e3f' .. '\\u0e4e' | '\\u0e50' .. '\\u0e59' | '\\u0e81' .. '\\u0e82' | '\\u0e84' | '\\u0e87' .. '\\u0e88' | '\\u0e8a' | '\\u0e8d' | '\\u0e94' .. '\\u0e97' | '\\u0e99' .. '\\u0e9f' | '\\u0ea1' .. '\\u0ea3' | '\\u0ea5' | '\\u0ea7' | '\\u0eaa' .. '\\u0eab' | '\\u0ead' .. '\\u0eb9' | '\\u0ebb' .. '\\u0ebd' | '\\u0ec0' .. '\\u0ec4' | '\\u0ec6' | '\\u0ec8' .. '\\u0ecd' | '\\u0ed0' .. '\\u0ed9' | '\\u0edc' .. '\\u0edd' | '\\u0f00' | '\\u0f18' .. '\\u0f19' | '\\u0f20' .. '\\u0f29' | '\\u0f35' | '\\u0f37' | '\\u0f39' | '\\u0f3e' .. '\\u0f47' | '\\u0f49' .. '\\u0f6a' | '\\u0f71' .. '\\u0f84' | '\\u0f86' .. '\\u0f8b' | '\\u0f90' .. '\\u0f97' | '\\u0f99' .. '\\u0fbc' | '\\u0fc6' | '\\u1000' .. '\\u1021' | '\\u1023' .. '\\u1027' | '\\u1029' .. '\\u102a' | '\\u102c' .. '\\u1032' | '\\u1036' .. '\\u1039' | '\\u1040' .. '\\u1049' | '\\u1050' .. '\\u1059' | '\\u10a0' .. '\\u10c5' | '\\u10d0' .. '\\u10f8' | '\\u1100' .. '\\u1159' | '\\u115f' .. '\\u11a2' | '\\u11a8' .. '\\u11f9' | '\\u1200' .. '\\u1206' | '\\u1208' .. '\\u1246' | '\\u1248' | '\\u124a' .. '\\u124d' | '\\u1250' .. '\\u1256' | '\\u1258' | '\\u125a' .. '\\u125d' | '\\u1260' .. '\\u1286' | '\\u1288' | '\\u128a' .. '\\u128d' | '\\u1290' .. '\\u12ae' | '\\u12b0' | '\\u12b2' .. '\\u12b5' | '\\u12b8' .. '\\u12be' | '\\u12c0' | '\\u12c2' .. '\\u12c5' | '\\u12c8' .. '\\u12ce' | '\\u12d0' .. '\\u12d6' | '\\u12d8' .. '\\u12ee' | '\\u12f0' .. '\\u130e' | '\\u1310' | '\\u1312' .. '\\u1315' | '\\u1318' .. '\\u131e' | '\\u1320' .. '\\u1346' | '\\u1348' .. '\\u135a' | '\\u1369' .. '\\u1371' | '\\u13a0' .. '\\u13f4' | '\\u1401' .. '\\u166c' | '\\u166f' .. '\\u1676' | '\\u1681' .. '\\u169a' | '\\u16a0' .. '\\u16ea' | '\\u16ee' .. '\\u16f0' | '\\u1700' .. '\\u170c' | '\\u170e' .. '\\u1714' | '\\u1720' .. '\\u1734' | '\\u1740' .. '\\u1753' | '\\u1760' .. '\\u176c' | '\\u176e' .. '\\u1770' | '\\u1772' .. '\\u1773' | '\\u1780' .. '\\u17d3' | '\\u17d7' | '\\u17db' .. '\\u17dd' | '\\u17e0' .. '\\u17e9' | '\\u180b' .. '\\u180d' | '\\u1810' .. '\\u1819' | '\\u1820' .. '\\u1877' | '\\u1880' .. '\\u18a9' | '\\u1900' .. '\\u191c' | '\\u1920' .. '\\u192b' | '\\u1930' .. '\\u193b' | '\\u1946' .. '\\u196d' | '\\u1970' .. '\\u1974' | '\\u1d00' .. '\\u1d6b' | '\\u1e00' .. '\\u1e9b' | '\\u1ea0' .. '\\u1ef9' | '\\u1f00' .. '\\u1f15' | '\\u1f18' .. '\\u1f1d' | '\\u1f20' .. '\\u1f45' | '\\u1f48' .. '\\u1f4d' | '\\u1f50' .. '\\u1f57' | '\\u1f59' | '\\u1f5b' | '\\u1f5d' | '\\u1f5f' .. '\\u1f7d' | '\\u1f80' .. '\\u1fb4' | '\\u1fb6' .. '\\u1fbc' | '\\u1fbe' | '\\u1fc2' .. '\\u1fc4' | '\\u1fc6' .. '\\u1fcc' | '\\u1fd0' .. '\\u1fd3' | '\\u1fd6' .. '\\u1fdb' | '\\u1fe0' .. '\\u1fec' | '\\u1ff2' .. '\\u1ff4' | '\\u1ff6' .. '\\u1ffc' | '\\u200c' .. '\\u200f' | '\\u202a' .. '\\u202e' | '\\u203f' .. '\\u2040' | '\\u2054' | '\\u2060' .. '\\u2063' | '\\u206a' .. '\\u206f' | '\\u2071' | '\\u207f' | '\\u20a0' .. '\\u20b1' | '\\u20d0' .. '\\u20dc' | '\\u20e1' | '\\u20e5' .. '\\u20ea' | '\\u2102' | '\\u2107' | '\\u210a' .. '\\u2113' | '\\u2115' | '\\u2119' .. '\\u211d' | '\\u2124' | '\\u2126' | '\\u2128' | '\\u212a' .. '\\u212d' | '\\u212f' .. '\\u2131' | '\\u2133' .. '\\u2139' | '\\u213d' .. '\\u213f' | '\\u2145' .. '\\u2149' | '\\u2160' .. '\\u2183' | '\\u3005' .. '\\u3007' | '\\u3021' .. '\\u302f' | '\\u3031' .. '\\u3035' | '\\u3038' .. '\\u303c' | '\\u3041' .. '\\u3096' | '\\u3099' .. '\\u309a' | '\\u309d' .. '\\u309f' | '\\u30a1' .. '\\u30ff' | '\\u3105' .. '\\u312c' | '\\u3131' .. '\\u318e' | '\\u31a0' .. '\\u31b7' | '\\u31f0' .. '\\u31ff' | '\\u3400' .. '\\u4db5' | '\\u4e00' .. '\\u9fa5' | '\\ua000' .. '\\ua48c' | '\\uac00' .. '\\ud7a3' | '\\uf900' .. '\\ufa2d' | '\\ufa30' .. '\\ufa6a' | '\\ufb00' .. '\\ufb06' | '\\ufb13' .. '\\ufb17' | '\\ufb1d' .. '\\ufb28' | '\\ufb2a' .. '\\ufb36' | '\\ufb38' .. '\\ufb3c' | '\\ufb3e' | '\\ufb40' .. '\\ufb41' | '\\ufb43' .. '\\ufb44' | '\\ufb46' .. '\\ufbb1' | '\\ufbd3' .. '\\ufd3d' | '\\ufd50' .. '\\ufd8f' | '\\ufd92' .. '\\ufdc7' | '\\ufdf0' .. '\\ufdfc' | '\\ufe00' .. '\\ufe0f' | '\\ufe20' .. '\\ufe23' | '\\ufe33' .. '\\ufe34' | '\\ufe4d' .. '\\ufe4f' | '\\ufe69' | '\\ufe70' .. '\\ufe74' | '\\ufe76' .. '\\ufefc' | '\\ufeff' | '\\uff04' | '\\uff10' .. '\\uff19' | '\\uff21' .. '\\uff3a' | '\\uff3f' | '\\uff41' .. '\\uff5a' | '\\uff65' .. '\\uffbe' | '\\uffc2' .. '\\uffc7' | '\\uffca' .. '\\uffcf' | '\\uffd2' .. '\\uffd7' | '\\uffda' .. '\\uffdc' | '\\uffe0' .. '\\uffe1' | '\\uffe5' .. '\\uffe6' | '\\ufff9' .. '\\ufffb' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:
{
if ( (input.LA(1) >= '\u0000' && input.LA(1) <= '\b')||(input.LA(1) >= '\u000E' && input.LA(1) <= '\u001B')||input.LA(1)=='$'||(input.LA(1) >= '0' && input.LA(1) <= '9')||(input.LA(1) >= 'A' && input.LA(1) <= 'Z')||input.LA(1)=='_'||(input.LA(1) >= 'a' && input.LA(1) <= 'z')||(input.LA(1) >= '\u007F' && input.LA(1) <= '\u009F')||(input.LA(1) >= '\u00A2' && input.LA(1) <= '\u00A5')||input.LA(1)=='\u00AA'||input.LA(1)=='\u00AD'||input.LA(1)=='\u00B5'||input.LA(1)=='\u00BA'||(input.LA(1) >= '\u00C0' && input.LA(1) <= '\u00D6')||(input.LA(1) >= '\u00D8' && input.LA(1) <= '\u00F6')||(input.LA(1) >= '\u00F8' && input.LA(1) <= '\u0236')||(input.LA(1) >= '\u0250' && input.LA(1) <= '\u02C1')||(input.LA(1) >= '\u02C6' && input.LA(1) <= '\u02D1')||(input.LA(1) >= '\u02E0' && input.LA(1) <= '\u02E4')||input.LA(1)=='\u02EE'||(input.LA(1) >= '\u0300' && input.LA(1) <= '\u0357')||(input.LA(1) >= '\u035D' && input.LA(1) <= '\u036F')||input.LA(1)=='\u037A'||input.LA(1)=='\u0386'||(input.LA(1) >= '\u0388' && input.LA(1) <= '\u038A')||input.LA(1)=='\u038C'||(input.LA(1) >= '\u038E' && input.LA(1) <= '\u03A1')||(input.LA(1) >= '\u03A3' && input.LA(1) <= '\u03CE')||(input.LA(1) >= '\u03D0' && input.LA(1) <= '\u03F5')||(input.LA(1) >= '\u03F7' && input.LA(1) <= '\u03FB')||(input.LA(1) >= '\u0400' && input.LA(1) <= '\u0481')||(input.LA(1) >= '\u0483' && input.LA(1) <= '\u0486')||(input.LA(1) >= '\u048A' && input.LA(1) <= '\u04CE')||(input.LA(1) >= '\u04D0' && input.LA(1) <= '\u04F5')||(input.LA(1) >= '\u04F8' && input.LA(1) <= '\u04F9')||(input.LA(1) >= '\u0500' && input.LA(1) <= '\u050F')||(input.LA(1) >= '\u0531' && input.LA(1) <= '\u0556')||input.LA(1)=='\u0559'||(input.LA(1) >= '\u0561' && input.LA(1) <= '\u0587')||(input.LA(1) >= '\u0591' && input.LA(1) <= '\u05A1')||(input.LA(1) >= '\u05A3' && input.LA(1) <= '\u05B9')||(input.LA(1) >= '\u05BB' && input.LA(1) <= '\u05BD')||input.LA(1)=='\u05BF'||(input.LA(1) >= '\u05C1' && input.LA(1) <= '\u05C2')||input.LA(1)=='\u05C4'||(input.LA(1) >= '\u05D0' && input.LA(1) <= '\u05EA')||(input.LA(1) >= '\u05F0' && input.LA(1) <= '\u05F2')||(input.LA(1) >= '\u0600' && input.LA(1) <= '\u0603')||(input.LA(1) >= '\u0610' && input.LA(1) <= '\u0615')||(input.LA(1) >= '\u0621' && input.LA(1) <= '\u063A')||(input.LA(1) >= '\u0640' && input.LA(1) <= '\u0658')||(input.LA(1) >= '\u0660' && input.LA(1) <= '\u0669')||(input.LA(1) >= '\u066E' && input.LA(1) <= '\u06D3')||(input.LA(1) >= '\u06D5' && input.LA(1) <= '\u06DD')||(input.LA(1) >= '\u06DF' && input.LA(1) <= '\u06E8')||(input.LA(1) >= '\u06EA' && input.LA(1) <= '\u06FC')||input.LA(1)=='\u06FF'||(input.LA(1) >= '\u070F' && input.LA(1) <= '\u074A')||(input.LA(1) >= '\u074D' && input.LA(1) <= '\u074F')||(input.LA(1) >= '\u0780' && input.LA(1) <= '\u07B1')||(input.LA(1) >= '\u0901' && input.LA(1) <= '\u0939')||(input.LA(1) >= '\u093C' && input.LA(1) <= '\u094D')||(input.LA(1) >= '\u0950' && input.LA(1) <= '\u0954')||(input.LA(1) >= '\u0958' && input.LA(1) <= '\u0963')||(input.LA(1) >= '\u0966' && input.LA(1) <= '\u096F')||(input.LA(1) >= '\u0981' && input.LA(1) <= '\u0983')||(input.LA(1) >= '\u0985' && input.LA(1) <= '\u098C')||(input.LA(1) >= '\u098F' && input.LA(1) <= '\u0990')||(input.LA(1) >= '\u0993' && input.LA(1) <= '\u09A8')||(input.LA(1) >= '\u09AA' && input.LA(1) <= '\u09B0')||input.LA(1)=='\u09B2'||(input.LA(1) >= '\u09B6' && input.LA(1) <= '\u09B9')||(input.LA(1) >= '\u09BC' && input.LA(1) <= '\u09C4')||(input.LA(1) >= '\u09C7' && input.LA(1) <= '\u09C8')||(input.LA(1) >= '\u09CB' && input.LA(1) <= '\u09CD')||input.LA(1)=='\u09D7'||(input.LA(1) >= '\u09DC' && input.LA(1) <= '\u09DD')||(input.LA(1) >= '\u09DF' && input.LA(1) <= '\u09E3')||(input.LA(1) >= '\u09E6' && input.LA(1) <= '\u09F3')||(input.LA(1) >= '\u0A01' && input.LA(1) <= '\u0A03')||(input.LA(1) >= '\u0A05' && input.LA(1) <= '\u0A0A')||(input.LA(1) >= '\u0A0F' && input.LA(1) <= '\u0A10')||(input.LA(1) >= '\u0A13' && input.LA(1) <= '\u0A28')||(input.LA(1) >= '\u0A2A' && input.LA(1) <= '\u0A30')||(input.LA(1) >= '\u0A32' && input.LA(1) <= '\u0A33')||(input.LA(1) >= '\u0A35' && input.LA(1) <= '\u0A36')||(input.LA(1) >= '\u0A38' && input.LA(1) <= '\u0A39')||input.LA(1)=='\u0A3C'||(input.LA(1) >= '\u0A3E' && input.LA(1) <= '\u0A42')||(input.LA(1) >= '\u0A47' && input.LA(1) <= '\u0A48')||(input.LA(1) >= '\u0A4B' && input.LA(1) <= '\u0A4D')||(input.LA(1) >= '\u0A59' && input.LA(1) <= '\u0A5C')||input.LA(1)=='\u0A5E'||(input.LA(1) >= '\u0A66' && input.LA(1) <= '\u0A74')||(input.LA(1) >= '\u0A81' && input.LA(1) <= '\u0A83')||(input.LA(1) >= '\u0A85' && input.LA(1) <= '\u0A8D')||(input.LA(1) >= '\u0A8F' && input.LA(1) <= '\u0A91')||(input.LA(1) >= '\u0A93' && input.LA(1) <= '\u0AA8')||(input.LA(1) >= '\u0AAA' && input.LA(1) <= '\u0AB0')||(input.LA(1) >= '\u0AB2' && input.LA(1) <= '\u0AB3')||(input.LA(1) >= '\u0AB5' && input.LA(1) <= '\u0AB9')||(input.LA(1) >= '\u0ABC' && input.LA(1) <= '\u0AC5')||(input.LA(1) >= '\u0AC7' && input.LA(1) <= '\u0AC9')||(input.LA(1) >= '\u0ACB' && input.LA(1) <= '\u0ACD')||input.LA(1)=='\u0AD0'||(input.LA(1) >= '\u0AE0' && input.LA(1) <= '\u0AE3')||(input.LA(1) >= '\u0AE6' && input.LA(1) <= '\u0AEF')||input.LA(1)=='\u0AF1'||(input.LA(1) >= '\u0B01' && input.LA(1) <= '\u0B03')||(input.LA(1) >= '\u0B05' && input.LA(1) <= '\u0B0C')||(input.LA(1) >= '\u0B0F' && input.LA(1) <= '\u0B10')||(input.LA(1) >= '\u0B13' && input.LA(1) <= '\u0B28')||(input.LA(1) >= '\u0B2A' && input.LA(1) <= '\u0B30')||(input.LA(1) >= '\u0B32' && input.LA(1) <= '\u0B33')||(input.LA(1) >= '\u0B35' && input.LA(1) <= '\u0B39')||(input.LA(1) >= '\u0B3C' && input.LA(1) <= '\u0B43')||(input.LA(1) >= '\u0B47' && input.LA(1) <= '\u0B48')||(input.LA(1) >= '\u0B4B' && input.LA(1) <= '\u0B4D')||(input.LA(1) >= '\u0B56' && input.LA(1) <= '\u0B57')||(input.LA(1) >= '\u0B5C' && input.LA(1) <= '\u0B5D')||(input.LA(1) >= '\u0B5F' && input.LA(1) <= '\u0B61')||(input.LA(1) >= '\u0B66' && input.LA(1) <= '\u0B6F')||input.LA(1)=='\u0B71'||(input.LA(1) >= '\u0B82' && input.LA(1) <= '\u0B83')||(input.LA(1) >= '\u0B85' && input.LA(1) <= '\u0B8A')||(input.LA(1) >= '\u0B8E' && input.LA(1) <= '\u0B90')||(input.LA(1) >= '\u0B92' && input.LA(1) <= '\u0B95')||(input.LA(1) >= '\u0B99' && input.LA(1) <= '\u0B9A')||input.LA(1)=='\u0B9C'||(input.LA(1) >= '\u0B9E' && input.LA(1) <= '\u0B9F')||(input.LA(1) >= '\u0BA3' && input.LA(1) <= '\u0BA4')||(input.LA(1) >= '\u0BA8' && input.LA(1) <= '\u0BAA')||(input.LA(1) >= '\u0BAE' && input.LA(1) <= '\u0BB5')||(input.LA(1) >= '\u0BB7' && input.LA(1) <= '\u0BB9')||(input.LA(1) >= '\u0BBE' && input.LA(1) <= '\u0BC2')||(input.LA(1) >= '\u0BC6' && input.LA(1) <= '\u0BC8')||(input.LA(1) >= '\u0BCA' && input.LA(1) <= '\u0BCD')||input.LA(1)=='\u0BD7'||(input.LA(1) >= '\u0BE7' && input.LA(1) <= '\u0BEF')||input.LA(1)=='\u0BF9'||(input.LA(1) >= '\u0C01' && input.LA(1) <= '\u0C03')||(input.LA(1) >= '\u0C05' && input.LA(1) <= '\u0C0C')||(input.LA(1) >= '\u0C0E' && input.LA(1) <= '\u0C10')||(input.LA(1) >= '\u0C12' && input.LA(1) <= '\u0C28')||(input.LA(1) >= '\u0C2A' && input.LA(1) <= '\u0C33')||(input.LA(1) >= '\u0C35' && input.LA(1) <= '\u0C39')||(input.LA(1) >= '\u0C3E' && input.LA(1) <= '\u0C44')||(input.LA(1) >= '\u0C46' && input.LA(1) <= '\u0C48')||(input.LA(1) >= '\u0C4A' && input.LA(1) <= '\u0C4D')||(input.LA(1) >= '\u0C55' && input.LA(1) <= '\u0C56')||(input.LA(1) >= '\u0C60' && input.LA(1) <= '\u0C61')||(input.LA(1) >= '\u0C66' && input.LA(1) <= '\u0C6F')||(input.LA(1) >= '\u0C82' && input.LA(1) <= '\u0C83')||(input.LA(1) >= '\u0C85' && input.LA(1) <= '\u0C8C')||(input.LA(1) >= '\u0C8E' && input.LA(1) <= '\u0C90')||(input.LA(1) >= '\u0C92' && input.LA(1) <= '\u0CA8')||(input.LA(1) >= '\u0CAA' && input.LA(1) <= '\u0CB3')||(input.LA(1) >= '\u0CB5' && input.LA(1) <= '\u0CB9')||(input.LA(1) >= '\u0CBC' && input.LA(1) <= '\u0CC4')||(input.LA(1) >= '\u0CC6' && input.LA(1) <= '\u0CC8')||(input.LA(1) >= '\u0CCA' && input.LA(1) <= '\u0CCD')||(input.LA(1) >= '\u0CD5' && input.LA(1) <= '\u0CD6')||input.LA(1)=='\u0CDE'||(input.LA(1) >= '\u0CE0' && input.LA(1) <= '\u0CE1')||(input.LA(1) >= '\u0CE6' && input.LA(1) <= '\u0CEF')||(input.LA(1) >= '\u0D02' && input.LA(1) <= '\u0D03')||(input.LA(1) >= '\u0D05' && input.LA(1) <= '\u0D0C')||(input.LA(1) >= '\u0D0E' && input.LA(1) <= '\u0D10')||(input.LA(1) >= '\u0D12' && input.LA(1) <= '\u0D28')||(input.LA(1) >= '\u0D2A' && input.LA(1) <= '\u0D39')||(input.LA(1) >= '\u0D3E' && input.LA(1) <= '\u0D43')||(input.LA(1) >= '\u0D46' && input.LA(1) <= '\u0D48')||(input.LA(1) >= '\u0D4A' && input.LA(1) <= '\u0D4D')||input.LA(1)=='\u0D57'||(input.LA(1) >= '\u0D60' && input.LA(1) <= '\u0D61')||(input.LA(1) >= '\u0D66' && input.LA(1) <= '\u0D6F')||(input.LA(1) >= '\u0D82' && input.LA(1) <= '\u0D83')||(input.LA(1) >= '\u0D85' && input.LA(1) <= '\u0D96')||(input.LA(1) >= '\u0D9A' && input.LA(1) <= '\u0DB1')||(input.LA(1) >= '\u0DB3' && input.LA(1) <= '\u0DBB')||input.LA(1)=='\u0DBD'||(input.LA(1) >= '\u0DC0' && input.LA(1) <= '\u0DC6')||input.LA(1)=='\u0DCA'||(input.LA(1) >= '\u0DCF' && input.LA(1) <= '\u0DD4')||input.LA(1)=='\u0DD6'||(input.LA(1) >= '\u0DD8' && input.LA(1) <= '\u0DDF')||(input.LA(1) >= '\u0DF2' && input.LA(1) <= '\u0DF3')||(input.LA(1) >= '\u0E01' && input.LA(1) <= '\u0E3A')||(input.LA(1) >= '\u0E3F' && input.LA(1) <= '\u0E4E')||(input.LA(1) >= '\u0E50' && input.LA(1) <= '\u0E59')||(input.LA(1) >= '\u0E81' && input.LA(1) <= '\u0E82')||input.LA(1)=='\u0E84'||(input.LA(1) >= '\u0E87' && input.LA(1) <= '\u0E88')||input.LA(1)=='\u0E8A'||input.LA(1)=='\u0E8D'||(input.LA(1) >= '\u0E94' && input.LA(1) <= '\u0E97')||(input.LA(1) >= '\u0E99' && input.LA(1) <= '\u0E9F')||(input.LA(1) >= '\u0EA1' && input.LA(1) <= '\u0EA3')||input.LA(1)=='\u0EA5'||input.LA(1)=='\u0EA7'||(input.LA(1) >= '\u0EAA' && input.LA(1) <= '\u0EAB')||(input.LA(1) >= '\u0EAD' && input.LA(1) <= '\u0EB9')||(input.LA(1) >= '\u0EBB' && input.LA(1) <= '\u0EBD')||(input.LA(1) >= '\u0EC0' && input.LA(1) <= '\u0EC4')||input.LA(1)=='\u0EC6'||(input.LA(1) >= '\u0EC8' && input.LA(1) <= '\u0ECD')||(input.LA(1) >= '\u0ED0' && input.LA(1) <= '\u0ED9')||(input.LA(1) >= '\u0EDC' && input.LA(1) <= '\u0EDD')||input.LA(1)=='\u0F00'||(input.LA(1) >= '\u0F18' && input.LA(1) <= '\u0F19')||(input.LA(1) >= '\u0F20' && input.LA(1) <= '\u0F29')||input.LA(1)=='\u0F35'||input.LA(1)=='\u0F37'||input.LA(1)=='\u0F39'||(input.LA(1) >= '\u0F3E' && input.LA(1) <= '\u0F47')||(input.LA(1) >= '\u0F49' && input.LA(1) <= '\u0F6A')||(input.LA(1) >= '\u0F71' && input.LA(1) <= '\u0F84')||(input.LA(1) >= '\u0F86' && input.LA(1) <= '\u0F8B')||(input.LA(1) >= '\u0F90' && input.LA(1) <= '\u0F97')||(input.LA(1) >= '\u0F99' && input.LA(1) <= '\u0FBC')||input.LA(1)=='\u0FC6'||(input.LA(1) >= '\u1000' && input.LA(1) <= '\u1021')||(input.LA(1) >= '\u1023' && input.LA(1) <= '\u1027')||(input.LA(1) >= '\u1029' && input.LA(1) <= '\u102A')||(input.LA(1) >= '\u102C' && input.LA(1) <= '\u1032')||(input.LA(1) >= '\u1036' && input.LA(1) <= '\u1039')||(input.LA(1) >= '\u1040' && input.LA(1) <= '\u1049')||(input.LA(1) >= '\u1050' && input.LA(1) <= '\u1059')||(input.LA(1) >= '\u10A0' && input.LA(1) <= '\u10C5')||(input.LA(1) >= '\u10D0' && input.LA(1) <= '\u10F8')||(input.LA(1) >= '\u1100' && input.LA(1) <= '\u1159')||(input.LA(1) >= '\u115F' && input.LA(1) <= '\u11A2')||(input.LA(1) >= '\u11A8' && input.LA(1) <= '\u11F9')||(input.LA(1) >= '\u1200' && input.LA(1) <= '\u1206')||(input.LA(1) >= '\u1208' && input.LA(1) <= '\u1246')||input.LA(1)=='\u1248'||(input.LA(1) >= '\u124A' && input.LA(1) <= '\u124D')||(input.LA(1) >= '\u1250' && input.LA(1) <= '\u1256')||input.LA(1)=='\u1258'||(input.LA(1) >= '\u125A' && input.LA(1) <= '\u125D')||(input.LA(1) >= '\u1260' && input.LA(1) <= '\u1286')||input.LA(1)=='\u1288'||(input.LA(1) >= '\u128A' && input.LA(1) <= '\u128D')||(input.LA(1) >= '\u1290' && input.LA(1) <= '\u12AE')||input.LA(1)=='\u12B0'||(input.LA(1) >= '\u12B2' && input.LA(1) <= '\u12B5')||(input.LA(1) >= '\u12B8' && input.LA(1) <= '\u12BE')||input.LA(1)=='\u12C0'||(input.LA(1) >= '\u12C2' && input.LA(1) <= '\u12C5')||(input.LA(1) >= '\u12C8' && input.LA(1) <= '\u12CE')||(input.LA(1) >= '\u12D0' && input.LA(1) <= '\u12D6')||(input.LA(1) >= '\u12D8' && input.LA(1) <= '\u12EE')||(input.LA(1) >= '\u12F0' && input.LA(1) <= '\u130E')||input.LA(1)=='\u1310'||(input.LA(1) >= '\u1312' && input.LA(1) <= '\u1315')||(input.LA(1) >= '\u1318' && input.LA(1) <= '\u131E')||(input.LA(1) >= '\u1320' && input.LA(1) <= '\u1346')||(input.LA(1) >= '\u1348' && input.LA(1) <= '\u135A')||(input.LA(1) >= '\u1369' && input.LA(1) <= '\u1371')||(input.LA(1) >= '\u13A0' && input.LA(1) <= '\u13F4')||(input.LA(1) >= '\u1401' && input.LA(1) <= '\u166C')||(input.LA(1) >= '\u166F' && input.LA(1) <= '\u1676')||(input.LA(1) >= '\u1681' && input.LA(1) <= '\u169A')||(input.LA(1) >= '\u16A0' && input.LA(1) <= '\u16EA')||(input.LA(1) >= '\u16EE' && input.LA(1) <= '\u16F0')||(input.LA(1) >= '\u1700' && input.LA(1) <= '\u170C')||(input.LA(1) >= '\u170E' && input.LA(1) <= '\u1714')||(input.LA(1) >= '\u1720' && input.LA(1) <= '\u1734')||(input.LA(1) >= '\u1740' && input.LA(1) <= '\u1753')||(input.LA(1) >= '\u1760' && input.LA(1) <= '\u176C')||(input.LA(1) >= '\u176E' && input.LA(1) <= '\u1770')||(input.LA(1) >= '\u1772' && input.LA(1) <= '\u1773')||(input.LA(1) >= '\u1780' && input.LA(1) <= '\u17D3')||input.LA(1)=='\u17D7'||(input.LA(1) >= '\u17DB' && input.LA(1) <= '\u17DD')||(input.LA(1) >= '\u17E0' && input.LA(1) <= '\u17E9')||(input.LA(1) >= '\u180B' && input.LA(1) <= '\u180D')||(input.LA(1) >= '\u1810' && input.LA(1) <= '\u1819')||(input.LA(1) >= '\u1820' && input.LA(1) <= '\u1877')||(input.LA(1) >= '\u1880' && input.LA(1) <= '\u18A9')||(input.LA(1) >= '\u1900' && input.LA(1) <= '\u191C')||(input.LA(1) >= '\u1920' && input.LA(1) <= '\u192B')||(input.LA(1) >= '\u1930' && input.LA(1) <= '\u193B')||(input.LA(1) >= '\u1946' && input.LA(1) <= '\u196D')||(input.LA(1) >= '\u1970' && input.LA(1) <= '\u1974')||(input.LA(1) >= '\u1D00' && input.LA(1) <= '\u1D6B')||(input.LA(1) >= '\u1E00' && input.LA(1) <= '\u1E9B')||(input.LA(1) >= '\u1EA0' && input.LA(1) <= '\u1EF9')||(input.LA(1) >= '\u1F00' && input.LA(1) <= '\u1F15')||(input.LA(1) >= '\u1F18' && input.LA(1) <= '\u1F1D')||(input.LA(1) >= '\u1F20' && input.LA(1) <= '\u1F45')||(input.LA(1) >= '\u1F48' && input.LA(1) <= '\u1F4D')||(input.LA(1) >= '\u1F50' && input.LA(1) <= '\u1F57')||input.LA(1)=='\u1F59'||input.LA(1)=='\u1F5B'||input.LA(1)=='\u1F5D'||(input.LA(1) >= '\u1F5F' && input.LA(1) <= '\u1F7D')||(input.LA(1) >= '\u1F80' && input.LA(1) <= '\u1FB4')||(input.LA(1) >= '\u1FB6' && input.LA(1) <= '\u1FBC')||input.LA(1)=='\u1FBE'||(input.LA(1) >= '\u1FC2' && input.LA(1) <= '\u1FC4')||(input.LA(1) >= '\u1FC6' && input.LA(1) <= '\u1FCC')||(input.LA(1) >= '\u1FD0' && input.LA(1) <= '\u1FD3')||(input.LA(1) >= '\u1FD6' && input.LA(1) <= '\u1FDB')||(input.LA(1) >= '\u1FE0' && input.LA(1) <= '\u1FEC')||(input.LA(1) >= '\u1FF2' && input.LA(1) <= '\u1FF4')||(input.LA(1) >= '\u1FF6' && input.LA(1) <= '\u1FFC')||(input.LA(1) >= '\u200C' && input.LA(1) <= '\u200F')||(input.LA(1) >= '\u202A' && input.LA(1) <= '\u202E')||(input.LA(1) >= '\u203F' && input.LA(1) <= '\u2040')||input.LA(1)=='\u2054'||(input.LA(1) >= '\u2060' && input.LA(1) <= '\u2063')||(input.LA(1) >= '\u206A' && input.LA(1) <= '\u206F')||input.LA(1)=='\u2071'||input.LA(1)=='\u207F'||(input.LA(1) >= '\u20A0' && input.LA(1) <= '\u20B1')||(input.LA(1) >= '\u20D0' && input.LA(1) <= '\u20DC')||input.LA(1)=='\u20E1'||(input.LA(1) >= '\u20E5' && input.LA(1) <= '\u20EA')||input.LA(1)=='\u2102'||input.LA(1)=='\u2107'||(input.LA(1) >= '\u210A' && input.LA(1) <= '\u2113')||input.LA(1)=='\u2115'||(input.LA(1) >= '\u2119' && input.LA(1) <= '\u211D')||input.LA(1)=='\u2124'||input.LA(1)=='\u2126'||input.LA(1)=='\u2128'||(input.LA(1) >= '\u212A' && input.LA(1) <= '\u212D')||(input.LA(1) >= '\u212F' && input.LA(1) <= '\u2131')||(input.LA(1) >= '\u2133' && input.LA(1) <= '\u2139')||(input.LA(1) >= '\u213D' && input.LA(1) <= '\u213F')||(input.LA(1) >= '\u2145' && input.LA(1) <= '\u2149')||(input.LA(1) >= '\u2160' && input.LA(1) <= '\u2183')||(input.LA(1) >= '\u3005' && input.LA(1) <= '\u3007')||(input.LA(1) >= '\u3021' && input.LA(1) <= '\u302F')||(input.LA(1) >= '\u3031' && input.LA(1) <= '\u3035')||(input.LA(1) >= '\u3038' && input.LA(1) <= '\u303C')||(input.LA(1) >= '\u3041' && input.LA(1) <= '\u3096')||(input.LA(1) >= '\u3099' && input.LA(1) <= '\u309A')||(input.LA(1) >= '\u309D' && input.LA(1) <= '\u309F')||(input.LA(1) >= '\u30A1' && input.LA(1) <= '\u30FF')||(input.LA(1) >= '\u3105' && input.LA(1) <= '\u312C')||(input.LA(1) >= '\u3131' && input.LA(1) <= '\u318E')||(input.LA(1) >= '\u31A0' && input.LA(1) <= '\u31B7')||(input.LA(1) >= '\u31F0' && input.LA(1) <= '\u31FF')||(input.LA(1) >= '\u3400' && input.LA(1) <= '\u4DB5')||(input.LA(1) >= '\u4E00' && input.LA(1) <= '\u9FA5')||(input.LA(1) >= '\uA000' && input.LA(1) <= '\uA48C')||(input.LA(1) >= '\uAC00' && input.LA(1) <= '\uD7A3')||(input.LA(1) >= '\uF900' && input.LA(1) <= '\uFA2D')||(input.LA(1) >= '\uFA30' && input.LA(1) <= '\uFA6A')||(input.LA(1) >= '\uFB00' && input.LA(1) <= '\uFB06')||(input.LA(1) >= '\uFB13' && input.LA(1) <= '\uFB17')||(input.LA(1) >= '\uFB1D' && input.LA(1) <= '\uFB28')||(input.LA(1) >= '\uFB2A' && input.LA(1) <= '\uFB36')||(input.LA(1) >= '\uFB38' && input.LA(1) <= '\uFB3C')||input.LA(1)=='\uFB3E'||(input.LA(1) >= '\uFB40' && input.LA(1) <= '\uFB41')||(input.LA(1) >= '\uFB43' && input.LA(1) <= '\uFB44')||(input.LA(1) >= '\uFB46' && input.LA(1) <= '\uFBB1')||(input.LA(1) >= '\uFBD3' && input.LA(1) <= '\uFD3D')||(input.LA(1) >= '\uFD50' && input.LA(1) <= '\uFD8F')||(input.LA(1) >= '\uFD92' && input.LA(1) <= '\uFDC7')||(input.LA(1) >= '\uFDF0' && input.LA(1) <= '\uFDFC')||(input.LA(1) >= '\uFE00' && input.LA(1) <= '\uFE0F')||(input.LA(1) >= '\uFE20' && input.LA(1) <= '\uFE23')||(input.LA(1) >= '\uFE33' && input.LA(1) <= '\uFE34')||(input.LA(1) >= '\uFE4D' && input.LA(1) <= '\uFE4F')||input.LA(1)=='\uFE69'||(input.LA(1) >= '\uFE70' && input.LA(1) <= '\uFE74')||(input.LA(1) >= '\uFE76' && input.LA(1) <= '\uFEFC')||input.LA(1)=='\uFEFF'||input.LA(1)=='\uFF04'||(input.LA(1) >= '\uFF10' && input.LA(1) <= '\uFF19')||(input.LA(1) >= '\uFF21' && input.LA(1) <= '\uFF3A')||input.LA(1)=='\uFF3F'||(input.LA(1) >= '\uFF41' && input.LA(1) <= '\uFF5A')||(input.LA(1) >= '\uFF65' && input.LA(1) <= '\uFFBE')||(input.LA(1) >= '\uFFC2' && input.LA(1) <= '\uFFC7')||(input.LA(1) >= '\uFFCA' && input.LA(1) <= '\uFFCF')||(input.LA(1) >= '\uFFD2' && input.LA(1) <= '\uFFD7')||(input.LA(1) >= '\uFFDA' && input.LA(1) <= '\uFFDC')||(input.LA(1) >= '\uFFE0' && input.LA(1) <= '\uFFE1')||(input.LA(1) >= '\uFFE5' && input.LA(1) <= '\uFFE6')||(input.LA(1) >= '\uFFF9' && input.LA(1) <= '\uFFFB') ) {
input.consume();
@@ -3603,411 +3588,411 @@ public final void mIdentifierPart() throws RecognitionException {
@Override
public void mTokens() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:8: ( WS | FLOAT | HEX | DECIMAL | STRING | TIME_INTERVAL | BOOL | NULL | AT | PLUS_ASSIGN | MINUS_ASSIGN | MULT_ASSIGN | DIV_ASSIGN | AND_ASSIGN | OR_ASSIGN | XOR_ASSIGN | MOD_ASSIGN | UNIFY | DECR | INCR | ARROW | SEMICOLON | COLON | EQUALS | NOT_EQUALS | GREATER_EQUALS | LESS_EQUALS | GREATER | LESS | EQUALS_ASSIGN | LEFT_PAREN | RIGHT_PAREN | LEFT_SQUARE | RIGHT_SQUARE | LEFT_CURLY | RIGHT_CURLY | COMMA | DOT | NULL_SAFE_DOT | DOUBLE_AMPER | DOUBLE_PIPE | QUESTION | NEGATION | TILDE | PIPE | AMPER | XOR | MOD | STAR | MINUS | PLUS | HASH | C_STYLE_SINGLE_LINE_COMMENT | MULTI_LINE_COMMENT | ID | DIV | QUESTION_DIV | MISC )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:8: ( WS | FLOAT | HEX | DECIMAL | STRING | TIME_INTERVAL | BOOL | NULL | AT | PLUS_ASSIGN | MINUS_ASSIGN | MULT_ASSIGN | DIV_ASSIGN | AND_ASSIGN | OR_ASSIGN | XOR_ASSIGN | MOD_ASSIGN | UNIFY | DECR | INCR | ARROW | SEMICOLON | COLON | EQUALS | NOT_EQUALS | GREATER_EQUALS | LESS_EQUALS | GREATER | LESS | EQUALS_ASSIGN | LEFT_PAREN | RIGHT_PAREN | LEFT_SQUARE | RIGHT_SQUARE | LEFT_CURLY | RIGHT_CURLY | COMMA | DOT | NULL_SAFE_DOT | DOUBLE_AMPER | DOUBLE_PIPE | QUESTION | NEGATION | TILDE | PIPE | AMPER | XOR | MOD | STAR | MINUS | PLUS | HASH | C_STYLE_SINGLE_LINE_COMMENT | MULTI_LINE_COMMENT | ID | DIV | QUESTION_DIV | MISC )
int alt63=58;
alt63 = dfa63.predict(input);
switch (alt63) {
case 1 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:10: WS
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:10: WS
{
mWS(); if (state.failed) return;
}
break;
case 2 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:13: FLOAT
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:13: FLOAT
{
mFLOAT(); if (state.failed) return;
}
break;
case 3 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:19: HEX
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:19: HEX
{
mHEX(); if (state.failed) return;
}
break;
case 4 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:23: DECIMAL
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:23: DECIMAL
{
mDECIMAL(); if (state.failed) return;
}
break;
case 5 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:31: STRING
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:31: STRING
{
mSTRING(); if (state.failed) return;
}
break;
case 6 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:38: TIME_INTERVAL
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:38: TIME_INTERVAL
{
mTIME_INTERVAL(); if (state.failed) return;
}
break;
case 7 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:52: BOOL
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:52: BOOL
{
mBOOL(); if (state.failed) return;
}
break;
case 8 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:57: NULL
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:57: NULL
{
mNULL(); if (state.failed) return;
}
break;
case 9 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:62: AT
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:62: AT
{
mAT(); if (state.failed) return;
}
break;
case 10 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:65: PLUS_ASSIGN
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:65: PLUS_ASSIGN
{
mPLUS_ASSIGN(); if (state.failed) return;
}
break;
case 11 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:77: MINUS_ASSIGN
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:77: MINUS_ASSIGN
{
mMINUS_ASSIGN(); if (state.failed) return;
}
break;
case 12 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:90: MULT_ASSIGN
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:90: MULT_ASSIGN
{
mMULT_ASSIGN(); if (state.failed) return;
}
break;
case 13 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:102: DIV_ASSIGN
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:102: DIV_ASSIGN
{
mDIV_ASSIGN(); if (state.failed) return;
}
break;
case 14 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:113: AND_ASSIGN
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:113: AND_ASSIGN
{
mAND_ASSIGN(); if (state.failed) return;
}
break;
case 15 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:124: OR_ASSIGN
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:124: OR_ASSIGN
{
mOR_ASSIGN(); if (state.failed) return;
}
break;
case 16 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:134: XOR_ASSIGN
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:134: XOR_ASSIGN
{
mXOR_ASSIGN(); if (state.failed) return;
}
break;
case 17 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:145: MOD_ASSIGN
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:145: MOD_ASSIGN
{
mMOD_ASSIGN(); if (state.failed) return;
}
break;
case 18 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:156: UNIFY
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:156: UNIFY
{
mUNIFY(); if (state.failed) return;
}
break;
case 19 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:162: DECR
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:162: DECR
{
mDECR(); if (state.failed) return;
}
break;
case 20 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:167: INCR
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:167: INCR
{
mINCR(); if (state.failed) return;
}
break;
case 21 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:172: ARROW
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:172: ARROW
{
mARROW(); if (state.failed) return;
}
break;
case 22 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:178: SEMICOLON
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:178: SEMICOLON
{
mSEMICOLON(); if (state.failed) return;
}
break;
case 23 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:188: COLON
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:188: COLON
{
mCOLON(); if (state.failed) return;
}
break;
case 24 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:194: EQUALS
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:194: EQUALS
{
mEQUALS(); if (state.failed) return;
}
break;
case 25 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:201: NOT_EQUALS
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:201: NOT_EQUALS
{
mNOT_EQUALS(); if (state.failed) return;
}
break;
case 26 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:212: GREATER_EQUALS
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:212: GREATER_EQUALS
{
mGREATER_EQUALS(); if (state.failed) return;
}
break;
case 27 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:227: LESS_EQUALS
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:227: LESS_EQUALS
{
mLESS_EQUALS(); if (state.failed) return;
}
break;
case 28 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:239: GREATER
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:239: GREATER
{
mGREATER(); if (state.failed) return;
}
break;
case 29 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:247: LESS
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:247: LESS
{
mLESS(); if (state.failed) return;
}
break;
case 30 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:252: EQUALS_ASSIGN
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:252: EQUALS_ASSIGN
{
mEQUALS_ASSIGN(); if (state.failed) return;
}
break;
case 31 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:266: LEFT_PAREN
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:266: LEFT_PAREN
{
mLEFT_PAREN(); if (state.failed) return;
}
break;
case 32 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:277: RIGHT_PAREN
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:277: RIGHT_PAREN
{
mRIGHT_PAREN(); if (state.failed) return;
}
break;
case 33 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:289: LEFT_SQUARE
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:289: LEFT_SQUARE
{
mLEFT_SQUARE(); if (state.failed) return;
}
break;
case 34 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:301: RIGHT_SQUARE
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:301: RIGHT_SQUARE
{
mRIGHT_SQUARE(); if (state.failed) return;
}
break;
case 35 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:314: LEFT_CURLY
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:314: LEFT_CURLY
{
mLEFT_CURLY(); if (state.failed) return;
}
break;
case 36 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:325: RIGHT_CURLY
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:325: RIGHT_CURLY
{
mRIGHT_CURLY(); if (state.failed) return;
}
break;
case 37 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:337: COMMA
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:337: COMMA
{
mCOMMA(); if (state.failed) return;
}
break;
case 38 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:343: DOT
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:343: DOT
{
mDOT(); if (state.failed) return;
}
break;
case 39 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:347: NULL_SAFE_DOT
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:347: NULL_SAFE_DOT
{
mNULL_SAFE_DOT(); if (state.failed) return;
}
break;
case 40 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:361: DOUBLE_AMPER
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:361: DOUBLE_AMPER
{
mDOUBLE_AMPER(); if (state.failed) return;
}
break;
case 41 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:374: DOUBLE_PIPE
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:374: DOUBLE_PIPE
{
mDOUBLE_PIPE(); if (state.failed) return;
}
break;
case 42 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:386: QUESTION
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:386: QUESTION
{
mQUESTION(); if (state.failed) return;
}
break;
case 43 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:395: NEGATION
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:395: NEGATION
{
mNEGATION(); if (state.failed) return;
}
break;
case 44 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:404: TILDE
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:404: TILDE
{
mTILDE(); if (state.failed) return;
}
break;
case 45 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:410: PIPE
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:410: PIPE
{
mPIPE(); if (state.failed) return;
}
break;
case 46 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:415: AMPER
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:415: AMPER
{
mAMPER(); if (state.failed) return;
}
break;
case 47 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:421: XOR
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:421: XOR
{
mXOR(); if (state.failed) return;
}
break;
case 48 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:425: MOD
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:425: MOD
{
mMOD(); if (state.failed) return;
}
break;
case 49 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:429: STAR
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:429: STAR
{
mSTAR(); if (state.failed) return;
}
break;
case 50 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:434: MINUS
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:434: MINUS
{
mMINUS(); if (state.failed) return;
}
break;
case 51 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:440: PLUS
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:440: PLUS
{
mPLUS(); if (state.failed) return;
}
break;
case 52 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:445: HASH
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:445: HASH
{
mHASH(); if (state.failed) return;
}
break;
case 53 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:450: C_STYLE_SINGLE_LINE_COMMENT
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:450: C_STYLE_SINGLE_LINE_COMMENT
{
mC_STYLE_SINGLE_LINE_COMMENT(); if (state.failed) return;
}
break;
case 54 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:478: MULTI_LINE_COMMENT
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:478: MULTI_LINE_COMMENT
{
mMULTI_LINE_COMMENT(); if (state.failed) return;
}
break;
case 55 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:497: ID
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:497: ID
{
mID(); if (state.failed) return;
}
break;
case 56 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:500: DIV
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:500: DIV
{
mDIV(); if (state.failed) return;
}
break;
case 57 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:504: QUESTION_DIV
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:504: QUESTION_DIV
{
mQUESTION_DIV(); if (state.failed) return;
}
break;
case 58 :
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:1:517: MISC
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:1:517: MISC
{
mMISC(); if (state.failed) return;
@@ -4019,8 +4004,8 @@ public void mTokens() throws RecognitionException {
// $ANTLR start synpred1_DRL6Lexer
public final void synpred1_DRL6Lexer_fragment() throws RecognitionException {
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:81:20: ( '\\r\\n' )
- // src/main/resources/org/drools/compiler/lang/DRL6Lexer.g:81:22: '\\r\\n'
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:81:20: ( '\\r\\n' )
+ // src/main/resources/org/drools/drl/parser/DRL6Lexer.g:81:22: '\\r\\n'
{
match("\r\n"); if (state.failed) return;
diff --git a/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/ExpanderException.java b/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/ExpanderException.java
index ecc203bdce3..5b4fdcf06bb 100644
--- a/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/ExpanderException.java
+++ b/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/ExpanderException.java
@@ -25,29 +25,24 @@ public class ExpanderException extends DroolsError {
private static final long serialVersionUID = 510l;
- private String message;
private int[] line;
public ExpanderException(final String message,
final int line) {
- this.message = message;
+ super("[" + line + "] " + message);
this.line = new int[] { line };
}
public int[] getLines() {
return this.line;
}
-
- public String getMessage() {
- return "[" + this.line[0] + "] " + this.message;
- }
public int getLine() {
return this.line[0];
}
public String toString() {
- return this.getMessage();
+ return getMessage();
}
}
diff --git a/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/MappingError.java b/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/MappingError.java
index 4f08b4d9fd8..e852aab5ee8 100755
--- a/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/MappingError.java
+++ b/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/MappingError.java
@@ -50,6 +50,7 @@ public MappingError(final int errorCode,
final String token,
final String templateText,
final int line ) {
+ super(getSpecificMessage(errorCode, offset, token));
this.errorCode = errorCode;
this.template = template;
this.token = token;
@@ -91,23 +92,19 @@ public String getTemplateText() {
return this.templateText;
}
- /**
- * @inheritDoc
- *
- * @see org.kie.compiler.DroolsError#getMessage()
- */
- public String getMessage() {
- switch ( this.errorCode ) {
+ private static String getSpecificMessage(int errorCode, int offset,
+ String token) {
+ switch ( errorCode ) {
case ERROR_UNUSED_TOKEN :
- return "Warning, the token " + this.token + " not used in the mapping.";
+ return "Warning, the token " + token + " not used in the mapping.";
case ERROR_UNDECLARED_TOKEN :
- return "Warning, the token " + this.token + " not found in the expression. (May not be a problem).";
+ return "Warning, the token " + token + " not found in the expression. (May not be a problem).";
case ERROR_INVALID_TOKEN :
- return "Invalid token declaration at offset " + this.offset + ": " + this.token;
+ return "Invalid token declaration at offset " + offset + ": " + token;
case ERROR_UNMATCHED_BRACES :
- return "Unexpected } found at offset " + this.offset;
+ return "Unexpected } found at offset " + offset;
default :
- return "Unkown error at offset: " + this.offset;
+ return "Unkown error at offset: " + offset;
}
}
}
diff --git a/drools-drl/drools-drl-parser/src/main/resources/org/drools/drl/parser/DRL6Expressions.g b/drools-drl/drools-drl-parser/src/main/resources/org/drools/drl/parser/DRL6Expressions.g
index 67db73f4288..b531c38feff 100644
--- a/drools-drl/drools-drl-parser/src/main/resources/org/drools/drl/parser/DRL6Expressions.g
+++ b/drools-drl/drools-drl-parser/src/main/resources/org/drools/drl/parser/DRL6Expressions.g
@@ -7,16 +7,16 @@ options {
}
@header {
- package org.drools.compiler.lang;
+ package org.drools.drl.parser.lang;
import java.util.LinkedList;
- import org.drools.compiler.compiler.DroolsParserException;
- import org.drools.compiler.lang.ParserHelper;
- import org.drools.compiler.lang.DroolsParserExceptionFactory;
- import org.drools.compiler.lang.Location;
+ import org.drools.drl.parser.DroolsParserException;
+ import org.drools.drl.parser.lang.ParserHelper;
+ import org.drools.drl.parser.lang.DroolsParserExceptionFactory;
+ import org.drools.drl.parser.lang.Location;
- import org.drools.compiler.lang.api.AnnotatedDescrBuilder;
- import org.drools.compiler.lang.api.AnnotationDescrBuilder;
+ import org.drools.drl.ast.dsl.AnnotatedDescrBuilder;
+ import org.drools.drl.ast.dsl.AnnotationDescrBuilder;
import org.drools.drl.ast.descr.AtomicExprDescr;
import org.drools.drl.ast.descr.AnnotatedBaseDescr;
@@ -73,6 +73,13 @@ options {
}
return input.get( input.index() ).getType() != DRL6Lexer.EOF;
}
+
+ private boolean notStartWithNewline() {
+ int currentTokenIndex = input.index(); // current position in input stream
+ Token previousHiddenToken = input.get(currentTokenIndex - 1);
+ String previousHiddenTokenText = previousHiddenToken.getText();
+ return !previousHiddenTokenText.contains("\n");
+ }
}
// Alter code generation so catch-clauses get replace with
@@ -567,7 +574,7 @@ xpathSeparator
;
xpathPrimary returns [BaseDescr result]
- : xpathChunk+
+ : xpathChunk ({notStartWithNewline()}? xpathChunk)*
;
xpathChunk returns [BaseDescr result]
diff --git a/drools-drl/drools-drl-parser/src/main/resources/org/drools/drl/parser/DRL6Lexer.g b/drools-drl/drools-drl-parser/src/main/resources/org/drools/drl/parser/DRL6Lexer.g
index 6329f343750..897a1dc0c35 100644
--- a/drools-drl/drools-drl-parser/src/main/resources/org/drools/drl/parser/DRL6Lexer.g
+++ b/drools-drl/drools-drl-parser/src/main/resources/org/drools/drl/parser/DRL6Lexer.g
@@ -10,10 +10,10 @@ tokens {
}
@header {
- package org.drools.compiler.lang;
+ package org.drools.drl.parser.lang;
import org.kie.internal.builder.conf.LanguageLevelOption;
- import org.drools.compiler.compiler.DroolsParserException;
+ import org.drools.drl.parser.DroolsParserException;
import org.drools.util.StringUtils;
}
diff --git a/drools-drl/pom.xml b/drools-drl/pom.xml
index 8b13481d07f..91f12f3d758 100644
--- a/drools-drl/pom.xml
+++ b/drools-drl/pom.xml
@@ -26,7 +26,7 @@
org.kie
drools-build-parent
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
../build-parent/pom.xml
diff --git a/drools-drlonyaml-parent/drools-drlonyaml-cli-tests/pom.xml b/drools-drlonyaml-parent/drools-drlonyaml-cli-tests/pom.xml
index 9ebf47d3e7a..0ff6b0f9605 100644
--- a/drools-drlonyaml-parent/drools-drlonyaml-cli-tests/pom.xml
+++ b/drools-drlonyaml-parent/drools-drlonyaml-cli-tests/pom.xml
@@ -23,7 +23,7 @@
org.drools
drools-drlonyaml-parent
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
drools-drlonyaml-cli-tests
Drools :: DRL on YAML :: CLI tests
@@ -82,7 +82,7 @@
${project.basedir}/src/test/resources/given/test1.drl.txt
--output=${project.build.outputDirectory}/converted.test1.yml
- logback-classic-1.2.9.jar,slf4j-jboss-logmanager-1.2.0.Final.jar
+ logback-classic-1.2.13.jar,slf4j-jboss-logmanager-1.2.0.Final.jar
@@ -100,7 +100,7 @@
${project.basedir}/src/test/resources/given/test2.yml
--output=${project.build.outputDirectory}/converted.test2.drl
- logback-classic-1.2.9.jar,slf4j-jboss-logmanager-1.2.0.Final.jar
+ logback-classic-1.2.13.jar,slf4j-jboss-logmanager-1.2.0.Final.jar
@@ -117,7 +117,7 @@
batch2yaml
${project.basedir}/src/test/resources/batch_drl_files
- logback-classic-1.2.9.jar,slf4j-jboss-logmanager-1.2.0.Final.jar
+ logback-classic-1.2.13.jar,slf4j-jboss-logmanager-1.2.0.Final.jar
@@ -134,7 +134,7 @@
batch2drl
${project.basedir}/src/test/resources/batch_yml_files
- logback-classic-1.2.9.jar,slf4j-jboss-logmanager-1.2.0.Final.jar
+ logback-classic-1.2.13.jar,slf4j-jboss-logmanager-1.2.0.Final.jar
diff --git a/drools-drlonyaml-parent/drools-drlonyaml-cli/pom.xml b/drools-drlonyaml-parent/drools-drlonyaml-cli/pom.xml
index f3a7784cb23..454968596f5 100644
--- a/drools-drlonyaml-parent/drools-drlonyaml-cli/pom.xml
+++ b/drools-drlonyaml-parent/drools-drlonyaml-cli/pom.xml
@@ -23,7 +23,7 @@
org.drools
drools-drlonyaml-parent
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
drools-drlonyaml-cli
Drools :: DRL on YAML :: CLI
diff --git a/drools-drlonyaml-parent/drools-drlonyaml-integration-tests/pom.xml b/drools-drlonyaml-parent/drools-drlonyaml-integration-tests/pom.xml
index 4acce993d56..d9eaa5c8b58 100644
--- a/drools-drlonyaml-parent/drools-drlonyaml-integration-tests/pom.xml
+++ b/drools-drlonyaml-parent/drools-drlonyaml-integration-tests/pom.xml
@@ -23,7 +23,7 @@
org.drools
drools-drlonyaml-parent
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
drools-drlonyaml-integration-tests
Drools :: DRL on YAML :: Integration Tests
diff --git a/drools-drlonyaml-parent/drools-drlonyaml-model/pom.xml b/drools-drlonyaml-parent/drools-drlonyaml-model/pom.xml
index c49ce93592d..028ef1f3813 100644
--- a/drools-drlonyaml-parent/drools-drlonyaml-model/pom.xml
+++ b/drools-drlonyaml-parent/drools-drlonyaml-model/pom.xml
@@ -23,7 +23,7 @@
org.drools
drools-drlonyaml-parent
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
drools-drlonyaml-model
Drools :: DRL on YAML :: model
diff --git a/drools-drlonyaml-parent/drools-drlonyaml-schemagen/pom.xml b/drools-drlonyaml-parent/drools-drlonyaml-schemagen/pom.xml
index 50a56ef4bdf..7f739d6509d 100644
--- a/drools-drlonyaml-parent/drools-drlonyaml-schemagen/pom.xml
+++ b/drools-drlonyaml-parent/drools-drlonyaml-schemagen/pom.xml
@@ -23,7 +23,7 @@
org.drools
drools-drlonyaml-parent
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
drools-drlonyaml-schemagen
Drools :: DRL on YAML :: schema generator
diff --git a/drools-drlonyaml-parent/drools-drlonyaml-todrl/pom.xml b/drools-drlonyaml-parent/drools-drlonyaml-todrl/pom.xml
index ca6a18e6e48..809af59c402 100644
--- a/drools-drlonyaml-parent/drools-drlonyaml-todrl/pom.xml
+++ b/drools-drlonyaml-parent/drools-drlonyaml-todrl/pom.xml
@@ -23,7 +23,7 @@
org.drools
drools-drlonyaml-parent
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
drools-drlonyaml-todrl
Drools :: DRL on YAML :: to DRL emitter
diff --git a/drools-drlonyaml-parent/pom.xml b/drools-drlonyaml-parent/pom.xml
index 66f2239ee3a..dc5f742ac8e 100644
--- a/drools-drlonyaml-parent/pom.xml
+++ b/drools-drlonyaml-parent/pom.xml
@@ -23,7 +23,7 @@
org.kie
drools-build-parent
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
../build-parent/pom.xml
org.drools
diff --git a/drools-ecj/pom.xml b/drools-ecj/pom.xml
index ec0bdd20958..1393a5669d0 100644
--- a/drools-ecj/pom.xml
+++ b/drools-ecj/pom.xml
@@ -26,7 +26,7 @@
org.kie
drools-build-parent
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
../build-parent/pom.xml
diff --git a/drools-engine-classic/pom.xml b/drools-engine-classic/pom.xml
index 8207bbfd45b..0e53c414bab 100644
--- a/drools-engine-classic/pom.xml
+++ b/drools-engine-classic/pom.xml
@@ -26,7 +26,7 @@
org.kie
drools-build-parent
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
../build-parent/pom.xml
diff --git a/drools-engine/pom.xml b/drools-engine/pom.xml
index db6ce44e7b2..d4abc804ebe 100644
--- a/drools-engine/pom.xml
+++ b/drools-engine/pom.xml
@@ -26,7 +26,7 @@
org.kie
drools-build-parent
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
../build-parent/pom.xml
diff --git a/drools-examples-api/default-kiesession-from-file/pom.xml b/drools-examples-api/default-kiesession-from-file/pom.xml
index d41a54fc876..c9155eafa17 100644
--- a/drools-examples-api/default-kiesession-from-file/pom.xml
+++ b/drools-examples-api/default-kiesession-from-file/pom.xml
@@ -26,7 +26,7 @@
org.drools
drools-examples-api
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
default-kiesession-from-file
diff --git a/drools-examples-api/default-kiesession/pom.xml b/drools-examples-api/default-kiesession/pom.xml
index 2b6f916be02..ba5b8452f3c 100644
--- a/drools-examples-api/default-kiesession/pom.xml
+++ b/drools-examples-api/default-kiesession/pom.xml
@@ -26,7 +26,7 @@
org.drools
drools-examples-api
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
default-kiesession
diff --git a/drools-examples-api/kie-module-from-multiple-files/pom.xml b/drools-examples-api/kie-module-from-multiple-files/pom.xml
index 02c31972a5a..7cc5e54f7c6 100644
--- a/drools-examples-api/kie-module-from-multiple-files/pom.xml
+++ b/drools-examples-api/kie-module-from-multiple-files/pom.xml
@@ -26,7 +26,7 @@
org.drools
drools-examples-api
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
kie-module-from-multiple-files
diff --git a/drools-examples-api/kiebase-inclusion/pom.xml b/drools-examples-api/kiebase-inclusion/pom.xml
index caf5f4f3c53..05ae135c261 100644
--- a/drools-examples-api/kiebase-inclusion/pom.xml
+++ b/drools-examples-api/kiebase-inclusion/pom.xml
@@ -26,7 +26,7 @@
org.drools
drools-examples-api
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
kiebase-inclusion
diff --git a/drools-examples-api/kiecontainer-from-kierepo/pom.xml b/drools-examples-api/kiecontainer-from-kierepo/pom.xml
index 065fca8fae9..433bc2fb657 100644
--- a/drools-examples-api/kiecontainer-from-kierepo/pom.xml
+++ b/drools-examples-api/kiecontainer-from-kierepo/pom.xml
@@ -26,7 +26,7 @@
org.drools
drools-examples-api
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
kiecontainer-from-kierepo
diff --git a/drools-examples-api/kiefilesystem-example/pom.xml b/drools-examples-api/kiefilesystem-example/pom.xml
index c3db7cf436e..d3537b51834 100644
--- a/drools-examples-api/kiefilesystem-example/pom.xml
+++ b/drools-examples-api/kiefilesystem-example/pom.xml
@@ -26,7 +26,7 @@
org.drools
drools-examples-api
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
kiefilesystem-example
diff --git a/drools-examples-api/kiemodulemodel-example/pom.xml b/drools-examples-api/kiemodulemodel-example/pom.xml
index 8deb710a98b..fc6b6c3eb4f 100644
--- a/drools-examples-api/kiemodulemodel-example/pom.xml
+++ b/drools-examples-api/kiemodulemodel-example/pom.xml
@@ -26,7 +26,7 @@
org.drools
drools-examples-api
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
kiemodulemodel-example
diff --git a/drools-examples-api/multiple-kbases/pom.xml b/drools-examples-api/multiple-kbases/pom.xml
index 9636a806d8a..ad3aa3926c7 100644
--- a/drools-examples-api/multiple-kbases/pom.xml
+++ b/drools-examples-api/multiple-kbases/pom.xml
@@ -26,7 +26,7 @@
org.drools
drools-examples-api
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
multiple-kbases
diff --git a/drools-examples-api/named-kiesession-from-file/pom.xml b/drools-examples-api/named-kiesession-from-file/pom.xml
index 411bec642f3..ab0c04a8e78 100644
--- a/drools-examples-api/named-kiesession-from-file/pom.xml
+++ b/drools-examples-api/named-kiesession-from-file/pom.xml
@@ -26,7 +26,7 @@
org.drools
drools-examples-api
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
Drools :: API examples :: Named KieSession from File
diff --git a/drools-examples-api/named-kiesession/pom.xml b/drools-examples-api/named-kiesession/pom.xml
index 84cd75d19e8..ff558c4a6e1 100644
--- a/drools-examples-api/named-kiesession/pom.xml
+++ b/drools-examples-api/named-kiesession/pom.xml
@@ -26,7 +26,7 @@
org.drools
drools-examples-api
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
named-kiesession
diff --git a/drools-examples-api/pom.xml b/drools-examples-api/pom.xml
index 81bd07d20f3..68742076319 100644
--- a/drools-examples-api/pom.xml
+++ b/drools-examples-api/pom.xml
@@ -26,7 +26,7 @@
org.kie
drools-build-parent
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
../build-parent/pom.xml
diff --git a/drools-examples-api/reactive-kiesession/pom.xml b/drools-examples-api/reactive-kiesession/pom.xml
index 6ec8a00ef5e..b532d6ae6d4 100644
--- a/drools-examples-api/reactive-kiesession/pom.xml
+++ b/drools-examples-api/reactive-kiesession/pom.xml
@@ -26,7 +26,7 @@
org.drools
drools-examples-api
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
reactive-kiesession
diff --git a/drools-examples/pom.xml b/drools-examples/pom.xml
index 0c29bff3b2f..870cb960e3f 100644
--- a/drools-examples/pom.xml
+++ b/drools-examples/pom.xml
@@ -25,7 +25,7 @@
org.kie
drools-build-parent
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
../build-parent/pom.xml
diff --git a/drools-fastutil/pom.xml b/drools-fastutil/pom.xml
index e32492dab64..5e453e09b5d 100644
--- a/drools-fastutil/pom.xml
+++ b/drools-fastutil/pom.xml
@@ -27,7 +27,7 @@
org.kie
drools-build-parent
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
../build-parent/pom.xml
diff --git a/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilHashTupleMemory.java b/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilHashTupleMemory.java
index e745ac035e3..1f88680d664 100644
--- a/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilHashTupleMemory.java
+++ b/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilHashTupleMemory.java
@@ -23,22 +23,16 @@
import org.drools.core.reteoo.AbstractTuple;
import org.drools.core.reteoo.Tuple;
import org.drools.core.reteoo.TupleMemory;
-import org.drools.core.util.AbstractHashTable.DoubleCompositeIndex;
-import org.drools.base.util.FieldIndex;
import org.drools.core.util.AbstractHashTable.HashEntry;
import org.drools.core.util.AbstractHashTable.Index;
-import org.drools.core.util.AbstractHashTable.SingleIndex;
-import org.drools.core.util.AbstractHashTable.TripleCompositeIndex;
import org.drools.core.util.FastIterator;
import org.drools.core.util.Iterator;
import org.drools.core.util.LinkedList;
import org.drools.core.util.index.TupleList;
-public class FastUtilHashTupleMemory implements TupleMemory {
-
- public static final int PRIME = 31;
+import java.util.function.Supplier;
- private int startResult;
+public class FastUtilHashTupleMemory implements TupleMemory {
private int factSize;
@@ -68,7 +62,7 @@ public boolean equals(HashEntry a, HashEntry b) {
}
}
- public FastUtilHashTupleMemory(FieldIndex[] index,
+ public FastUtilHashTupleMemory(Index index,
boolean left) {
this.set = new FastUtilMergableHashSet<>(HashStrategy.get());
@@ -76,29 +70,7 @@ public FastUtilHashTupleMemory(FieldIndex[] index,
fullFastIterator = new FullFastIterator(set);
- this.startResult = PRIME;
- for ( FieldIndex i : index ) {
- this.startResult += PRIME * this.startResult + i.getRightExtractor().getIndex();
- }
-
- switch ( index.length ) {
- case 0 :
- throw new IllegalArgumentException( "FieldIndexHashTable cannot use an index[] of length 0" );
- case 1 :
- this.index = new SingleIndex(index,
- this.startResult );
- break;
- case 2 :
- this.index = new DoubleCompositeIndex(index,
- this.startResult );
- break;
- case 3 :
- this.index = new TripleCompositeIndex(index,
- this.startResult );
- break;
- default :
- throw new IllegalArgumentException( "FieldIndexHashTable cannot use an index[] of length great than 3" );
- }
+ this.index = index;
}
@Override
@@ -230,7 +202,6 @@ public IndexType getIndexType() {
@Override
public void clear() {
set.clear();
- this.startResult = PRIME;
this.factSize = 0;
}
diff --git a/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilIndexMemory.java b/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilIndexMemory.java
index b9e565178eb..15a0036cee4 100644
--- a/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilIndexMemory.java
+++ b/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilIndexMemory.java
@@ -19,8 +19,8 @@
package org.drools.fastutil;
import org.drools.core.reteoo.TupleMemory;
-import org.drools.core.util.index.IndexMemory;
import org.drools.core.util.index.IndexSpec;
+import org.drools.core.util.index.IndexMemory;
public class FastUtilIndexMemory {
@@ -28,14 +28,14 @@ public static class FastUtilEqualityMemoryFactory implements IndexMemory.Factory
@Override
public TupleMemory createMemory(IndexSpec indexSpec, boolean isLeft) {
- return new FastUtilHashTupleMemory(indexSpec.getIndexes(), isLeft);
+ return new FastUtilHashTupleMemory(indexSpec.getIndex(), isLeft);
}
}
public static class FastUtilComparisonMemoryFactory implements IndexMemory.Factory {
@Override
- public TupleMemory createMemory(IndexSpec indexSpec, boolean isLeft) {
+ public TupleMemory createMemory(IndexSpec indexSpec, boolean isLeft) {
return new FastUtilTreeMemory(indexSpec.getConstraintType(), indexSpec.getIndex(0), isLeft);
}
}
diff --git a/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilTreeMemory.java b/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilTreeMemory.java
index b3fc5999b88..9311ffbe3d5 100644
--- a/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilTreeMemory.java
+++ b/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilTreeMemory.java
@@ -27,7 +27,7 @@
import org.drools.core.reteoo.TupleMemory;
import it.unimi.dsi.fastutil.objects.ObjectIterator;
import org.drools.core.util.FastIterator;
-import org.drools.base.util.FieldIndex;
+import org.drools.base.util.IndexedValueReader;
import org.drools.core.util.Iterator;
import org.drools.core.util.index.AbstractTupleIndexTree;
import org.drools.base.util.index.ConstraintTypeOperator;
@@ -74,7 +74,7 @@ public TupleList setValue(TupleList value) {
}
}
- public FastUtilTreeMemory(ConstraintTypeOperator constraintType, FieldIndex index, boolean left) {
+ public FastUtilTreeMemory(ConstraintTypeOperator constraintType, IndexedValueReader index, boolean left) {
this.index = index;
this.constraintType = constraintType;
this.left = left;
diff --git a/drools-fastutil/src/test/java/org/drools/fastutil/FastUtilTreeMemoryTest.java b/drools-fastutil/src/test/java/org/drools/fastutil/FastUtilTreeMemoryTest.java
index 42feadaa1d4..8be8dfdc11c 100644
--- a/drools-fastutil/src/test/java/org/drools/fastutil/FastUtilTreeMemoryTest.java
+++ b/drools-fastutil/src/test/java/org/drools/fastutil/FastUtilTreeMemoryTest.java
@@ -21,6 +21,7 @@
import org.drools.base.base.ValueResolver;
import org.drools.base.base.ValueType;
import org.drools.base.base.extractors.BaseObjectClassFieldReader;
+import org.drools.base.rule.accessor.RightTupleValueExtractor;
import org.drools.core.common.DefaultFactHandle;
import org.drools.core.common.InternalFactHandle;
import org.drools.base.reteoo.BaseTuple;
@@ -30,7 +31,7 @@
import org.drools.base.rule.accessor.ReadAccessor;
import org.drools.base.rule.accessor.TupleValueExtractor;
import org.drools.core.util.FastIterator;
-import org.drools.base.util.FieldIndex;
+import org.drools.base.util.IndexedValueReader;
import org.drools.fastutil.FastUtilTreeMemory.TreeFastIterator;
import org.drools.base.util.index.ConstraintTypeOperator;
import org.junit.Test;
@@ -42,17 +43,17 @@ public class FastUtilTreeMemoryTest {
@Test
public void testMocks() {
TupleValueExtractor leftValueExtractor = getTupleValueExtractor();
- ReadAccessor rightValueExtractor = getRightExtractor();
+ TupleValueExtractor rightValueExtractor = getRightExtractor();
Tuple tuple10 = getLeftTuple(10);
- FieldIndex fieldIndex = new FieldIndex(rightValueExtractor, leftValueExtractor);
+ IndexedValueReader fieldIndex = new IndexedValueReader(leftValueExtractor, rightValueExtractor);
assertThat(fieldIndex.getLeftExtractor().getValue(tuple10)).isEqualTo(10);
}
@Test
public void testGreaterThan() {
- FieldIndex fieldIndex = new FieldIndex(getRightExtractor(), getTupleValueExtractor());
+ IndexedValueReader fieldIndex = new IndexedValueReader(getTupleValueExtractor(), getRightExtractor());
FastUtilTreeMemory treeMemory = new FastUtilTreeMemory(ConstraintTypeOperator.GREATER_THAN, fieldIndex, !true);
Tuple tuple10 = getLeftTuple(10);
@@ -84,7 +85,7 @@ public void testGreaterThan() {
@Test
public void testGreaterOrEqual() {
- FieldIndex fieldIndex = new FieldIndex(getRightExtractor(), getTupleValueExtractor());
+ IndexedValueReader fieldIndex = new IndexedValueReader(getTupleValueExtractor(), getRightExtractor());
FastUtilTreeMemory treeMemory = new FastUtilTreeMemory(ConstraintTypeOperator.GREATER_OR_EQUAL, fieldIndex, !true);
Tuple tuple10 = getLeftTuple(10);
@@ -116,7 +117,7 @@ public void testGreaterOrEqual() {
@Test
public void testLessOrEqual() {
- FieldIndex fieldIndex = new FieldIndex(getRightExtractor(), getTupleValueExtractor());
+ IndexedValueReader fieldIndex = new IndexedValueReader(getTupleValueExtractor(), getRightExtractor());
FastUtilTreeMemory treeMemory = new FastUtilTreeMemory(ConstraintTypeOperator.LESS_OR_EQUAL, fieldIndex, !true);
Tuple tuple10 = getLeftTuple(10);
@@ -170,7 +171,7 @@ public void testLessOrEqual() {
@Test
public void testLessThan() {
- FieldIndex fieldIndex = new FieldIndex(getRightExtractor(), getTupleValueExtractor());
+ IndexedValueReader fieldIndex = new IndexedValueReader(getTupleValueExtractor(), getRightExtractor());
FastUtilTreeMemory treeMemory = new FastUtilTreeMemory(ConstraintTypeOperator.LESS_THAN, fieldIndex, !true);
Tuple tuple10 = getLeftTuple(10);
@@ -221,8 +222,8 @@ public void testLessThan() {
@Test
public void testSharedFirstBucket() {
- FieldIndex fieldIndex = new FieldIndex(getRightExtractor(), getTupleValueExtractor());
- FastUtilTreeMemory treeMemory = new FastUtilTreeMemory(ConstraintTypeOperator.GREATER_THAN, fieldIndex, !true);
+ IndexedValueReader fieldIndex = new IndexedValueReader(getTupleValueExtractor(), getRightExtractor());
+ FastUtilTreeMemory treeMemory = new FastUtilTreeMemory(ConstraintTypeOperator.GREATER_THAN, fieldIndex, !true);
Tuple tuple10_1 = getLeftTuple(10);
Tuple tuple10_2 = getLeftTuple(10);
@@ -267,7 +268,7 @@ public void testSharedFirstBucket() {
@Test
public void testSharedLastBucket() {
- FieldIndex fieldIndex = new FieldIndex(getRightExtractor(), getTupleValueExtractor());
+ IndexedValueReader fieldIndex = new IndexedValueReader(getTupleValueExtractor(), getRightExtractor());
FastUtilTreeMemory treeMemory = new FastUtilTreeMemory(ConstraintTypeOperator.GREATER_THAN, fieldIndex, !true);
Tuple tuple10 = getLeftTuple(10);
@@ -373,7 +374,7 @@ public TupleValueExtractor clone() {
return extractor;
}
- public static ReadAccessor getRightExtractor() {
+ public static TupleValueExtractor getRightExtractor() {
ReadAccessor readAccessor = new BaseObjectClassFieldReader() {
@Override
public Object getValue(ValueResolver valueResolver, Object object) {
@@ -381,6 +382,8 @@ public Object getValue(ValueResolver valueResolver, Object object) {
}
};
- return readAccessor;
+ RightTupleValueExtractor rightTupleValueExtractor = new RightTupleValueExtractor(readAccessor);
+
+ return rightTupleValueExtractor;
}
}
diff --git a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/pom.xml b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/pom.xml
index 9c40c10fe93..96f0e980d9c 100644
--- a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/pom.xml
+++ b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/pom.xml
@@ -25,7 +25,7 @@
drools-impact-analysis-graph
org.drools
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
4.0.0
diff --git a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-graphviz/pom.xml b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-graphviz/pom.xml
index 7eda96fad51..a9ef1f3f238 100644
--- a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-graphviz/pom.xml
+++ b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-graphviz/pom.xml
@@ -25,7 +25,7 @@
drools-impact-analysis-graph
org.drools
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
4.0.0
diff --git a/drools-impact-analysis/drools-impact-analysis-graph/pom.xml b/drools-impact-analysis/drools-impact-analysis-graph/pom.xml
index 911f98e191a..589f0965d16 100644
--- a/drools-impact-analysis/drools-impact-analysis-graph/pom.xml
+++ b/drools-impact-analysis/drools-impact-analysis-graph/pom.xml
@@ -25,7 +25,7 @@
drools-impact-analysis
org.drools
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
4.0.0
diff --git a/drools-impact-analysis/drools-impact-analysis-itests/pom.xml b/drools-impact-analysis/drools-impact-analysis-itests/pom.xml
index f75835377ad..d9e9e08faa5 100644
--- a/drools-impact-analysis/drools-impact-analysis-itests/pom.xml
+++ b/drools-impact-analysis/drools-impact-analysis-itests/pom.xml
@@ -25,7 +25,7 @@
drools-impact-analysis
org.drools
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
4.0.0
diff --git a/drools-impact-analysis/drools-impact-analysis-model/pom.xml b/drools-impact-analysis/drools-impact-analysis-model/pom.xml
index aadc2e5492c..340e29b53a0 100644
--- a/drools-impact-analysis/drools-impact-analysis-model/pom.xml
+++ b/drools-impact-analysis/drools-impact-analysis-model/pom.xml
@@ -25,7 +25,7 @@
drools-impact-analysis
org.drools
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
4.0.0
diff --git a/drools-impact-analysis/drools-impact-analysis-parser/pom.xml b/drools-impact-analysis/drools-impact-analysis-parser/pom.xml
index daa671a78cd..ca8d52cecd4 100644
--- a/drools-impact-analysis/drools-impact-analysis-parser/pom.xml
+++ b/drools-impact-analysis/drools-impact-analysis-parser/pom.xml
@@ -25,7 +25,7 @@
drools-impact-analysis
org.drools
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
4.0.0
diff --git a/drools-impact-analysis/pom.xml b/drools-impact-analysis/pom.xml
index a59f6e20b97..92cfcc77c70 100644
--- a/drools-impact-analysis/pom.xml
+++ b/drools-impact-analysis/pom.xml
@@ -26,7 +26,7 @@
org.kie
drools-build-parent
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
../build-parent/pom.xml
diff --git a/drools-io/pom.xml b/drools-io/pom.xml
index cb1d5638663..2cb54a3ae1b 100644
--- a/drools-io/pom.xml
+++ b/drools-io/pom.xml
@@ -27,7 +27,7 @@
org.kie
drools-build-parent
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
../build-parent/pom.xml
diff --git a/drools-kiesession/pom.xml b/drools-kiesession/pom.xml
index d3f459e0430..31c361a1500 100644
--- a/drools-kiesession/pom.xml
+++ b/drools-kiesession/pom.xml
@@ -26,7 +26,7 @@
org.kie
drools-build-parent
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
../build-parent/pom.xml
diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/rulebase/KnowledgeBaseFactory.java b/drools-kiesession/src/main/java/org/drools/kiesession/rulebase/KnowledgeBaseFactory.java
index e46556d34d8..f0cb87b8d6a 100644
--- a/drools-kiesession/src/main/java/org/drools/kiesession/rulebase/KnowledgeBaseFactory.java
+++ b/drools-kiesession/src/main/java/org/drools/kiesession/rulebase/KnowledgeBaseFactory.java
@@ -19,9 +19,9 @@
package org.drools.kiesession.rulebase;
import org.drools.core.impl.KnowledgeBaseImpl;
-import org.drools.core.impl.InternalRuleBase;
import org.kie.api.KieBaseConfiguration;
import org.kie.internal.conf.CompositeBaseConfiguration;
+import org.drools.base.RuleBase;
public class KnowledgeBaseFactory {
@@ -37,7 +37,7 @@ public static InternalKnowledgeBase newKnowledgeBase(String kbaseId, KieBaseConf
return newKnowledgeBase(new KnowledgeBaseImpl(kbaseId, (CompositeBaseConfiguration) conf));
}
- public static InternalKnowledgeBase newKnowledgeBase(InternalRuleBase delegate) {
+ public static InternalKnowledgeBase newKnowledgeBase(RuleBase delegate) {
return new SessionsAwareKnowledgeBase(delegate);
}
}
diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/rulebase/SessionsAwareKnowledgeBase.java b/drools-kiesession/src/main/java/org/drools/kiesession/rulebase/SessionsAwareKnowledgeBase.java
index ff12cfc7369..fa0b36af59f 100644
--- a/drools-kiesession/src/main/java/org/drools/kiesession/rulebase/SessionsAwareKnowledgeBase.java
+++ b/drools-kiesession/src/main/java/org/drools/kiesession/rulebase/SessionsAwareKnowledgeBase.java
@@ -18,6 +18,7 @@
*/
package org.drools.kiesession.rulebase;
+import org.drools.base.RuleBase;
import org.drools.base.common.RuleBasePartitionId;
import org.drools.base.definitions.InternalKnowledgePackage;
import org.drools.base.definitions.rule.impl.RuleImpl;
@@ -32,7 +33,6 @@
import org.drools.core.common.ReteEvaluator;
import org.drools.core.impl.EnvironmentFactory;
import org.drools.core.impl.InternalKieContainer;
-import org.drools.core.impl.InternalRuleBase;
import org.drools.core.impl.KieBaseUpdate;
import org.drools.core.impl.KnowledgeBaseImpl;
import org.drools.core.impl.RuleBaseFactory;
@@ -108,7 +108,7 @@ public SessionsAwareKnowledgeBase(KieBaseConfiguration kbaseConfiguration) {
this(RuleBaseFactory.newRuleBase(kbaseConfiguration));
}
- public SessionsAwareKnowledgeBase(InternalRuleBase delegate) {
+ public SessionsAwareKnowledgeBase(RuleBase delegate) {
this.delegate = (KnowledgeBaseImpl) delegate;
if (this.delegate.getRuleBaseConfiguration().getSessionPoolSize() > 0) {
diff --git a/drools-kiesession/src/test/java/org/drools/core/positional/BetaConstraintsPositionalIndexingTest.java b/drools-kiesession/src/test/java/org/drools/core/positional/BetaConstraintsPositionalIndexingTest.java
new file mode 100644
index 00000000000..c0f3a224b74
--- /dev/null
+++ b/drools-kiesession/src/test/java/org/drools/core/positional/BetaConstraintsPositionalIndexingTest.java
@@ -0,0 +1,282 @@
+package org.drools.core.positional;
+
+import org.drools.base.base.ClassObjectType;
+import org.drools.base.base.ObjectType;
+import org.drools.base.base.ValueType;
+import org.drools.base.definitions.impl.KnowledgePackageImpl;
+import org.drools.base.definitions.rule.impl.RuleImpl;
+import org.drools.base.rule.Declaration;
+import org.drools.base.rule.Pattern;
+import org.drools.base.rule.accessor.TupleValueExtractor;
+import org.drools.base.rule.constraint.Constraint.ConstraintType;
+import org.drools.base.util.IndexedValueReader;
+import org.drools.base.util.index.ConstraintTypeOperator;
+import org.drools.core.impl.KnowledgeBaseImpl;
+import org.drools.core.impl.RuleBaseFactory;
+import org.drools.core.positional.Functions.Function1;
+import org.drools.core.positional.Functions.Function2;
+import org.drools.core.positional.PositionalConstraint.PositionalTupleValueExtractor1;
+import org.drools.core.positional.PositionalConstraint.PositionalTupleValueExtractor2;
+import org.drools.core.positional.Predicates.Predicate1;
+import org.drools.core.positional.VoidFunctions.VoidFunction1;
+import org.drools.core.positional.VoidFunctions.VoidFunction2;
+import org.drools.core.positional.VoidFunctions.VoidFunction3;
+import org.drools.core.test.model.Person;
+import org.drools.core.util.index.IndexSpec;
+import org.drools.kiesession.rulebase.SessionsAwareKnowledgeBase;
+import org.junit.Test;
+import org.kie.api.runtime.KieSession;
+import org.kie.internal.conf.CompositeBaseConfiguration;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class BetaConstraintsPositionalIndexingTest {
+ @Test
+ public void testAlphaConsraint() {
+ // Note this test only sets indexes for the join, no tests
+ RuleImpl r1 = new RuleImpl("r1");
+
+ final ObjectType stringObjectType = new ClassObjectType(String.class );
+
+ final Pattern spattern = new Pattern(0,
+ stringObjectType,
+ "s" );
+
+ PositionalConstraint sconstraint = new PositionalConstraint(new Declaration[] {}, spattern);
+ sconstraint.setPredicate((Predicate1) (a) -> a.equals("London"));
+ sconstraint.setType(ConstraintType.ALPHA);
+ sconstraint.setConstraintTypeOperator(ConstraintTypeOperator.EQUAL);
+ spattern.addConstraint(sconstraint);
+
+ r1.addPattern(spattern);
+
+ List results = new ArrayList<>();
+ PositionalConsequence> c = new PositionalConsequence<>("default", new Declaration[] {spattern.getDeclaration()});
+ c.setFunction((VoidFunction1) (s) -> {results.add(new Object[] {s}); System.out.println(s);});
+ r1.setConsequence(c);
+
+ KnowledgeBaseImpl base = new KnowledgeBaseImpl("default", (CompositeBaseConfiguration) RuleBaseFactory.newKnowledgeBaseConfiguration());
+ KnowledgePackageImpl pkg = new KnowledgePackageImpl();
+ pkg.addRule(r1);
+
+ base.addPackage(pkg);
+
+ SessionsAwareKnowledgeBase kbase = new SessionsAwareKnowledgeBase(base);
+ KieSession session = kbase.newKieSession();
+ session.insert("London");
+ session.insert("Paris");
+ session.fireAllRules();
+
+ assertThat(results.size()).isEqualTo(1);
+ assertThat(results.get(0)[0]).isEqualTo("London");
+ }
+
+ @Test
+ public void testSingleInputEqualityIndexExpressions() {
+ VoidFunction2 f1 = (ppattern, pconstraint) -> {
+ TupleValueExtractor leftExtractor = new PositionalTupleValueExtractor1((Function1) (s) -> s, ValueType.STRING_TYPE );
+ TupleValueExtractor rightExtractor = new PositionalTupleValueExtractor1((Function1) (p) -> p.getCity(), ValueType.STRING_TYPE );
+ pconstraint.setIndex(new IndexSpec(new IndexedValueReader[]{new IndexedValueReader(leftExtractor, rightExtractor)}));
+
+ pconstraint.setType(ConstraintType.BETA);
+ pconstraint.setConstraintTypeOperator(ConstraintTypeOperator.EQUAL);
+ ppattern.addConstraint(pconstraint);
+ };
+
+ List results = new ArrayList<>();
+ VoidFunction1> f2 = (c) -> {
+ c.setFunction((VoidFunction2) (s, p) -> {results.add(new Object[] {s, p}); System.out.println(p.getName() + " lives in " + s);});
+ };
+
+ testBody(null, f1, f2, false);
+
+ assertThat(results.size()).isEqualTo(1);
+ assertThat(results.get(0)[0]).isEqualTo("London");
+ assertThat(((Person)results.get(0)[1]).getName()).isEqualTo("yoda");
+ }
+
+ @Test
+ public void testDoubleInputEqualityIndexExpressions() {
+ VoidFunction2 f1 = (ppattern, pconstraint) -> {
+ TupleValueExtractor leftExtractor = new PositionalTupleValueExtractor2((Function2) (s, i) -> s.length() + i, ValueType.INTEGER_TYPE );
+ TupleValueExtractor rightExtractor = new PositionalTupleValueExtractor1((Function1) (p) -> p.getCity().length(), ValueType.INTEGER_TYPE );
+ pconstraint.setIndex(new IndexSpec(new IndexedValueReader[]{new IndexedValueReader(leftExtractor, rightExtractor)}));
+
+ pconstraint.setType(ConstraintType.BETA);
+ pconstraint.setConstraintTypeOperator(ConstraintTypeOperator.EQUAL);
+ ppattern.addConstraint(pconstraint);
+ };
+
+ List results = new ArrayList<>();
+ VoidFunction1> f2 = (c) -> {
+ c.setFunction((VoidFunction3) (s, i, p) -> {results.add(new Object[] {s, i, p}); System.out.println(p.getName() + " lives in " + s);});
+ };
+
+ Person p1 = new Person("yoda", 300);
+ p1.setCity("London");
+
+ Person p2 = new Person("luke", 50);
+ p2.setCity("Rome");
+
+ testBody(null, f1, f2, true);
+
+ assertThat(results.size()).isEqualTo(1);
+ assertThat(results.get(0)[0]).isEqualTo("Paris");
+ assertThat(results.get(0)[1]).isSameAs(1);
+ assertThat(((Person)results.get(0)[2]).getName()).isEqualTo("yoda");
+ }
+
+ @Test
+ public void testSingleInputRangeIndexExpressions() {
+ VoidFunction1 f0 = (spattern) -> {
+ PositionalConstraint sconstraint = new PositionalConstraint(new Declaration[]{}, spattern);
+ sconstraint.setPredicate((Predicate1) (s) -> {try {
+ Integer.valueOf(s);
+ return true;
+ } catch (Exception e) {
+ return false;
+ }});
+ sconstraint.setType(ConstraintType.ALPHA);
+ sconstraint.setConstraintTypeOperator(ConstraintTypeOperator.EQUAL);
+ spattern.addConstraint(sconstraint);
+ };
+
+ VoidFunction2 f1 = (ppattern, pconstraint) -> {
+ TupleValueExtractor leftExtractor = new PositionalTupleValueExtractor1((Function1) (s) -> Integer.valueOf(s), ValueType.INTEGER_TYPE );
+ TupleValueExtractor rightExtractor = new PositionalTupleValueExtractor1((Function1) (p) -> p.getAge(), ValueType.INTEGER_TYPE );
+ pconstraint.setIndex(new IndexSpec(new IndexedValueReader[]{new IndexedValueReader(leftExtractor, rightExtractor)}, ConstraintTypeOperator.LESS_THAN));
+
+ pconstraint.setType(ConstraintType.BETA);
+ pconstraint.setConstraintTypeOperator(ConstraintTypeOperator.LESS_THAN);
+ ppattern.addConstraint(pconstraint);
+ };
+
+ List results = new ArrayList<>();
+ VoidFunction1> f2 = (c) -> {
+ c.setFunction((VoidFunction2) (s, p) -> {results.add(new Object[] {s, p}); System.out.println(p.getName() + " is younger than " + s);});
+ };
+
+ testBody(f0, f1, f2, false);
+
+ assertThat(results.size()).isEqualTo(1);
+ assertThat(results.get(0)[0]).isEqualTo("50");
+ assertThat(((Person)results.get(0)[1]).getName()).isEqualTo("luke");
+ }
+
+ @Test
+ public void testDoubleInputRangeIndexExpressions() {
+ VoidFunction1 f0 = (spattern) -> {
+ PositionalConstraint sconstraint = new PositionalConstraint(new Declaration[]{}, spattern);
+ sconstraint.setPredicate((Predicate1) (s) -> {try {
+ Integer.valueOf(s);
+ return true;
+ } catch (Exception e) {
+ return false;
+ }});
+ sconstraint.setType(ConstraintType.ALPHA);
+ sconstraint.setConstraintTypeOperator(ConstraintTypeOperator.EQUAL);
+ spattern.addConstraint(sconstraint);
+ };
+
+ VoidFunction2 f1 = (ppattern, pconstraint) -> {
+ TupleValueExtractor leftExtractor = new PositionalTupleValueExtractor2((Function2) (s, i) -> Integer.valueOf(s) + i, ValueType.INTEGER_TYPE );
+ TupleValueExtractor rightExtractor = new PositionalTupleValueExtractor1((Function1) (p) -> p.getAge(), ValueType.INTEGER_TYPE );
+ pconstraint.setIndex(new IndexSpec(new IndexedValueReader[]{new IndexedValueReader(leftExtractor, rightExtractor)}, ConstraintTypeOperator.LESS_THAN));
+
+ pconstraint.setType(ConstraintType.BETA);
+ pconstraint.setConstraintTypeOperator(ConstraintTypeOperator.LESS_THAN);
+ ppattern.addConstraint(pconstraint);
+ };
+
+ List results = new ArrayList<>();
+ VoidFunction1> f2 = (c) -> {
+ c.setFunction((VoidFunction3) (s, i, p) -> {results.add(new Object[] {s, i, p}); System.out.println(p.getName() + " is younger than " + s);});
+ };
+
+ testBody(f0, f1, f2, true);
+
+ assertThat(results.size()).isEqualTo(1);
+ assertThat(results.get(0)[0]).isEqualTo("50");
+ assertThat(results.get(0)[1]).isEqualTo(1);
+ assertThat(((Person)results.get(0)[2]).getName()).isEqualTo("luke");
+ }
+
+ public void testBody(VoidFunction1 sfunc, VoidFunction2 pfunc, VoidFunction1> cfunc,
+ boolean addI) {
+ // Note this test only sets indexes for the join, no tests
+
+ RuleImpl r1 = new RuleImpl("r1");
+
+ final ObjectType stringObjectType = new ClassObjectType(String.class);
+ final ObjectType integerObjectType = new ClassObjectType(Integer.class);
+ final ObjectType personObjectType = new ClassObjectType(Person.class);
+
+ final Pattern spattern = new Pattern(0,
+ stringObjectType,
+ "s");
+
+ final Pattern ipattern = new Pattern(0,
+ integerObjectType,
+ "i");
+
+ final Pattern ppattern = new Pattern(1,
+ personObjectType,
+ "p");
+
+ if (sfunc != null) {
+ sfunc.apply(spattern);
+ }
+
+ r1.addPattern(spattern);
+
+ PositionalConstraint pconstraint = null;
+ if (addI) {
+ r1.addPattern(ipattern);
+ pconstraint = new PositionalConstraint(new Declaration[]{spattern.getDeclaration(), ipattern.getDeclaration()}, ppattern);
+ } else {
+ pconstraint = new PositionalConstraint(new Declaration[]{spattern.getDeclaration()}, ppattern);
+ }
+ pfunc.apply(ppattern, pconstraint);
+
+ r1.addPattern(ppattern);
+
+ PositionalConsequence> c;
+ if (addI) {
+ c = new PositionalConsequence<>("default", new Declaration[]{spattern.getDeclaration(), ipattern.getDeclaration(), ppattern.getDeclaration()});
+ } else {
+ c = new PositionalConsequence<>("default", new Declaration[]{spattern.getDeclaration(), ppattern.getDeclaration()});
+ }
+
+ cfunc.apply(c);
+
+ r1.setConsequence(c);
+
+ KnowledgeBaseImpl base = new KnowledgeBaseImpl("default", (CompositeBaseConfiguration) RuleBaseFactory.newKnowledgeBaseConfiguration());
+ KnowledgePackageImpl pkg = new KnowledgePackageImpl();
+ pkg.addRule(r1);
+
+ base.addPackage(pkg);
+
+ SessionsAwareKnowledgeBase kbase = new SessionsAwareKnowledgeBase(base);
+ KieSession session = kbase.newKieSession();
+ session.insert("Paris");
+ session.insert("London");
+ session.insert(1);
+
+ session.insert("1");
+ session.insert("50");
+
+ Person p1 = new Person("yoda", 300);
+ p1.setCity("London");
+
+ Person p2 = new Person("luke", 20);
+ p2.setCity("Rome");
+
+ session.insert(p1);
+ session.insert(p2);
+ session.fireAllRules();
+ }
+
+}
diff --git a/drools-kiesession/src/test/java/org/drools/core/positional/Functions.java b/drools-kiesession/src/test/java/org/drools/core/positional/Functions.java
new file mode 100644
index 00000000000..367bfae80d1
--- /dev/null
+++ b/drools-kiesession/src/test/java/org/drools/core/positional/Functions.java
@@ -0,0 +1,28 @@
+package org.drools.core.positional;
+
+public class Functions {
+
+ interface Function1 {
+ R apply(A a);
+ }
+
+ interface Function2 {
+ R apply(A a, B b);
+ }
+
+ interface Function3 {
+ R apply(A a, B b, C c);
+ }
+
+ interface Function4 {
+ R apply(A a, B b, C c, D d);
+ }
+
+ interface Function5 {
+ R apply(A a, B b, C c, D d, E e);
+ }
+
+ interface Function6 {
+ R apply(A a, B b, C c, D d, E e, F f);
+ }
+}
diff --git a/drools-kiesession/src/test/java/org/drools/core/positional/IntFunctions.java b/drools-kiesession/src/test/java/org/drools/core/positional/IntFunctions.java
new file mode 100644
index 00000000000..4fa7cc767b2
--- /dev/null
+++ b/drools-kiesession/src/test/java/org/drools/core/positional/IntFunctions.java
@@ -0,0 +1,28 @@
+package org.drools.core.positional;
+
+public class IntFunctions {
+
+ interface IntFunction1 {
+ int apply(A a);
+ }
+
+ interface IntFunction2 {
+ int apply(A a, B b);
+ }
+
+ interface IntFunction3 {
+ int apply(A a, B b, C c);
+ }
+
+ interface IntFunction4 {
+ int apply(A a, B b, C c, D d);
+ }
+
+ interface IntFunction5 {
+ int apply(A a, B b, C c, D d, E e);
+ }
+
+ interface IntFunction6 {
+ int apply(A a, B b, C c, D d, E e, F f);
+ }
+}
diff --git a/drools-kiesession/src/test/java/org/drools/core/positional/PositionalConsequence.java b/drools-kiesession/src/test/java/org/drools/core/positional/PositionalConsequence.java
new file mode 100644
index 00000000000..74f60e7f6f8
--- /dev/null
+++ b/drools-kiesession/src/test/java/org/drools/core/positional/PositionalConsequence.java
@@ -0,0 +1,121 @@
+package org.drools.core.positional;
+
+import org.drools.base.base.ValueResolver;
+import org.drools.base.reteoo.BaseTuple;
+import org.drools.base.rule.Declaration;
+import org.drools.base.rule.consequence.Consequence;
+import org.drools.base.rule.consequence.ConsequenceContext;
+import org.drools.core.positional.VoidFunctions.VoidFunction1;
+import org.drools.core.positional.VoidFunctions.VoidFunction2;
+import org.drools.core.positional.VoidFunctions.VoidFunction3;
+import org.drools.core.positional.VoidFunctions.VoidFunction4;
+
+import java.util.Arrays;
+import java.util.stream.Collectors;
+
+public class PositionalConsequence implements Consequence {
+
+ String name;
+
+ protected final Declaration[] declarations;
+
+ private VoidFunction1 p1;
+ private VoidFunction2 p2;
+ private VoidFunction3 p3;
+ private VoidFunction4 p4;
+
+
+ private int pIndex;
+
+ public PositionalConsequence(String name, Declaration[] declarations) {
+ this.declarations = declarations;
+ this.name = name;
+ }
+
+ @Override
+ public void evaluate(T helper, ValueResolver valueResolver) throws Exception {
+ BaseTuple t = helper.getTuple();
+ switch (pIndex) {
+ case 1: {
+ p1.apply(t.getFactHandle().getObject());
+ return;
+ }
+ case 2: {
+ p2.apply(t.getParent().getFactHandle().getObject(), t.getFactHandle().getObject());
+ return;
+ } case 3: {
+ BaseTuple v2 = t.getParent();
+ p3.apply(v2.getParent().getFactHandle().getObject(),
+ v2.getFactHandle().getObject(),
+ t.getFactHandle().getObject());
+ return;
+ } case 4: {
+ BaseTuple v2 = t.getParent();
+ BaseTuple v3 = v2.getParent();
+ p4.apply(v2.getParent().getFactHandle().getObject(),
+ v2.getFactHandle().getObject(),
+ v3.getFactHandle().getObject(),
+ t.getFactHandle().getObject());
+ return;
+ } default:
+ throw new RuntimeException("No matching predicate on index: " + pIndex);
+ }
+ }
+
+ @Override
+ public String getName() {
+ return name;
+ }
+
+ public Declaration[] getRequiredDeclarations() {
+ return declarations;
+ }
+
+ public void replaceDeclaration(Declaration oldDecl, Declaration newDecl) {
+
+ }
+
+
+ public int getPIndex() {
+ return pIndex;
+ }
+
+ public void setFunction(VoidFunction1 p1) {
+ this.p1 = (VoidFunction1) p1;
+ pIndex = 1;
+ }
+
+ public void setFunction(VoidFunction2 p2) {
+ this.p2 = (VoidFunction2) p2;
+ pIndex = 2;
+ }
+
+ public void setFunction(VoidFunction3 p3) {
+ this.p3 = (VoidFunction3) p3;
+ pIndex = 3;
+ }
+
+ public void setFunction(VoidFunction4 p4) {
+ this.p4 = (VoidFunction4) p4;
+ pIndex = 4;
+ }
+
+ @Override
+ public PositionalConsequence clone() {
+ Declaration[] clonedDeclrs = Arrays.stream(declarations).map(d -> d.clone()).collect(Collectors.toList()).toArray(new Declaration[0]);
+ PositionalConsequence clone = new PositionalConsequence(name, clonedDeclrs);
+ clone.pIndex = pIndex;
+ clone.p1 = p1;
+ clone.p2 = p2;
+ clone.p3 = p3;
+ clone.p4 = p4;
+
+ Declaration[] clonedDeclarations = new Declaration[declarations.length];
+ for (int i = 0; i < declarations.length; i++) {
+ clonedDeclarations[i] = declarations[i].clone();
+ }
+
+ return clone;
+ }
+
+}
diff --git a/drools-kiesession/src/test/java/org/drools/core/positional/PositionalConstraint.java b/drools-kiesession/src/test/java/org/drools/core/positional/PositionalConstraint.java
new file mode 100644
index 00000000000..454b103f00e
--- /dev/null
+++ b/drools-kiesession/src/test/java/org/drools/core/positional/PositionalConstraint.java
@@ -0,0 +1,435 @@
+package org.drools.core.positional;
+
+import org.drools.base.base.ObjectType;
+import org.drools.base.base.ValueResolver;
+import org.drools.base.base.ValueType;
+import org.drools.base.reteoo.BaseTuple;
+import org.drools.base.rule.Declaration;
+import org.drools.base.rule.MutableTypeConstraint;
+import org.drools.base.rule.Pattern;
+import org.drools.base.rule.accessor.FieldValue;
+import org.drools.base.rule.accessor.ReadAccessor;
+import org.drools.base.rule.accessor.TupleValueExtractor;
+import org.drools.base.rule.constraint.BetaConstraint;
+import org.drools.base.rule.IndexableConstraint;
+import org.drools.base.rule.IntervalProviderConstraint;
+import org.drools.base.time.Interval;
+import org.drools.base.util.IndexedValueReader;
+import org.drools.base.util.index.ConstraintTypeOperator;
+import org.drools.core.RuleBaseConfiguration;
+import org.drools.core.common.BetaConstraints;
+import org.drools.core.common.ReteEvaluator;
+import org.drools.core.positional.Functions.Function1;
+import org.drools.core.positional.Functions.Function2;
+import org.drools.core.positional.PositionalConstraint.PositionalContextEntry;
+import org.drools.core.positional.Predicates.Predicate1;
+import org.drools.core.positional.Predicates.Predicate2;
+import org.drools.core.positional.Predicates.Predicate3;
+import org.drools.core.positional.Predicates.Predicate4;
+import org.drools.core.positional.Predicates.Predicate5;
+import org.drools.core.reteoo.BetaMemory;
+import org.drools.core.reteoo.Tuple;
+import org.drools.core.reteoo.TupleMemory;
+import org.drools.core.reteoo.builder.BuildContext;
+import org.drools.core.util.AbstractHashTable;
+import org.drools.core.util.AbstractHashTable.HashEntry;
+import org.drools.core.util.AbstractHashTable.Index;
+import org.drools.core.util.index.IndexMemory;
+import org.drools.core.util.index.IndexSpec;
+import org.drools.core.util.index.TupleList;
+import org.drools.util.bitmask.BitMask;
+import org.kie.api.KieBaseConfiguration;
+import org.kie.api.runtime.rule.FactHandle;
+
+import java.io.IOException;
+import java.io.ObjectInput;
+import java.io.ObjectOutput;
+import java.util.Arrays;
+import java.util.List;
+import java.util.function.Supplier;
+import java.util.stream.Collectors;
+
+public class PositionalConstraint extends MutableTypeConstraint implements BetaConstraints, IndexableConstraint, IntervalProviderConstraint {
+
+ protected final Declaration[] declarations;
+ private final Pattern pattern;
+
+ private ConstraintTypeOperator operatorType;
+
+ private IndexSpec indexSpec;
+
+ private Predicate1 p1 = (o) -> true;
+ private Predicate2 p2;
+ private Predicate3 p3;
+ private Predicate4 p4;
+
+ private int pIndex;
+
+ public PositionalConstraint(Declaration[] declarations, Pattern pattern) {
+ this.declarations = declarations;
+ this.pattern = pattern;
+ }
+
+ @Override
+ public Declaration[] getRequiredDeclarations() {
+ return declarations;
+ }
+
+ @Override
+ public void replaceDeclaration(Declaration oldDecl, Declaration newDecl) {
+
+ }
+
+ public Pattern getPattern() {
+ return pattern;
+ }
+
+ public IndexSpec getIndex() {
+ return indexSpec;
+ }
+
+ public void setIndex(IndexSpec indexSpec) {
+ this.indexSpec = indexSpec;
+ }
+
+ public int getPIndex() {
+ return pIndex;
+ }
+
+ public void setPredicate(Predicate1 p1) {
+ this.p1 = (Predicate1) p1;
+ pIndex = 1;
+ }
+
+ public void setPredicate(Predicate2 p2) {
+ this.p2 = (Predicate2) p2;
+ pIndex = 2;
+ }
+
+ public void setPredicate(Predicate3 p3) {
+ this.p3 = (Predicate3) p3;
+ pIndex = 3;
+ }
+
+ public void setPredicate(Predicate4 p4) {
+ this.p4 = (Predicate4) p4;
+ pIndex = 4;
+ }
+
+ @Override
+ public PositionalConstraint clone() {
+ Declaration[] clonedDeclrs = Arrays.stream(declarations).map(d -> d.clone()).collect(Collectors.toList()).toArray(new Declaration[0]);
+ PositionalConstraint clone = new PositionalConstraint(clonedDeclrs, pattern);
+ clone.setType(getType());
+ clone.pIndex = pIndex;
+ clone.p1 = p1;
+ clone.p2 = p2;
+ clone.p3 = p3;
+ clone.p4 = p4;
+
+ Declaration[] clonedDeclarations = new Declaration[declarations.length];
+ for (int i = 0; i < declarations.length; i++) {
+ clonedDeclarations[i] = declarations[i].clone();
+ }
+
+ return clone;
+ }
+
+ @Override
+ public boolean isTemporal() {
+ return false;
+ }
+
+ @Override
+ public PositionalContextEntry createContext() {
+ return new PositionalContextEntry();
+ }
+
+ @Override
+ public void updateFromTuple(PositionalContextEntry context, ReteEvaluator reteEvaluator, Tuple tuple) {
+ context.tp = tuple;
+ }
+
+ @Override
+ public void updateFromFactHandle(PositionalContextEntry context, ReteEvaluator reteEvaluator, FactHandle handle) {
+ context.fh = handle;
+ }
+
+ @Override
+ public boolean isAllowed(FactHandle handle, ValueResolver valueResolver) {
+ return p1.test(handle.getObject());
+ }
+
+ @Override
+ public boolean isAllowedCachedLeft(PositionalContextEntry context, FactHandle h) {
+ return isAllowed(context.tp, h);
+ }
+
+ @Override
+ public boolean isAllowedCachedRight(BaseTuple t, PositionalContextEntry context) {
+ return isAllowed(t, context.fh);
+ }
+
+ public boolean isAllowed(BaseTuple t, FactHandle h) {
+ switch (pIndex) {
+ case 0: {
+ return true;
+ }
+ case 2: {
+ return p2.test(t.getFactHandle().getObject(), h.getObject());
+ } case 3: {
+ return p3.test(t.getParent().getFactHandle().getObject(),
+ t.getFactHandle().getObject(),
+ h.getObject());
+ } case 4: {
+ BaseTuple v2 = t.getParent();
+ return p4.test(v2.getParent(), v2, t, h.getObject());
+ } default:
+ throw new RuntimeException("No matching predicate on index: " + pIndex);
+ }
+ }
+
+ @Override
+ public BetaConstraint[] getConstraints() {
+ return new BetaConstraint[] {this};
+ }
+
+ @Override
+ public BetaConstraints getOriginalConstraint() {
+ return this;
+ }
+
+ @Override
+ public boolean isIndexed() {
+ return p2 != null;
+ }
+
+ @Override
+ public int getIndexCount() {
+ return 0;
+ }
+
+ @Override
+ public boolean isEmpty() {
+ return false;
+ }
+
+ @Override
+ public BetaMemory createBetaMemory(RuleBaseConfiguration config, short nodeType) {
+
+ if (config.getCompositeKeyDepth() < 1) {
+ return new BetaMemory( config.isSequential() ? null : new TupleList(),
+ new TupleList(),
+ createContext(),
+ nodeType );
+ }
+
+ return new BetaMemory( createLeftMemory(config, indexSpec),
+ createRightMemory(config, indexSpec),
+ createContext(),
+ nodeType );
+ }
+
+ private static TupleMemory createRightMemory(RuleBaseConfiguration config, IndexSpec indexSpec) {
+ if ( !config.isIndexRightBetaMemory() || indexSpec == null || !indexSpec.getConstraintType().isIndexable() || indexSpec.getIndexes().length == 0 ) {
+ return new TupleList();
+ }
+
+ if (indexSpec.getConstraintType() == ConstraintTypeOperator.EQUAL) {
+ return IndexMemory.createEqualityMemory(indexSpec, false);
+ }
+
+ if (indexSpec.getConstraintType().isComparison()) {
+ return IndexMemory.createComparisonMemory(indexSpec, false);
+ }
+
+ return new TupleList();
+ }
+
+ private static TupleMemory createLeftMemory(RuleBaseConfiguration config, IndexSpec indexSpec) {
+ if (config.isSequential()) {
+ return null;
+ }
+ if ( !config.isIndexLeftBetaMemory() || indexSpec == null || !indexSpec.getConstraintType().isIndexable() || indexSpec.getIndexes().length == 0 ) {
+ return new TupleList();
+ }
+
+ if (indexSpec.getConstraintType() == ConstraintTypeOperator.EQUAL) {
+ return IndexMemory.createEqualityMemory(indexSpec, true);
+ }
+
+ if (indexSpec.getConstraintType().isComparison()) {
+ return IndexMemory.createComparisonMemory(indexSpec, true);
+ }
+
+ return new TupleList();
+ }
+
+ @Override
+ public void resetTuple(PositionalContextEntry context) {
+ context.tp = null;
+ }
+
+ @Override
+ public void resetFactHandle(PositionalContextEntry context) {
+ context.fh = null;
+ }
+
+ @Override
+ public void init(BuildContext context, short betaNodeType) {
+
+ }
+
+ @Override
+ public void initIndexes(int depth, short betaNodeType, RuleBaseConfiguration config) {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
+ public MutableTypeConstraint cloneIfInUse() {
+ return super.cloneIfInUse();
+ }
+
+
+
+ @Override
+ public boolean isLeftUpdateOptimizationAllowed() {
+ return false;
+ }
+
+ @Override
+ public void registerEvaluationContext(BuildContext buildContext) {
+
+ }
+
+ @Override
+ public BitMask getListenedPropertyMask(Pattern pattern, ObjectType modifiedType, List settableProperties) {
+ return null;
+ }
+
+ @Override
+ public boolean isUnification() {
+ return false;
+ }
+
+ @Override
+ public boolean isIndexable(short nodeType, KieBaseConfiguration config) {
+ return false;
+ }
+
+ @Override
+ public ConstraintTypeOperator getConstraintType() {
+ return operatorType;
+ }
+
+ public void setConstraintTypeOperator(ConstraintTypeOperator operatorType) {
+ this.operatorType = operatorType;
+ }
+
+ @Override
+ public FieldValue getField() {
+ return null;
+ }
+
+ @Override
+ public IndexedValueReader getFieldIndex() {
+ return null;
+ }
+
+ @Override
+ public ReadAccessor getFieldExtractor() {
+ return null;
+ }
+
+ @Override
+ public TupleValueExtractor getRightIndexExtractor() {
+ return null;
+ }
+
+ @Override
+ public TupleValueExtractor getLeftIndexExtractor() {
+ return null;
+ }
+
+ @Override
+ public Interval getInterval() {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
+ public void writeExternal(ObjectOutput out) throws IOException {
+
+ }
+
+ @Override
+ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
+
+ }
+
+ public static class PositionalContextEntry {
+ public Tuple tp;
+ public FactHandle fh;
+ }
+
+ public static class PositionalTupleValueExtractor1 implements TupleValueExtractor {
+ private Function1 func1;
+
+ private ValueType valueType;
+
+ public PositionalTupleValueExtractor1(Function1 func1, ValueType valueType) {
+ this.func1 = func1;
+ this.valueType = valueType;
+ }
+
+ public ValueType getValueType() {
+ return valueType;
+ }
+
+ @Override
+ public B getValue(BaseTuple tuple) {
+ return func1.apply((A) tuple.getFactHandle().getObject());
+ }
+
+ @Override
+ public B getValue(ValueResolver valueResolver, BaseTuple tuple) {
+ return func1.apply((A) tuple.getFactHandle().getObject());
+ }
+
+ @Override
+ public TupleValueExtractor clone() {
+ PositionalTupleValueExtractor1 clone = new PositionalTupleValueExtractor1(func1, valueType);
+ return clone;
+ }
+ }
+
+ public static class PositionalTupleValueExtractor2 implements TupleValueExtractor {
+ private Function2 func2;
+
+ private ValueType valueType;
+
+ public PositionalTupleValueExtractor2(Function2 func2, ValueType valueType) {
+ this.func2 = func2;
+ this.valueType = valueType;
+ }
+
+ public ValueType getValueType() {
+ return valueType;
+ }
+
+ @Override
+ public R getValue(BaseTuple tuple) {
+ return func2.apply((A) tuple.getParent().getFactHandle().getObject(), (B) tuple.getFactHandle().getObject());
+ }
+
+ @Override
+ public R getValue(ValueResolver valueResolver, BaseTuple tuple) {
+ return func2.apply((A) tuple.getParent().getFactHandle().getObject(), (B) tuple.getFactHandle().getObject());
+ }
+
+ @Override
+ public TupleValueExtractor clone() {
+ PositionalTupleValueExtractor2 clone = new PositionalTupleValueExtractor2(func2, valueType);
+ return clone;
+ }
+ }
+}
diff --git a/drools-kiesession/src/test/java/org/drools/core/positional/Predicates.java b/drools-kiesession/src/test/java/org/drools/core/positional/Predicates.java
new file mode 100644
index 00000000000..54caf11f69b
--- /dev/null
+++ b/drools-kiesession/src/test/java/org/drools/core/positional/Predicates.java
@@ -0,0 +1,28 @@
+package org.drools.core.positional;
+
+public class Predicates {
+
+ interface Predicate1 {
+ boolean test(A a);
+ }
+
+ interface Predicate2 {
+ boolean test(A a, B b);
+ }
+
+ interface Predicate3 {
+ boolean test(A a, B b, C c);
+ }
+
+ interface Predicate4 {
+ boolean test(A a, B b, C c, D d);
+ }
+
+ interface Predicate5 {
+ boolean test(A a, B b, C c, D d, E e);
+ }
+
+ interface Predicate6 {
+ boolean test(A a, B b, C c, D d, E e, F f);
+ }
+}
diff --git a/drools-kiesession/src/test/java/org/drools/core/positional/VoidFunctions.java b/drools-kiesession/src/test/java/org/drools/core/positional/VoidFunctions.java
new file mode 100644
index 00000000000..d7c7991affe
--- /dev/null
+++ b/drools-kiesession/src/test/java/org/drools/core/positional/VoidFunctions.java
@@ -0,0 +1,28 @@
+package org.drools.core.positional;
+
+public class VoidFunctions {
+
+ interface VoidFunction1 {
+ void apply(A a);
+ }
+
+ interface VoidFunction2 {
+ void apply(A a, B b);
+ }
+
+ interface VoidFunction3 {
+ void apply(A a, B b, C c);
+ }
+
+ interface VoidFunction4 {
+ void apply(A a, B b, C c, D d);
+ }
+
+ interface VoidFunction5 {
+ void apply(A a, B b, C c, D d, E e);
+ }
+
+ interface VoidFunction6 {
+ void apply(A a, B b, C c, D d, E e, F f);
+ }
+}
diff --git a/drools-legacy-test-util/pom.xml b/drools-legacy-test-util/pom.xml
index ea166eb7e66..e8d1fef3e1e 100644
--- a/drools-legacy-test-util/pom.xml
+++ b/drools-legacy-test-util/pom.xml
@@ -26,7 +26,7 @@
org.kie
drools-build-parent
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
../build-parent/pom.xml
diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Person.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Person.java
index 64eb8809ad9..dc8e7e8d69d 100644
--- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Person.java
+++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Person.java
@@ -20,8 +20,8 @@
import org.drools.base.factmodel.traits.Traitable;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
diff --git a/drools-legacy-test-util/src/test/resources/META-INF/kmodule.xml b/drools-legacy-test-util/src/test/resources/META-INF/kmodule.xml
index ba432d56502..5c4fd952307 100644
--- a/drools-legacy-test-util/src/test/resources/META-INF/kmodule.xml
+++ b/drools-legacy-test-util/src/test/resources/META-INF/kmodule.xml
@@ -32,7 +32,7 @@
-
+
diff --git a/drools-metric/pom.xml b/drools-metric/pom.xml
index b309eb91868..2f946343221 100644
--- a/drools-metric/pom.xml
+++ b/drools-metric/pom.xml
@@ -27,7 +27,7 @@
org.kie
drools-build-parent
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
../build-parent/pom.xml
diff --git a/drools-metric/src/main/java/org/drools/metric/common/DefaultBetaConstraintsMetric.java b/drools-metric/src/main/java/org/drools/metric/common/DefaultBetaConstraintsMetric.java
index 0c336e3639d..55c7d6083bc 100644
--- a/drools-metric/src/main/java/org/drools/metric/common/DefaultBetaConstraintsMetric.java
+++ b/drools-metric/src/main/java/org/drools/metric/common/DefaultBetaConstraintsMetric.java
@@ -18,11 +18,12 @@
*/
package org.drools.metric.common;
+import org.drools.base.reteoo.BaseTuple;
import org.drools.core.RuleBaseConfiguration;
import org.drools.core.common.DefaultBetaConstraints;
import org.drools.base.rule.ContextEntry;
import org.drools.base.rule.MutableTypeConstraint;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.drools.core.reteoo.Tuple;
import org.drools.metric.util.MetricLogUtils;
import org.kie.api.runtime.rule.FactHandle;
@@ -33,13 +34,13 @@ public class DefaultBetaConstraintsMetric extends DefaultBetaConstraints {
public DefaultBetaConstraintsMetric() {}
- public DefaultBetaConstraintsMetric(final BetaNodeFieldConstraint[] constraints,
+ public DefaultBetaConstraintsMetric(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf) {
super(constraints, conf);
}
- public DefaultBetaConstraintsMetric(final BetaNodeFieldConstraint[] constraints,
+ public DefaultBetaConstraintsMetric(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf,
final boolean disableIndexing) {
super(constraints, conf, disableIndexing);
@@ -48,7 +49,7 @@ public DefaultBetaConstraintsMetric(final BetaNodeFieldConstraint[] constraints,
@Override
public DefaultBetaConstraintsMetric cloneIfInUse() {
if (constraints[0] instanceof MutableTypeConstraint && ((MutableTypeConstraint) constraints[0]).setInUse()) {
- BetaNodeFieldConstraint[] clonedConstraints = new BetaNodeFieldConstraint[constraints.length];
+ BetaConstraint[] clonedConstraints = new BetaConstraint[constraints.length];
for (int i = 0; i < constraints.length; i++) {
clonedConstraints[i] = constraints[i].cloneIfInUse();
}
@@ -70,9 +71,8 @@ public boolean isAllowedCachedLeft(final ContextEntry[] context,
}
@Override
- public boolean isAllowedCachedRight(final ContextEntry[] context,
- final Tuple tuple) {
+ public boolean isAllowedCachedRight(final BaseTuple tuple, final ContextEntry[] context) {
MetricLogUtils.getInstance().incrementEvalCount();
- return super.isAllowedCachedRight(context, tuple);
+ return super.isAllowedCachedRight(tuple, context);
}
}
diff --git a/drools-metric/src/main/java/org/drools/metric/common/DoubleBetaConstraintsMetric.java b/drools-metric/src/main/java/org/drools/metric/common/DoubleBetaConstraintsMetric.java
index 032e845cc54..19d08252756 100644
--- a/drools-metric/src/main/java/org/drools/metric/common/DoubleBetaConstraintsMetric.java
+++ b/drools-metric/src/main/java/org/drools/metric/common/DoubleBetaConstraintsMetric.java
@@ -18,11 +18,12 @@
*/
package org.drools.metric.common;
+import org.drools.base.reteoo.BaseTuple;
import org.drools.core.RuleBaseConfiguration;
import org.drools.core.common.DoubleBetaConstraints;
import org.drools.base.rule.ContextEntry;
import org.drools.base.rule.MutableTypeConstraint;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.drools.core.reteoo.Tuple;
import org.drools.metric.util.MetricLogUtils;
import org.kie.api.runtime.rule.FactHandle;
@@ -34,18 +35,18 @@ public class DoubleBetaConstraintsMetric extends DoubleBetaConstraints {
public DoubleBetaConstraintsMetric() {}
- public DoubleBetaConstraintsMetric(final BetaNodeFieldConstraint[] constraints,
+ public DoubleBetaConstraintsMetric(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf) {
super(constraints, conf);
}
- public DoubleBetaConstraintsMetric(final BetaNodeFieldConstraint[] constraints,
+ public DoubleBetaConstraintsMetric(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf,
final boolean disableIndexing) {
super(constraints, conf, disableIndexing);
}
- protected DoubleBetaConstraintsMetric(BetaNodeFieldConstraint[] constraints,
+ protected DoubleBetaConstraintsMetric(BetaConstraint[] constraints,
IndexPrecedenceOption indexPrecedenceOption,
boolean disableIndexing) {
super(constraints, indexPrecedenceOption, disableIndexing);
@@ -54,7 +55,7 @@ protected DoubleBetaConstraintsMetric(BetaNodeFieldConstraint[] constraints,
@Override
public DoubleBetaConstraintsMetric cloneIfInUse() {
if (constraints[0] instanceof MutableTypeConstraint && ((MutableTypeConstraint) constraints[0]).setInUse()) {
- BetaNodeFieldConstraint[] clonedConstraints = new BetaNodeFieldConstraint[constraints.length];
+ BetaConstraint[] clonedConstraints = new BetaConstraint[constraints.length];
for (int i = 0; i < constraints.length; i++) {
clonedConstraints[i] = constraints[i].cloneIfInUse();
}
@@ -73,9 +74,9 @@ public boolean isAllowedCachedLeft(final ContextEntry[] context,
}
@Override
- public boolean isAllowedCachedRight(final ContextEntry[] context,
- final Tuple tuple) {
+ public boolean isAllowedCachedRight(final BaseTuple tuple,
+ final ContextEntry[] context) {
MetricLogUtils.getInstance().incrementEvalCount();
- return super.isAllowedCachedRight(context, tuple);
+ return super.isAllowedCachedRight(tuple, context);
}
}
diff --git a/drools-metric/src/main/java/org/drools/metric/common/QuadroupleBetaConstraintsMetric.java b/drools-metric/src/main/java/org/drools/metric/common/QuadroupleBetaConstraintsMetric.java
index 61a16e82439..96bba973d84 100644
--- a/drools-metric/src/main/java/org/drools/metric/common/QuadroupleBetaConstraintsMetric.java
+++ b/drools-metric/src/main/java/org/drools/metric/common/QuadroupleBetaConstraintsMetric.java
@@ -18,11 +18,12 @@
*/
package org.drools.metric.common;
+import org.drools.base.reteoo.BaseTuple;
import org.drools.core.RuleBaseConfiguration;
import org.drools.core.common.QuadroupleBetaConstraints;
import org.drools.base.rule.ContextEntry;
import org.drools.base.rule.MutableTypeConstraint;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.drools.core.reteoo.Tuple;
import org.drools.metric.util.MetricLogUtils;
import org.kie.api.runtime.rule.FactHandle;
@@ -34,18 +35,18 @@ public class QuadroupleBetaConstraintsMetric extends QuadroupleBetaConstraints {
public QuadroupleBetaConstraintsMetric() {}
- public QuadroupleBetaConstraintsMetric(final BetaNodeFieldConstraint[] constraints,
+ public QuadroupleBetaConstraintsMetric(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf) {
super(constraints, conf);
}
- public QuadroupleBetaConstraintsMetric(final BetaNodeFieldConstraint[] constraints,
+ public QuadroupleBetaConstraintsMetric(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf,
final boolean disableIndexing) {
super(constraints, conf, disableIndexing);
}
- protected QuadroupleBetaConstraintsMetric(BetaNodeFieldConstraint[] constraints,
+ protected QuadroupleBetaConstraintsMetric(BetaConstraint[] constraints,
IndexPrecedenceOption indexPrecedenceOption,
boolean disableIndexing) {
super(constraints, indexPrecedenceOption, disableIndexing);
@@ -54,7 +55,7 @@ protected QuadroupleBetaConstraintsMetric(BetaNodeFieldConstraint[] constraints,
@Override
public QuadroupleBetaConstraintsMetric cloneIfInUse() {
if (constraints[0] instanceof MutableTypeConstraint && ((MutableTypeConstraint) constraints[0]).setInUse()) {
- BetaNodeFieldConstraint[] clonedConstraints = new BetaNodeFieldConstraint[constraints.length];
+ BetaConstraint[] clonedConstraints = new BetaConstraint[constraints.length];
for (int i = 0; i < constraints.length; i++) {
clonedConstraints[i] = constraints[i].cloneIfInUse();
}
@@ -73,9 +74,9 @@ public boolean isAllowedCachedLeft(final ContextEntry[] context,
}
@Override
- public boolean isAllowedCachedRight(final ContextEntry[] context,
- final Tuple tuple) {
+ public boolean isAllowedCachedRight(final BaseTuple tuple,
+ final ContextEntry[] context) {
MetricLogUtils.getInstance().incrementEvalCount();
- return super.isAllowedCachedRight(context, tuple);
+ return super.isAllowedCachedRight(tuple, context);
}
}
diff --git a/drools-metric/src/main/java/org/drools/metric/common/SingleBetaConstraintsMetric.java b/drools-metric/src/main/java/org/drools/metric/common/SingleBetaConstraintsMetric.java
index 21f6acd77e3..b21943fc9b1 100644
--- a/drools-metric/src/main/java/org/drools/metric/common/SingleBetaConstraintsMetric.java
+++ b/drools-metric/src/main/java/org/drools/metric/common/SingleBetaConstraintsMetric.java
@@ -18,11 +18,12 @@
*/
package org.drools.metric.common;
+import org.drools.base.reteoo.BaseTuple;
import org.drools.core.RuleBaseConfiguration;
import org.drools.core.common.SingleBetaConstraints;
import org.drools.base.rule.ContextEntry;
import org.drools.base.rule.MutableTypeConstraint;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.drools.core.reteoo.Tuple;
import org.drools.metric.util.MetricLogUtils;
import org.kie.api.runtime.rule.FactHandle;
@@ -33,17 +34,17 @@ public class SingleBetaConstraintsMetric extends SingleBetaConstraints {
public SingleBetaConstraintsMetric() {}
- public SingleBetaConstraintsMetric(final BetaNodeFieldConstraint[] constraint,
+ public SingleBetaConstraintsMetric(final BetaConstraint[] constraint,
final RuleBaseConfiguration conf) {
super(constraint[0], conf);
}
- public SingleBetaConstraintsMetric(final BetaNodeFieldConstraint constraint,
+ public SingleBetaConstraintsMetric(final BetaConstraint constraint,
final RuleBaseConfiguration conf) {
super(constraint, conf);
}
- public SingleBetaConstraintsMetric(final BetaNodeFieldConstraint constraint,
+ public SingleBetaConstraintsMetric(final BetaConstraint constraint,
final RuleBaseConfiguration conf,
final boolean disableIndex) {
super(constraint, conf, disableIndex);
@@ -60,16 +61,16 @@ public SingleBetaConstraintsMetric cloneIfInUse() {
}
@Override
- public boolean isAllowedCachedLeft(final ContextEntry[] context,
+ public boolean isAllowedCachedLeft(final ContextEntry context,
final FactHandle handle) {
MetricLogUtils.getInstance().incrementEvalCount();
return super.isAllowedCachedLeft(context, handle);
}
@Override
- public boolean isAllowedCachedRight(final ContextEntry[] context,
- final Tuple tuple) {
+ public boolean isAllowedCachedRight(final BaseTuple tuple,
+ final ContextEntry context) {
MetricLogUtils.getInstance().incrementEvalCount();
- return super.isAllowedCachedRight(context, tuple);
+ return super.isAllowedCachedRight(tuple, context);
}
}
diff --git a/drools-metric/src/main/java/org/drools/metric/common/TripleBetaConstraintsMetric.java b/drools-metric/src/main/java/org/drools/metric/common/TripleBetaConstraintsMetric.java
index 6dc2cf63ba1..12acfbba385 100644
--- a/drools-metric/src/main/java/org/drools/metric/common/TripleBetaConstraintsMetric.java
+++ b/drools-metric/src/main/java/org/drools/metric/common/TripleBetaConstraintsMetric.java
@@ -18,11 +18,12 @@
*/
package org.drools.metric.common;
+import org.drools.base.reteoo.BaseTuple;
import org.drools.core.RuleBaseConfiguration;
import org.drools.core.common.TripleBetaConstraints;
import org.drools.base.rule.ContextEntry;
import org.drools.base.rule.MutableTypeConstraint;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.drools.core.reteoo.Tuple;
import org.drools.metric.util.MetricLogUtils;
import org.kie.api.runtime.rule.FactHandle;
@@ -34,18 +35,18 @@ public class TripleBetaConstraintsMetric extends TripleBetaConstraints {
public TripleBetaConstraintsMetric() {}
- public TripleBetaConstraintsMetric(final BetaNodeFieldConstraint[] constraints,
+ public TripleBetaConstraintsMetric(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf) {
super(constraints, conf);
}
- public TripleBetaConstraintsMetric(final BetaNodeFieldConstraint[] constraints,
+ public TripleBetaConstraintsMetric(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf,
final boolean disableIndexing) {
super(constraints, conf, disableIndexing);
}
- protected TripleBetaConstraintsMetric(BetaNodeFieldConstraint[] constraints,
+ protected TripleBetaConstraintsMetric(BetaConstraint[] constraints,
IndexPrecedenceOption indexPrecedenceOption,
boolean disableIndexing) {
super(constraints, indexPrecedenceOption, disableIndexing);
@@ -54,7 +55,7 @@ protected TripleBetaConstraintsMetric(BetaNodeFieldConstraint[] constraints,
@Override
public TripleBetaConstraintsMetric cloneIfInUse() {
if (constraints[0] instanceof MutableTypeConstraint && ((MutableTypeConstraint) constraints[0]).setInUse()) {
- BetaNodeFieldConstraint[] clonedConstraints = new BetaNodeFieldConstraint[constraints.length];
+ BetaConstraint[] clonedConstraints = new BetaConstraint[constraints.length];
for (int i = 0; i < constraints.length; i++) {
clonedConstraints[i] = constraints[i].cloneIfInUse();
}
@@ -73,9 +74,9 @@ public boolean isAllowedCachedLeft(final ContextEntry[] context,
}
@Override
- public boolean isAllowedCachedRight(final ContextEntry[] context,
- final Tuple tuple) {
+ public boolean isAllowedCachedRight(final BaseTuple tuple,
+ final ContextEntry[] context) {
MetricLogUtils.getInstance().incrementEvalCount();
- return super.isAllowedCachedRight(context, tuple);
+ return super.isAllowedCachedRight(tuple, context);
}
}
diff --git a/drools-metric/src/main/java/org/drools/metric/reteoo/builder/MetricBetaNodeConstraintFactoryImpl.java b/drools-metric/src/main/java/org/drools/metric/reteoo/builder/MetricBetaNodeConstraintFactoryImpl.java
index cde7b6577ba..0f48971c85c 100644
--- a/drools-metric/src/main/java/org/drools/metric/reteoo/builder/MetricBetaNodeConstraintFactoryImpl.java
+++ b/drools-metric/src/main/java/org/drools/metric/reteoo/builder/MetricBetaNodeConstraintFactoryImpl.java
@@ -25,7 +25,7 @@
import org.drools.core.common.SingleBetaConstraints;
import org.drools.core.common.TripleBetaConstraints;
import org.drools.core.reteoo.builder.BetaNodeConstraintFactory;
-import org.drools.base.rule.constraint.BetaNodeFieldConstraint;
+import org.drools.base.rule.constraint.BetaConstraint;
import org.drools.metric.common.DefaultBetaConstraintsMetric;
import org.drools.metric.common.DoubleBetaConstraintsMetric;
import org.drools.metric.common.QuadroupleBetaConstraintsMetric;
@@ -36,7 +36,7 @@
public class MetricBetaNodeConstraintFactoryImpl implements BetaNodeConstraintFactory {
@Override
- public SingleBetaConstraints createSingleBetaConstraints(final BetaNodeFieldConstraint constraint,
+ public SingleBetaConstraints createSingleBetaConstraints(final BetaConstraint constraint,
final RuleBaseConfiguration conf,
final boolean disableIndex) {
if (MetricLogUtils.getInstance().isEnabled()) {
@@ -47,7 +47,7 @@ public SingleBetaConstraints createSingleBetaConstraints(final BetaNodeFieldCons
}
@Override
- public DoubleBetaConstraints createDoubleBetaConstraints(final BetaNodeFieldConstraint[] constraints,
+ public DoubleBetaConstraints createDoubleBetaConstraints(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf,
final boolean disableIndexing) {
if (MetricLogUtils.getInstance().isEnabled()) {
@@ -58,7 +58,7 @@ public DoubleBetaConstraints createDoubleBetaConstraints(final BetaNodeFieldCons
}
@Override
- public TripleBetaConstraints createTripleBetaConstraints(final BetaNodeFieldConstraint[] constraints,
+ public TripleBetaConstraints createTripleBetaConstraints(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf,
final boolean disableIndexing) {
if (MetricLogUtils.getInstance().isEnabled()) {
@@ -69,7 +69,7 @@ public TripleBetaConstraints createTripleBetaConstraints(final BetaNodeFieldCons
}
@Override
- public QuadroupleBetaConstraints createQuadroupleBetaConstraints(final BetaNodeFieldConstraint[] constraints,
+ public QuadroupleBetaConstraints createQuadroupleBetaConstraints(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf,
final boolean disableIndexing) {
if (MetricLogUtils.getInstance().isEnabled()) {
@@ -80,7 +80,7 @@ public QuadroupleBetaConstraints createQuadroupleBetaConstraints(final BetaNodeF
}
@Override
- public DefaultBetaConstraints createDefaultBetaConstraints(final BetaNodeFieldConstraint[] constraints,
+ public DefaultBetaConstraints createDefaultBetaConstraints(final BetaConstraint[] constraints,
final RuleBaseConfiguration conf,
final boolean disableIndexing) {
if (MetricLogUtils.getInstance().isEnabled()) {
diff --git a/drools-model/drools-canonical-model/pom.xml b/drools-model/drools-canonical-model/pom.xml
index bf5edab4f4b..58d14809398 100644
--- a/drools-model/drools-canonical-model/pom.xml
+++ b/drools-model/drools-canonical-model/pom.xml
@@ -27,7 +27,7 @@
org.drools
drools-model
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
Drools :: Canonical Model
diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/AlphaIndex.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/AlphaIndex.java
index 10f240770ee..2801961ed03 100644
--- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/AlphaIndex.java
+++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/AlphaIndex.java
@@ -21,4 +21,5 @@
public interface AlphaIndex extends Index {
V getRightValue();
+
}
diff --git a/drools-model/drools-codegen-common/pom.xml b/drools-model/drools-codegen-common/pom.xml
index 19e95a2cdb6..52a5bea8ddf 100644
--- a/drools-model/drools-codegen-common/pom.xml
+++ b/drools-model/drools-codegen-common/pom.xml
@@ -27,7 +27,7 @@
org.drools
drools-model
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
org.drools
diff --git a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/context/QuarkusDroolsModelBuildContext.java b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/context/QuarkusDroolsModelBuildContext.java
index 9a4b9005f7b..ff25830536c 100644
--- a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/context/QuarkusDroolsModelBuildContext.java
+++ b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/context/QuarkusDroolsModelBuildContext.java
@@ -24,8 +24,8 @@
public class QuarkusDroolsModelBuildContext extends AbstractDroolsModelBuildContext {
public static final String CONTEXT_NAME = "Quarkus";
- public static final String QUARKUS_REST = "javax.ws.rs.Path";
- public static final String QUARKUS_DI = "javax.inject.Inject";
+ public static final String QUARKUS_REST = "jakarta.ws.rs.Path";
+ public static final String QUARKUS_DI = "jakarta.inject.Inject";
public final boolean hasRest;
public final boolean hasDI;
diff --git a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/di/DependencyInjectionAnnotator.java b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/di/DependencyInjectionAnnotator.java
index e31288ebea4..133e55e4334 100644
--- a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/di/DependencyInjectionAnnotator.java
+++ b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/di/DependencyInjectionAnnotator.java
@@ -18,6 +18,9 @@
*/
package org.drools.codegen.common.di;
+import java.util.ArrayList;
+import java.util.List;
+
import com.github.javaparser.ast.NodeList;
import com.github.javaparser.ast.expr.ArrayInitializerExpr;
import com.github.javaparser.ast.expr.Expression;
@@ -29,9 +32,6 @@
import com.github.javaparser.ast.expr.StringLiteralExpr;
import com.github.javaparser.ast.nodeTypes.NodeWithAnnotations;
-import java.util.ArrayList;
-import java.util.List;
-
/**
* Generic abstraction for dependency injection annotations that allow to
* use different frameworks based needs.
@@ -183,7 +183,7 @@ default > T withSecurityRoles(T node, String[]
rolesExpr.add(new StringLiteralExpr(role.trim()));
}
- node.addAnnotation(new SingleMemberAnnotationExpr(new Name("javax.annotation.security.RolesAllowed"), new ArrayInitializerExpr(NodeList.nodeList(rolesExpr))));
+ node.addAnnotation(new SingleMemberAnnotationExpr(new Name("jakarta.annotation.security.RolesAllowed"), new ArrayInitializerExpr(NodeList.nodeList(rolesExpr))));
}
return node;
}
diff --git a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/di/impl/CDIDependencyInjectionAnnotator.java b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/di/impl/CDIDependencyInjectionAnnotator.java
index 47e33bd14cb..0631364e819 100644
--- a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/di/impl/CDIDependencyInjectionAnnotator.java
+++ b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/di/impl/CDIDependencyInjectionAnnotator.java
@@ -36,7 +36,7 @@ public class CDIDependencyInjectionAnnotator implements DependencyInjectionAnnot
@Override
public > T withProduces(T node, boolean isDefault) {
- node.addAndGetAnnotation("javax.enterprise.inject.Produces");
+ node.addAndGetAnnotation("jakarta.enterprise.inject.Produces");
if (isDefault) {
node.addAndGetAnnotation("io.quarkus.arc.DefaultBean");
}
@@ -45,13 +45,13 @@ public > T withProduces(T node, boolean isDefau
@Override
public > T withNamed(T node, String name) {
- node.addAnnotation(new SingleMemberAnnotationExpr(new Name("javax.inject.Named"), new StringLiteralExpr(name)));
+ node.addAnnotation(new SingleMemberAnnotationExpr(new Name("jakarta.inject.Named"), new StringLiteralExpr(name)));
return node;
}
@Override
public > T withApplicationComponent(T node) {
- node.addAnnotation("javax.enterprise.context.ApplicationScoped");
+ node.addAnnotation("jakarta.enterprise.context.ApplicationScoped");
return node;
}
@@ -62,7 +62,7 @@ public > T withNamedApplicationComponent(T node
@Override
public > T withSingletonComponent(T node) {
- node.addAnnotation("javax.inject.Singleton");
+ node.addAnnotation("jakarta.inject.Singleton");
return node;
}
@@ -73,7 +73,7 @@ public > T withNamedSingletonComponent(T node,
@Override
public > T withInjection(T node, boolean lazy) {
- node.addAnnotation("javax.inject.Inject");
+ node.addAnnotation("jakarta.inject.Inject");
return node;
}
@@ -107,7 +107,7 @@ public MethodCallExpr withMessageProducer(MethodCallExpr produceMethod, String c
@Override
public String optionalInstanceInjectionType() {
- return "javax.enterprise.inject.Instance";
+ return "jakarta.enterprise.inject.Instance";
}
@Override
@@ -134,7 +134,7 @@ public Expression getMultiInstance(String fieldName) {
@Override
public String applicationComponentType() {
- return "javax.enterprise.context.ApplicationScoped";
+ return "jakarta.enterprise.context.ApplicationScoped";
}
@Override
@@ -174,7 +174,7 @@ public > T withFactoryClass(T node) {
@Override
public > T withFactoryMethod(T node) {
- node.addAnnotation("javax.enterprise.inject.Produces");
+ node.addAnnotation("jakarta.enterprise.inject.Produces");
return node;
}
diff --git a/drools-model/drools-model-codegen/pom.xml b/drools-model/drools-model-codegen/pom.xml
index 0d836c6499a..ae5732e79b7 100644
--- a/drools-model/drools-model-codegen/pom.xml
+++ b/drools-model/drools-model-codegen/pom.xml
@@ -27,7 +27,7 @@
org.drools
drools-model
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
org.drools
diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/RuleUnitQueryWriter.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/RuleUnitQueryWriter.java
index b64864a9abc..4182d7181c0 100644
--- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/RuleUnitQueryWriter.java
+++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/RuleUnitQueryWriter.java
@@ -196,14 +196,10 @@ public static class NoBindingQuery extends DroolsError {
private final QueryModel query;
public NoBindingQuery(QueryModel query) {
+ super("Query " + query.getName() + " has no bound variable. At least one binding is required to determine the value returned by this query");
this.query = query;
}
- @Override
- public String getMessage() {
- return "Query " + query.getName() + " has no bound variable. At least one binding is required to determine the value returned by this query";
- }
-
@Override
public int[] getLines() {
return ERROR_LINES;
diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/CompilationProblemErrorResult.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/CompilationProblemErrorResult.java
index 9a4b716822c..eb3f9e0c989 100644
--- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/CompilationProblemErrorResult.java
+++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/CompilationProblemErrorResult.java
@@ -27,7 +27,7 @@ public class CompilationProblemErrorResult extends DroolsError {
private CompilationProblem compilationProblem;
public CompilationProblemErrorResult(CompilationProblem compilationProblem) {
- super();
+ super(compilationProblem.getMessage());
this.compilationProblem = compilationProblem;
}
@@ -36,11 +36,6 @@ public ResultSeverity getSeverity() {
return ResultSeverity.ERROR;
}
- @Override
- public String getMessage() {
- return compilationProblem.getMessage();
- }
-
@Override
public int[] getLines() {
return new int[]{compilationProblem.getStartLine(), compilationProblem.getEndLine()};
diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/DuplicatedDeclarationError.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/DuplicatedDeclarationError.java
index f794fe1edb3..a6ca22d3472 100644
--- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/DuplicatedDeclarationError.java
+++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/DuplicatedDeclarationError.java
@@ -26,7 +26,7 @@ public class DuplicatedDeclarationError extends DroolsError {
private String declaration;
public DuplicatedDeclarationError( String declaration) {
- super();
+ super("Duplicated declaration: " + declaration);
this.declaration = declaration;
}
@@ -35,11 +35,6 @@ public ResultSeverity getSeverity() {
return ResultSeverity.ERROR;
}
- @Override
- public String getMessage() {
- return "Duplicated declaration: " + declaration;
- }
-
@Override
public int[] getLines() {
return new int[0];
diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/GetterOverloadWarning.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/GetterOverloadWarning.java
index c8d67ddf968..65219209d18 100644
--- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/GetterOverloadWarning.java
+++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/GetterOverloadWarning.java
@@ -30,6 +30,7 @@ public class GetterOverloadWarning extends DroolsError {
private Class newType;
public GetterOverloadWarning( Class klass, String oldName, Class oldType, String newName, Class newType ) {
+ super( " Getter overloading detected in class " + klass.getName() + " : " + oldName + " (" + oldType + ") vs " + newName + " (" + newType + ") ");
this.klass = klass;
this.oldName = oldName;
this.oldType = oldType;
@@ -43,12 +44,6 @@ public ResultSeverity getSeverity() {
}
- @Override
- public String getMessage() {
- return " Getter overloading detected in class " + klass.getName() + " : " + oldName + " (" + oldType + ") vs " + newName + " (" + newType + ") ";
- }
-
-
@Override
public int[] getLines() {
return new int[ 0 ];
diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/IncompatibleGetterOverloadError.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/IncompatibleGetterOverloadError.java
index cdf406f90ec..c3111539b40 100644
--- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/IncompatibleGetterOverloadError.java
+++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/IncompatibleGetterOverloadError.java
@@ -30,6 +30,7 @@ public class IncompatibleGetterOverloadError extends DroolsError {
private Class newType;
public IncompatibleGetterOverloadError( Class klass, String oldName, Class oldType, String newName, Class newType ) {
+ super(" Incompatible Getter overloading detected in class " + klass.getName() + " : " + oldName + " (" + oldType + ") vs " + newName + " (" + newType + ") ");
this.klass = klass;
this.oldName = oldName;
this.oldType = oldType;
@@ -43,12 +44,6 @@ public ResultSeverity getSeverity() {
}
- @Override
- public String getMessage() {
- return " Imcompatible Getter overloading detected in class " + klass.getName() + " : " + oldName + " (" + oldType + ") vs " + newName + " (" + newType + ") ";
- }
-
-
@Override
public int[] getLines() {
return new int[ 0 ];
diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/InvalidExpressionErrorResult.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/InvalidExpressionErrorResult.java
index c956e13eda7..72e43fea0a6 100644
--- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/InvalidExpressionErrorResult.java
+++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/InvalidExpressionErrorResult.java
@@ -26,13 +26,10 @@
public class InvalidExpressionErrorResult extends DroolsError {
- private String message;
-
private int[] errorLines = new int[1];
public InvalidExpressionErrorResult(String message) {
- super();
- this.message = message;
+ super(message);
this.errorLines[0] = -1;
}
@@ -46,10 +43,6 @@ public ResultSeverity getSeverity() {
return ResultSeverity.ERROR;
}
- @Override
- public String getMessage() {
- return message;
- }
@Override
public int[] getLines() {
diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/ParseExpressionErrorResult.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/ParseExpressionErrorResult.java
index b08c306ed19..cebe93aeece 100644
--- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/ParseExpressionErrorResult.java
+++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/ParseExpressionErrorResult.java
@@ -33,7 +33,7 @@ public class ParseExpressionErrorResult extends DroolsError {
private int[] errorLines = new int[1];
public ParseExpressionErrorResult(Expression expr) {
- super();
+ super("Unable to Analyse Expression " + PrintUtil.printNode(expr) + ":");
this.expr = expr;
this.errorLines[0] = -1;
}
@@ -48,11 +48,6 @@ public ResultSeverity getSeverity() {
return ResultSeverity.ERROR;
}
- @Override
- public String getMessage() {
- return "Unable to Analyse Expression " + PrintUtil.printNode(expr) + ":";
- }
-
@Override
public int[] getLines() {
return errorLines;
diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/UnknownDeclarationError.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/UnknownDeclarationError.java
index 4dbc2608776..d00e12dce59 100644
--- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/UnknownDeclarationError.java
+++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/UnknownDeclarationError.java
@@ -23,11 +23,9 @@
public class UnknownDeclarationError extends DroolsError {
- private String declaration;
public UnknownDeclarationError(String declaration) {
- super();
- this.declaration = declaration;
+ super("Unknown declaration: " + declaration);
}
@Override
@@ -35,10 +33,6 @@ public ResultSeverity getSeverity() {
return ResultSeverity.ERROR;
}
- @Override
- public String getMessage() {
- return "Unknown declaration: " + declaration;
- }
@Override
public int[] getLines() {
diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/UnsupportedFeatureError.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/UnsupportedFeatureError.java
index 8137f93b315..437a72c40d7 100644
--- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/UnsupportedFeatureError.java
+++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/UnsupportedFeatureError.java
@@ -23,11 +23,9 @@
public class UnsupportedFeatureError extends DroolsError {
- private String message;
public UnsupportedFeatureError(String message) {
- super();
- this.message = message;
+ super(message);
}
@Override
@@ -35,10 +33,6 @@ public ResultSeverity getSeverity() {
return ResultSeverity.ERROR;
}
- @Override
- public String getMessage() {
- return message;
- }
@Override
public int[] getLines() {
diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/VariableUsedInBindingError.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/VariableUsedInBindingError.java
index 745863980e8..917bcd9e3ea 100644
--- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/VariableUsedInBindingError.java
+++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/VariableUsedInBindingError.java
@@ -29,7 +29,9 @@ public class VariableUsedInBindingError extends DroolsError {
private int[] errorLines = new int[1];
public VariableUsedInBindingError(String usedDeclaration, String constraintExpressionString) {
- super();
+ super(String.format("Variables can not be used inside bindings. Variable [%s] is being used in binding '%s'",
+ usedDeclaration,
+ constraintExpressionString));
this.usedDeclaration = usedDeclaration;
this.constraintExpressionString = constraintExpressionString;
this.errorLines[0] = -1;
@@ -40,12 +42,6 @@ public ResultSeverity getSeverity() {
return ResultSeverity.ERROR;
}
- @Override
- public String getMessage() {
- return String.format("Variables can not be used inside bindings. Variable [%s] is being used in binding '%s'",
- usedDeclaration,
- constraintExpressionString);
- }
@Override
public int[] getLines() {
diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ArithmeticCoercedExpression.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ArithmeticCoercedExpression.java
index 3cdea08ab37..765a6b313e2 100644
--- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ArithmeticCoercedExpression.java
+++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ArithmeticCoercedExpression.java
@@ -52,6 +52,10 @@ public ArithmeticCoercedExpression(TypedExpression left, TypedExpression right,
this.operator = operator;
}
+ /*
+ * This coercion only deals with String vs Numeric types.
+ * BigDecimal arithmetic operation is handled by ExpressionTyper.convertArithmeticBinaryToMethodCall()
+ */
public ArithmeticCoercedExpressionResult coerce() {
if (!requiresCoercion()) {
diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ConstraintParser.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ConstraintParser.java
index 2a85da6e2f0..36b8f67a293 100644
--- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ConstraintParser.java
+++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ConstraintParser.java
@@ -95,6 +95,9 @@
import static org.drools.model.codegen.execmodel.generator.ConstraintUtil.GREATER_THAN_PREFIX;
import static org.drools.model.codegen.execmodel.generator.ConstraintUtil.LESS_OR_EQUAL_PREFIX;
import static org.drools.model.codegen.execmodel.generator.ConstraintUtil.LESS_THAN_PREFIX;
+import static org.drools.model.codegen.execmodel.generator.expressiontyper.ExpressionTyper.convertArithmeticBinaryToMethodCall;
+import static org.drools.model.codegen.execmodel.generator.expressiontyper.ExpressionTyper.getBinaryTypeAfterConversion;
+import static org.drools.model.codegen.execmodel.generator.expressiontyper.ExpressionTyper.shouldConvertArithmeticBinaryToMethodCall;
import static org.drools.util.StringUtils.lcFirstForBean;
import static org.drools.model.codegen.execmodel.generator.DrlxParseUtil.THIS_PLACEHOLDER;
import static org.drools.model.codegen.execmodel.generator.DrlxParseUtil.createConstraintCompiler;
@@ -197,11 +200,23 @@ private void logWarnIfNoReactOnCausedByVariableFromDifferentPattern(DrlxParseRes
}
private void addDeclaration(DrlxExpression drlx, SingleDrlxParseSuccess singleResult, String bindId) {
- DeclarationSpec decl = context.addDeclaration( bindId, singleResult.getLeftExprTypeBeforeCoercion() );
+ DeclarationSpec decl = context.addDeclaration(bindId, getDeclarationType(drlx, singleResult));
if (drlx.getExpr() instanceof NameExpr) {
decl.setBoundVariable( PrintUtil.printNode(drlx.getExpr()) );
} else if (drlx.getExpr() instanceof BinaryExpr) {
- decl.setBoundVariable(PrintUtil.printNode(drlx.getExpr().asBinaryExpr().getLeft()));
+ Expression leftMostExpression = getLeftMostExpression(drlx.getExpr().asBinaryExpr());
+ decl.setBoundVariable(PrintUtil.printNode(leftMostExpression));
+ if (singleResult.getExpr() instanceof MethodCallExpr) {
+ // BinaryExpr was converted to MethodCallExpr. Create a TypedExpression for the leftmost expression of the BinaryExpr
+ ExpressionTyperContext expressionTyperContext = new ExpressionTyperContext();
+ ExpressionTyper expressionTyper = new ExpressionTyper(context, singleResult.getPatternType(), bindId, false, expressionTyperContext);
+ TypedExpressionResult leftTypedExpressionResult = expressionTyper.toTypedExpression(leftMostExpression);
+ Optional optLeft = leftTypedExpressionResult.getTypedExpression();
+ if (!optLeft.isPresent()) {
+ throw new IllegalStateException("Cannot create TypedExpression for " + drlx.getExpr().asBinaryExpr().getLeft());
+ }
+ singleResult.setBoundExpr(optLeft.get());
+ }
}
decl.setBelongingPatternDescr(context.getCurrentPatternDescr());
singleResult.setExprBinding( bindId );
@@ -211,6 +226,24 @@ private void addDeclaration(DrlxExpression drlx, SingleDrlxParseSuccess singleRe
}
}
+ private static Class> getDeclarationType(DrlxExpression drlx, SingleDrlxParseSuccess singleResult) {
+ if (drlx.getBind() != null && drlx.getExpr() instanceof EnclosedExpr) {
+ // in case of enclosed, bind type should be the calculation result type
+ // If drlx.getBind() == null, a bind variable is inside the enclosed expression, leave it to the default behavior
+ return (Class>)singleResult.getExprType();
+ } else {
+ return singleResult.getLeftExprTypeBeforeCoercion();
+ }
+ }
+
+ private Expression getLeftMostExpression(BinaryExpr binaryExpr) {
+ Expression left = binaryExpr.getLeft();
+ if (left instanceof BinaryExpr) {
+ return getLeftMostExpression((BinaryExpr) left);
+ }
+ return left;
+ }
+
/*
This is the entry point for Constraint Transformation from a parsed MVEL constraint
to a Java Expression
@@ -657,17 +690,16 @@ private DrlxParseResult parseBinaryExpr(BinaryExpr binaryExpr, Class> patternT
Expression combo;
- boolean arithmeticExpr = isArithmeticOperator(operator);
boolean isBetaConstraint = right.getExpression() != null && hasDeclarationFromOtherPattern( expressionTyperContext );
boolean requiresSplit = operator == BinaryExpr.Operator.AND && binaryExpr.getRight() instanceof HalfBinaryExpr && !isBetaConstraint;
+ Type exprType = isBooleanOperator( operator ) ? boolean.class : left.getType();
+
if (equalityExpr) {
combo = getEqualityExpression( left, right, operator ).expression;
- } else if (arithmeticExpr && (left.isBigDecimal())) {
- ConstraintCompiler constraintCompiler = createConstraintCompiler(this.context, of(patternType));
- CompiledExpressionResult compiledExpressionResult = constraintCompiler.compileExpression(binaryExpr);
-
- combo = compiledExpressionResult.getExpression();
+ } else if (shouldConvertArithmeticBinaryToMethodCall(operator, left.getType(), right.getType())) {
+ combo = convertArithmeticBinaryToMethodCall(binaryExpr, of(patternType), this.context);
+ exprType = getBinaryTypeAfterConversion(left.getType(), right.getType());
} else {
if (left.getExpression() == null || right.getExpression() == null) {
return new DrlxParseFail(new ParseExpressionErrorResult(drlxExpr));
@@ -695,7 +727,7 @@ private DrlxParseResult parseBinaryExpr(BinaryExpr binaryExpr, Class> patternT
constraintType = Index.ConstraintType.FORALL_SELF_JOIN;
}
- return new SingleDrlxParseSuccess(patternType, bindingId, combo, isBooleanOperator( operator ) ? boolean.class : left.getType())
+ return new SingleDrlxParseSuccess(patternType, bindingId, combo, exprType)
.setDecodeConstraintType( constraintType )
.setUsedDeclarations( expressionTyperContext.getUsedDeclarations() )
.setUsedDeclarationsOnLeft( usedDeclarationsOnLeft )
diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expressiontyper/ExpressionTyper.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expressiontyper/ExpressionTyper.java
index 328aa5466e5..8fdfb696c46 100644
--- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expressiontyper/ExpressionTyper.java
+++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expressiontyper/ExpressionTyper.java
@@ -235,7 +235,14 @@ private Optional toTypedExpressionRec(Expression drlxExpr) {
right = coerced.getCoercedRight();
final BinaryExpr combo = new BinaryExpr(left.getExpression(), right.getExpression(), operator);
- return of(new TypedExpression(combo, left.getType()));
+
+ if (shouldConvertArithmeticBinaryToMethodCall(operator, left.getType(), right.getType())) {
+ Expression expression = convertArithmeticBinaryToMethodCall(combo, of(typeCursor), ruleContext);
+ java.lang.reflect.Type binaryType = getBinaryTypeAfterConversion(left.getType(), right.getType());
+ return of(new TypedExpression(expression, binaryType));
+ } else {
+ return of(new TypedExpression(combo, left.getType()));
+ }
}
if (drlxExpr instanceof HalfBinaryExpr) {
@@ -806,11 +813,12 @@ private TypedExpressionCursor binaryExpr(BinaryExpr binaryExpr) {
TypedExpression rightTypedExpression = right.getTypedExpression()
.orElseThrow(() -> new NoSuchElementException("TypedExpressionResult doesn't contain TypedExpression!"));
binaryExpr.setRight(rightTypedExpression.getExpression());
- java.lang.reflect.Type binaryType = getBinaryType(leftTypedExpression, rightTypedExpression, binaryExpr.getOperator());
- if (shouldConvertArithmeticBinaryToMethodCall(binaryExpr.getOperator(), binaryType)) {
+ if (shouldConvertArithmeticBinaryToMethodCall(binaryExpr.getOperator(), leftTypedExpression.getType(), rightTypedExpression.getType())) {
Expression compiledExpression = convertArithmeticBinaryToMethodCall(binaryExpr, leftTypedExpression.getOriginalPatternType(), ruleContext);
+ java.lang.reflect.Type binaryType = getBinaryTypeAfterConversion(leftTypedExpression.getType(), rightTypedExpression.getType());
return new TypedExpressionCursor(compiledExpression, binaryType);
} else {
+ java.lang.reflect.Type binaryType = getBinaryType(leftTypedExpression, rightTypedExpression, binaryExpr.getOperator());
return new TypedExpressionCursor(binaryExpr, binaryType);
}
}
@@ -819,7 +827,7 @@ private TypedExpressionCursor binaryExpr(BinaryExpr binaryExpr) {
* Converts arithmetic binary expression (including coercion) to method call using ConstraintCompiler.
* This method can be generic, so we may centralize the calls in drools-model
*/
- private static Expression convertArithmeticBinaryToMethodCall(BinaryExpr binaryExpr, Optional> originalPatternType, RuleContext ruleContext) {
+ public static Expression convertArithmeticBinaryToMethodCall(BinaryExpr binaryExpr, Optional> originalPatternType, RuleContext ruleContext) {
ConstraintCompiler constraintCompiler = createConstraintCompiler(ruleContext, originalPatternType);
CompiledExpressionResult compiledExpressionResult = constraintCompiler.compileExpression(printNode(binaryExpr));
return compiledExpressionResult.getExpression();
@@ -828,8 +836,15 @@ private static Expression convertArithmeticBinaryToMethodCall(BinaryExpr binaryE
/*
* BigDecimal arithmetic operations should be converted to method calls. We may also apply this to BigInteger.
*/
- private static boolean shouldConvertArithmeticBinaryToMethodCall(BinaryExpr.Operator operator, java.lang.reflect.Type type) {
- return isArithmeticOperator(operator) && type.equals(BigDecimal.class);
+ public static boolean shouldConvertArithmeticBinaryToMethodCall(BinaryExpr.Operator operator, java.lang.reflect.Type leftType, java.lang.reflect.Type rightType) {
+ return isArithmeticOperator(operator) && (leftType.equals(BigDecimal.class) || rightType.equals(BigDecimal.class));
+ }
+
+ /*
+ * After arithmetic to method call conversion, BigDecimal should take precedence regardless of left or right. We may also apply this to BigInteger.
+ */
+ public static java.lang.reflect.Type getBinaryTypeAfterConversion(java.lang.reflect.Type leftType, java.lang.reflect.Type rightType) {
+ return (leftType.equals(BigDecimal.class) || rightType.equals(BigDecimal.class)) ? BigDecimal.class : leftType;
}
private java.lang.reflect.Type getBinaryType(TypedExpression leftTypedExpression, TypedExpression rightTypedExpression, Operator operator) {
@@ -936,6 +951,9 @@ private void promoteBigDecimalParameters(MethodCallExpr methodCallExpr, Class[]
Expression argumentExpression = methodCallExpr.getArgument(i);
if (argumentType != actualArgumentType) {
+ // unbind the original argumentExpression first, otherwise setArgument() will remove the argumentExpression from coercedExpression.childrenNodes
+ // It will result in failing to find DrlNameExpr in AST at DrlsParseUtil.transformDrlNameExprToNameExpr()
+ methodCallExpr.replace(argumentExpression, new NameExpr("placeholder"));
Expression coercedExpression = new BigDecimalArgumentCoercion().coercedArgument(argumentType, actualArgumentType, argumentExpression);
methodCallExpr.setArgument(i, coercedExpression);
}
diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/AccumulateVisitor.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/AccumulateVisitor.java
index 746722bb7c0..7b202abedb4 100644
--- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/AccumulateVisitor.java
+++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/AccumulateVisitor.java
@@ -217,8 +217,7 @@ private Optional parseFirstParameter(PatternDescr basePattern, BaseD
} else if (accumulateFunctionParameter instanceof LiteralExpr) {
literalExprParameter(basePattern, function, functionDSL, bindingId, accumulateFunctionParameter);
} else {
- context.addCompilationError(new InvalidExpressionErrorResult("Invalid expression " + accumulateFunctionParameterStr, Optional.of(context.getRuleDescr())));
- throw new AccumulateParsingFailedException();
+ throw new AccumulateParsingFailedException("Invalid expression " + accumulateFunctionParameterStr);
}
return Optional.empty();
@@ -662,9 +661,6 @@ static class NewBinding {
private class AccumulateParsingFailedException extends RuntimeException {
- AccumulateParsingFailedException() {
- }
-
AccumulateParsingFailedException(String message) {
super(message);
}
diff --git a/drools-model/drools-model-codegen/src/main/resources/class-templates/config/RuleConfigQuarkusTemplate.java b/drools-model/drools-model-codegen/src/main/resources/class-templates/config/RuleConfigQuarkusTemplate.java
index b9850908b87..c54f3c8d7a9 100644
--- a/drools-model/drools-model-codegen/src/main/resources/class-templates/config/RuleConfigQuarkusTemplate.java
+++ b/drools-model/drools-model-codegen/src/main/resources/class-templates/config/RuleConfigQuarkusTemplate.java
@@ -18,17 +18,17 @@
*/
package $Package$;
-import javax.enterprise.inject.Instance;
+import jakarta.enterprise.inject.Instance;
import org.kie.kogito.drools.core.config.AbstractRuleConfig;
import org.kie.api.event.rule.AgendaEventListener;
import org.kie.api.event.rule.RuleRuntimeEventListener;
import org.kie.kogito.rules.RuleEventListenerConfig;
-@javax.inject.Singleton
+@jakarta.inject.Singleton
class RuleConfig extends AbstractRuleConfig implements org.kie.kogito.rules.RuleConfig {
- @javax.inject.Inject
+ @jakarta.inject.Inject
public RuleConfig(
Instance ruleEventListenerConfigs,
Instance agendaEventListeners,
diff --git a/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeQuarkusTemplate.java b/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeQuarkusTemplate.java
index 6bad1995aa1..ee69deb295e 100644
--- a/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeQuarkusTemplate.java
+++ b/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeQuarkusTemplate.java
@@ -27,7 +27,7 @@
import org.kie.api.runtime.KieRuntimeBuilder;
import org.drools.modelcompiler.KieBaseBuilder;
-@javax.enterprise.context.ApplicationScoped
+@jakarta.enterprise.context.ApplicationScoped
public class ProjectRuntime implements KieRuntimeBuilder {
private static final ProjectModel model = new ProjectModel();
diff --git a/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RestObjectMapperQuarkusTemplate.java b/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RestObjectMapperQuarkusTemplate.java
index 6bc3c5e4050..36fc0b8ec40 100644
--- a/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RestObjectMapperQuarkusTemplate.java
+++ b/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RestObjectMapperQuarkusTemplate.java
@@ -23,7 +23,7 @@
import java.io.IOException;
import com.fasterxml.jackson.databind.JavaType;
-import javax.inject.Singleton;
+import jakarta.inject.Singleton;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.ObjectMapper;
diff --git a/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RestQueryJavaTemplate.java b/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RestQueryJavaTemplate.java
index 3cd2a6b68d1..c441dfd850e 100644
--- a/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RestQueryJavaTemplate.java
+++ b/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RestQueryJavaTemplate.java
@@ -19,11 +19,11 @@
import java.util.List;
import java.util.Map;
-import javax.ws.rs.Consumes;
-import javax.ws.rs.POST;
-import javax.ws.rs.Path;
-import javax.ws.rs.Produces;
-import javax.ws.rs.core.MediaType;
+import jakarta.ws.rs.Consumes;
+import jakarta.ws.rs.POST;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.Produces;
+import jakarta.ws.rs.core.MediaType;
import org.drools.ruleunits.api.RuleUnit;
import org.drools.ruleunits.api.RuleUnitInstance;
diff --git a/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RestQueryQuarkusTemplate.java b/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RestQueryQuarkusTemplate.java
index 338697d185f..7780623f58b 100644
--- a/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RestQueryQuarkusTemplate.java
+++ b/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RestQueryQuarkusTemplate.java
@@ -19,11 +19,11 @@
import java.util.List;
import java.util.Map;
-import javax.ws.rs.Consumes;
-import javax.ws.rs.POST;
-import javax.ws.rs.Path;
-import javax.ws.rs.Produces;
-import javax.ws.rs.core.MediaType;
+import jakarta.ws.rs.Consumes;
+import jakarta.ws.rs.POST;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.Produces;
+import jakarta.ws.rs.core.MediaType;
import org.drools.ruleunits.api.RuleUnit;
import org.drools.ruleunits.api.RuleUnitInstance;
@@ -32,7 +32,7 @@
@Path("/$endpointName$")
public class $unit$Query$name$Endpoint {
- @javax.inject.Inject
+ @jakarta.inject.Inject
RuleUnit<$UnitType$> ruleUnit;
public $unit$Query$name$Endpoint() { }
diff --git a/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitQuarkusTemplate.java b/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitQuarkusTemplate.java
index faf8610793a..aabad8800ea 100644
--- a/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitQuarkusTemplate.java
+++ b/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitQuarkusTemplate.java
@@ -28,7 +28,7 @@
import org.drools.ruleunits.impl.ReteEvaluatorBasedRuleUnitInstance;
import org.drools.ruleunits.impl.sessions.RuleUnitExecutorImpl;
-@javax.enterprise.context.ApplicationScoped
+@jakarta.enterprise.context.ApplicationScoped
public class CLASS_NAME extends AbstractRuleUnit {
private static final InternalRuleBase ruleBase = KieBaseBuilder.createKieBaseFromModel(new RULE_UNIT_MODEL(), $KieBaseOptions$);
@@ -43,8 +43,8 @@ public CLASS_NAME() {
this((RuleUnits) null);
}
- @javax.inject.Inject
- public CLASS_NAME(javax.enterprise.inject.Instance ruleUnits) {
+ @jakarta.inject.Inject
+ public CLASS_NA(jakarta.enterprise.inject.Instance ruleUnits) {
this(ruleUnits == null || ruleUnits.isUnsatisfied() ? AbstractRuleUnits.DummyRuleUnits.INSTANCE : ruleUnits.get());
}
diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/GetterOverloadingTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/GetterOverloadingTest.java
index 0eb78b22b49..5c72aa7700a 100644
--- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/GetterOverloadingTest.java
+++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/GetterOverloadingTest.java
@@ -61,7 +61,7 @@ public void testDuplicateDifferentPropertyInClassHierarchy() {
KieBuilder kieBuilder = createKieBuilder(str);
List messages = kieBuilder.getResults().getMessages(Level.ERROR);
- assertThat(messages.get(0).getText()).contains("Imcompatible Getter overloading detected");
+ assertThat(messages.get(0).getText()).contains("Incompatible Getter overloading detected");
}
public static class ClassA {
diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/IndexTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/IndexTest.java
index daf93b0ed47..67b8177bd58 100644
--- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/IndexTest.java
+++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/IndexTest.java
@@ -60,7 +60,7 @@ public void testBetaIndexOnDeclaration() {
ObjectTypeNode otn = getObjectTypeNodeForClass( ksession, Person.class );
BetaNode beta = (BetaNode) otn.getObjectSinkPropagator().getSinks()[0];
IndexableConstraint betaConstraint = (IndexableConstraint) beta.getConstraints()[0];
- assertThat(betaConstraint.getIndexExtractor()).isNotNull();
+ assertThat(betaConstraint.getLeftIndexExtractor()).isNotNull();
ksession.insert( "test" );
ksession.insert( new Person("Sofia", 4) );
diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MvelDialectTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MvelDialectTest.java
index b542ac41c5c..087dece997d 100644
--- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MvelDialectTest.java
+++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MvelDialectTest.java
@@ -1775,4 +1775,123 @@ public void drools_fieldAccess() {
assertThat(results.get("knowledgeRuntime")).isInstanceOf(KieRuntime.class);
assertThat(results.get("kieRuntime")).isInstanceOf(KieRuntime.class);
}
+
+ @Test
+ public void integerToBigDecimalBindVariableCoercion_shouldNotCoerceToInteger() {
+ // DROOLS-7540
+ String str = "package com.example.reproducer\n" +
+ "import " + Person.class.getCanonicalName() + ";\n" +
+ "global java.util.List results;\n" +
+ "rule R\n" +
+ " dialect \"mvel\"\n" +
+ " when\n" +
+ " Person($money : money)\n" +
+ " then\n" +
+ " $money = 5;\n" +
+ " results.add($money);\n" +
+ "end";
+
+ KieSession ksession = getKieSession(str);
+ List results = new ArrayList<>();
+ ksession.setGlobal("results", results);
+
+ Person person = new Person("John");
+ person.setMoney(new BigDecimal("0"));
+ ksession.insert(person);
+ ksession.fireAllRules();
+
+ assertThat(results.get(0)).isInstanceOf(BigDecimal.class);
+ assertThat(results).contains(new BigDecimal("5"));
+ }
+
+ @Test
+ public void integerToBigDecimalVariableCoercionTwice_shouldNotCoerceToInteger() {
+ // DROOLS-7540
+ String str = "package com.example.reproducer\n" +
+ "import " + Person.class.getCanonicalName() + ";\n" +
+ "import " + BigDecimal.class.getCanonicalName() + ";\n" +
+ "global java.util.List results;\n" +
+ "rule R\n" +
+ " dialect \"mvel\"\n" +
+ " when\n" +
+ " Person()\n" +
+ " then\n" +
+ " BigDecimal $var1 = 5;\n" +
+ " $var1 = 5;\n" + // This causes the issue
+ " results.add($var1);\n" +
+ "end";
+
+ KieSession ksession = getKieSession(str);
+ List results = new ArrayList<>();
+ ksession.setGlobal("results", results);
+
+ Person person = new Person("John");
+ person.setMoney(new BigDecimal("0"));
+ ksession.insert(person);
+ ksession.fireAllRules();
+
+ assertThat(results.get(0)).isInstanceOf(BigDecimal.class);
+ assertThat(results).contains(new BigDecimal("5"));
+ }
+
+ @Test
+ public void integerToBigDecimalBindVariableCoercionAndAddition_shouldNotThrowClassCastException() {
+ // DROOLS-7540
+ String str = "package com.example.reproducer\n" +
+ "import " + Person.class.getCanonicalName() + ";\n" +
+ "global java.util.List results;\n" +
+ "rule R\n" +
+ " dialect \"mvel\"\n" +
+ " when\n" +
+ " Person($money : money, $otherBigDecimalField : otherBigDecimalField)\n" +
+ " then\n" +
+ " $money = 5;\n" +
+ " $total = $money + $otherBigDecimalField;\n" +
+ " results.add($total);\n" +
+ "end";
+
+ KieSession ksession = getKieSession(str);
+ List results = new ArrayList<>();
+ ksession.setGlobal("results", results);
+
+ Person person = new Person("John");
+ person.setMoney(new BigDecimal("0"));
+ person.setOtherBigDecimalField(new BigDecimal("10"));
+ ksession.insert(person);
+ ksession.fireAllRules();
+
+ assertThat(results).contains(new BigDecimal("15"));
+ }
+
+ @Test
+ public void integerToBigDecimalVaribleSetFromBindVariableCoercionAndAddition_shouldNotThrowClassCastException() {
+ // DROOLS-7540
+ String str = "package com.example.reproducer\n" +
+ "import " + Person.class.getCanonicalName() + ";\n" +
+ "import " + BigDecimal.class.getCanonicalName() + ";\n" +
+ "global java.util.List results;\n" +
+ "rule R\n" +
+ " dialect \"mvel\"\n" +
+ " when\n" +
+ " Person($money : money, $otherBigDecimalField : otherBigDecimalField)\n" +
+ " then\n" +
+ " BigDecimal $var1 = $money;\n" +
+ " BigDecimal $var2 = $otherBigDecimalField;\n" +
+ " $var1 = 5;\n" +
+ " BigDecimal $total = $var1 + $var2;\n" +
+ " results.add($total);\n" +
+ "end";
+
+ KieSession ksession = getKieSession(str);
+ List results = new ArrayList<>();
+ ksession.setGlobal("results", results);
+
+ Person person = new Person("John");
+ person.setMoney(new BigDecimal("0"));
+ person.setOtherBigDecimalField(new BigDecimal("10"));
+ ksession.insert(person);
+ ksession.fireAllRules();
+
+ assertThat(results).contains(new BigDecimal("15"));
+ }
}
diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/assembler/TestAssembler.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/assembler/TestAssembler.java
index 18098808eda..d1151a07dd5 100644
--- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/assembler/TestAssembler.java
+++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/assembler/TestAssembler.java
@@ -56,18 +56,13 @@ public void addResourceAfterRules(Object kbuilder, Resource resource, ResourceTy
}
- public static final KnowledgeBuilderResult AFTER_RULES = new DroolsError(null) {
+ public static final KnowledgeBuilderResult AFTER_RULES = new DroolsError( "AFTER_RULES") {
@Override
public ResultSeverity getSeverity() {
return ResultSeverity.WARNING;
}
- @Override
- public String getMessage() {
- return "AFTER_RULES";
- }
-
@Override
public int[] getLines() {
return new int[0];
@@ -75,18 +70,13 @@ public int[] getLines() {
};
- public static final KnowledgeBuilderResult BEFORE_RULES = new DroolsError(null) {
+ public static final KnowledgeBuilderResult BEFORE_RULES = new DroolsError("BEFORE_RULES") {
@Override
public ResultSeverity getSeverity() {
return ResultSeverity.WARNING;
}
- @Override
- public String getMessage() {
- return "BEFORE_RULES";
- }
-
@Override
public int[] getLines() {
return new int[0];
diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/bigdecimaltest/BigDecimalTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/bigdecimaltest/BigDecimalTest.java
index 0cc90ca3179..407462de392 100644
--- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/bigdecimaltest/BigDecimalTest.java
+++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/bigdecimaltest/BigDecimalTest.java
@@ -772,4 +772,45 @@ public void bigDecimalCoercionInNestedMethodArgument_shouldNotFailToBuild() {
public static String intToString(int value) {
return Integer.toString(value);
}
+
+ @Test
+ public void bindVariableToBigDecimalCoercion2Operands_shouldBindCorrectResult() {
+ bindVariableToBigDecimalCoercion("$var : (1000 * value1)");
+ }
+
+ @Test
+ public void bindVariableToBigDecimalCoercion3Operands_shouldBindCorrectResult() {
+ bindVariableToBigDecimalCoercion("$var : (100000 * value1 / 100)");
+ }
+
+ @Test
+ public void bindVariableToBigDecimalCoercion3OperandsWithParentheses_shouldBindCorrectResult() {
+ bindVariableToBigDecimalCoercion("$var : ((100000 * value1) / 100)");
+ }
+
+ private void bindVariableToBigDecimalCoercion(String binding) {
+ // KIE-775
+ String str =
+ "package org.drools.modelcompiler.bigdecimals\n" +
+ "import " + BDFact.class.getCanonicalName() + ";\n" +
+ "global java.util.List result;\n" +
+ "rule R1\n" +
+ " when\n" +
+ " BDFact( " + binding + " )\n" +
+ " then\n" +
+ " result.add($var);\n" +
+ "end";
+
+ KieSession ksession = getKieSession(str);
+ List result = new ArrayList<>();
+ ksession.setGlobal("result", result);
+
+ BDFact bdFact = new BDFact();
+ bdFact.setValue1(new BigDecimal("80"));
+
+ ksession.insert(bdFact);
+ ksession.fireAllRules();
+
+ assertThat(result).contains(new BigDecimal("80000"));
+ }
}
diff --git a/drools-model/drools-model-compiler/pom.xml b/drools-model/drools-model-compiler/pom.xml
index 37904eb7c5a..c7128d54f13 100644
--- a/drools-model/drools-model-compiler/pom.xml
+++ b/drools-model/drools-model-compiler/pom.xml
@@ -27,7 +27,7 @@
org.drools
drools-model
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
Drools :: Model :: Compiler
diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/AbstractConstraint.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/AbstractConstraint.java
index b61d50a693d..598ffb19656 100644
--- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/AbstractConstraint.java
+++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/AbstractConstraint.java
@@ -18,11 +18,12 @@
*/
package org.drools.modelcompiler.constraints;
+import org.drools.base.rule.ContextEntry;
import org.drools.base.rule.IndexableConstraint;
import org.drools.base.rule.IntervalProviderConstraint;
import org.drools.base.rule.MutableTypeConstraint;
-public abstract class AbstractConstraint extends MutableTypeConstraint implements IndexableConstraint, IntervalProviderConstraint {
+public abstract class AbstractConstraint extends MutableTypeConstraint implements IndexableConstraint, IntervalProviderConstraint {
@Override
public abstract AbstractConstraint clone();
}
diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/CombinedConstraint.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/CombinedConstraint.java
index 55c9e0e0245..cafb93a1da0 100644
--- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/CombinedConstraint.java
+++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/CombinedConstraint.java
@@ -27,8 +27,9 @@
import org.drools.base.rule.Declaration;
import org.drools.base.rule.accessor.FieldValue;
import org.drools.base.rule.accessor.ReadAccessor;
+import org.drools.base.rule.accessor.TupleValueExtractor;
import org.drools.base.time.Interval;
-import org.drools.base.util.FieldIndex;
+import org.drools.base.util.IndexedValueReader;
import org.drools.base.util.index.ConstraintTypeOperator;
import org.drools.model.Constraint;
import org.drools.modelcompiler.constraints.LambdaConstraint.LambdaContextEntry;
@@ -70,7 +71,7 @@ public FieldValue getField() {
}
@Override
- public FieldIndex getFieldIndex() {
+ public IndexedValueReader getFieldIndex() {
throw new UnsupportedOperationException();
}
@@ -80,7 +81,12 @@ public ReadAccessor getFieldExtractor() {
}
@Override
- public Declaration getIndexExtractor() {
+ public TupleValueExtractor getRightIndexExtractor() {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
+ public Declaration getLeftIndexExtractor() {
throw new UnsupportedOperationException();
}
@@ -169,7 +175,7 @@ public boolean isAllowedCachedRight(BaseTuple tuple, ContextEntry context) {
}
@Override
- public ContextEntry createContextEntry() {
+ public ContextEntry createContext() {
return new LambdaContextEntry();
}
}
diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaConstraint.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaConstraint.java
index 39266e1fdfa..76cb1036c5a 100644
--- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaConstraint.java
+++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaConstraint.java
@@ -37,7 +37,7 @@
import org.drools.base.rule.accessor.ReadAccessor;
import org.drools.base.rule.accessor.TupleValueExtractor;
import org.drools.base.time.Interval;
-import org.drools.base.util.FieldIndex;
+import org.drools.base.util.IndexedValueReader;
import org.drools.base.util.index.ConstraintTypeOperator;
import org.drools.util.bitmask.BitMask;
import org.drools.model.AlphaIndex;
@@ -66,7 +66,9 @@ public class LambdaConstraint extends AbstractConstraint {
private FieldValue field;
private ReadAccessor readAccessor;
- private AbstractIndexValueExtractor indexExtractor;
+
+ private TupleValueExtractor rightIndexExtractor;
+ private AbstractIndexValueExtractor leftIndexExtractor;
public LambdaConstraint(ConstraintEvaluator evaluator,
PredicateInformation predicateInformation) {
@@ -83,16 +85,43 @@ public ConstraintEvaluator getEvaluator() {
return evaluator;
}
+ public static class LambdaRightTupleValueExtractor implements TupleValueExtractor {
+ private ValueType valueType;
+
+ private Function1 extractor;
+
+ public LambdaRightTupleValueExtractor(ValueType valueType, Function1 extractor) {
+ this.valueType = valueType;
+ this.extractor = extractor;
+ }
+
+ @Override
+ public ValueType getValueType() {
+ return valueType;
+ }
+
+ @Override
+ public Object getValue(ValueResolver valueResolver, BaseTuple tuple) {
+ return extractor.apply(tuple.getFactHandle().getObject());
+ }
+
+ @Override
+ public TupleValueExtractor clone() {
+ return new LambdaRightTupleValueExtractor(valueType, extractor);
+ }
+ }
+
private void initIndexes() {
Index index = evaluator.getIndex();
if (index != null) {
- this.readAccessor = new LambdaReadAccessor( index.getIndexId(), index.getIndexedClass(), index.getLeftOperandExtractor() );
switch (index.getIndexType()) {
case ALPHA:
this.field = new ObjectFieldImpl( ( ( AlphaIndex ) index).getRightValue() );
+ this.readAccessor = new LambdaReadAccessor(index.getIndexId(), index.getIndexedClass(), index.getLeftOperandExtractor());
break;
case BETA:
- this.indexExtractor = initBetaIndex( ( BetaIndexN ) index );
+ this.leftIndexExtractor = initBetaIndex( ( BetaIndexN ) index );
+ this.rightIndexExtractor = new LambdaRightTupleValueExtractor(ValueType.determineValueType(index.getIndexedClass()), index.getLeftOperandExtractor());
break;
}
}
@@ -129,8 +158,8 @@ public Declaration[] getRequiredDeclarations() {
@Override
public void replaceDeclaration(Declaration oldDecl, Declaration newDecl) {
evaluator.replaceDeclaration( oldDecl, newDecl );
- if ( indexExtractor != null ) {
- indexExtractor.replaceDeclaration( oldDecl, newDecl );
+ if ( leftIndexExtractor != null ) {
+ leftIndexExtractor.replaceDeclaration( oldDecl, newDecl );
}
}
@@ -207,7 +236,7 @@ public boolean isAllowedCachedRight(BaseTuple tuple, ContextEntry context) {
}
@Override
- public ContextEntry createContextEntry() {
+ public ContextEntry createContext() {
return new LambdaContextEntry();
}
@@ -251,8 +280,8 @@ public FieldValue getField() {
}
@Override
- public FieldIndex getFieldIndex() {
- return new FieldIndex(readAccessor, indexExtractor );
+ public IndexedValueReader getFieldIndex() {
+ return new IndexedValueReader(leftIndexExtractor, rightIndexExtractor);
}
@Override
@@ -261,8 +290,13 @@ public ReadAccessor getFieldExtractor() {
}
@Override
- public TupleValueExtractor getIndexExtractor() {
- return indexExtractor;
+ public TupleValueExtractor getRightIndexExtractor() {
+ return rightIndexExtractor;
+ }
+
+ @Override
+ public TupleValueExtractor getLeftIndexExtractor() {
+ return leftIndexExtractor;
}
@Override
diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/UnificationConstraint.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/UnificationConstraint.java
index f20a7a9107f..d9a7f76f36b 100644
--- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/UnificationConstraint.java
+++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/UnificationConstraint.java
@@ -26,7 +26,9 @@
import org.drools.base.rule.MutableTypeConstraint;
import org.drools.base.rule.accessor.FieldValue;
import org.drools.base.rule.accessor.ReadAccessor;
-import org.drools.base.util.FieldIndex;
+import org.drools.base.rule.accessor.RightTupleValueExtractor;
+import org.drools.base.rule.accessor.TupleValueExtractor;
+import org.drools.base.util.IndexedValueReader;
import org.drools.base.util.index.ConstraintTypeOperator;
import org.drools.core.base.DroolsQueryImpl;
import org.drools.model.Index;
@@ -34,26 +36,26 @@
import org.kie.api.KieBaseConfiguration;
import org.kie.api.runtime.rule.FactHandle;
-public class UnificationConstraint extends MutableTypeConstraint implements IndexableConstraint {
+public class UnificationConstraint extends MutableTypeConstraint implements IndexableConstraint {
- private Declaration indexingDeclaration;
+ private Declaration leftIndexingDeclaration;
private final ReadAccessor readAccessor;
private final ConstraintEvaluator evaluator;
private boolean unification = true;
- public UnificationConstraint( Declaration indexingDeclaration ) {
- this( indexingDeclaration, null);
+ public UnificationConstraint( Declaration leftIndexingDeclaration) {
+ this(leftIndexingDeclaration, null);
}
- public UnificationConstraint( Declaration indexingDeclaration, ConstraintEvaluator evaluator ) {
- this.indexingDeclaration = indexingDeclaration;
- this.evaluator = evaluator;
+ public UnificationConstraint(Declaration leftIndexingDeclaration, ConstraintEvaluator evaluator) {
+ this.leftIndexingDeclaration = leftIndexingDeclaration;
+ this.evaluator = evaluator;
if (evaluator != null) {
Index index = evaluator.getIndex();
this.readAccessor = new LambdaReadAccessor( index.getIndexId(), index.getIndexedClass(), index.getLeftOperandExtractor() );
} else {
- this.readAccessor = new LambdaReadAccessor( indexingDeclaration.getDeclarationClass(), x -> x );
+ this.readAccessor = new LambdaReadAccessor(leftIndexingDeclaration.getDeclarationClass(), x -> x );
}
}
@@ -83,8 +85,8 @@ public FieldValue getField() {
}
@Override
- public FieldIndex getFieldIndex() {
- return new FieldIndex(readAccessor, indexingDeclaration );
+ public IndexedValueReader getFieldIndex() {
+ return new IndexedValueReader(leftIndexingDeclaration, getRightIndexExtractor());
}
@Override
@@ -93,19 +95,24 @@ public ReadAccessor getFieldExtractor() {
}
@Override
- public Declaration getIndexExtractor() {
- return indexingDeclaration;
+ public TupleValueExtractor getRightIndexExtractor() {
+ return new RightTupleValueExtractor(readAccessor);
+ }
+
+ @Override
+ public Declaration getLeftIndexExtractor() {
+ return leftIndexingDeclaration;
}
@Override
public Declaration[] getRequiredDeclarations() {
- return new Declaration[] { indexingDeclaration };
+ return new Declaration[] {leftIndexingDeclaration};
}
@Override
public void replaceDeclaration( Declaration oldDecl, Declaration newDecl ) {
- if (indexingDeclaration == oldDecl) {
- indexingDeclaration = newDecl;
+ if (leftIndexingDeclaration == oldDecl) {
+ leftIndexingDeclaration = newDecl;
}
if (evaluator != null) {
evaluator.replaceDeclaration( oldDecl, newDecl );
@@ -114,7 +121,7 @@ public void replaceDeclaration( Declaration oldDecl, Declaration newDecl ) {
@Override
public MutableTypeConstraint clone() {
- return new UnificationConstraint( indexingDeclaration, evaluator );
+ return new UnificationConstraint(leftIndexingDeclaration, evaluator );
}
@Override
@@ -142,18 +149,18 @@ private boolean evaluateUnification(FactHandle handle, BaseTuple tuple, ValueRes
return evaluator.evaluate(handle, tuple, reteEvaluator);
}
DroolsQueryImpl query = (DroolsQueryImpl) tuple.getObject(0);
- if (query.getVariables()[indexingDeclaration.getExtractor().getIndex()] != null) {
+ if (query.getVariables()[leftIndexingDeclaration.getExtractor().getIndex()] != null) {
return true;
}
if (evaluator != null) {
return evaluator.evaluate(handle, tuple, reteEvaluator);
}
- Object argument = indexingDeclaration.getValue( null, query );
+ Object argument = leftIndexingDeclaration.getValue(null, query);
return handle.getObject().equals( argument );
}
@Override
- public ContextEntry createContextEntry() {
+ public ContextEntry createContext() {
return new LambdaContextEntry();
}
}
diff --git a/drools-model/drools-mvel-compiler/pom.xml b/drools-model/drools-mvel-compiler/pom.xml
index 4ffd852c401..7bb56461fac 100644
--- a/drools-model/drools-mvel-compiler/pom.xml
+++ b/drools-model/drools-mvel-compiler/pom.xml
@@ -27,7 +27,7 @@
org.drools
drools-model
- 8.45.0-SNAPSHOT
+ 999-SNAPSHOT
Drools :: MVEL Compiler
diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/MethodCallExprVisitor.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/MethodCallExprVisitor.java
index 4d0b38ed080..ab007da9411 100644
--- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/MethodCallExprVisitor.java
+++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/MethodCallExprVisitor.java
@@ -18,28 +18,32 @@
*/
package org.drools.mvelcompiler;
-import java.lang.reflect.Method;
-import java.lang.reflect.Type;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-import java.util.Optional;
-import java.util.stream.Collectors;
-
import com.github.javaparser.ast.Node;
+import com.github.javaparser.ast.NodeList;
import com.github.javaparser.ast.expr.Expression;
import com.github.javaparser.ast.expr.MethodCallExpr;
-import org.drools.util.MethodUtils;
+import com.github.javaparser.utils.Pair;
+import org.drools.mvel.parser.ast.expr.ListCreationLiteralExpression;
+import org.drools.mvel.parser.ast.expr.MapCreationLiteralExpression;
import org.drools.mvel.parser.ast.visitor.DrlGenericVisitor;
import org.drools.mvelcompiler.ast.MethodCallExprT;
import org.drools.mvelcompiler.ast.TypedExpression;
import org.drools.mvelcompiler.context.DeclaredFunction;
import org.drools.mvelcompiler.context.MvelCompilerContext;
-import org.drools.util.ClassUtils;
+import org.drools.mvelcompiler.util.MethodResolutionUtils;
+import org.drools.mvelcompiler.util.VisitorContext;
+
+import java.lang.reflect.Method;
+import java.lang.reflect.Type;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
import static org.drools.util.StreamUtils.optionalToStream;
-public class MethodCallExprVisitor implements DrlGenericVisitor {
+public class MethodCallExprVisitor implements DrlGenericVisitor {
final RHSPhase parentVisitor;
final MvelCompilerContext mvelCompilerContext;
@@ -50,24 +54,18 @@ public MethodCallExprVisitor(RHSPhase parentVisitor, MvelCompilerContext mvelCom
}
@Override
- public TypedExpression defaultMethod(Node n, RHSPhase.Context context) {
+ public TypedExpression defaultMethod(Node n, VisitorContext context) {
return n.accept(parentVisitor, context);
}
@Override
- public TypedExpression visit(MethodCallExpr n, RHSPhase.Context arg) {
- Optional scope = n.getScope().map(s -> s.accept(this, arg));
- TypedExpression name = n.getName().accept(this, new RHSPhase.Context(scope.orElse(null)));
- final List arguments = new ArrayList<>(n.getArguments().size());
- for (Expression child : n.getArguments()) {
- TypedExpression a = child.accept(this, arg);
- arguments.add(a);
- }
-
- Class>[] argumentsTypes = parametersType(arguments);
-
- return parseMethodFromDeclaredFunction(n, arguments)
- .orElseGet(() -> parseMethod(n, scope, name, arguments, argumentsTypes));
+ public TypedExpression visit(final MethodCallExpr n, final VisitorContext arg) {
+ final Optional scope = n.getScope().map(s -> s.accept(this, arg));
+ final TypedExpression name = n.getName().accept(this, new VisitorContext(scope.orElse(null)));
+ final Pair, List> typedArgumentsResult =
+ MethodResolutionUtils.getTypedArgumentsWithEmptyCollectionArgumentDetection(n.getArguments(), this, arg);
+ return parseMethodFromDeclaredFunction(n, typedArgumentsResult.a)
+ .orElseGet(() -> parseMethod(n, scope, name, typedArgumentsResult.a, typedArgumentsResult.b));
}
private Optional parseMethodFromDeclaredFunction(MethodCallExpr n, List arguments) {
@@ -89,43 +87,21 @@ private MethodCallExprT parseMethod(MethodCallExpr n,
Optional scope,
TypedExpression name,
List arguments,
- Class>[] argumentsType) {
- Optional method = scope.flatMap(TypedExpression::getType)
- .>map(ClassUtils::classFromType)
- .map(scopeClazz -> MethodUtils.findMethod(scopeClazz, n.getNameAsString(), argumentsType));
-
- if (method.isEmpty()) {
- method = mvelCompilerContext.getRootPattern()
- .map(scopeClazz -> MethodUtils.findMethod(scopeClazz, n.getNameAsString(), argumentsType));
- if(method.isPresent()) {
- scope = mvelCompilerContext.createRootTypePrefix();
- }
+ List emptyCollectionArgumentIndexes) {
+ Pair, Optional> resolveMethodResult =
+ MethodResolutionUtils.resolveMethod(n, mvelCompilerContext, scope, arguments);
+ // This is a workaround for mvel empty list and map ambiguity, please see the description in getTypedArguments() method.
+ if (resolveMethodResult.a.isEmpty() && !emptyCollectionArgumentIndexes.isEmpty()) {
+ resolveMethodResult = MethodResolutionUtils.resolveMethodWithEmptyCollectionArguments(n, mvelCompilerContext, resolveMethodResult.b, arguments, emptyCollectionArgumentIndexes);
}
-
- if (method.isEmpty()) {
- method = mvelCompilerContext.findStaticMethod(n.getNameAsString());
- }
-
- Optional finalMethod = method;
- Optional