Package ognl

Class EvaluationPool


  • public final class EvaluationPool
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      EvaluationPool()  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      Evaluation create​(SimpleNode node, java.lang.Object source)
      Returns an Evaluation that contains the node, source and whether it is a set operation.
      Evaluation create​(SimpleNode node, java.lang.Object source, boolean setOperation)
      Returns an Evaluation that contains the node, source and whether it is a set operation.
      int getCreatedCount()
      Deprecated.
      since 3.4.6, forRemoval = true, object-pooling now relies on the jvm garbage collection
      int getRecoveredCount()
      Deprecated.
      since 3.4.6, forRemoval = true, object-pooling now relies on the jvm garbage collection
      int getRecycledCount()
      Deprecated.
      since 3.4.6, forRemoval = true, object-pooling now relies on the jvm garbage collection
      int getSize()
      Deprecated.
      since 3.4.6, forRemoval = true, object-pooling now relies on the jvm garbage collection
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EvaluationPool

        public EvaluationPool()
    • Method Detail

      • create

        public Evaluation create​(SimpleNode node,
                                 java.lang.Object source)
        Returns an Evaluation that contains the node, source and whether it is a set operation. If there are no Evaluation objects in the pool one is created and returned.
        Parameters:
        node - a SimpleNode for an Evaluation to be created.
        source - a source Object for an Evaluation to be created.
        Returns:
        an Evaluation based on the parameters.
      • create

        public Evaluation create​(SimpleNode node,
                                 java.lang.Object source,
                                 boolean setOperation)
        Returns an Evaluation that contains the node, source and whether it is a set operation.
        Parameters:
        node - a SimpleNode for an Evaluation to be created.
        source - a source Object for an Evaluation to be created.
        setOperation - true to identify the Evaluation to be created as a set operation, false to identify it as a get operation.
        Returns:
        an Evaluation based on the parameters.
      • getSize

        @Deprecated
        public int getSize()
        Deprecated.
        since 3.4.6, forRemoval = true, object-pooling now relies on the jvm garbage collection
        Returns the number of items in the pool
        Returns:
        the size of the Evaluation pool (always 0).
      • getCreatedCount

        @Deprecated
        public int getCreatedCount()
        Deprecated.
        since 3.4.6, forRemoval = true, object-pooling now relies on the jvm garbage collection
        Returns the number of items this pool has created since it's construction.
        Returns:
        the creation count for the Evaluation pool (always 0).
      • getRecoveredCount

        @Deprecated
        public int getRecoveredCount()
        Deprecated.
        since 3.4.6, forRemoval = true, object-pooling now relies on the jvm garbage collection
        Returns the number of items this pool has recovered from the pool since its construction.
        Returns:
        the recovered count for the Evaluation pool (always 0).
      • getRecycledCount

        @Deprecated
        public int getRecycledCount()
        Deprecated.
        since 3.4.6, forRemoval = true, object-pooling now relies on the jvm garbage collection
        Returns the number of items this pool has recycled since it's construction.
        Returns:
        the recycled count for the Evaluation pool (always 0).