/** * Creates a new {@link IReferenceDescriptor} object * * @param origincomponent the component where the reference comes from * @param originmember the member where the reference comes from * @param line the line number of the reference or -1 if unknown * @param targetcomponent the component the reference is to * @param targetmember the member the reference is to * @param kind the kind of the reference. See * {@link org.eclipse.pde.api.tools.internal.provisional.builder.IReference} * for a complete list of kinds * @param flags the flags of the reference. See * {@link org.eclipse.pde.api.tools.internal.provisional.builder.IReference} * for a complete list of flags * @param visibility the visibility of the reference. See * {@link VisibilityModifiers} for a complete list of * visibilities * @param messages a listing of {@link IApiProblem} messages associated with * this reference descriptor * @return a new {@link IReferenceDescriptor} * @since 1.1 */ public static IReferenceDescriptor referenceDescriptor(IComponentDescriptor origincomponent, IMemberDescriptor originmember, int line, IComponentDescriptor targetcomponent, IMemberDescriptor targetmember, int kind, int flags, int visibility, String[] messages) { return new ReferenceDescriptor(origincomponent, originmember, line, targetcomponent, targetmember, kind, flags, visibility, messages); }
@Override public void visitReference(IReferenceDescriptor reference) { ReferenceDescriptor refDesc = new ReferenceDescriptor(fReferencingComponent, reference.getMember(), reference.getLineNumber(), fCurrentComponent, fCurrentReferencedMember, reference.getReferenceKind(), reference.getReferenceFlags(), reference.getVisibility(), null); fReferences.add(fCurrentReferencedMemberRootType, refDesc); }