Package ognl

Class EvaluationPool

java.lang.Object
ognl.EvaluationPool

public final class EvaluationPool extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    create(SimpleNode node, Object source)
    Returns an Evaluation that contains the node, source and whether it is a set operation.
    create(SimpleNode node, Object source, boolean setOperation)
    Returns an Evaluation that contains the node, source and whether it is a set operation.
    int
    Deprecated.
    since 3.4.6, forRemoval = true, object-pooling now relies on the jvm garbage collection
    int
    Deprecated.
    since 3.4.6, forRemoval = true, object-pooling now relies on the jvm garbage collection
    int
    Deprecated.
    since 3.4.6, forRemoval = true, object-pooling now relies on the jvm garbage collection
    int
    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 Details

    • EvaluationPool

      public EvaluationPool()
  • Method Details

    • create

      public Evaluation create(SimpleNode node, 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, 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).