Expressions.methodDecl(Modifier.PUBLIC, void.class, StormBuiltInMethod.EXPR_EXECUTE2.method.getName(), ImmutableList.of(context, outputValues), block)); Expressions.arrayIndex(values_, Expressions.constant(0)))); declarations.add( Expressions.methodDecl(Modifier.PUBLIC, Object.class, StormBuiltInMethod.EXPR_EXECUTE1.method.getName(), ImmutableList.of(context), builder.toBlock()));
/** Declares a method that overrides another method. */ public static MethodDeclaration overridingMethodDecl(Method method, Iterable<ParameterExpression> parameters, BlockStatement body) { return Expressions.methodDecl( method.getModifiers() & ~Modifier.ABSTRACT, method.getReturnType(), method.getName(), parameters, body); }
/** Declares a method that overrides another method. */ public static MethodDeclaration overridingMethodDecl(Method method, Iterable<ParameterExpression> parameters, BlockStatement body) { return Expressions.methodDecl( method.getModifiers() & ~Modifier.ABSTRACT, method.getReturnType(), method.getName(), parameters, body); }
public MemberDeclaration visit(MethodDeclaration methodDeclaration, BlockStatement body) { return body.equals(methodDeclaration.body) ? methodDeclaration : Expressions.methodDecl(methodDeclaration.modifier, methodDeclaration.resultType, methodDeclaration.name, methodDeclaration.parameters, body); }
Expressions.methodDecl(Modifier.PUBLIC, void.class, SamzaBuiltInMethod.EXPR_EXECUTE2.method.getName(), ImmutableList.of(executionContext, dataContext, inputValues, outputValues), block));
Expressions.methodDecl(Modifier.PUBLIC, void.class, SamzaBuiltInMethod.EXPR_EXECUTE2.method.getName(), ImmutableList.of(executionContext, dataContext, inputValues, outputValues), block));
Expressions.methodDecl(Modifier.PUBLIC, void.class, StreamlineBuiltInMethod.EXPR_EXECUTE2.method.getName(), ImmutableList.of(context_, outputValues_), block)); Expressions.arrayIndex(values_, Expressions.constant(0)))); declarations.add( Expressions.methodDecl(Modifier.PUBLIC, Object.class, StreamlineBuiltInMethod.EXPR_EXECUTE1.method.getName(), ImmutableList.of(context_), builder.toBlock()));
Expressions.methodDecl(Modifier.PUBLIC, void.class, BuiltInMethod.SCALAR_EXECUTE2.method.getName(), ImmutableList.of(context_, outputValues_), block)); Expressions.arrayIndex(values_, Expressions.constant(0)))); declarations.add( Expressions.methodDecl(Modifier.PUBLIC, Object.class, BuiltInMethod.SCALAR_EXECUTE1.method.getName(), ImmutableList.of(context_), builder.toBlock()));
Expressions.methodDecl(Modifier.PUBLIC, void.class, BuiltInMethod.SCALAR_EXECUTE2.method.getName(), ImmutableList.of(context_, outputValues_), block)); Expressions.arrayIndex(values_, Expressions.constant(0)))); declarations.add( Expressions.methodDecl(Modifier.PUBLIC, Object.class, BuiltInMethod.SCALAR_EXECUTE1.method.getName(), ImmutableList.of(context_), builder.toBlock()));
Expressions.methodDecl( Modifier.PUBLIC, Enumerable.class, block)); memberDeclarations.add( Expressions.methodDecl(Modifier.PUBLIC, Class.class, BuiltInMethod.TYPED_GET_ELEMENT_TYPE.method.getName(), ImmutableList.of(),
result.block.statements)); memberDeclarations.add( Expressions.methodDecl( Modifier.PUBLIC, Enumerable.class, block)); memberDeclarations.add( Expressions.methodDecl(Modifier.PUBLIC, Class.class, BuiltInMethod.TYPED_GET_ELEMENT_TYPE.method.getName(), ImmutableList.of(),
Expressions.newArrayInit(Object[].class, expressions))); final MethodDeclaration methodDecl = Expressions.methodDecl(Modifier.PUBLIC, Object[].class, BuiltInMethod.FUNCTION1_APPLY.method.getName(), ImmutableList.of(root0_), blockBuilder.toBlock());
Expressions.newArrayInit(Object[].class, expressions))); final MethodDeclaration methodDecl = Expressions.methodDecl(Modifier.PUBLIC, Object[].class, BuiltInMethod.FUNCTION1_APPLY.method.getName(), ImmutableList.of(root0_), blockBuilder.toBlock());
Expressions.return_(null, Expressions.foldAnd(conditions))); classDeclaration.memberDeclarations.add( Expressions.methodDecl( Modifier.PUBLIC, boolean.class, Expressions.return_(null, hParameter)); classDeclaration.memberDeclarations.add( Expressions.methodDecl( Modifier.PUBLIC, int.class, Expressions.return_(null, constantZero)); classDeclaration.memberDeclarations.add( Expressions.methodDecl( Modifier.PUBLIC, int.class, expression5)); classDeclaration.memberDeclarations.add( Expressions.methodDecl( Modifier.PUBLIC, String.class,
Expressions.methodDecl( Modifier.PUBLIC, int.class,
Expressions.methodDecl( Modifier.PUBLIC, int.class,
Expressions.methodDecl( Modifier.PUBLIC, int.class,
Expressions.methodDecl( Modifier.PUBLIC, int.class,
inputEnumerator, BuiltInMethod.ENUMERATOR_CLOSE.method))), Expressions.methodDecl( Modifier.PUBLIC, BRIDGE_METHODS Expressions.methodDecl( Modifier.PUBLIC, enumeratorType,
inputEnumerator, BuiltInMethod.ENUMERATOR_CLOSE.method))), Expressions.methodDecl( Modifier.PUBLIC, BRIDGE_METHODS Expressions.methodDecl( Modifier.PUBLIC, enumeratorType,