com.alogic.xscript.util.LogicletConstants Maven / Gradle / Ivy
package com.alogic.xscript.util;
/**
* 常量类
* @author duanwaiwai
*
* @since 1.6.12.28 [20190407]
*
* @version 1.6.12.49 [20191108]
* - 增加mask相关插件,包括身份证,手机,邮箱等;
*
* @version 1.6.12.50 [20191202 duanyy]
* - 增加repeat-obj指令,用于遍历对象的子对象
*
* @version 1.6.12.57 [20200103]
* - 增加通用matcher插件
*/
public interface LogicletConstants {
public static final String STMT_FINALLY = "finally";
public static final String STMT_EXCEPTION = "except";
public static final String STMT_ASYNC = "async";
public static final String STMT_USING = "using";
public static final String STMT_SEGMENT = "segment";
public static final String STMT_THROW = "throw";
public static final String STMT_INCLUDE = "include";
public static final String STMT_TEMPLATE = "template";
public static final String STMT_HELLO = "hello";
public static final String STMT_MSG = "msg";
public static final String STMT_LOCATION = "location";
public static final String STMT_SCOPE = "scope";
public static final String STMT_GET = "get";
public static final String STMT_SET = "set";
public static final String STMT_SET_MULTI = "set-multi";
public static final String STMT_SELECT = "select";
public static final String STMT_ENCRYPT = "encrypt";
public static final String STMT_DECRYPT = "decrypt";
public static final String STMT_CHECK = "check";
public static final String STMT_CHECK_AND_SET = "checkAndSet";
public static final String STMT_REPEAT = "repeat";
public static final String STMT_REPEAT_OBJ = "repeat-obj";
public static final String STMT_CASE = "case";
public static final String STMT_SWITCH = "switch";
public static final String STMT_DEFAULT = "default";
public static final String STMT_FORMULA = "formula";
public static final String STMT_NOW = "now";
public static final String STMT_UUID = "uuid";
public static final String STMT_CONSTANTS = "constants";
public static final String STMT_LOGGER = "logger";
public static final String STMT_LOG = "log";
public static final String STMT_SLEEP = "sleep";
public static final String STMT_FOREACH = "foreach";
public static final String STMT_WHILE = "while";
public static final String STMT_OBJ = "obj";
public static final String STMT_OBJ_BRIDGE = "obj-bridge";
public static final String STMT_OBJ_BRIDGE_ADD = "obj-bridge-add";
public static final String STMT_OBJ_BRIDGE_REMOVE = "obj-bridge-remove";
public static final String STMT_ARRAY = "array";
public static final String STMT_ARRAY_CHILD = "array-child";
public static final String STMT_ARRAYITEM = "array-item";
public static final String STMT_ARRAYSTRING = "array-string";
public static final String STMT_TRIM = "trim";
public static final String STMT_UPPERCASE = "uppercase";
public static final String STMT_LOWERCASE = "lowercase";
public static final String STMT_SUBSTR = "substr";
public static final String STMT_SETTING = "setting";
public static final String STMT_SETTING_GET = "setting-get";
public static final String STMT_SETTING_SET = "setting-set";
public static final String STMT_ENV = "env";
public static final String STMT_GETASJSON = "getAsJson";
public static final String STMT_SETASJSON = "setAsJson";
public static final String STMT_HASH = "hash";
public static final String STMT_MATCH = "match";
public static final String STMT_MATCHER = "matcher";
public static final String STMT_REM = "rem";
public static final String STMT_DURATION = "duration";
public static final String STMT_INCR = "incr";
public static final String STMT_DECR = "decr";
public static final String STMT_RAND = "rand";
public static final String STMT_IF_TRUE = "if-true";
public static final String STMT_IF_FALSE = "if-false";
public static final String STMT_IF_EXIST = "if-exist";
public static final String STMT_IF_NOT_EXIST = "if-n-exist";
public static final String STMT_IF_EQUAL = "if-equal";
public static final String STMT_IF_NOT_EQUAL = "if-n-equal";
public static final String STMT_NEW_LINE = "newline";
public static final String STMT_FUNC_DECLARE = "func-declare";
public static final String STMT_FUNC_CALL = "func-call";
public static final String STMT_FUNC_CALLBACK = "func-callback";
public static final String STMT_EVAL = "eval";
public static final String STMT_LOAD = "load";
public static final String STMT_LOCK = "lock";
public static final String STMT_COUNTER = "counter";
public static final String STMT_ARRAY_SET = "array-set";
public static final String STMT_STRING_PROCESS = "sp";
public static final String STMT_PLUS = "plus";
public static final String STMT_MUL = "mul";
public static final String STMT_DIVIDE = "div";
public static final String STMT_REGEX_MATCHER = "regex-match";
public static final String STMT_TREE = "tree";
public static final String STMT_TREE_NODE = "tree-node";
public static final String STMT_TREE_OUTPUT = "tree-output";
public static final String STMT_TREE_TRAVERSE = "tree-traverse";
public static final String STMT_DOC_CACHE = "doc-cache";
public static final String STMT_BRIDGE = "bridge";
public static final String STMT_BRIDGE_SET = "bridge-set";
public static final String STMT_VALIDATOR = "validator";
public static final String STMT_URL_APPENDER = "url-appender";
public static final String STMT_STRING_LIST = "strlist";
public static final String STMT_STRING_LIST_GROUP = "strlist-group";
public static final String STMT_AS_YAML = "as-yaml";
public static final String STMT_FROM_YAML = "from-yaml";
public static final String STMT_MASK_REGEX = "mask-regex";
public static final String STMT_MASK_IDCARD = "mask-idcard";
public static final String STMT_MASK_MOBILE = "mask-mobile";
public static final String STMT_MASK_EMAIL = "mask-email";
public static final String STMT_MASK_DEFAULT = "mask-default";
public static enum DataType {
STRING,
INTEGER,
LONG,
DOUBLE,
FLOAT,
BOOLEAN
}
}