Class ExpressionTest


  • public class ExpressionTest
    extends java.lang.Object
    Unit test for Expression and subclasses.
    • Constructor Detail

      • ExpressionTest

        public ExpressionTest()
    • Method Detail

      • testLambdaCallsBinaryOpInt

        public void testLambdaCallsBinaryOpInt()
      • testLambdaCallsBinaryOpShort

        public void testLambdaCallsBinaryOpShort()
      • testLambdaCallsBinaryOpByte

        public void testLambdaCallsBinaryOpByte()
      • testLambdaCallsBinaryOpDouble

        public void testLambdaCallsBinaryOpDouble()
      • testLambdaCallsBinaryOpLong

        public void testLambdaCallsBinaryOpLong()
      • testLambdaCallsBinaryOpFloat

        public void testLambdaCallsBinaryOpFloat()
      • testLambdaPrimitiveTwoArgs

        public void testLambdaPrimitiveTwoArgs()
      • testLambdaCallsTwoArgMethod

        public void testLambdaCallsTwoArgMethod()
                                         throws java.lang.NoSuchMethodException
        Throws:
        java.lang.NoSuchMethodException
      • testFoldAnd

        public void testFoldAnd()
      • testWrite

        public void testWrite()
      • testWriteConstant

        public void testWriteConstant()
      • testWriteArray

        public void testWriteArray()
      • testWriteAnonymousClass

        public void testWriteAnonymousClass()
      • testWriteWhile

        public void testWriteWhile()
      • testWriteTryCatchFinally

        public void testWriteTryCatchFinally()
      • testWriteTryFinally

        public void testWriteTryFinally()
      • testWriteTryCatch

        public void testWriteTryCatch()
      • testType

        public void testType()
      • testCompile

        public void testCompile()
                         throws java.lang.NoSuchMethodException
        Throws:
        java.lang.NoSuchMethodException
      • testBlockBuilder

        public void testBlockBuilder()
      • checkBlockBuilder

        public void checkBlockBuilder​(boolean optimizing,
                                      java.lang.String expected)
      • testBlockBuilder2

        public void testBlockBuilder2()
      • testBlockBuilder3

        public void testBlockBuilder3()
      • testConstantExpression

        public void testConstantExpression()
      • testClassDecl

        public void testClassDecl()
      • testReturn

        public void testReturn()
      • testIfElseIfElse

        public void testIfElseIfElse()
      • testSubExpressionElimination

        public void testSubExpressionElimination()
        Test for common sub-expression elimination.
      • testFor

        public void testFor()
                     throws java.lang.NoSuchFieldException
        Throws:
        java.lang.NoSuchFieldException
      • testFor2

        public void testFor2()
                      throws java.lang.NoSuchFieldException
        Throws:
        java.lang.NoSuchFieldException
      • testForEach

        public void testForEach()
      • testEmptyListLiteral

        public void testEmptyListLiteral()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testEneElementListLiteral

        public void testEneElementListLiteral()
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testTwoElementListLiteral

        public void testTwoElementListLiteral()
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testNestedListsLiteral

        public void testNestedListsLiteral()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testEmptyMapLiteral

        public void testEmptyMapLiteral()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testOneElementMapLiteral

        public void testOneElementMapLiteral()
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testTwoElementMapLiteral

        public void testTwoElementMapLiteral()
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testTenElementMapLiteral

        public void testTenElementMapLiteral()
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testEvaluate

        public void testEvaluate()
      • foo

        public static int foo​(int x)
      • bar

        public static int bar​(int v,
                              int w,
                              int x,
                              int y,
                              int z)