Class JRFillVariable

    • Method Detail

      • reset

        protected void reset()
      • getName

        public String getName()
        Description copied from interface: JRVariable
        Returns the name of the variable. Since all variables are stored in a map, the variable names are the keys in the map.
        Specified by:
        getName in interface JRVariable
        Returns:
        a string containing the variable name
      • setDescription

        public void setDescription​(String description)
        Description copied from interface: JRVariable
        Sets the variable description.
        Specified by:
        setDescription in interface JRVariable
      • getValueClass

        public Class<?> getValueClass()
        Description copied from interface: JRVariable
        Returns the class of the variable value. Any class is allowed as long as it is in the classpath at compile and run time.
        Specified by:
        getValueClass in interface JRVariable
        Returns:
        a Class instance representing the variable value class
      • getExpression

        public JRExpression getExpression()
        Description copied from interface: JRVariable
        Returns the main expression for this variable. The expression must be numeric for certain calculation types.
        Specified by:
        getExpression in interface JRVariable
        Returns:
        a JRExpression instance containing the expression.
      • getInitialValueExpression

        public JRExpression getInitialValueExpression()
        Description copied from interface: JRVariable
        Returns the initial value expression for this variable. The expression must be numeric for certain calculation types.
        Specified by:
        getInitialValueExpression in interface JRVariable
        Returns:
        a JRExpression instance containing the initial expression.
      • getOldValue

        public Object getOldValue()
      • setOldValue

        public void setOldValue​(Object oldValue)
      • getEstimatedValue

        public Object getEstimatedValue()
      • setEstimatedValue

        public void setEstimatedValue​(Object estimatedValue)
      • getIncrementedValue

        public Object getIncrementedValue()
        Description copied from interface: JRCalculable
        Returns the incremented value of the calculable object.
        Specified by:
        getIncrementedValue in interface JRCalculable
        Returns:
        the incremented value
      • setIncrementedValue

        public void setIncrementedValue​(Object incrementedValue)
      • getPreviousIncrementedValue

        public Object getPreviousIncrementedValue()
      • setPreviousIncrementedValue

        public void setPreviousIncrementedValue​(Object previousIncrementedValue)
      • getValue

        public Object getValue()
        Description copied from interface: JRCalculable
        Returns the value of the calculable object.
        Specified by:
        getValue in interface JRCalculable
        Returns:
        the value
      • setValue

        public void setValue​(Object value)
      • isInitialized

        public boolean isInitialized()
        Description copied from interface: JRCalculable
        Returns true if and only if the calculable object was only initialized and not incremented.
        Specified by:
        isInitialized in interface JRCalculable
        Returns:
        true if and only if the calculable object was only initialized and not incremented
      • setHelperVariable

        public JRFillVariable setHelperVariable​(JRFillVariable helperVariable,
                                                byte type)
        Sets a helper variable.
        Parameters:
        helperVariable - the helper variable
        type - the helper type
        Returns:
        the previous helper variable for the type
      • getHelperVariable

        public JRCalculable getHelperVariable​(byte type)
        Returns a helper variable.
        Specified by:
        getHelperVariable in interface JRCalculable
        Parameters:
        type - the helper type
        Returns:
        the helper variable for the specified type
      • getValue

        public Object getValue​(byte evaluation)
      • overwriteValue

        public void overwriteValue​(Object newValue,
                                   byte evaluation)
      • restoreValue

        public void restoreValue​(byte evaluation)
      • getPreviousOldValue

        public Object getPreviousOldValue()
      • setPreviousOldValue

        public void setPreviousOldValue​(Object previousOldValue)