public class ALU extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
CHAR |
static int |
DOUBLE |
static int |
FLOAT |
static int |
HS |
static int |
INTEGER |
static int |
LONG |
static int |
NULL |
static int |
OBJECT |
static int |
round |
static int |
scale |
static int |
SHORT |
static int |
STRING |
| 构造器和说明 |
|---|
ALU() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Object |
div(Object o1,
Object o2,
ASTNode node1,
ASTNode node2) |
static boolean |
equals(Object o1,
Object o2) |
static int |
getBaseType(Class cls1,
Class cls2) |
static int |
getBaseType(Object o1) |
static int |
getBaseType(Object o1,
Object o2) |
static Class |
getBaseTypeClass(Class cls1,
Class cls2) |
static int |
getNumberType(Number o1) |
static boolean |
greater(Object o1,
Object o2,
ASTNode node1,
ASTNode node2) |
static boolean |
greaterEquals(Object o1,
Object o2,
ASTNode node1,
ASTNode node2) |
static Boolean |
isTrue(Object o,
ASTNode node) |
static boolean |
less(Object o1,
Object o2,
ASTNode node1,
ASTNode node2) |
static boolean |
lessEquals(Object o1,
Object o2,
ASTNode node1,
ASTNode node2) |
static Object |
minus(Object o1,
Object o2,
ASTNode node1,
ASTNode node2) |
static Object |
minusOne(Object o1,
ASTNode node) |
static Object |
mod(Object o1,
Object o2,
ASTNode node1,
ASTNode node2) |
static Object |
mult(Object o1,
Object o2,
ASTNode node1,
ASTNode node2) |
static Object |
negative(Object o1,
ASTNode node) |
static boolean |
notEquals(Object o1,
Object o2) |
static Object |
plus(Object o1,
Object o2,
ASTNode node1,
ASTNode node2)
不同于js,数字类型允许一个为null,beetl中,如果数字相加,有一个是null,则抛出异常
|
static Object |
plusOne(Object o1,
ASTNode node) |
public static final int NULL
public static final int OBJECT
public static final int STRING
public static final int DOUBLE
public static final int FLOAT
public static final int LONG
public static final int INTEGER
public static final int SHORT
public static final int CHAR
public static final int HS
public static int scale
public static int round
public static int getNumberType(Number o1)
public static int getBaseType(Object o1)
public static Object plus(Object o1, Object o2, ASTNode node1, ASTNode node2)
o1 - o2 - public static boolean greaterEquals(Object o1, Object o2, ASTNode node1, ASTNode node2)
Copyright © 2018. All rights reserved.