/** * Creates a {@link DatabaseRef} to the given {@link NdType}. */ public static TypeRef create(NdType type) { return new TypeRef(type); }
this.simpleAttributesInitialized = true; try (IReader rl = this.typeRef.lock()) { NdType type = this.typeRef.get(); if (type != null) { IString declaringMethod = type.getDeclaringMethod(); this.binaryTypeName = JavaNames.fieldDescriptorToBinaryName(this.typeRef.getFieldDescriptor());
AccessRuleSet ruleSet = classpathEntry.getAccessRuleSet(); AccessRestriction accessRestriction = ruleSet == null? null : ruleSet.getViolatedRestriction(binaryName); TypeRef typeRef = TypeRef.create(next); String fileName = new String(binaryName) + ".class"; //$NON-NLS-1$ IBinaryType binaryType = new IndexBinaryType(typeRef, fileName.toCharArray());
public boolean exists() { return this.typeRef.get() != null; }
this.simpleAttributesInitialized = true; try (IReader rl = this.typeRef.lock()) { NdType type = this.typeRef.get(); if (type != null) { IString declaringMethod = type.getDeclaringMethod(); this.binaryTypeName = JavaNames.fieldDescriptorToBinaryName(this.typeRef.getFieldDescriptor());
AccessRuleSet ruleSet = classpathEntry.getAccessRuleSet(); AccessRestriction accessRestriction = ruleSet == null? null : ruleSet.getViolatedRestriction(binaryName); TypeRef typeRef = TypeRef.create(next); String fileName = new String(binaryName) + ".class"; //$NON-NLS-1$ IBinaryType binaryType = new IndexBinaryType(typeRef, fileName.toCharArray());
public boolean exists() { return this.typeRef.get() != null; }
/** * Creates a {@link DatabaseRef} to the {@link NdType} with the given resource path and field descriptor. */ public static TypeRef create(Nd nd, char[] resourcePath, char[] fieldDescriptor) { return new TypeRef(nd, resourcePath, fieldDescriptor); }
IndexBinaryType actualType = new IndexBinaryType(TypeRef.create(targetType), indexPath); IndexTester.testType(binaryType, actualType); } else {
/** * Creates a {@link DatabaseRef} to the {@link NdType} with the given resource path and field descriptor. */ public static TypeRef create(Nd nd, char[] resourcePath, char[] fieldDescriptor) { return new TypeRef(nd, resourcePath, fieldDescriptor); }
IndexBinaryType actualType = new IndexBinaryType(TypeRef.create(targetType), indexPath); IndexTester.testType(binaryType, actualType); } else {
/** * Creates a {@link DatabaseRef} to the given {@link NdType}. */ public static TypeRef create(NdType type) { return new TypeRef(type); }