Package ognl

Class EvaluationPool


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

      All Methods Instance Methods Concrete 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()
      Returns the number of items this pool has created since it's construction.
      int getRecoveredCount()
      Returns the number of items this pool has recovered from the pool since its construction.
      int getRecycledCount()
      Returns the number of items this pool has recycled since it's construction.
      int getSize()
      Returns the number of items in the pool
      void recycle​(Evaluation value)
      Recycles an Evaluation
      void recycleAll​(java.util.List value)
      Recycles a List of Evaluation objects
      void recycleAll​(Evaluation value)
      Recycles an of Evaluation and all of it's siblings and children.
      • Methods inherited from class java.lang.Object

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

      • EvaluationPool

        public EvaluationPool()
      • EvaluationPool

        public EvaluationPool​(int initialSize)
    • 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.
      • 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. If there are no Evaluation objects in the pool one is created and returned.
      • recycle

        public void recycle​(Evaluation value)
        Recycles an Evaluation
      • recycleAll

        public void recycleAll​(Evaluation value)
        Recycles an of Evaluation and all of it's siblings and children.
      • recycleAll

        public void recycleAll​(java.util.List value)
        Recycles a List of Evaluation objects
      • getSize

        public int getSize()
        Returns the number of items in the pool
      • getCreatedCount

        public int getCreatedCount()
        Returns the number of items this pool has created since it's construction.
      • getRecoveredCount

        public int getRecoveredCount()
        Returns the number of items this pool has recovered from the pool since its construction.
      • getRecycledCount

        public int getRecycledCount()
        Returns the number of items this pool has recycled since it's construction.