All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ghostwriter.openjdk.v7.model.AstModel Maven / Gradle / Ivy

The newest version!
package io.ghostwriter.openjdk.v7.model;


import com.sun.tools.javac.tree.JCTree;

import java.util.Objects;

//NOTE (snorbi07): yes... I know, leaking implementation details. This is why it is in an implementation specific package.
// used for providing the possibility to pass around context if necessary to avoid "global" state...
public class AstModel {

    private final T representation;

    public AstModel(T representation) {
        this.representation = Objects.requireNonNull(representation, "Must provide a valid AST representation!");
    }

    public T representation() {
        return representation;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy