类 Parameter

java.lang.Object
com.grapecity.documents.excel.Parameter

public class Parameter extends Object
Represents the parameter of a function.
  • 构造器详细资料

    • Parameter

      public Parameter(FunctionValueType valueType)
      Initializes an instance of a parameter.
      参数:
      valueType - The value type of the parameter.
    • Parameter

      public Parameter(FunctionValueType valueType, boolean acceptReference)
      Initializes an instance of a parameter.
      参数:
      valueType - The value type of the parameter.
      acceptReference - If this parameter can accept reference.
    • Parameter

      public Parameter(FunctionValueType valueType, Object defaultValue)
      Initializes an instance of a parameter.
      参数:
      valueType - The value type of the parameter.
      defaultValue - The default value of the parameter.
    • Parameter

      public Parameter(FunctionValueType valueType, Object defaultValue, boolean acceptReference)
      Initializes an instance of a parameter.
      参数:
      valueType - The value type of the parameter.
      defaultValue - The default value of the parameter.
      acceptReference - If this parameter can accept reference.
    • Parameter

      public Parameter(String name, String description, FunctionValueType valueType, Object defaultValue)
      Initializes an instance of a parameter.
      参数:
      name - The name of the parameter.
      description - The description of the parameter.
      valueType - The value type of the parameter.
      defaultValue - The default value of the parameter.
    • Parameter

      public Parameter(String name, String description, FunctionValueType valueType, Object defaultValue, boolean acceptReference)
      Initializes an instance of a parameter.
      参数:
      name -
      description - The description of the parameter.
      valueType - The value type of the parameter.
      defaultValue - The default value of the parameter.
      acceptReference - If this parameter can accept reference.
    • Parameter

      public Parameter(FunctionValueType valueType, boolean acceptReference, boolean acceptCustomObjects)
      Initializes an instance of a parameter.
      参数:
      valueType - The value type of the parameter.
      acceptReference - If this parameter can accept reference.
      acceptCustomObjects - Accepts custom objects if value type is FunctionValueType.Object.
    • Parameter

      public Parameter(String name, String description, FunctionValueType valueType, Object defaultValue, boolean acceptReference, boolean acceptCustomObjects)
      Initializes an instance of a parameter.
      参数:
      name - The name of the function.
      description - The description of the parameter.
      valueType - The value type of the parameter.
      defaultValue - The default value of the parameter.
      acceptReference - If this parameter can accept reference.
      acceptCustomObjects - Accepts custom objects if value type is FunctionValueType.Object.
  • 方法详细资料

    • getName

      public final String getName()
      Gets the name of the parameter;
    • getDescription

      public final String getDescription()
      Gets the description of the parameter;
    • getValueType

      public final FunctionValueType getValueType()
      Gets the value type of the parameter;
    • getDefaultValue

      public final Object getDefaultValue()
      Gets the default value of the parameter;
    • getAcceptReference

      public final boolean getAcceptReference()
      Gets the parameter can or can't accept reference.