Add utility type constant
This commit is contained in:
parent
87ab39613d
commit
f5fc60ac67
|
@ -69,6 +69,7 @@ public final class Definition {
|
|||
public static final Type defobjType = INSTANCE.getType("Def");
|
||||
public static final Type stringType = INSTANCE.getType("String");
|
||||
public static final Type exceptionType = INSTANCE.getType("Exception");
|
||||
public static final Type utilityType = INSTANCE.getType("Utility");
|
||||
|
||||
public enum Sort {
|
||||
VOID( void.class , 0 , true , false , false , false ),
|
||||
|
|
|
@ -493,7 +493,7 @@ public final class EComp extends AExpression {
|
|||
if (right.isNull) {
|
||||
adapter.ifNull(jump);
|
||||
} else if (operation == Operation.EQ) {
|
||||
adapter.invokeStatic(definition.getType("Utility").type, CHECKEQUALS);
|
||||
adapter.invokeStatic(Definition.utilityType.type, CHECKEQUALS);
|
||||
|
||||
if (branch) {
|
||||
adapter.ifZCmp(MethodWriter.NE, jump);
|
||||
|
@ -507,7 +507,7 @@ public final class EComp extends AExpression {
|
|||
if (right.isNull) {
|
||||
adapter.ifNonNull(jump);
|
||||
} else if (operation == Operation.NE) {
|
||||
adapter.invokeStatic(definition.getType("Utility").type, CHECKEQUALS);
|
||||
adapter.invokeStatic(Definition.utilityType.type, CHECKEQUALS);
|
||||
adapter.ifZCmp(MethodWriter.EQ, jump);
|
||||
} else {
|
||||
adapter.ifCmp(rtype, MethodWriter.NE, jump);
|
||||
|
|
Loading…
Reference in New Issue