Serializable, Comparable<Feature>public enum Feature extends Enum<Feature>
| Enum Constant | Description |
|---|---|
Assignment |
variable assignment
|
ExceptionHandle |
try..catch..finally and throw statement to handle exceptions.
|
Fn |
fn to define named function
|
ForLoop |
for loop statement
|
If |
if/elsif/else statement
|
InternalVars |
Internal vars such as __env__, __instance__
|
Lambda |
lambda to define function
|
Let |
let statement
|
LexicalScope |
Lexical scope
|
Module |
module system such as exports/require/load function supporting.
|
NewInstance |
new Class(arguments) to create an instance of special class with arguments.
|
Return |
return statement
|
StringInterpolation |
String interpolation.For example, "a = 'aviator'; 'hello #{a}'" to generate a string 'hello
aviator'
|
WhileLoop |
while statement
|
| Modifier and Type | Method | Description |
|---|---|---|
static Set<Feature> |
asSet(Feature... args) |
Create a feature set from arguments.
|
static Set<Feature> |
getCompatibleFeatures() |
Returns the feature set that is compatible with aviator early versions(before 5.0).
|
static Set<Feature> |
getFullFeatures() |
Returns the full feature set.
|
Set<Feature> |
getPrequires() |
|
static Feature |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Feature[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Feature Assignment
public static final Feature Return
public static final Feature If
public static final Feature ForLoop
public static final Feature WhileLoop
public static final Feature Let
public static final Feature LexicalScope
public static final Feature Lambda
public static final Feature Fn
public static final Feature InternalVars
public static final Feature Module
public static final Feature ExceptionHandle
public static final Feature NewInstance
public static final Feature StringInterpolation
public static Feature[] values()
for (Feature c : Feature.values()) System.out.println(c);
public static Feature valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static Set<Feature> asSet(Feature... args)
args - public static Set<Feature> getFullFeatures()
Copyright © 2022–2023. All rights reserved.