Search in sources :

Example 1 with Generator_Encodings

use of org.immutables.value.processor.encode.Generator_Encodings in project immutables by immutables.

the class Processor method process.

@Override
protected void process() {
    Round round = ImmutableRound.builder().addAllAnnotations(annotations()).processing(processing()).addAllCustomImmutableAnnotations(CustomImmutableAnnotations.annotations()).round(round()).build();
    Multimap<DeclaringPackage, ValueType> values = round.collectValues();
    invoke(new Generator_Immutables().usingValues(values).generate());
    invoke(new Generator_Modifiables().usingValues(values).generate());
    if (round.environment().hasGsonLib()) {
        invoke(new Generator_Gsons().usingValues(values).generate());
    }
    if (round.environment().hasMongoModule()) {
        invoke(new Generator_Repositories().usingValues(values).generate());
    }
    if (round.environment().hasFuncModule()) {
        invoke(new Generator_Funcs().usingValues(values).generate());
    }
    if (round.environment().hasTreesModule()) {
        invoke(new Generator_Transformers().usingValues(values).generate());
        invoke(new Generator_Visitors().usingValues(values).generate());
    }
    if (round.environment().hasAstModule()) {
        invoke(new Generator_Asts().usingValues(values).generate());
    }
    if (round.environment().hasEncodeModule()) {
        invoke(new Generator_Encodings().generate());
    }
}
Also used : ValueType(org.immutables.value.processor.meta.ValueType) ImmutableRound(org.immutables.value.processor.meta.ImmutableRound) Round(org.immutables.value.processor.meta.Round) Generator_Encodings(org.immutables.value.processor.encode.Generator_Encodings) DeclaringPackage(org.immutables.value.processor.meta.Proto.DeclaringPackage)

Aggregations

Generator_Encodings (org.immutables.value.processor.encode.Generator_Encodings)1 ImmutableRound (org.immutables.value.processor.meta.ImmutableRound)1 DeclaringPackage (org.immutables.value.processor.meta.Proto.DeclaringPackage)1 Round (org.immutables.value.processor.meta.Round)1 ValueType (org.immutables.value.processor.meta.ValueType)1