saker.build Documentation TaskDoc JavaDoc Packages
public final class TypeInformationKind
Class containing possible values for TypeInformation to represent how a type should be interpreted.

The possible values are present as static final String fields in this class.

The type kinds are interpreted in an ignore-case manner.

Choosing an appropriate type kind for the type informations can enhance user experience to provide more refined content assist and related features.

Implementation note: This class is not an enum to ensure forward and backward compatibility. New kinds may be added to it in the future.

Fields
public static final String
BOOLEAN = "BOOLEAN"
Type for representing a boolean.
public static final String
BUILD_SCRIPT_PATH = "BUILD_SCRIPT_PATH"
Type for representing a file path that is a valid build script.
public static final String
BUILD_TARGET = "BUILD_TARGET"
Type for representing a build target name.
public static final String
BUILD_TASK_NAME = "BUILD_TASK_NAME"
Type representing a name of a build task.
public static final String
COLLECTION = "COLLECTION"
The type is a collection of other types.
public static final String
DIRECTORY_PATH = "DIRECTORY_PATH"
Type for representing a directory path.
public static final String
ENUM = "ENUM"
An enum type which can have a value from a predefined set of names.
public static final String
ENVIRONMENT_USER_PARAMETER = "ENVIRONMENT_USER_PARAMETER"
Type representing a name of an environment user parameter.
public static final String
EXECUTION_USER_PARAMETER = "EXECUTION_USER_PARAMETER"
Type representing a name of an execution user parameter.
public static final String
FILE_PATH = "FILE_PATH"
Type for representing a file path.
public static final String
LITERAL = "LITERAL"
A literal type which should be handled as not having any fields and is unstructured.
public static final String
MAP = "MAP"
A mapped object which contains named fields and corresponding values.
public static final String
NUMBER = "NUMBER"
Type for representing a number.
public static final String
OBJECT = "OBJECT"
Represents a standard structured type.
public static final String
OBJECT_LITERAL = "OBJECT_LITERAL"
Type for representing an object type, but one in a literal sense.
public static final String
PATH = "PATH"
Type representing a path that can denote either a file or directory.
public static final String
STRING = "STRING"
Type for representing a string.
public static final String
SYSTEM_PROPERTY = "SYSTEM_PROPERTY"
Type representing a name of a system property.
public static final String
VOID = "VOID"
The void type.
public static final String
WILDCARD_PATH = "WILDCARD_PATH"
Type for representing a wildcard path.
Methods
public static boolean
Checks if the type represented by the argument is not structured (i.e.
public static final String BOOLEAN = "BOOLEAN"
Type for representing a boolean.
public static final String BUILD_SCRIPT_PATH = "BUILD_SCRIPT_PATH"
Type for representing a file path that is a valid build script.
public static final String BUILD_TARGET = "BUILD_TARGET"
Type for representing a build target name.
public static final String BUILD_TASK_NAME = "BUILD_TASK_NAME"
Type representing a name of a build task.
saker.build 0.8.12
public static final String COLLECTION = "COLLECTION"
The type is a collection of other types.

Generally this kind of type can iterated and indexed.

The associated type information element types should have a single type which specifies the enclosed element types.

public static final String DIRECTORY_PATH = "DIRECTORY_PATH"
Type for representing a directory path.
public static final String ENUM = "ENUM"
An enum type which can have a value from a predefined set of names.
public static final String ENVIRONMENT_USER_PARAMETER = "ENVIRONMENT_USER_PARAMETER"
Type representing a name of an environment user parameter.
public static final String EXECUTION_USER_PARAMETER = "EXECUTION_USER_PARAMETER"
Type representing a name of an execution user parameter.
public static final String FILE_PATH = "FILE_PATH"
Type for representing a file path.
public static final String LITERAL = "LITERAL"
A literal type which should be handled as not having any fields and is unstructured.

Represents a type which is not to be used in a structured way. Numbers, Strings, and other simple types are suitable for this.

public static final String MAP = "MAP"
A mapped object which contains named fields and corresponding values.

Generally this kind of type can be enumerated in key-value pairs.

The associated type information element types should have a two types where the first specifies the key type and the second specifies the value type for the map.

public static final String NUMBER = "NUMBER"
Type for representing a number.
public static final String OBJECT = "OBJECT"
Represents a standard structured type.

Can have fields, but not necessarily unlike MAP.

public static final String OBJECT_LITERAL = "OBJECT_LITERAL"
Type for representing an object type, but one in a literal sense.

The type should not be handled in a structured way.

public static final String PATH = "PATH"
Type representing a path that can denote either a file or directory.
public static final String STRING = "STRING"
Type for representing a string.
public static final String SYSTEM_PROPERTY = "SYSTEM_PROPERTY"
Type representing a name of a system property.
saker.build 0.8.16
public static final String VOID = "VOID"
The void type.
public static final String WILDCARD_PATH = "WILDCARD_PATH"
Type for representing a wildcard path.
public static boolean isLiteralType(String typekind)
Checks if the type represented by the argument is not structured (i.e. literal).

Literal types are not structured and should not be attempted to use them in a structured way. (Accessing fields, methods, or others)

true if the type should be considered literal.