Пример #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();
 }