Class ModifyHandler

    • Constructor Detail

      • ModifyHandler

        public ModifyHandler​(String factClassName,
                             boolean alphaNetContainsHashedField)
    • Method Detail

      • arguments

        protected com.github.javaparser.ast.NodeList<com.github.javaparser.ast.expr.Expression> arguments()
        Specified by:
        arguments in class PropagatorCompilerHandler
      • getVariableType

        public static Class<?> getVariableType​(org.drools.core.reteoo.AlphaNode alphaNode)
      • getVariableType

        public static Class<?> getVariableType​(org.drools.core.reteoo.Sink sink)
      • sinkCanBeInlined

        public static boolean sinkCanBeInlined​(org.drools.core.reteoo.Sink sink)
      • getVariableName

        protected static String getVariableName​(org.drools.core.reteoo.AlphaNode alphaNode)
      • getContextVariableName

        protected String getContextVariableName​(org.drools.core.reteoo.AlphaNode alphaNode)
      • getVariableName

        protected static String getVariableName​(org.drools.core.reteoo.Sink sink)
      • getVariableName

        protected String getVariableName()
      • getVariableName

        protected static String getVariableName​(Class<?> clazz,
                                                int nodeId)
        Returns a variable name based on the simple name of the specified class appended with the specified nodeId.
        Parameters:
        clazz - class whose simple name is lowercased and user as the prefix of the variable name
        nodeId - id of org.kie.common.NetworkNode
        Returns:
        variable name
        See Also:
        Class.getSimpleName()
      • getAlphaNodeVariableName

        protected String getAlphaNodeVariableName​(org.drools.core.reteoo.AlphaNode alphaNode)
      • getRangeIndexVariableName

        protected String getRangeIndexVariableName​(org.drools.core.util.index.AlphaRangeIndex alphaRangeIndex,
                                                   int minId)
      • getMinIdFromRangeIndex

        protected int getMinIdFromRangeIndex​(org.drools.core.util.index.AlphaRangeIndex alphaRangeIndex)