@Test public void testNullInclude() throws Exception { new ReadonlyVisitor().visit(archive(new URL("https: null, null, new String[0], new Expression[0], new CxxLanguageFeatures[0])); }
public void visit(@Nullable Expression expr) { if (expr == null) { return; } if (expr.getClass().equals(FunctionTableExpression.class)) { visitFunctionTableExpression((FunctionTableExpression) expr); return; } if (expr.getClass().equals(FindModuleExpression.class)) { visitFindModuleExpression((FindModuleExpression) expr); return; } if (expr.getClass().equals(ParameterExpression.class)) { visitParameterExpression((ParameterExpression) expr); return; } if (expr.getClass().equals(IfSwitchExpression.class)) { visitIfSwitchExpression((IfSwitchExpression) expr); return; } if (expr.getClass().equals(ConstantExpression.class)) { visitConstantExpression((ConstantExpression) expr); return; } if (expr.getClass().equals(AssignmentExpression.class)) { visitAssignmentExpression((AssignmentExpression) expr); return; } if (expr.getClass().equals(InvokeFunctionExpression.class)) { visitInvokeFunctionExpression((InvokeFunctionExpression) expr); return; } if (expr.getClass().equals(ModuleExpression.class)) { visitModuleExpression((ModuleExpression) expr); return; } if (expr.getClass().equals(AbortExpression.class)) { visitAbortExpression((AbortExpression) expr); return; } if (expr.getClass().equals(ExampleExpression.class)) { visitExampleExpression((ExampleExpression) expr); return; } if (expr.getClass().equals(ExternalFunctionExpression.class)) { visitExternalFunctionExpression((ExternalFunctionExpression) expr); return; } if (expr.getClass().equals(ArrayExpression.class)) { visitArrayExpression((ArrayExpression) expr); return; } if (expr.getClass().equals(AssignmentBlockExpression.class)) { visitAssignmentBlockExpression((AssignmentBlockExpression) expr); return; } if (expr.getClass().equals(AssignmentReferenceExpression.class)) { visitAssignmentReferenceExpression((AssignmentReferenceExpression) expr); return; } if (expr.getClass().equals(ModuleArchiveExpression.class)) { visitModuleArchiveExpression((ModuleArchiveExpression) expr); return; } if (expr.getClass().equals(MultiStatementExpression.class)) { visitMultiStatementExpression((MultiStatementExpression) expr); return; } if (expr.getClass().equals(NopExpression.class)) { visitNopExpression((NopExpression) expr); return; } if (expr.getClass().equals(GlobalBuildEnvironmentExpression.class)) { visitGlobalBuildEnvironmentExpression((GlobalBuildEnvironmentExpression) expr); return; } throw new RuntimeException("ro" + expr.getClass().toString()); }
ReadonlyVisitor { public void visit(@Nullable Expression expr) { if (expr == null) { return; } if (expr.getClass().equals(FunctionTableExpression.class)) { visitFunctionTableExpression((FunctionTableExpression) expr); return; } if (expr.getClass().equals(FindModuleExpression.class)) { visitFindModuleExpression((FindModuleExpression) expr); return; } if (expr.getClass().equals(ParameterExpression.class)) { visitParameterExpression((ParameterExpression) expr); return; } if (expr.getClass().equals(IfSwitchExpression.class)) { visitIfSwitchExpression((IfSwitchExpression) expr); return; } if (expr.getClass().equals(ConstantExpression.class)) { visitConstantExpression((ConstantExpression) expr); return; } if (expr.getClass().equals(AssignmentExpression.class)) { visitAssignmentExpression((AssignmentExpression) expr); return; } if (expr.getClass().equals(InvokeFunctionExpression.class)) { visitInvokeFunctionExpression((InvokeFunctionExpression) expr); return; } if (expr.getClass().equals(ModuleExpression.class)) { visitModuleExpression((ModuleExpression) expr); return; } if (expr.getClass().equals(AbortExpression.class)) { visitAbortExpression((AbortExpression) expr); return; } if (expr.getClass().equals(ExampleExpression.class)) { visitExampleExpression((ExampleExpression) expr); return; } if (expr.getClass().equals(ExternalFunctionExpression.class)) { visitExternalFunctionExpression((ExternalFunctionExpression) expr); return; } if (expr.getClass().equals(ArrayExpression.class)) { visitArrayExpression((ArrayExpression) expr); return; } if (expr.getClass().equals(AssignmentBlockExpression.class)) { visitAssignmentBlockExpression((AssignmentBlockExpression) expr); return; } if (expr.getClass().equals(AssignmentReferenceExpression.class)) { visitAssignmentReferenceExpression((AssignmentReferenceExpression) expr); return; } if (expr.getClass().equals(ModuleArchiveExpression.class)) { visitModuleArchiveExpression((ModuleArchiveExpression) expr); return; } if (expr.getClass().equals(MultiStatementExpression.class)) { visitMultiStatementExpression((MultiStatementExpression) expr); return; } if (expr.getClass().equals(NopExpression.class)) { visitNopExpression((NopExpression) expr); return; } if (expr.getClass().equals(GlobalBuildEnvironmentExpression.class)) { visitGlobalBuildEnvironmentExpression((GlobalBuildEnvironmentExpression) expr); return; } throw new RuntimeException("ro" + expr.getClass().toString()); } }
ReadonlyVisitor { public void visit(@Nullable Expression expr) { if (expr == null) { return; } if (expr.getClass().equals(FunctionTableExpression.class)) { visitFunctionTableExpression((FunctionTableExpression) expr); return; } if (expr.getClass().equals(FindModuleExpression.class)) { visitFindModuleExpression((FindModuleExpression) expr); return; } if (expr.getClass().equals(ParameterExpression.class)) { visitParameterExpression((ParameterExpression) expr); return; } if (expr.getClass().equals(IfSwitchExpression.class)) { visitIfSwitchExpression((IfSwitchExpression) expr); return; } if (expr.getClass().equals(ConstantExpression.class)) { visitConstantExpression((ConstantExpression) expr); return; } if (expr.getClass().equals(AssignmentExpression.class)) { visitAssignmentExpression((AssignmentExpression) expr); return; } if (expr.getClass().equals(InvokeFunctionExpression.class)) { visitInvokeFunctionExpression((InvokeFunctionExpression) expr); return; } if (expr.getClass().equals(ModuleExpression.class)) { visitModuleExpression((ModuleExpression) expr); return; } if (expr.getClass().equals(AbortExpression.class)) { visitAbortExpression((AbortExpression) expr); return; } if (expr.getClass().equals(ExampleExpression.class)) { visitExampleExpression((ExampleExpression) expr); return; } if (expr.getClass().equals(ExternalFunctionExpression.class)) { visitExternalFunctionExpression((ExternalFunctionExpression) expr); return; } if (expr.getClass().equals(ArrayExpression.class)) { visitArrayExpression((ArrayExpression) expr); return; } if (expr.getClass().equals(AssignmentBlockExpression.class)) { visitAssignmentBlockExpression((AssignmentBlockExpression) expr); return; } if (expr.getClass().equals(AssignmentReferenceExpression.class)) { visitAssignmentReferenceExpression((AssignmentReferenceExpression) expr); return; } if (expr.getClass().equals(ModuleArchiveExpression.class)) { visitModuleArchiveExpression((ModuleArchiveExpression) expr); return; } if (expr.getClass().equals(MultiStatementExpression.class)) { visitMultiStatementExpression((MultiStatementExpression) expr); return; } if (expr.getClass().equals(NopExpression.class)) { visitNopExpression((NopExpression) expr); return; } if (expr.getClass().equals(GlobalBuildEnvironmentExpression.class)) { visitGlobalBuildEnvironmentExpression((GlobalBuildEnvironmentExpression) expr); return; } throw new RuntimeException("ro" + expr.getClass().toString()); }  }
ReadonlyVisitor { public void visit(@Nullable Expression expr) { if (expr == null) { return; } if (expr.getClass().equals(FunctionTableExpression.class)) { visitFunctionTableExpression((FunctionTableExpression) expr); return; } if (expr.getClass().equals(FindModuleExpression.class)) { visitFindModuleExpression((FindModuleExpression) expr); return; } if (expr.getClass().equals(ParameterExpression.class)) { visitParameterExpression((ParameterExpression) expr); return; } if (expr.getClass().equals(IfSwitchExpression.class)) { visitIfSwitchExpression((IfSwitchExpression) expr); return; } if (expr.getClass().equals(ConstantExpression.class)) { visitConstantExpression((ConstantExpression) expr); return; } if (expr.getClass().equals(AssignmentExpression.class)) { visitAssignmentExpression((AssignmentExpression) expr); return; } if (expr.getClass().equals(InvokeFunctionExpression.class)) { visitInvokeFunctionExpression((InvokeFunctionExpression) expr); return; } if (expr.getClass().equals(ModuleExpression.class)) { visitModuleExpression((ModuleExpression) expr); return; } if (expr.getClass().equals(AbortExpression.class)) { visitAbortExpression((AbortExpression) expr); return; } if (expr.getClass().equals(ExampleExpression.class)) { visitExampleExpression((ExampleExpression) expr); return; } if (expr.getClass().equals(ExternalFunctionExpression.class)) { visitExternalFunctionExpression((ExternalFunctionExpression) expr); return; } if (expr.getClass().equals(ArrayExpression.class)) { visitArrayExpression((ArrayExpression) expr); return; } if (expr.getClass().equals(AssignmentBlockExpression.class)) { visitAssignmentBlockExpression((AssignmentBlockExpression) expr); return; } if (expr.getClass().equals(AssignmentReferenceExpression.class)) { visitAssignmentReferenceExpression((AssignmentReferenceExpression) expr); return; } if (expr.getClass().equals(ModuleArchiveExpression.class)) { visitModuleArchiveExpression((ModuleArchiveExpression) expr); return; } if (expr.getClass().equals(MultiStatementExpression.class)) { visitMultiStatementExpression((MultiStatementExpression) expr); return; } if (expr.getClass().equals(NopExpression.class)) { visitNopExpression((NopExpression) expr); return; } if (expr.getClass().equals(GlobalBuildEnvironmentExpression.class)) { visitGlobalBuildEnvironmentExpression((GlobalBuildEnvironmentExpression) expr); return; } throw new RuntimeException("ro" + expr.getClass().toString()); }  void visit(@Nullable Expression expr); }
ReadonlyVisitor { public void visit(@Nullable Expression expr) { if (expr == null) { return; } if (expr.getClass().equals(FunctionTableExpression.class)) { visitFunctionTableExpression((FunctionTableExpression) expr); return; } if (expr.getClass().equals(FindModuleExpression.class)) { visitFindModuleExpression((FindModuleExpression) expr); return; } if (expr.getClass().equals(ParameterExpression.class)) { visitParameterExpression((ParameterExpression) expr); return; } if (expr.getClass().equals(IfSwitchExpression.class)) { visitIfSwitchExpression((IfSwitchExpression) expr); return; } if (expr.getClass().equals(ConstantExpression.class)) { visitConstantExpression((ConstantExpression) expr); return; } if (expr.getClass().equals(AssignmentExpression.class)) { visitAssignmentExpression((AssignmentExpression) expr); return; } if (expr.getClass().equals(InvokeFunctionExpression.class)) { visitInvokeFunctionExpression((InvokeFunctionExpression) expr); return; } if (expr.getClass().equals(ModuleExpression.class)) { visitModuleExpression((ModuleExpression) expr); return; } if (expr.getClass().equals(AbortExpression.class)) { visitAbortExpression((AbortExpression) expr); return; } if (expr.getClass().equals(ExampleExpression.class)) { visitExampleExpression((ExampleExpression) expr); return; } if (expr.getClass().equals(ExternalFunctionExpression.class)) { visitExternalFunctionExpression((ExternalFunctionExpression) expr); return; } if (expr.getClass().equals(ArrayExpression.class)) { visitArrayExpression((ArrayExpression) expr); return; } if (expr.getClass().equals(AssignmentBlockExpression.class)) { visitAssignmentBlockExpression((AssignmentBlockExpression) expr); return; } if (expr.getClass().equals(AssignmentReferenceExpression.class)) { visitAssignmentReferenceExpression((AssignmentReferenceExpression) expr); return; } if (expr.getClass().equals(ModuleArchiveExpression.class)) { visitModuleArchiveExpression((ModuleArchiveExpression) expr); return; } if (expr.getClass().equals(MultiStatementExpression.class)) { visitMultiStatementExpression((MultiStatementExpression) expr); return; } if (expr.getClass().equals(NopExpression.class)) { visitNopExpression((NopExpression) expr); return; } if (expr.getClass().equals(GlobalBuildEnvironmentExpression.class)) { visitGlobalBuildEnvironmentExpression((GlobalBuildEnvironmentExpression) expr); return; } throw new RuntimeException("ro" + expr.getClass().toString()); }  void visit(@Nullable Expression expr);  }