Class GroovyClassValueJava7<T>

java.lang.Object
java.lang.ClassValue<T>
org.codehaus.groovy.reflection.v7.GroovyClassValueJava7<T>
Type Parameters:
T -
All Implemented Interfaces:
GroovyClassValue<T>

public class GroovyClassValueJava7<T> extends ClassValue<T> implements GroovyClassValue<T>
GroovyClassValue implementation that simply delegates to Java 7's java.lang.ClassValue
See Also:
  • Constructor Details

    • GroovyClassValueJava7

      public GroovyClassValueJava7(GroovyClassValue.ComputeValue<T> computeValue)
      Creates a class value that computes a missing entry with computeValue. The callback is stored and invoked from computeValue(Class) for a class that has no cached entry. It is not called for this constructor.
      Parameters:
      computeValue - callback that produces the value for a class
  • Method Details