Class ModifyHandler

    • Field Detail

      • RANGE_INDEX_VARIABLE_NAME_PREFIX

        protected static final java.lang.String RANGE_INDEX_VARIABLE_NAME_PREFIX
        See Also:
        Constant Field Values
    • Constructor Detail

      • ModifyHandler

        public ModifyHandler​(java.lang.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 java.lang.Class<?> getVariableType​(org.drools.core.reteoo.AlphaNode alphaNode)
      • getVariableType

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

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

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

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

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

        protected java.lang.String getVariableName()
      • getVariableName

        protected static java.lang.String getVariableName​(java.lang.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 NetworkNode
        Returns:
        variable name
        See Also:
        Class.getSimpleName()
      • getAlphaNodeVariableName

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

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

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