Java Code Examples for com.sun.org.apache.bcel.internal.classfile.JavaClass#isPublic()
The following examples show how to use
com.sun.org.apache.bcel.internal.classfile.JavaClass#isPublic() .
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 jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** * Java Virtual Machine Specification edition 2, 5.4.4 Access Control */ public boolean accessibleTo(ObjectType accessor) { JavaClass jc = Repository.lookupClass(class_name); if(jc.isPublic()) { return true; } else { JavaClass acc = Repository.lookupClass(accessor.class_name); return acc.getPackageName().equals(jc.getPackageName()); } }
Example 2
Source File: ObjectType.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Java Virtual Machine Specification edition 2, 5.4.4 Access Control */ public boolean accessibleTo(ObjectType accessor) { JavaClass jc = Repository.lookupClass(class_name); if(jc.isPublic()) { return true; } else { JavaClass acc = Repository.lookupClass(accessor.class_name); return acc.getPackageName().equals(jc.getPackageName()); } }
Example 3
Source File: ObjectType.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Java Virtual Machine Specification edition 2, 5.4.4 Access Control */ public boolean accessibleTo(ObjectType accessor) { JavaClass jc = Repository.lookupClass(class_name); if(jc.isPublic()) { return true; } else { JavaClass acc = Repository.lookupClass(accessor.class_name); return acc.getPackageName().equals(jc.getPackageName()); } }
Example 4
Source File: ObjectType.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** * Java Virtual Machine Specification edition 2, 5.4.4 Access Control */ public boolean accessibleTo(ObjectType accessor) { JavaClass jc = Repository.lookupClass(class_name); if(jc.isPublic()) { return true; } else { JavaClass acc = Repository.lookupClass(accessor.class_name); return acc.getPackageName().equals(jc.getPackageName()); } }
Example 5
Source File: ObjectType.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Java Virtual Machine Specification edition 2, 5.4.4 Access Control */ public boolean accessibleTo(ObjectType accessor) { JavaClass jc = Repository.lookupClass(class_name); if(jc.isPublic()) { return true; } else { JavaClass acc = Repository.lookupClass(accessor.class_name); return acc.getPackageName().equals(jc.getPackageName()); } }
Example 6
Source File: ObjectType.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Java Virtual Machine Specification edition 2, 5.4.4 Access Control */ public boolean accessibleTo(ObjectType accessor) { JavaClass jc = Repository.lookupClass(class_name); if(jc.isPublic()) { return true; } else { JavaClass acc = Repository.lookupClass(accessor.class_name); return acc.getPackageName().equals(jc.getPackageName()); } }
Example 7
Source File: ObjectType.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * Java Virtual Machine Specification edition 2, 5.4.4 Access Control * @throws ClassNotFoundException if the class referenced by this type * can't be found */ public boolean accessibleTo( final ObjectType accessor ) throws ClassNotFoundException { final JavaClass jc = Repository.lookupClass(class_name); if (jc.isPublic()) { return true; } final JavaClass acc = Repository.lookupClass(accessor.class_name); return acc.getPackageName().equals(jc.getPackageName()); }
Example 8
Source File: ObjectType.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Java Virtual Machine Specification edition 2, 5.4.4 Access Control */ public boolean accessibleTo(ObjectType accessor) { JavaClass jc = Repository.lookupClass(class_name); if(jc.isPublic()) { return true; } else { JavaClass acc = Repository.lookupClass(accessor.class_name); return acc.getPackageName().equals(jc.getPackageName()); } }
Example 9
Source File: ObjectType.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Java Virtual Machine Specification edition 2, 5.4.4 Access Control */ public boolean accessibleTo(ObjectType accessor) { JavaClass jc = Repository.lookupClass(class_name); if(jc.isPublic()) { return true; } else { JavaClass acc = Repository.lookupClass(accessor.class_name); return acc.getPackageName().equals(jc.getPackageName()); } }
Example 10
Source File: ObjectType.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Java Virtual Machine Specification edition 2, 5.4.4 Access Control */ public boolean accessibleTo(ObjectType accessor) { JavaClass jc = Repository.lookupClass(class_name); if(jc.isPublic()) { return true; } else { JavaClass acc = Repository.lookupClass(accessor.class_name); return acc.getPackageName().equals(jc.getPackageName()); } }
Example 11
Source File: ObjectType.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Java Virtual Machine Specification edition 2, 5.4.4 Access Control */ public boolean accessibleTo(ObjectType accessor) { JavaClass jc = Repository.lookupClass(class_name); if(jc.isPublic()) { return true; } else { JavaClass acc = Repository.lookupClass(accessor.class_name); return acc.getPackageName().equals(jc.getPackageName()); } }