Package com.facebook.presto.byteCode.instruction

Examples of com.facebook.presto.byteCode.instruction.Constant


        ImmutableListMultimap.Builder<Integer, ByteCodeNode> hashBucketsBuilder = ImmutableListMultimap.builder();
        ImmutableList.Builder<ByteCodeNode> defaultBucket = ImmutableList.builder();
        ImmutableSet.Builder<Object> constantValuesBuilder = ImmutableSet.builder();
        for (ByteCodeNode testNode : values.build()) {
            if (testNode instanceof Constant) {
                Constant constant = (Constant) testNode;
                Object testValue = constant.getValue();
                constantValuesBuilder.add(testValue);

                if (javaType == boolean.class) {
                    // boolean constant is actually an integer type
                    testValue = ((Number) testValue).intValue() != 0;
View Full Code Here


        ImmutableListMultimap.Builder<Integer, ByteCodeNode> hashBucketsBuilder = ImmutableListMultimap.builder();
        ImmutableList.Builder<ByteCodeNode> defaultBucket = ImmutableList.builder();
        ImmutableSet.Builder<Object> constantValuesBuilder = ImmutableSet.builder();
        for (ByteCodeNode testNode : values.build()) {
            if (testNode instanceof Constant) {
                Constant constant = (Constant) testNode;
                Object testValue = constant.getValue();
                constantValuesBuilder.add(testValue);

                if (javaType == boolean.class) {
                    // boolean constant is actually an integer type
                    testValue = ((Number) testValue).intValue() != 0;
View Full Code Here

        ImmutableListMultimap.Builder<Integer, TypedByteCodeNode> hashBucketsBuilder = ImmutableListMultimap.builder();
        ImmutableList.Builder<TypedByteCodeNode> defaultBucket = ImmutableList.builder();
        ImmutableSet.Builder<Object> constantValuesBuilder = ImmutableSet.builder();
        for (TypedByteCodeNode testNode : values.build()) {
            if (testNode.getNode() instanceof Constant) {
                Constant constant = (Constant) testNode.getNode();
                Object testValue = constant.getValue();
                constantValuesBuilder.add(testValue);
                int hashCode;
                if (type == boolean.class) {
                    // boolean constant is actually an integer type
                    hashCode = Operations.hashCode(((Number) testValue).intValue() != 0);
View Full Code Here

        ImmutableListMultimap.Builder<Integer, ByteCodeNode> hashBucketsBuilder = ImmutableListMultimap.builder();
        ImmutableList.Builder<ByteCodeNode> defaultBucket = ImmutableList.builder();
        ImmutableSet.Builder<Object> constantValuesBuilder = ImmutableSet.builder();
        for (ByteCodeNode testNode : values.build()) {
            if (testNode instanceof Constant) {
                Constant constant = (Constant) testNode;
                Object testValue = constant.getValue();
                constantValuesBuilder.add(testValue);

                if (javaType == boolean.class) {
                    // boolean constant is actually an integer type
                    testValue = ((Number) testValue).intValue() != 0;
View Full Code Here

        ImmutableListMultimap.Builder<Integer, TypedByteCodeNode> hashBucketsBuilder = ImmutableListMultimap.builder();
        ImmutableList.Builder<TypedByteCodeNode> defaultBucket = ImmutableList.builder();
        ImmutableSet.Builder<Object> constantValuesBuilder = ImmutableSet.builder();
        for (TypedByteCodeNode testNode : values.build()) {
            if (testNode.getNode() instanceof Constant) {
                Constant constant = (Constant) testNode.getNode();
                Object testValue = constant.getValue();
                constantValuesBuilder.add(testValue);
                int hashCode;
                if (type == boolean.class) {
                    // boolean constant is actually an integer type
                    hashCode = Operations.hashCode(((Number) testValue).intValue() != 0);
View Full Code Here

TOP

Related Classes of com.facebook.presto.byteCode.instruction.Constant

Copyright © 2018 www.massapicom. 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.