MVEL中有多少关键字或保留字

ric*_*hie 1 mvel

MVEL中有多少关键字或保留字,谁能列出来?我没有在 MVEL 的官方文档中找到,非常感谢您提供的任何帮助。

eve*_*ime 5

根据您使用的版本可能会有新的增删改查

但是根据this doc,这是用于检查指定字符串是否是解析器中的保留字的函数。

public static boolean  isReservedWord(String name) {    
       return LITERALS.containsKey(name) || OPERATORS.containsKey(name);
    }
Run Code Online (Sandbox Code Playgroud)

在哪里

文字映射包含

true,Array,Boolean,boolean,char,Character,Class,ClassLoader,Compiler,Double,double,empty,false,Float,float,int,Integer,Long,long,Math,nil,null,Object,Runtime,SecurityManager,Short,short,StrictMath,String,StringBuffer,StringBuilder,System,Thread,ThreadLocal,Void
Run Code Online (Sandbox Code Playgroud)

运营商列表

if,-,--,!=,#,%,&,&&,*,**,/,:,;,?,^,|,||,~=,+,++,+=,<,<<,<<<,<=,=,-=,==,>,>=,>>,>>>,and,assert,contains,convertable_to,def,do,else,for,foreach,function,import,import_static,in,instanceof,is,new,or,return,soundslike,strsim,switch,var,while,with
Run Code Online (Sandbox Code Playgroud)