public abstract class Exp extends SyntaxElement
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Exp.AnonFuncDef |
static class |
Exp.BinopExp |
static class |
Exp.Constant |
static class |
Exp.FieldExp |
static class |
Exp.FuncCall |
static class |
Exp.IndexExp |
static class |
Exp.MethodCall |
static class |
Exp.NameExp |
static class |
Exp.ParensExp |
static class |
Exp.PrimaryExp |
static class |
Exp.UnopExp |
static class |
Exp.VarargsExp |
static class |
Exp.VarExp |
beginColumn, beginLine, endColumn, endLine| 构造器和说明 |
|---|
Exp() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
accept(Visitor visitor) |
static Exp |
anonymousfunction(FuncBody funcbody) |
static Exp |
binaryexp(Exp lhs,
int op,
Exp rhs) |
static Exp |
constant(LuaValue value) |
static Exp.FieldExp |
fieldop(Exp.PrimaryExp lhs,
String name)
foo.bar
|
static Exp.FuncCall |
functionop(Exp.PrimaryExp lhs,
FuncArgs args)
foo(2,3)
|
static Exp.IndexExp |
indexop(Exp.PrimaryExp lhs,
Exp exp)
foo[exp]
|
boolean |
isfunccall() |
boolean |
isvarargexp() |
boolean |
isvarexp() |
static Exp.MethodCall |
methodop(Exp.PrimaryExp lhs,
String name,
FuncArgs args)
foo:bar(4,5)
|
static Exp.NameExp |
nameprefix(String name)
foo
|
static Exp |
numberconstant(String token) |
static Exp.ParensExp |
parensprefix(Exp exp)
( foo.bar )
|
static Exp |
tableconstructor(TableConstructor tc) |
static Exp |
unaryexp(int op,
Exp rhs) |
static Exp |
varargs() |
public abstract void accept(Visitor visitor)
public static Exp varargs()
public static Exp tableconstructor(TableConstructor tc)
public static Exp.NameExp nameprefix(String name)
public static Exp.ParensExp parensprefix(Exp exp)
public static Exp.IndexExp indexop(Exp.PrimaryExp lhs, Exp exp)
public static Exp.FieldExp fieldop(Exp.PrimaryExp lhs, String name)
public static Exp.FuncCall functionop(Exp.PrimaryExp lhs, FuncArgs args)
public static Exp.MethodCall methodop(Exp.PrimaryExp lhs, String name, FuncArgs args)
public boolean isvarexp()
public boolean isfunccall()
public boolean isvarargexp()
Copyright © 2020. All rights reserved.