Package org.apache.calcite.linq4j.test
Class ExpressionTest
- java.lang.Object
-
- org.apache.calcite.linq4j.test.ExpressionTest
-
public class ExpressionTest extends java.lang.Object
Unit test forExpression
and subclasses.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExpressionTest.AllType
A class with a field for each type of interest.(package private) static class
ExpressionTest.MyEnum
An enum.
-
Constructor Summary
Constructors Constructor Description ExpressionTest()
-
Method Summary
-
-
-
Method Detail
-
testLambdaCallsBinaryOp
public void testLambdaCallsBinaryOp()
-
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
-
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
-
foo
public static int foo(int x)
-
bar
public static int bar(int v, int w, int x, int y, int z)
-
-