Examples of newSimpleName()


Examples of com.asakusafw.utils.java.model.syntax.ModelFactory.newSimpleName()

                            context.resolve(SuppressWarnings.class),
                            Models.toLiteral(f, "deprecation"))
                    .Public()
                    .toAttributes(),
                context.resolve(void.class),
                f.newSimpleName(name.toMemberName()),
                Arrays.asList(new FormalParameterDeclaration[] {
                        f.newFormalParameterDeclaration(
                                context.resolve(String.class),
                                paramName)
                }),
View Full Code Here

Examples of com.asakusafw.utils.java.model.syntax.ModelFactory.newSimpleName()

                new AttributeBuilder(f)
                    .annotation(context.resolve(Override.class))
                    .Public()
                    .toAttributes(),
                context.resolve(String.class),
                f.newSimpleName("toString"), //$NON-NLS-1$
                Collections.<FormalParameterDeclaration>emptyList(),
                statements);
    }

    private MethodDeclaration createHashCode(EmitContext context, ModelDeclaration model) {
View Full Code Here

Examples of com.asakusafw.utils.java.model.syntax.ModelFactory.newSimpleName()

                new AttributeBuilder(f)
                    .annotation(context.resolve(Override.class))
                    .Public()
                    .toAttributes(),
                Models.toType(f, int.class),
                f.newSimpleName("hashCode"), //$NON-NLS-1$
                Collections.<FormalParameterDeclaration>emptyList(),
                statements);
    }

    private MethodDeclaration createEquals(EmitContext context, ModelDeclaration model) {
View Full Code Here

Examples of com.asakusafw.utils.java.model.syntax.ModelFactory.newSimpleName()

        assert key != null;
        assert value != null;
        assert index >= 0;
        assert requiresReducer(slot);
        ModelFactory f = environment.getModelFactory();
        SimpleName className = f.newSimpleName(Naming.getMapClass(index));
        ImportBuilder importer = new ImportBuilder(
                f,
                f.newPackageDeclaration(environment.getEpiloguePackageName(moduleId)),
                Strategy.TOP_LEVEL);
        importer.resolvePackageMember(className);
View Full Code Here

Examples of com.asakusafw.utils.java.model.syntax.ModelFactory.newSimpleName()

    private Name emitOutputMapper(Slot slot, int index) throws IOException {
        assert slot != null;
        assert index >= 0;
        assert requiresReducer(slot) == false;
        ModelFactory f = environment.getModelFactory();
        SimpleName className = f.newSimpleName(Naming.getMapClass(index));
        ImportBuilder importer = new ImportBuilder(
                f,
                f.newPackageDeclaration(environment.getEpiloguePackageName(moduleId)),
                Strategy.TOP_LEVEL);
        importer.resolvePackageMember(className);
View Full Code Here

Examples of com.asakusafw.utils.java.model.syntax.ModelFactory.newSimpleName()

    private Name emitWithSpecs(String classNameString, Class<?> baseClass, List<Slot> slots) throws IOException {
        assert classNameString != null;
        assert baseClass != null;
        assert slots != null;
        ModelFactory f = environment.getModelFactory();
        SimpleName className = f.newSimpleName(classNameString);
        ImportBuilder importer = new ImportBuilder(
                f,
                f.newPackageDeclaration(environment.getEpiloguePackageName(moduleId)),
                Strategy.TOP_LEVEL);
        importer.resolvePackageMember(className);
View Full Code Here

Examples of com.asakusafw.utils.java.model.syntax.ModelFactory.newSimpleName()

            Name argumentClassName) throws IOException {
        assert classNameString != null;
        assert baseClass != null;
        assert argumentClassName != null;
        ModelFactory f = environment.getModelFactory();
        SimpleName className = f.newSimpleName(classNameString);
        ImportBuilder importer = new ImportBuilder(
                f,
                f.newPackageDeclaration(environment.getEpiloguePackageName(moduleId)),
                Strategy.TOP_LEVEL);
        importer.resolvePackageMember(className);
View Full Code Here

Examples of com.asakusafw.utils.java.model.syntax.ModelFactory.newSimpleName()

                    .Private()
                    .Static()
                    .Final()
                    .toAttributes(),
                type,
                f.newSimpleName(FIELD_DELETE_FLAG_VALUE),
                value);
    }

    private MethodDeclaration createModelVersionMethod(
            EmitContext context,
View Full Code Here

Examples of com.asakusafw.utils.java.model.syntax.ModelFactory.newSimpleName()

                new AttributeBuilder(f)
                    .annotation(context.resolve(Override.class))
                    .Public()
                    .toAttributes(),
                context.resolve(long.class),
                f.newSimpleName("__tgc__DataModelVersion"),
                Collections.<FormalParameterDeclaration>emptyList(),
                statements);
    }

    private long computeModelVersion(EmitContext context, ModelDeclaration model, CacheSupportTrait trait) {
View Full Code Here

Examples of com.asakusafw.utils.java.model.syntax.ModelFactory.newSimpleName()

                new AttributeBuilder(f)
                    .annotation(context.resolve(Override.class))
                    .Public()
                    .toAttributes(),
                context.resolve(String.class),
                f.newSimpleName("__tgc__TimestampColumn"),
                Collections.<FormalParameterDeclaration>emptyList(),
                statements);
    }

    private MethodDeclaration createSystemIdMethod(
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.