public enum Feature extends Enum<Feature>
| Enum Constant and 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
|
StaticFields
Access java class's static fields by Class.FIELD
|
StaticMethods
Invoke java class's static methods by Class.method(..args)
|
StringInterpolation
String interpolation.For example, "a = 'aviator'; 'hello #{a}'" to generate a string 'hello
aviator'
|
Use
use package.class to import java classes into current context.
|
WhileLoop
while statement
|
| Modifier and Type | Method and 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.
|
List<AviatorFunction> |
getFunctions() |
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 final Feature Use
public static final Feature StaticFields
public static final Feature StaticMethods
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 List<AviatorFunction> getFunctions()
public static Set<Feature> asSet(Feature... args)
args - Copyright © 2010–2022. All rights reserved.