Class WhitelistConstructor

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

public final class WhitelistConstructor extends Object
Constructor represents the equivalent of a Java constructor available as a whitelisted class constructor within Painless. Constructors for Painless classes may be accessed exactly as constructors for Java classes are using the 'new' keyword. Painless classes may have multiple constructors as long as they comply with arity overloading described for WhitelistClass.
  • Field Details

    • origin

      public final String origin
      Information about where this constructor was whitelisted from.
    • 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 constructor.
  • Constructor Details

    • WhitelistConstructor

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