
io.ghostwriter.openjdk.v7.model.AstModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ghostwriter-jdk-v7 Show documentation
Show all versions of ghostwriter-jdk-v7 Show documentation
Ghostwriter API complie time instrumentation support for Java 7
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