Java Code Examples for com.sun.org.apache.bcel.internal.Repository#instanceOf()

The following examples show how to use com.sun.org.apache.bcel.internal.Repository#instanceOf() . 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: ObjectType.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
/**
 * Return true if this type is a subclass of given ObjectType.
 * @throws ClassNotFoundException if any of this class's superclasses
 *  can't be found
 */
public boolean subclassOf( final ObjectType superclass ) throws ClassNotFoundException {
    if (this.referencesInterfaceExact() || superclass.referencesInterfaceExact()) {
        return false;
    }
    return Repository.instanceOf(this.class_name, superclass.class_name);
}
 
Example 2
Source File: ObjectType.java    From jdk1.8-source-analysis with Apache License 2.0 4 votes vote down vote up
public boolean subclassOf(ObjectType superclass){
  if (this.referencesInterface() || superclass.referencesInterface())
    return false;

  return Repository.instanceOf(this.class_name, superclass.class_name);
}
 
Example 3
Source File: ObjectType.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public boolean subclassOf(ObjectType superclass){
  if (this.referencesInterface() || superclass.referencesInterface())
    return false;

  return Repository.instanceOf(this.class_name, superclass.class_name);
}
 
Example 4
Source File: ObjectType.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public boolean subclassOf(ObjectType superclass){
  if (this.referencesInterface() || superclass.referencesInterface())
    return false;

  return Repository.instanceOf(this.class_name, superclass.class_name);
}
 
Example 5
Source File: ObjectType.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
public boolean subclassOf(ObjectType superclass){
  if (this.referencesInterface() || superclass.referencesInterface())
    return false;

  return Repository.instanceOf(this.class_name, superclass.class_name);
}
 
Example 6
Source File: ObjectType.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public boolean subclassOf(ObjectType superclass){
  if (this.referencesInterface() || superclass.referencesInterface())
    return false;

  return Repository.instanceOf(this.class_name, superclass.class_name);
}
 
Example 7
Source File: ObjectType.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public boolean subclassOf(ObjectType superclass){
  if (this.referencesInterface() || superclass.referencesInterface())
    return false;

  return Repository.instanceOf(this.class_name, superclass.class_name);
}
 
Example 8
Source File: ObjectType.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public boolean subclassOf(ObjectType superclass){
  if (this.referencesInterface() || superclass.referencesInterface())
    return false;

  return Repository.instanceOf(this.class_name, superclass.class_name);
}
 
Example 9
Source File: ObjectType.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public boolean subclassOf(ObjectType superclass){
  if (this.referencesInterface() || superclass.referencesInterface())
    return false;

  return Repository.instanceOf(this.class_name, superclass.class_name);
}
 
Example 10
Source File: ObjectType.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public boolean subclassOf(ObjectType superclass){
  if (this.referencesInterface() || superclass.referencesInterface())
    return false;

  return Repository.instanceOf(this.class_name, superclass.class_name);
}
 
Example 11
Source File: ObjectType.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public boolean subclassOf(ObjectType superclass){
  if (this.referencesInterface() || superclass.referencesInterface())
    return false;

  return Repository.instanceOf(this.class_name, superclass.class_name);
}