]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libvaladoc/api: Add API documentation for Field
authorFlorian Brosch <flo.brosch@gmail.com>
Mon, 28 Feb 2011 00:45:51 +0000 (01:45 +0100)
committerFlorian Brosch <flo.brosch@gmail.com>
Mon, 28 Feb 2011 00:45:51 +0000 (01:45 +0100)
src/libvaladoc/api/field.vala

index d94d26e1dd466c66bf3fe2c02b4206de69034530..85b84c8d5e613b60edac21f3d5490020c60fab8e 100644 (file)
 using Gee;
 using Valadoc.Content;
 
+
+/**
+ * Represents a field.
+ */
 public class Valadoc.Api.Field : Member {
        public Field (Vala.Field symbol, Node parent) {
                base (symbol, parent);
                field_type = new TypeReference (symbol.variable_type, this);
        }
 
+       /**
+        * Returns the name of this field as it is used in C.
+        */
        public string? get_cname () {
                return ((Vala.Field) symbol).get_cname();
        }
 
+       /**
+        * The field type.
+        *
+        * @return The field type or null for void
+        */
        public TypeReference? field_type { private set; get; }
 
+       /**
+        * Specifies whether the field is static.
+        */
        public bool is_static {
                get {
                        if (this.parent is Namespace) {
@@ -45,18 +60,27 @@ public class Valadoc.Api.Field : Member {
                }
        }
 
+       /**
+        * Specifies whether the field is volatile.
+        */
        public bool is_volatile {
                get {
                        return ((Vala.Field) symbol).is_volatile;
                }
        }
 
+       /**
+        * {@inheritDoc}
+        */
        internal override void resolve_type_references (Tree root) {
                field_type.resolve_type_references (root);
 
                base.resolve_type_references (root);
        }
 
+       /**
+        * {@inheritDoc}
+        */
        protected override Inline build_signature () {
                var signature = new SignatureBuilder ();
 
@@ -73,8 +97,14 @@ public class Valadoc.Api.Field : Member {
                return signature.get ();
        }
 
+       /**
+        * {@inheritDoc}
+        */
        public override NodeType node_type { get { return NodeType.FIELD; } }
 
+       /**
+        * {@inheritDoc}
+        */
        public override void accept (Visitor visitor) {
                visitor.visit_field (this);
        }