public String declString() { // the X10 field declaration needs to be displayed in the field's // comments only if the field type // is X10-specific, or if the field has associated constraints // TODO: look for constraints, include constraints in declaration string if (X10Type.isX10Specific(type)) { String result = "<B>Field Type</B>: <TT>" + fieldDef.type().get().toString() + "</TT><PRE>\n</PRE>"; return result; } return ""; }
public X10FieldDoc(X10FieldDef fd, X10ClassDoc containingClass, String comment) { // super(comment); this.fieldDef = fd; this.containingClass = containingClass; this.rootDoc = X10RootDoc.getRootDoc(); this.type = rootDoc.getType(fieldDef.type().get()); // X10Doc.isIncluded(..., this) valid only if // this.{isPublic(),...,isPrivate()} are valid, which requires // this.fieldDef to have been set appropriately this.included = X10Doc.isIncluded(this.rootDoc.accessModFilter(), this); super.processComment(comment); }
public boolean isTransient() { return fieldDef.flags().isTransient(); }
public Object constantValue() { return fieldDef.constantValue(); }
@Override public String name() { return fieldDef.name().toString(); }
public String modifiers() { return fieldDef.flags().toString(); }
public String qualifiedName() { String str = fieldDef.type().toString(); // System.out.println("FieldDoc.qualifiedName() called. fieldDef.type().toString() = " // + str); return str; }
public int modifierSpecifier() { return X10Doc.flagsToModifierSpecifier(fieldDef.flags().flags()); }
public boolean isStatic() { return fieldDef.flags().isStatic(); }
public boolean isProtected() { return fieldDef.flags().isProtected(); }
public boolean isPrivate() { return fieldDef.flags().isPrivate(); }
public boolean isFinal() { return fieldDef.flags().isFinal(); }