static void applyTypeArguments(final AstType baseType, final List<AstType> typeArguments) { if (baseType instanceof SimpleType) { final SimpleType st = (SimpleType) baseType; st.getTypeArguments().addAll(typeArguments); } }
static void applyTypeArguments(final AstType baseType, final List<AstType> typeArguments) { if (baseType instanceof SimpleType) { final SimpleType st = (SimpleType) baseType; st.getTypeArguments().addAll(typeArguments); } }
static void applyTypeArguments(final AstType baseType, final List<AstType> typeArguments) { if (baseType instanceof SimpleType) { final SimpleType st = (SimpleType) baseType; st.getTypeArguments().addAll(typeArguments); } }
forLoop.getIterators().addAll(iterators);
forLoop.getIterators().addAll(iterators);
forLoop.getIterators().addAll(iterators);
private ConstructorDeclaration createConstructor(final MethodDefinition method) { final ConstructorDeclaration astMethod = new ConstructorDeclaration(); EntityDeclaration.setModifiers( astMethod, Flags.asModifierSet(scrubAccessModifiers(method.getFlags() & Flags.ConstructorFlags)) ); astMethod.setName(method.getDeclaringType().getName()); astMethod.getParameters().addAll(createParameters(method.getParameters())); astMethod.getTypeParameters().addAll(createTypeParameters(method.getGenericParameters())); astMethod.setBody(createMethodBody(method, astMethod.getParameters())); astMethod.putUserData(Keys.METHOD_DEFINITION, method); astMethod.putUserData(Keys.MEMBER_REFERENCE, method); for (final CustomAnnotation annotation : method.getAnnotations()) { astMethod.getAnnotations().add(createAnnotation(annotation)); } for (final TypeReference thrownType : method.getThrownTypes()) { astMethod.addChild(convertType(thrownType), Roles.THROWN_TYPE); } return astMethod; }
private ConstructorDeclaration createConstructor(final MethodDefinition method) { final ConstructorDeclaration astMethod = new ConstructorDeclaration(); EntityDeclaration.setModifiers( astMethod, Flags.asModifierSet(scrubAccessModifiers(method.getFlags() & Flags.ConstructorFlags)) ); astMethod.setName(method.getDeclaringType().getName()); astMethod.getParameters().addAll(createParameters(method.getParameters())); astMethod.setBody(createMethodBody(method, astMethod.getParameters())); astMethod.putUserData(Keys.METHOD_DEFINITION, method); astMethod.putUserData(Keys.MEMBER_REFERENCE, method); for (final TypeReference thrownType : method.getThrownTypes()) { astMethod.addChild(convertType(thrownType), Roles.THROWN_TYPE); } return astMethod; }
private ConstructorDeclaration createConstructor(final MethodDefinition method) { final ConstructorDeclaration astMethod = new ConstructorDeclaration(); EntityDeclaration.setModifiers( astMethod, Flags.asModifierSet(scrubAccessModifiers(method.getFlags() & Flags.ConstructorFlags)) ); astMethod.setName(method.getDeclaringType().getName()); astMethod.getParameters().addAll(createParameters(method.getParameters())); astMethod.setBody(createMethodBody(method, astMethod.getParameters())); astMethod.putUserData(Keys.METHOD_DEFINITION, method); astMethod.putUserData(Keys.MEMBER_REFERENCE, method); for (final TypeReference thrownType : method.getThrownTypes()) { astMethod.addChild(convertType(thrownType), Roles.THROWN_TYPE); } return astMethod; }
astType.getTypeParameters().addAll(typeParameters);
astType.getTypeParameters().addAll(typeParameters);
astType.getTypeParameters().addAll(typeParameters);
creation.getArguments().addAll(adjustArgumentsForMethodCall(methodReference, arguments)); creation.putUserData(Keys.MEMBER_REFERENCE, methodReference);
creation.getArguments().addAll(adjustArgumentsForMethodCall(methodReference, arguments)); creation.putUserData(Keys.MEMBER_REFERENCE, methodReference);
creation.getArguments().addAll(adjustArgumentsForMethodCall(methodReference, arguments)); creation.putUserData(Keys.MEMBER_REFERENCE, methodReference);
); methodGroup.getClosureArguments().addAll( hasInstanceArgument ? arguments.subList(1, arguments.size()) : arguments );
); methodGroup.getClosureArguments().addAll( hasInstanceArgument ? arguments.subList(1, arguments.size()) : arguments );