Enum Class ImportKind
- All Implemented Interfaces:
Serializable,Comparable<ImportKind>,Constable
Classifies the kind of symbol being imported in an
ImportStatement.
The kind is declared explicitly in the import syntax:
import source current_weather from './weather.relix'; // SOURCE
import relation USCities from './cities.relix'; // RELATION
import function tax from './calc.relix'; // FUNCTION
import { Users, Orders } from './db.relix'; // UNQUALIFIED
import './common.relix'; // BULK
UNQUALIFIED is used when names are imported with braces but
without an explicit type keyword. BULK is used when the entire
file is imported with no name list.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll exported names from the target file are imported into the current namespace (import './file.relix').The imported name is expected to resolve to a function definition.The imported name is expected to resolve to a relation (view or inline table).The imported name is expected to resolve to a source declaration.Names are imported without a type qualifier (import { X, Y } from '...'). -
Method Summary
Modifier and TypeMethodDescriptionstatic ImportKindReturns the enum constant of this class with the specified name.static ImportKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SOURCE
The imported name is expected to resolve to a source declaration. -
RELATION
The imported name is expected to resolve to a relation (view or inline table). -
FUNCTION
The imported name is expected to resolve to a function definition. -
UNQUALIFIED
Names are imported without a type qualifier (import { X, Y } from '...'). The semantic layer resolves what kind each name refers to. -
BULK
All exported names from the target file are imported into the current namespace (import './file.relix').
-
-
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
-