Examples of ShortLiteral


Examples of org.apache.expreval.expr.literal.ShortLiteral

                return this.getTypeSignature().newLiteral(obj);

            if (TypeSupport.isParentClass(NumberValue.class, this.getTypeSignature().getReturnType())) {

                if (obj instanceof Short)
                    return new ShortLiteral((Short)obj);

                if (obj instanceof Integer)
                    return new IntegerLiteral((Integer)obj);

                if (obj instanceof Long)
View Full Code Here

Examples of org.apache.expreval.expr.literal.ShortLiteral

        if (val instanceof Boolean)
            return new BooleanLiteral((Boolean)val);

        if (val instanceof Character)
            return new ShortLiteral((short)((Character)val).charValue());

        if (val instanceof Short)
            return new ShortLiteral((Short)val);

        if (val instanceof Integer)
            return new IntegerLiteral((Integer)val);

        if (val instanceof Long)
View Full Code Here

Examples of rocket.generator.rebind.codeblock.ShortLiteral

      if (type == context.getByte()) {
        literal = new ByteLiteral(this.getByteValue());
        break;
      }
      if (type == context.getShort()) {
        literal = new ShortLiteral(this.getShortValue());
        break;
      }
      if (type == context.getInt()) {
        literal = new IntLiteral(this.getIntValue());
        break;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.