Java Code Examples for com.sun.tools.classfile.Dependency.Location#getClassName()

The following examples show how to use com.sun.tools.classfile.Dependency.Location#getClassName() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Analyzer.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private String getLocationName(Location o) {
    if (level == Type.CLASS || level == Type.VERBOSE) {
        return o.getClassName();
    } else {
        String pkg = o.getPackageName();
        return pkg.isEmpty() ? "<unnamed>" : pkg;
    }
}
 
Example 2
Source File: Analyzer.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private String getLocationName(Location o) {
    if (level == Type.CLASS || level == Type.VERBOSE) {
        return o.getClassName();
    } else {
        String pkg = o.getPackageName();
        return pkg.isEmpty() ? "<unnamed>" : pkg;
    }
}
 
Example 3
Source File: Analyzer.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private String getLocationName(Location o) {
    if (level == Type.CLASS || level == Type.VERBOSE) {
        return o.getClassName();
    } else {
        String pkg = o.getPackageName();
        return pkg.isEmpty() ? "<unnamed>" : pkg;
    }
}
 
Example 4
Source File: Analyzer.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private String getLocationName(Location o) {
    if (level == Type.CLASS || level == Type.VERBOSE) {
        return o.getClassName();
    } else {
        String pkg = o.getPackageName();
        return pkg.isEmpty() ? "<unnamed>" : pkg;
    }
}
 
Example 5
Source File: Analyzer.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public boolean contains(Location location) {
    String cn = location.getClassName();
    int i = cn.lastIndexOf('.');
    String pn = i > 0 ? cn.substring(0, i) : "";

    return jdk8Internals.contains(pn);
}
 
Example 6
Source File: Analyzer.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private String getLocationName(Location o) {
    if (level == Type.CLASS || level == Type.VERBOSE) {
        return o.getClassName();
    } else {
        String pkg = o.getPackageName();
        return pkg.isEmpty() ? "<unnamed>" : pkg;
    }
}
 
Example 7
Source File: Analyzer.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void visit(Location o, Location t) {
    Archive targetArchive =
        this.archive.getClasses().contains(t) ? this.archive : map.get(t);
    if (targetArchive == null) {
        map.put(t, targetArchive = NOT_FOUND);
    }

    String origin = o.getClassName();
    String target = t.getClassName();
    add(origin, target, targetArchive, t.getPackageName());
}
 
Example 8
Source File: Analyzer.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void visit(Location o, Location t) {
    Archive targetArchive =
        this.archive.getClasses().contains(t) ? this.archive : map.get(t);
    if (targetArchive == null) {
        map.put(t, targetArchive = NOT_FOUND);
    }

    String origin = o.getClassName();
    String target = t.getClassName();
    add(origin, target, targetArchive, t.getPackageName());
}