Enum Class SearchContext
- All Implemented Interfaces:
Serializable,Comparable<SearchContext>,Constable
Defines some search contexts, i.e. to hint the search whether local variables
shall be included.
- Author:
- Holger Eichelberger
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInclude all element types.Search within compound level.Search within a constraint.Search within an eval.Search within a freeze.Search for only, i.e.Search within a let expression.Search within an operation definition.Search on project level.Search for qualified names. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether constraints shall be included.booleanReturns whether evals shall be included.booleanReturns whether lets shall be included.booleanReturns whether operation definitions shall be included.booleanReturns whether available operations shall be included.booleanReturns whether qualified names shall be included.booleanReturns whether unqualified names shall be included.booleanReturns whether variable declarations shall be included per se.static SearchContextReturns the enum constant of this class with the specified name.static SearchContext[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL
Include all element types. -
ID
Search for only, i.e. unqualified names. -
QUALIFIED_NAME
Search for qualified names. -
PROJECT
Search on project level. -
COMPOUND
Search within compound level. -
CONSTRAINT
Search within a constraint. -
OPERATION_DEFINITION
Search within an operation definition. -
FREEZE
Search within a freeze. -
EVAL
Search within an eval. -
LET
Search within a let expression.
-
-
Field Details
-
includeQualifiedNames
private boolean includeQualifiedNames -
includeUnqualifiedNames
private boolean includeUnqualifiedNames -
includeVariableDeclarations
private boolean includeVariableDeclarations -
includeOperations
private boolean includeOperations -
includeOperationDefinitions
private boolean includeOperationDefinitions -
includeConstraints
private boolean includeConstraints -
includeEvals
private boolean includeEvals -
includeLets
private boolean includeLets
-
-
Constructor Details
-
SearchContext
Creates a new search context. We use a string here as parameter as we otherwise would have more than 5 parameters in total.- Parameters:
spec- the specification of included elements, "q" stands for qualified names, "u" stands for unqualified names, "v" for variable declarations, "o" for operations, "O" for operation definitions, "c" for constraints, "e" for evals, "l" for lets
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
includeQualifiedNames
public boolean includeQualifiedNames()Returns whether qualified names shall be included.- Returns:
trueif they shall be included,falseelse
-
includeUnqualifiedNames
public boolean includeUnqualifiedNames()Returns whether unqualified names shall be included.- Returns:
trueif they shall be included,falseelse
-
includeVariableDeclarations
public boolean includeVariableDeclarations()Returns whether variable declarations shall be included per se.- Returns:
trueif they shall be included,falseelse
-
includeOperations
public boolean includeOperations()Returns whether available operations shall be included.- Returns:
trueif they shall be included,falseelse
-
includeOperationDefinitions
public boolean includeOperationDefinitions()Returns whether operation definitions shall be included.- Returns:
trueif they shall be included,falseelse
-
includeConstraints
public boolean includeConstraints()Returns whether constraints shall be included.- Returns:
trueif they shall be included,falseelse
-
includeEvals
public boolean includeEvals()Returns whether evals shall be included.- Returns:
trueif they shall be included,falseelse
-
includeLets
public boolean includeLets()Returns whether lets shall be included.- Returns:
trueif they shall be included,falseelse
-