protected void setScanResult(final ScanResult scanResult) { this.scanResult = scanResult; if (this.annotationInfo != null) { for (final AnnotationInfo ai : annotationInfo) { ai.setScanResult(scanResult); } } if (this.typeDescriptor != null) { this.typeDescriptor.setScanResult(scanResult); } if (this.typeSignature != null) { this.typeSignature.setScanResult(scanResult); } }
@Override void setScanResult(final ScanResult scanResult) { super.setScanResult(scanResult); if (elementTypeSignature != null) { elementTypeSignature.setScanResult(scanResult); } }
@Override void setScanResult(final ScanResult scanResult) { super.setScanResult(scanResult); if (typeSignature != null) { typeSignature.setScanResult(scanResult); } }
@Override void setScanResult(final ScanResult scanResult) { super.setScanResult(scanResult); if (this.typeSignature != null) { this.typeSignature.setScanResult(scanResult); } if (this.typeDescriptor != null) { this.typeDescriptor.setScanResult(scanResult); } if (this.annotationInfo != null) { for (final AnnotationInfo ai : this.annotationInfo) { ai.setScanResult(scanResult); } } }
/** * Returns the parsed type signature for the field, if available. * * @return The parsed type signature for the field, if available, else returns null. */ public TypeSignature getTypeSignature() { if (typeSignatureStr == null) { return null; } if (typeSignature == null) { try { typeSignature = TypeSignature.parse(typeSignatureStr, declaringClassName); typeSignature.setScanResult(scanResult); } catch (final ParseException e) { throw new IllegalArgumentException(e); } } return typeSignature; }
/** * @return The type signature of the {@code Class<?>} reference. This will be a {@link ClassRefTypeSignature} or * a {@link BaseTypeSignature}. */ private TypeSignature getTypeSignature() { if (typeSignature == null) { try { // There can't be any type variables to resolve in either ClassRefTypeSignature or // BaseTypeSignature, so just set definingClassName to null typeSignature = TypeSignature.parse(typeDescriptorStr, /* definingClassName = */ null); typeSignature.setScanResult(scanResult); } catch (final ParseException e) { throw new IllegalArgumentException(e); } } return typeSignature; }
/** * Returns the parsed type descriptor for the field, if available. * * @return The parsed type descriptor for the field, if available, else returns null. */ public TypeSignature getTypeDescriptor() { if (typeDescriptorStr == null) { return null; } if (typeDescriptor == null) { try { typeDescriptor = TypeSignature.parse(typeDescriptorStr, declaringClassName); typeDescriptor.setScanResult(scanResult); } catch (final ParseException e) { throw new IllegalArgumentException(e); } } return typeDescriptor; }
@Override void setScanResult(final ScanResult scanResult) { super.setScanResult(scanResult); if (typeParameters != null) { for (final TypeParameter typeParameter : typeParameters) { typeParameter.setScanResult(scanResult); } } if (this.parameterTypeSignatures != null) { for (final TypeSignature typeParameter : parameterTypeSignatures) { typeParameter.setScanResult(scanResult); } } if (this.resultType != null) { this.resultType.setScanResult(scanResult); } if (throwsSignatures != null) { for (final ClassRefOrTypeVariableSignature throwsSignature : throwsSignatures) { throwsSignature.setScanResult(scanResult); } } }