public final class CompileCommand extends SimpleCommand
SimpleCommand
that causes the build process to determine and validate relationships, such as the attributes of a dimension, and to store information about the relationships. You can use a CompileCommand
after a LoadCommand
in a BuildSpecification
. An application gets a CompileCommand
by using a static field constant.Modifier and Type | Field and Description |
---|---|
static CompileCommand |
DEFAULT
Produces a
CompileCommand that executes a default compilation. |
static java.lang.String |
DEFAULT_OPTION
A constant that represents the default compilation option.
|
static CompileCommand |
INSTANCE
Produces a
CompileCommand that executes a default compilation. |
static CompileCommand |
NO_SORT
Produces a
CompileCommand that has the NO SORT option. |
static java.lang.String |
NO_SORT_OPTION
A constant that represents the NO SORT option.
|
static CompileCommand |
SORT
Produces a
CompileCommand that has the SORT option. |
static CompileCommand |
SORT_ONLY
Produces a
CompileCommand that has the SORT ONLY option. |
static java.lang.String |
SORT_ONLY_OPTION
A constant that represents the SORT ONLY option.
|
static java.lang.String |
SORT_OPTION
A constant that represents the SORT option.
|
Constructor and Description |
---|
CompileCommand(java.lang.String option)
Creates a
CompileCommand with the specified compilation command option. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCompileOption()
Gets the compilation command option of this
CompileCommand . |
java.lang.Object |
visit(SyntaxObjectVisitor visitor, java.lang.Object context)
Calls the
visitCompileCommand method of the SyntaxObjectVisitor and passes that method this CompileCommand and an Object . |
equals, equals, fromSyntax, fromSyntax, fromSyntax, fromSyntax, fromSyntax, isValid, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax
public static final java.lang.String DEFAULT_OPTION
public static final java.lang.String SORT_OPTION
public static final java.lang.String NO_SORT_OPTION
public static final java.lang.String SORT_ONLY_OPTION
public static final CompileCommand DEFAULT
CompileCommand
that executes a default compilation.public static final CompileCommand INSTANCE
CompileCommand
that executes a default compilation. The CompileCommand
has the DEFAULT_OPTION
option.public static final CompileCommand SORT
CompileCommand
that has the SORT
option.public static final CompileCommand NO_SORT
CompileCommand
that has the NO SORT
option.public static final CompileCommand SORT_ONLY
CompileCommand
that has the SORT ONLY
option.public CompileCommand(java.lang.String option)
CompileCommand
with the specified compilation command option.option
- A String
that contains a compilation command option, such as DEFAULT_OPTION
or SORT_OPTION
.public java.lang.Object visit(SyntaxObjectVisitor visitor, java.lang.Object context)
visitCompileCommand
method of the SyntaxObjectVisitor
and passes that method this CompileCommand
and an Object
.visit
in class SyntaxObject
visitor
- A SyntaxObjectVisitor
.context
- An Object
.Object
returned by the visitCompileCommand
method.public java.lang.String getCompileOption()
CompileCommand
. For the default option, this method returns an empty string.String
that contains the compilation command option of this CompileCommand
.