Package com.googlecode.aviator
Enum Class Feature
- All Implemented Interfaces:
Serializable
,Comparable<Feature>
,Constable
Syntax features.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionvariable assignmenttry..catch..finally and throw statement to handle exceptions.fn to define named functionfor loop statementif/elsif/else statementInternal vars such as __env__, __instance__lambda to define functionlet statementLexical scopemodule system such as exports/require/load function supporting.new Class(arguments) to create an instance of special class with arguments.return statementAccess java class's static fields by Class.FIELDInvoke java class's static methods by Class.method(..args)String interpolation.For example, "a = 'aviator'; 'hello #{a}'" to generate a string 'hello aviator'use package.class to import java classes into current context.while statement -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static List
<AviatorFunction> asList
(AviatorFunction... args) Create a feature set from arguments.Returns the feature set that is compatible with aviator early versions(before 5.0).Returns the full feature set.static Feature
Returns the enum constant of this class with the specified name.static Feature[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Assignment
variable assignment -
Return
return statement -
If
if/elsif/else statement -
ForLoop
for loop statement -
WhileLoop
while statement -
Let
let statement -
LexicalScope
Lexical scope -
Lambda
lambda to define function -
Fn
fn to define named function -
InternalVars
Internal vars such as __env__, __instance__ -
Module
module system such as exports/require/load function supporting. -
ExceptionHandle
try..catch..finally and throw statement to handle exceptions. -
NewInstance
new Class(arguments) to create an instance of special class with arguments. -
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.- Since:
- 5.2.0
-
StaticFields
Access java class's static fields by Class.FIELD- Since:
- 5.2.2
-
StaticMethods
Invoke java class's static methods by Class.method(..args)- Since:
- 5.2.2
-
-
Field Details
-
prequires
Require feature sets for this feature. -
functions
Functions to support the feature.
-
-
Constructor Details
-
Feature
private Feature() -
Feature
-
Feature
-
Feature
-
-
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
-
asList
-
getFunctions
-
asSet
Create a feature set from arguments.- Parameters:
args
-- Returns:
- feature set
-
getPrequires
-
getFullFeatures
Returns the full feature set.- Returns:
-
getCompatibleFeatures
Returns the feature set that is compatible with aviator early versions(before 5.0).- Returns:
-