protected void createFragmentForArray(String signature, StringBuilder uriBuilder) { String elementType = Signature.getElementType(signature); createFragment(elementType, uriBuilder); int dim = Signature.getArrayCount(signature); for (int i = 0; i < dim; i++) { uriBuilder.append("[]"); } }
protected void createFragmentForTypeVariable(ITypeBinding typeBinding, StringBuilder uriBuilder) { if (typeBinding.getDeclaringMethod() != null) { createFragmentForMethod(typeBinding.getDeclaringMethod(), uriBuilder); } else { createFragment(typeBinding.getDeclaringClass(), uriBuilder); } uriBuilder.append('/'); uriBuilder.append(typeBinding.getName()); }
protected void createFragmentForArray(ITypeBinding typeBinding, StringBuilder uriBuilder) { createFragment(typeBinding.getComponentType(), uriBuilder); uriBuilder.append("[]"); }
public String getFragment(String signature) { StringBuilder uriBuilder = new StringBuilder(32); createFragment(signature, uriBuilder); return uriBuilder.toString(); }
protected void getFullURI(ITypeBinding typeBinding, StringBuilder uriBuilder) { createResourceURI(typeBinding, uriBuilder); uriBuilder.append('#'); createFragment(typeBinding, uriBuilder); }