); if (to.isField()) { defaultLabelHtml += to.name(); } else
); if (to.isField() || to.isEnumConstant()) { defaultLabelHtml += to.name(); } else
/** * Generates the "fragment" identifier for the given <var>doc</var>. * <dl> * <dt>{@link FieldDoc}:</dt> * <dd>{@code "#fieldName"}</dd> * <dt>{@link MethodDoc}:</dt> * <dd>{@code "#methodName(java.lang.String,int)"}</dd> * <dt>Other:</dt> * <dd>{@code ""}</dd> * </dl> */ private static String fragmentIdentifier(Doc doc) { if (doc.isField()) return '#' + doc.name(); if (doc.isConstructor()) { ConstructorDoc constructorDoc = (ConstructorDoc) doc; return ( '#' + constructorDoc.containingClass().name() + Html.parameterListForFragmentIdentifier(constructorDoc) ); } if (doc.isMethod()) { MethodDoc methodDoc = (MethodDoc) doc; return '#' + doc.name() + Html.parameterListForFragmentIdentifier(methodDoc); } return ""; }
/** * Generates the "fragment" identifier for the given <var>doc</var>. * <dl> * <dt>{@link FieldDoc}:</dt> * <dd>{@code "#fieldName"}</dd> * <dt>{@link MethodDoc}:</dt> * <dd>{@code "#methodName(java.lang.String,int)"}</dd> * <dt>Other:</dt> * <dd>{@code ""}</dd> * </dl> */ private static String fragmentIdentifier(Doc doc) { if (doc.isField()) return '#' + doc.name(); if (doc.isConstructor()) { ConstructorDoc constructorDoc = (ConstructorDoc) doc; return ( '#' + constructorDoc.containingClass().name() + Html.parameterListForFragmentIdentifier(constructorDoc) ); } if (doc.isMethod()) { MethodDoc methodDoc = (MethodDoc) doc; return '#' + doc.name() + Html.parameterListForFragmentIdentifier(methodDoc); } return ""; }
if( holder.isField() && ((FieldDoc) holder).constantValue() != null && htmlWriter instanceof ClassWriterImpl )
if (holder.isField() && ((FieldDoc)holder).constantValue() != null && htmlWriter instanceof ClassWriterImpl) {