| 限定符和类型 | 方法和说明 |
|---|---|
List<Node> |
MagicScript.getNodes() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Object |
AstInterpreter.interpretNodeList(List<Node> nodes,
MagicScriptContext context,
Scope scope) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<Node> |
Parser.parse(String source)
Parses a
Source into a MagicScript. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
BinaryOperation |
class |
Expression
表达式
|
class |
Literal
常量
|
class |
TernaryOperation |
class |
UnaryOperation
一元操作符
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
AddOperation
+ 运算
|
class |
AndOperation
&& 操作
|
class |
AssigmentOperation
= 操作
|
class |
AsteriskEqualOperation
*= 运算
|
class |
DivisionOperation
/ 操作
|
class |
EqualOperation
==、===操作
|
class |
ForwardSlashEqualOperation
/= 运算
|
class |
GreaterEqualOperation
>=操作
|
class |
GreaterOperation
> 运算
|
class |
LessEqualOperation
<= 运算
|
class |
LessOperation
<
|
class |
MinusEqualOperation
-= 运算
|
class |
ModuloOperation
% 运算
|
class |
MultiplicationOperation
* 运算
|
class |
NotEqualOperation
!
|
class |
OrOperation
|| 操作
|
class |
PercentEqualOperation
%= 运算
|
class |
PlusEqualOperation
+= 运算
|
class |
SubtractionOperation
- 操作
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
LinqField |
class |
LinqJoin |
class |
LinqOrder |
class |
LinqSelect |
class |
WholeLiteral |
| 限定符和类型 | 类和说明 |
|---|---|
class |
BigDecimalLiteral
int常量
|
class |
BooleanLiteral
boolean常量
|
class |
ByteLiteral
byte常量
|
class |
DoubleLiteral
double常量
|
class |
FloatLiteral
float常量
|
class |
IntegerLiteral
int常量
|
class |
ListLiteral
List常量
|
class |
LongLiteral
long 常量
|
class |
MapLiteral
map常量
|
class |
NullLiteral
null 常量
|
class |
RegexpLiteral
正则常量
|
class |
ShortLiteral
short 常量
|
class |
StringLiteral
String 常量
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
AsyncCall
异步调用
|
class |
Break
break 语句
|
class |
ClassConverter |
class |
Continue
continue语句
|
class |
Exit |
class |
ForStatement |
class |
FunctionCall |
class |
IfStatement |
class |
Import |
class |
LambdaFunction |
class |
MapOrArrayAccess |
class |
MemberAccess |
class |
MethodCall |
class |
NewStatement |
class |
Return |
class |
Spread
展开语法 Spread syntax (...)
|
class |
TryStatement |
class |
VariableAccess |
class |
VariableDefine |
class |
WhileStatement |
| 限定符和类型 | 方法和说明 |
|---|---|
List<Node> |
ForStatement.getBody() |
List<Node> |
IfStatement.getFalseBlock() |
List<Node> |
IfStatement.getTrueBlock() |
| 构造器和说明 |
|---|
Return(Span span,
Node returnValue) |
| 构造器和说明 |
|---|
ForStatement(Span span,
VarIndex indexOrKey,
VarIndex value,
int varCount,
Expression mapOrArray,
List<Node> body) |
IfStatement(Span span,
Expression condition,
List<Node> trueBlock,
List<IfStatement> elseIfs,
List<Node> falseBlock,
int trueVarCount,
int falseVarCount) |
IfStatement(Span span,
Expression condition,
List<Node> trueBlock,
List<IfStatement> elseIfs,
List<Node> falseBlock,
int trueVarCount,
int falseVarCount) |
LambdaFunction(Span span,
List<VarIndex> parameters,
int varCount,
List<Node> childNodes) |
TryStatement(Span span,
VarIndex exceptionVarNode,
List<Node> tryBlock,
List<Node> catchBlock,
List<Node> finallyBlock,
int tryVarCount,
int catchVarCount,
int finallyVarCount) |
TryStatement(Span span,
VarIndex exceptionVarNode,
List<Node> tryBlock,
List<Node> catchBlock,
List<Node> finallyBlock,
int tryVarCount,
int catchVarCount,
int finallyVarCount) |
TryStatement(Span span,
VarIndex exceptionVarNode,
List<Node> tryBlock,
List<Node> catchBlock,
List<Node> finallyBlock,
int tryVarCount,
int catchVarCount,
int finallyVarCount) |
WhileStatement(Span span,
Expression condition,
List<Node> trueBlock,
int varCount) |
Copyright © 2020–2021. All rights reserved.