Class WhitelistInstanceBinding

java.lang.Object
org.elasticsearch.painless.spi.WhitelistInstanceBinding

public class WhitelistInstanceBinding extends Object
An instance binding represents a method call that stores state. Each instance binding must provide exactly one public method name. The canonical type name parameters provided must match those of the method. The method for an instance binding will target the specified Java instance.
  • Field Details

    • origin

      public final String origin
      Information about where this constructor was whitelisted from.
    • targetInstance

      public final Object targetInstance
      The Java instance this instance binding targets.
    • methodName

      public final String methodName
      The method name for this class binding.
    • returnCanonicalTypeName

      public final String returnCanonicalTypeName
      The canonical type name for the return type.
    • canonicalTypeNameParameters

      public final List<String> canonicalTypeNameParameters
      A List of Strings that are the Painless type names for the parameters of the constructor which can be used to look up the Java constructor through reflection.
    • painlessAnnotations

      public final Map<Class<?>,Object> painlessAnnotations
      The Map of annotations for this instance binding.
  • Constructor Details

    • WhitelistInstanceBinding

      public WhitelistInstanceBinding(String origin, Object targetInstance, String methodName, String returnCanonicalTypeName, List<String> canonicalTypeNameParameters, List<Object> painlessAnnotations)
      Standard constructor. All values must be not null.