Package org.ek9lang.compiler.symbols
Enum Class IScope.ScopeType
- All Implemented Interfaces:
Serializable
,Comparable<IScope.ScopeType>
,Constable
- Enclosing interface:
IScope
The main type of scope in use a block is just like a set of instruction inside an if block
or a while block whereas a non-block is as the whole class/function/component level.
A dynamic-block is to de-mark a dynamic class or a dynamic function.
For some operations (especially around generic/template processing) it is important to find the top-most
block all the code has been defined in.
So for variable definition it follows that same sort of logic as java not C/C++.
You can have fields as variables with a name say 'v1' and parameters and block declarations
of something as 'v1'.
But once in a block scope then you cannot redefine 'v1'.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IScope.ScopeType
Returns the enum constant of this class with the specified name.static IScope.ScopeType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NON_BLOCK
-
DYNAMIC_BLOCK
-
CAPTURE_BLOCK
-
BLOCK
-
-
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
-