コード例 #1
0
 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 "";
 }
コード例 #2
0
  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);
  }
コード例 #3
0
 public boolean isTransient() {
   return fieldDef.flags().isTransient();
 }
コード例 #4
0
 public Object constantValue() {
   return fieldDef.constantValue();
 }
コード例 #5
0
 @Override
 public String name() {
   return fieldDef.name().toString();
 }
コード例 #6
0
 public String modifiers() {
   return fieldDef.flags().toString();
 }
コード例 #7
0
 public String qualifiedName() {
   String str = fieldDef.type().toString();
   // System.out.println("FieldDoc.qualifiedName() called. fieldDef.type().toString() = "
   // + str);
   return str;
 }
コード例 #8
0
 public int modifierSpecifier() {
   return X10Doc.flagsToModifierSpecifier(fieldDef.flags().flags());
 }
コード例 #9
0
 public boolean isStatic() {
   return fieldDef.flags().isStatic();
 }
コード例 #10
0
 public boolean isProtected() {
   return fieldDef.flags().isProtected();
 }
コード例 #11
0
 public boolean isPrivate() {
   return fieldDef.flags().isPrivate();
 }
コード例 #12
0
 public boolean isFinal() {
   return fieldDef.flags().isFinal();
 }