
io.ghostwriter.openjdk.v7.model.Clazz 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.code.Symbol;
import com.sun.tools.javac.tree.JCTree;
import com.sun.tools.javac.util.Name;
public class Clazz extends AstModel {
public Clazz(JCTree.JCClassDecl representation) {
super(representation);
}
public String getFullyQualifiedClassName() {
JCTree.JCClassDecl classDecl = representation();
final Symbol.ClassSymbol sym = classDecl.sym;
final boolean isAnonymousClass = sym == null;
String name = "";
if (!isAnonymousClass) {
final Name qualifiedName = sym.getQualifiedName();
name = qualifiedName.toString();
}
return name;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy