libdoclet.vala.stamp: $(libdoclet_la_VALASOURCES)
- $(VALAC) -C --vapidir ../../htmlhelpers/doclet --pkg libhtmlhelpers-1.0 --vapidir ../../../vapi --pkg valadoc-1.0 --pkg libxml-2.0 --pkg gee-1.0 --vapidir . --pkg docletconfig --basedir . $^
+ $(VALAC) -C --vapidir ../../htmlhelpers/doclet --pkg libhtmlhelpers-1.0 --vapidir ../../../vapi --vapidir ../../../libvaladoc --pkg valadoc-1.0 --pkg libxml-2.0 --pkg gee-1.0 --vapidir . --pkg docletconfig --basedir . $^
touch $@
using Valadoc;
-using GLib;
+using Valadoc.Api;
using Xml;
using Gee;
-
namespace Valadoc.Devhelp {
public string? get_html_link ( Settings settings, Documentation element, Documentation? pos ) {
if ( element is Visitable ) {
private const string css_path = "wikistyle.css";
private string package_dir_name = ""; // remove
private DevhelpFormat devhelp;
- private Tree tree;
+ private Api.Tree tree;
private string get_path ( Api.Node element ) {
return element.full_name () + ".html";
return GLib.Path.build_filename ( this.settings.path, this.package_dir_name, element.full_name () + ".html" );
}
- public override void initialisation ( Settings settings, Tree tree ) {
+ public override void initialisation ( Settings settings, Api.Tree tree ) {
this.settings = settings;
this.tree = tree;
public override void visit_error_code ( ErrorCode errcode ) {
}
- public override void visit_enum_value ( EnumValue enval ) {
+ public override void visit_enum_value ( Api.EnumValue enval ) {
}
public override void visit_delegate ( Delegate del ) {
file = null;
}
- public override void visit_signal ( Signal sig ) {
+ public override void visit_signal ( Api.Signal sig ) {
string rpath = this.get_real_path ( sig );
string path = this.get_path ( sig );
file = null;
}
- public override void visit_method ( Method m, Valadoc.MethodHandler parent ) {
+ public override void visit_method ( Method m, Api.MethodHandler parent ) {
string rpath = this.get_real_path ( m );
string path = this.get_path ( m );
libdoclet.vala.stamp: $(libdoclet_la_VALASOURCES)
- $(VALAC) -C --vapidir ../../htmlhelpers/doclet --pkg libhtmlhelpers-1.0 --vapidir ../../../vapi --pkg valadoc-1.0 --pkg gee-1.0 --vapidir . --pkg docletconfig --basedir . $^
+ $(VALAC) -C --vapidir ../../htmlhelpers/doclet --pkg libhtmlhelpers-1.0 --vapidir ../../../vapi --vapidir ../../../libvaladoc --pkg valadoc-1.0 --pkg gee-1.0 --vapidir . --pkg docletconfig --basedir . $^
touch $@
using Valadoc;
-using GLib;
+using Valadoc.Api;
using Gee;
-
namespace Valadoc {
public string? get_html_link ( Settings settings, Documentation element, Documentation? pos ) {
if ( element is Visitable ) {
return GLib.Path.build_filename ( this.settings.path, element.package.name, element.full_name () + ".html" );
}
- public override void initialisation ( Settings settings, Tree tree ) {
+ public override void initialisation ( Settings settings, Api.Tree tree ) {
this.settings = settings;
DirUtils.create ( this.settings.path, 0777 );
public override void visit_error_code ( ErrorCode errcode ) {
}
- public override void visit_enum_value ( EnumValue enval ) {
+ public override void visit_enum_value ( Api.EnumValue enval ) {
}
public override void visit_delegate ( Delegate del ) {
file = null;
}
- public override void visit_signal ( Signal sig ) {
+ public override void visit_signal ( Api.Signal sig ) {
string rpath = this.get_real_path ( sig );
GLib.FileStream file = GLib.FileStream.open ( rpath, "w");
file = null;
}
- public override void visit_method ( Method m, Valadoc.MethodHandler parent ) {
+ public override void visit_method ( Method m, Api.MethodHandler parent ) {
string rpath = this.get_real_path ( m );
GLib.FileStream file = GLib.FileStream.open ( rpath, "w");
libhtmlhelpers.vala.stamp: $(libhtmlhelpers_la_VALASOURCES)
- $(VALAC) -C -H libhtmlhelpers-1.0.h --library libhtmlhelpers-1.0 --basedir . --vapidir ../../../vapi --pkg valadoc-1.0 --pkg gee-1.0 --save-temps $^
+ $(VALAC) -C -H libhtmlhelpers-1.0.h --library libhtmlhelpers-1.0 --basedir . --vapidir ../../../vapi --vapidir ../../../libvaladoc --pkg valadoc-1.0 --pkg gee-1.0 --save-temps $^
touch $@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-
using GLib;
using Valadoc.Content;
+using Valadoc.Api;
public abstract class Valadoc.Html.BasicDoclet : Valadoc.Doclet {
protected Settings settings;
this.write_navi_entry_html_template ( file, style, name );
}
- protected void write_wiki_pages (Tree tree, string css_path_wiki, string contentp) {
+ protected void write_wiki_pages (Api.Tree tree, string css_path_wiki, string contentp) {
if ( tree.wikitree == null ) {
return ;
}
}
protected void write_navi_enum_inline ( GLib.FileStream file, Enum en, Api.Node? mself ) {
- Gee.Collection<EnumValue> enum_values = en.get_enum_values ( );
+ Gee.Collection<Api.EnumValue> enum_values = en.get_enum_values ( );
file.printf ( "<ul class=\"%s\">\n", css_navi );
- foreach ( EnumValue env in enum_values ) {
+ foreach ( Api.EnumValue env in enum_values ) {
this.write_navi_entry ( file, env, en, css_navi_enval, true );
}
file.puts ( "\t\t\t</div>\n" );
}
- protected void write_navi_signal ( GLib.FileStream file, Signal sig ) {
+ protected void write_navi_signal ( GLib.FileStream file, Api.Signal sig ) {
Api.Node parent = (Api.Node)sig.parent;
file.printf ( "\t\t\t<div class=\"%s\">\n", css_style_navigation );
this.write_navi_child_construction_methods_collection ( file, methods, mself );
}
- protected void write_navi_child_signals ( GLib.FileStream file, SignalHandler sh, Api.Node? mself ) {
- Gee.Collection<Signal> signals = sh.get_signal_list ( );
+ protected void write_navi_child_signals ( GLib.FileStream file, Api.SignalHandler sh, Api.Node? mself ) {
+ Gee.Collection<Api.Signal> signals = sh.get_signal_list ( );
- foreach ( Signal sig in signals ) {
+ foreach ( Api.Signal sig in signals ) {
if ( sig == mself )
this.write_navi_entry ( file, sig, mself, css_navi_sig, false );
else
_renderer.render (element.signature);
}
- public void write_navi_packages_inline ( GLib.FileStream file, Tree tree ) {
+ public void write_navi_packages_inline ( GLib.FileStream file, Api.Tree tree ) {
file.printf ( "<ul class=\"%s\">\n", css_navi );
foreach ( Package pkg in tree.get_package_list() ) {
if (pkg.is_visitor_accessible (settings)) {
file.puts ( "</li>\n" );
}
- public void write_navi_packages ( GLib.FileStream file, Tree tree ) {
+ public void write_navi_packages ( GLib.FileStream file, Api.Tree tree ) {
file.printf ( "\t\t\t<div class=\"%s\">\n", css_style_navigation );
this.write_navi_packages_inline ( file, tree );
file.puts ( "\t\t\t</div>\n" );
}
- public void write_packages_content ( GLib.FileStream file, Tree tree ) {
+ public void write_packages_content ( GLib.FileStream file, Api.Tree tree ) {
file.printf ( "\t\t\t<div class=\"%s\">\n", css_style_content );
file.printf ( "\t\t\t\t<h1 class=\"%s\">Packages:</h1>\n", css_title );
file.printf ( "\t\t\t\t<hr class=\"%s\" />\n", css_headline_hr );
file.puts ( "\t\t\t</div>\n" );
}
- public void write_method_content ( GLib.FileStream file, Method m , Valadoc.MethodHandler parent ) {
+ public void write_method_content ( GLib.FileStream file, Method m , Api.MethodHandler parent ) {
string full_name = m.full_name ( );
file.printf ( "\t\t\t<div class=\"%s\">\n", css_style_content );
file.printf ( "\t\t\t\t<h1 class=\"%s\">%s:</h1>\n", css_title, full_name );
}
}
- public void write_signal_content ( GLib.FileStream file, Signal sig ) {
+ public void write_signal_content ( GLib.FileStream file, Api.Signal sig ) {
string full_name = sig.full_name ( );
file.printf ( "\t\t\t<div class=\"%s\">\n", css_style_content );
file.printf ( "\t\t\t\t<h1 class=\"%s\">%s:</h1>\n", css_title, full_name );
}
private void write_child_enum_values ( GLib.FileStream file, Enum en ) {
- Gee.Collection<EnumValue> enum_values = en.get_enum_values ();
+ Gee.Collection<Api.EnumValue> enum_values = en.get_enum_values ();
if ( enum_values.size > 0 ) {
file.printf ( "<h3 class=\"%s\">Enum Values:</h3>\n", css_title );
file.printf ( "<table class=\"%s\">\n", css_enum_table );
- foreach ( EnumValue enval in enum_values ) {
+ foreach ( Api.EnumValue enval in enum_values ) {
file.puts ( "<tr>\n" );
file.printf ( "\t<td class=\"%s\" id=\"%s\">%s</td>\n", css_enum_table_name, enval.name, enval.name );
file.printf ( "\t<td class=\"%s\">\n", css_enum_table_text );
}
}
- protected void write_child_signals ( GLib.FileStream file, SignalHandler sh, Api.Node? mself ) {
- Gee.Collection<Signal> signals = sh.get_signal_list ();
+ protected void write_child_signals ( GLib.FileStream file, Api.SignalHandler sh, Api.Node? mself ) {
+ Gee.Collection<Api.Signal> signals = sh.get_signal_list ();
if ( signals.size > 0 ) {
- file.printf ( "<h3 class=\"%s\">Signals:</h3>\n", css_title );
+ file.printf ( "<h3 class=\"%s\">Api.Signals:</h3>\n", css_title );
file.printf ( "<ul class=\"%s\">\n", css_inline_navigation );
- foreach ( Signal sig in signals ) {
+ foreach ( Api.Signal sig in signals ) {
file.printf ( "\t<li class=\"%s\"><a class=\"%s\" href=\"%s\">%s</a>", get_html_inline_navigation_link_css_class (sig), css_navi_link, this.get_link(sig, mself), sig.name );
this.write_brief_description ( file, sig, mself );
file.printf ( "</li>\n" );
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-
-using GLib;
-
+using Valadoc.Api;
namespace Valadoc.Html {
public const string css_inline_navigation = "main_inline_navigation";
prefix = "../" + ((Api.Node)element).package.name;
}
- if ( element is Valadoc.EnumValue || element is Valadoc.ErrorCode ) {
+ if ( element is Api.EnumValue || element is Api.ErrorCode ) {
tmp = "#" + ((Api.Node)element).name;
element = (Api.Node)((Api.Node)element).parent;
}
else
return css_content_link_method;
}
- else if ( element is Signal ) {
+ else if ( element is Api.Signal ) {
return css_content_link_signal;
}
else if ( element is Property ) {
else if ( element is Constant ) {
return css_content_link_constant;
}
- else if ( element is EnumValue ) {
+ else if ( element is Api.EnumValue ) {
return css_content_link_enumvalue;
}
else if ( element is ErrorCode ) {
else
return css_inline_navigation_method;
}
- else if ( element is Signal ) {
+ else if ( element is Api.Signal ) {
return css_inline_navigation_signal;
}
else if ( element is Property ) {
else if ( element is Constant ) {
return css_inline_navigation_constant;
}
- else if ( element is EnumValue ) {
+ else if ( element is Api.EnumValue ) {
return css_inline_navigation_enumvalue;
}
else if ( element is ErrorCode ) {
/* apiitem.vala
*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
public abstract class Valadoc.Api.Item : Object {
private Inline _signature;
- public Api.Item parent {
+ public Item parent {
protected set;
get;
}
/* apitypesymbolnode.vala
*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008-2009 Florian Brosch, Didier Villevalois
*
* This program is free software; you can redistribute it and/or
using Gee;
+public abstract class Valadoc.Api.MemberNode : SymbolNode {
-public abstract class Valadoc.Api.MemberNode : Api.SymbolNode {
-
- public MemberNode (Vala.Member symbol, Api.Node parent) {
+ public MemberNode (Vala.Member symbol, Node parent) {
base (symbol, parent);
}
base.process_comments (settings, parser);
}
}
-
/* apinode.vala
*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008-2009 Florian Brosch, Didier Villevalois
*
* This program is free software; you can redistribute it and/or
TYPE_PARAMETER
}
-public abstract class Valadoc.Api.Node : Api.Item, Visitable, Documentation {
+public abstract class Valadoc.Api.Node : Item, Visitable, Documentation {
private bool do_document = false;
public abstract string? name { owned get; }
private Map<Vala.Symbol, Node> per_symbol_children;
private Map<NodeType?, Gee.List<Node>> per_type_children;
- public Node (Api.Node? parent) {
+ public Node (Node? parent) {
this.parent = parent;
per_name_children = new HashMap<string,Node> ();
get {
if (this._nspace == null) {
Api.Item ast = this;
- while (ast is Valadoc.Namespace == false) {
+ while (ast is Valadoc.Api.Namespace == false) {
ast = ast.parent;
if (ast == null)
return null;
}
- this._nspace = (Valadoc.Namespace)ast;
+ this._nspace = (Valadoc.Api.Namespace)ast;
}
return this._nspace;
}
get {
if (this._package == null) {
Api.Item ast = this;
- while (ast is Valadoc.Package == false) {
+ while (ast is Valadoc.Api.Package == false) {
ast = ast.parent;
if (ast == null)
return null;
}
- this._package = (Valadoc.Package)ast;
+ this._package = (Valadoc.Api.Package)ast;
}
return this._package;
}
GLib.StringBuilder full_name = new GLib.StringBuilder (this.name);
if (this.parent != null) {
- for (Api.Item pos = this.parent; pos is Package == false ; pos = pos.parent) {
- string name = ((Api.Node)pos).name;
+ for (Item pos = this.parent; pos is Package == false ; pos = pos.parent) {
+ string name = ((Node)pos).name;
if (name != null) {
full_name.prepend_unichar ('.');
full_name.prepend (name);
/* apinodebuilder.vala
*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008-2009 Florian Brosch, Didier Villevalois
*
* This program is free software; you can redistribute it and/or
/* apisymbolnode.vala
*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008-2009 Florian Brosch, Didier Villevalois
*
* This program is free software; you can redistribute it and/or
using Gee;
-public abstract class Valadoc.Api.SymbolNode : Api.Node, SymbolAccessibility {
+public abstract class Valadoc.Api.SymbolNode : Node, SymbolAccessibility {
protected Vala.Symbol symbol { private set; get; }
// TODO Drop DocumentedElement
}
}
- public SymbolNode (Vala.Symbol symbol, Api.Node parent) {
+ public SymbolNode (Vala.Symbol symbol, Node parent) {
base (parent);
this.symbol = symbol;
}
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
-
// private
-public Valadoc.Class glib_error = null;
-
+public Valadoc.Api.Class glib_error = null;
-public class Valadoc.Tree {
+public class Valadoc.Api.Tree {
private ArrayList<Package> packages = new ArrayList<Package>();
private Package source_package = null;
- private Valadoc.Settings settings;
+ private Settings settings;
private Vala.CodeContext context;
private ErrorReporter reporter;
private Package sourcefiles = null;
doclet.initialisation (this.settings, this);
}
- private Api.Node? search_relative_to (Api.Node element, string[] path) {
+ private Node? search_relative_to (Node element, string[] path) {
Api.Node? node = element;
foreach (string name in path) {
node = node.find_by_name (name);
}
if (node == null && element.parent != null) {
- node = search_relative_to ((Api.Node) element.parent, path);
+ node = search_relative_to ((Node) element.parent, path);
}
return node;
}
- public Api.Node? search_symbol_str (Api.Node? element, string symname) {
+ public Node? search_symbol_str (Node? element, string symname) {
string[] path = split_name (symname);
if (element == null) {
foreach (Package packgage in packages) {
node = search_relative_to (packgage, path);
if (node != null) {
- return (Api.Node) node;
+ return (Node) node;
}
}
return null;
}
- return (Api.Node) search_relative_to ((Api.Node) element, path);
+ return (Node) search_relative_to ((Node) element, path);
}
private string[] split_name (string full_name) {
return params;
}
- public Tree (Valadoc.ErrorReporter reporter, Valadoc.Settings settings) {
+ public Tree (ErrorReporter reporter, Settings settings) {
this.context = new Vala.CodeContext ( );
Vala.CodeContext.push (context);
}
}
- Api.NodeBuilder builder = new Api.NodeBuilder (this);
+ Api.NodeBuilder builder = new NodeBuilder (this);
this.context.accept(builder);
this.resolve_type_references ();
this.add_dependencies_to_source_package ();
}
}
- internal Api.Node? search_vala_symbol (Vala.Symbol? vnode) {
+ internal Node? search_vala_symbol (Vala.Symbol? vnode) {
if (vnode == null) {
return null;
}
/* apitypesymbolnode.vala
*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008-2009 Florian Brosch, Didier Villevalois
*
* This program is free software; you can redistribute it and/or
using Gee;
-public abstract class Valadoc.Api.TypeSymbolNode : Api.SymbolNode {
+public abstract class Valadoc.Api.TypeSymbolNode : SymbolNode {
- public TypeSymbolNode (Vala.TypeSymbol symbol, Api.Node parent) {
+ public TypeSymbolNode (Vala.TypeSymbol symbol, Node parent) {
base (symbol, parent);
}
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
using Valadoc.Content;
-public class Valadoc.Array : Api.Item {
+public class Valadoc.Api.Array : Item {
private Vala.ArrayType vtype;
- public Api.Item data_type {
+ public Item data_type {
private set;
get;
}
- public Array (Vala.ArrayType vtyperef, Api.Item parent) {
+ public Array (Vala.ArrayType vtyperef, Item parent) {
this.vtype = vtyperef;
this.parent = parent;
}
protected override Inline build_signature () {
- return new Api.SignatureBuilder ()
+ return new SignatureBuilder ()
.append_content (data_type.signature)
.append ("[]", false)
.get ();
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
using Valadoc.Content;
-public class Valadoc.Class : Api.TypeSymbolNode, ClassHandler, StructHandler, SignalHandler, MethodHandler, EnumHandler, PropertyHandler, ConstructionMethodHandler, FieldHandler, DelegateHandler, ConstantHandler, TemplateParameterListHandler {
+public class Valadoc.Api.Class : TypeSymbolNode, ClassHandler, StructHandler, SignalHandler, MethodHandler, EnumHandler, PropertyHandler, ConstructionMethodHandler, FieldHandler, DelegateHandler, ConstantHandler, TemplateParameterListHandler {
private ArrayList<TypeReference> interfaces;
private Vala.Class vclass;
- public Class (Vala.Class symbol, Api.Node parent) {
+ public Class (Vala.Class symbol, Node parent) {
base (symbol, parent);
this.interfaces = new ArrayList<TypeReference> ();
doclet.visit_class ( this );
}
- public override Api.NodeType node_type { get { return Api.NodeType.CLASS; } }
+ public override NodeType node_type { get { return NodeType.CLASS; } }
public override void accept (Doclet doclet) {
visit (doclet);
}
protected override Inline build_signature () {
- var signature = new Api.SignatureBuilder ();
+ var signature = new SignatureBuilder ();
signature.append_keyword (get_accessibility_modifier ());
if (is_abstract) {
signature.append_keyword ("class");
signature.append_symbol (this);
- var type_parameters = get_children_by_type (Api.NodeType.TYPE_PARAMETER, false);
+ var type_parameters = get_children_by_type (NodeType.TYPE_PARAMETER, false);
if (type_parameters.size > 0) {
signature.append ("<", false);
bool first = true;
- foreach (Api.Item param in type_parameters) {
+ foreach (Item param in type_parameters) {
if (!first) {
signature.append (",", false);
}
signature.append (":");
}
- foreach (Api.Item implemented_interface in interfaces) {
+ foreach (Item implemented_interface in interfaces) {
if (!first) {
signature.append (",", false);
}
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
-public interface Valadoc.ClassHandler : Api.Node {
+public interface Valadoc.Api.ClassHandler : Node {
protected Class? find_vclass (Vala.Class vcl) {
foreach (Class cl in get_class_list ()) {
if (cl.is_vclass (vcl)) {
}
public Gee.Collection<Class> get_class_list () {
- return get_children_by_type (Api.NodeType.CLASS);
+ return get_children_by_type (NodeType.CLASS);
}
public void visit_classes (Doclet doclet) {
- accept_children_by_type (Api.NodeType.CLASS, doclet);
+ accept_children_by_type (NodeType.CLASS, doclet);
}
}
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
using Valadoc.Content;
-public class Valadoc.Constant : Api.MemberNode, ReturnTypeHandler {
+public class Valadoc.Api.Constant : MemberNode, ReturnTypeHandler {
private Vala.Constant vconst;
public TypeReference? type_reference {
return (this.vconst == vconst);
}
- public Constant (Vala.Constant symbol, Api.Node parent) {
+ public Constant (Vala.Constant symbol, Node parent) {
base (symbol, parent);
this.vconst = symbol;
}
protected override Inline build_signature () {
- return new Api.SignatureBuilder ()
+ return new SignatureBuilder ()
.append_keyword (get_accessibility_modifier ())
.append_keyword ("const")
.append_content (type_reference.signature)
doclet.visit_constant (this, parent);
}
- public override Api.NodeType node_type { get { return Api.NodeType.CONSTANT; } }
+ public override NodeType node_type { get { return NodeType.CONSTANT; } }
public override void accept (Doclet doclet) {
visit (doclet, (ConstantHandler)parent);
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
-public interface Valadoc.ConstantHandler : Api.Node {
+public interface Valadoc.Api.ConstantHandler : Node {
public Collection<Constant> get_constant_list () {
- return get_children_by_type (Api.NodeType.CONSTANT);
+ return get_children_by_type (NodeType.CONSTANT);
}
public void visit_constants (Doclet doclet) {
- accept_children_by_type (Api.NodeType.CONSTANT, doclet);
+ accept_children_by_type (NodeType.CONSTANT, doclet);
}
}
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
-public interface Valadoc.ConstructionMethodHandler : Api.Node {
+public interface Valadoc.Api.ConstructionMethodHandler : Node {
public Collection<Method> get_construction_method_list () {
- return get_children_by_type (Api.NodeType.CREATION_METHOD);
+ return get_children_by_type (NodeType.CREATION_METHOD);
}
public void visit_construction_methods ( Doclet doclet ) {
- accept_children_by_type (Api.NodeType.CREATION_METHOD, doclet);
+ accept_children_by_type (NodeType.CREATION_METHOD, doclet);
}
}
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
using Valadoc.Content;
-public class Valadoc.Delegate : Api.TypeSymbolNode, ParameterListHandler, ReturnTypeHandler, TemplateParameterListHandler, ExceptionHandler {
+public class Valadoc.Api.Delegate : TypeSymbolNode, ParameterListHandler, ReturnTypeHandler, TemplateParameterListHandler, ExceptionHandler {
private Vala.Delegate vdelegate;
- public Delegate (Vala.Delegate symbol, Api.Node parent) {
+ public Delegate (Vala.Delegate symbol, Node parent) {
base (symbol, parent);
this.vdelegate = symbol;
doclet.visit_delegate (this);
}
- public override Api.NodeType node_type { get { return Api.NodeType.DELEGATE; } }
+ public override NodeType node_type { get { return NodeType.DELEGATE; } }
public override void accept (Doclet doclet) {
visit (doclet);
}
protected override Inline build_signature () {
- var signature = new Api.SignatureBuilder ();
+ var signature = new SignatureBuilder ();
signature.append_keyword (get_accessibility_modifier ());
if (is_static) {
signature.append_content (type_reference.signature);
signature.append_symbol (this);
- var type_parameters = get_children_by_type (Api.NodeType.TYPE_PARAMETER);
+ var type_parameters = get_children_by_type (NodeType.TYPE_PARAMETER);
if (type_parameters.size > 0) {
signature.append ("<", false);
bool first = true;
- foreach (Api.Item param in type_parameters) {
+ foreach (Item param in type_parameters) {
if (!first) {
signature.append (",", false);
}
signature.append ("(");
bool first = true;
- foreach (Api.Node param in get_children_by_type (Api.NodeType.FORMAL_PARAMETER)) {
+ foreach (Node param in get_children_by_type (NodeType.FORMAL_PARAMETER)) {
if (!first) {
signature.append (",", false);
}
signature.append (")", false);
- var exceptions = get_children_by_type (Api.NodeType.ERROR_DOMAIN);
+ var exceptions = get_children_by_type (NodeType.ERROR_DOMAIN);
if (exceptions.size > 0) {
signature.append_keyword ("throws");
- foreach (Api.Node param in exceptions) {
+ foreach (Node param in exceptions) {
if (!first) {
signature.append (",", false);
}
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
-public interface Valadoc.DelegateHandler : Api.Node {
+public interface Valadoc.Api.DelegateHandler : Node {
public Gee.Collection<Delegate> get_delegate_list () {
- return get_children_by_type (Api.NodeType.DELEGATE);
+ return get_children_by_type (NodeType.DELEGATE);
}
public void visit_delegates (Doclet doclet) {
- accept_children_by_type (Api.NodeType.DELEGATE, doclet);
+ accept_children_by_type (NodeType.DELEGATE, doclet);
}
}
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
using Valadoc.Content;
-public class Valadoc.Enum : Api.TypeSymbolNode, MethodHandler {
- public Enum (Vala.Enum symbol, Api.Node parent) {
+public class Valadoc.Api.Enum : TypeSymbolNode, MethodHandler {
+ public Enum (Vala.Enum symbol, Node parent) {
base (symbol, parent);
this.venum = symbol;
}
// rename: get_enum_value_list
public Collection<EnumValue> get_enum_values () {
- return get_children_by_type (Api.NodeType.ENUM_VALUE);
+ return get_children_by_type (NodeType.ENUM_VALUE);
}
public void visit_enum_values (Doclet doclet) {
- accept_children_by_type (Api.NodeType.ENUM_VALUE, doclet);
+ accept_children_by_type (NodeType.ENUM_VALUE, doclet);
}
public void visit (Doclet doclet) {
doclet.visit_enum (this);
}
- public override Api.NodeType node_type { get { return Api.NodeType.ENUM; } }
+ public override NodeType node_type { get { return NodeType.ENUM; } }
public override void accept (Doclet doclet) {
visit (doclet);
private Vala.Enum venum;
protected override Inline build_signature () {
- return new Api.SignatureBuilder ()
+ return new SignatureBuilder ()
.append_keyword (get_accessibility_modifier ())
.append_keyword ("enum")
.append_symbol (this)
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
-public interface Valadoc.EnumHandler : Api.Node {
+public interface Valadoc.Api.EnumHandler : Node {
public Collection<Enum> get_enum_list () {
- return get_children_by_type (Api.NodeType.ENUM);
+ return get_children_by_type (NodeType.ENUM);
}
public void visit_enums (Doclet doclet) {
- accept_children_by_type (Api.NodeType.ENUM, doclet);
+ accept_children_by_type (NodeType.ENUM, doclet);
}
}
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
using Valadoc.Content;
-public class Valadoc.EnumValue: Api.SymbolNode {
+public class Valadoc.Api.EnumValue: SymbolNode {
private Vala.EnumValue venval;
- public EnumValue (Vala.EnumValue symbol, Api.Node parent) {
+ public EnumValue (Vala.EnumValue symbol, Node parent) {
base (symbol, parent);
this.venval = symbol;
}
doclet.visit_enum_value (this);
}
- public override Api.NodeType node_type { get { return Api.NodeType.ENUM_VALUE; } }
+ public override NodeType node_type { get { return NodeType.ENUM_VALUE; } }
public override void accept (Doclet doclet) {
visit (doclet);
}
protected override Inline build_signature () {
- return new Api.SignatureBuilder ()
+ return new SignatureBuilder ()
.append_symbol (this)
.append ("=")
.append (this.venval.value.to_string ())
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
using Valadoc.Content;
-public class Valadoc.ErrorCode : Api.TypeSymbolNode {
+public class Valadoc.Api.ErrorCode : TypeSymbolNode {
private Vala.ErrorCode verrcode;
- public ErrorCode (Vala.ErrorCode symbol, Api.Node parent) {
+ public ErrorCode (Vala.ErrorCode symbol, Node parent) {
base (symbol, parent);
this.verrcode = symbol;
}
doclet.visit_error_code (this);
}
- public override Api.NodeType node_type { get { return Api.NodeType.ERROR_CODE; } }
+ public override NodeType node_type { get { return NodeType.ERROR_CODE; } }
public override void accept (Doclet doclet) {
visit (doclet);
}
protected override Inline build_signature () {
- return new Api.SignatureBuilder ()
+ return new SignatureBuilder ()
.append_symbol (this)
.get ();
}
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Valadoc.Content;
-public class Valadoc.ErrorDomain : Api.TypeSymbolNode, MethodHandler {
+public class Valadoc.Api.ErrorDomain : TypeSymbolNode, MethodHandler {
private Vala.ErrorDomain verrdom;
- public ErrorDomain (Vala.ErrorDomain symbol, Api.Node parent) {
+ public ErrorDomain (Vala.ErrorDomain symbol, Node parent) {
base (symbol, parent);
this.verrdom = symbol;
}
}
public void visit_error_codes (Doclet doclet) {
- accept_children_by_type (Api.NodeType.ERROR_CODE, doclet);
+ accept_children_by_type (NodeType.ERROR_CODE, doclet);
}
public Collection<ErrorCode> get_error_code_list () {
- return get_children_by_type (Api.NodeType.ERROR_CODE);
+ return get_children_by_type (NodeType.ERROR_CODE);
}
public void visit (Doclet doclet) {
doclet.visit_error_domain (this);
}
- public override Api.NodeType node_type { get { return Api.NodeType.ERROR_DOMAIN; } }
+ public override NodeType node_type { get { return NodeType.ERROR_DOMAIN; } }
public override void accept (Doclet doclet) {
visit (doclet);
}
protected override Inline build_signature () {
- return new Api.SignatureBuilder ()
+ return new SignatureBuilder ()
.append_keyword (get_accessibility_modifier ())
.append_keyword ("errordomain")
.append_symbol (this)
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
-public interface Valadoc.ErrorDomainHandler : Api.Node {
+public interface Valadoc.Api.ErrorDomainHandler : Node {
public Collection<ErrorDomain> get_error_domain_list () {
- return get_children_by_type (Api.NodeType.ERROR_DOMAIN);
+ return get_children_by_type (NodeType.ERROR_DOMAIN);
}
public void visit_error_domains (Doclet doclet) {
- accept_children_by_type (Api.NodeType.ERROR_DOMAIN, doclet);
+ accept_children_by_type (NodeType.ERROR_DOMAIN, doclet);
}
}
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
// rename to ExceptionListHandler
-public interface Valadoc.ExceptionHandler : Api.Node {
+public interface Valadoc.Api.ExceptionHandler : Node {
public Collection<Api.Node> get_error_domains () {
- return get_children_by_type (Api.NodeType.ERROR_DOMAIN);
+ return get_children_by_type (NodeType.ERROR_DOMAIN);
}
public void add_exception_list (Tree root, Vala.Collection<Vala.DataType> vexceptions) {
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
using Valadoc.Content;
-public class Valadoc.Field : Api.MemberNode, ReturnTypeHandler {
+public class Valadoc.Api.Field : MemberNode, ReturnTypeHandler {
private Vala.Field vfield;
- public Field (Vala.Field symbol, Api.Node parent) {
+ public Field (Vala.Field symbol, Node parent) {
base (symbol, parent);
this.vfield = symbol;
}
protected override Inline build_signature () {
- var signature = new Api.SignatureBuilder ();
+ var signature = new SignatureBuilder ();
signature.append_keyword (get_accessibility_modifier ());
if (is_static) {
doclet.visit_field (this, parent);
}
- public override Api.NodeType node_type { get { return Api.NodeType.FIELD; } }
+ public override NodeType node_type { get { return NodeType.FIELD; } }
public override void accept (Doclet doclet) {
visit (doclet, (FieldHandler) parent);
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
-public interface Valadoc.FieldHandler : Api.Node {
+public interface Valadoc.Api.FieldHandler : Node {
public Collection<Field> get_field_list () {
- return get_children_by_type (Api.NodeType.FIELD);
+ return get_children_by_type (NodeType.FIELD);
}
public void visit_fields (Doclet doclet) {
- accept_children_by_type (Api.NodeType.FIELD, doclet);
+ accept_children_by_type (NodeType.FIELD, doclet);
}
}
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
using Valadoc.Content;
-public class Valadoc.FormalParameter : Api.SymbolNode, ReturnTypeHandler {
+public class Valadoc.Api.FormalParameter : SymbolNode, ReturnTypeHandler {
private Vala.FormalParameter vformalparam;
- public FormalParameter (Vala.FormalParameter symbol, Api.Node parent) {
+ public FormalParameter (Vala.FormalParameter symbol, Node parent) {
base (symbol, parent);
this.vformalparam = symbol;
}
}
- public override Api.NodeType node_type { get { return Api.NodeType.FORMAL_PARAMETER; } }
+ public override NodeType node_type { get { return NodeType.FORMAL_PARAMETER; } }
public override void accept (Doclet doclet) {
}
}
protected override Inline build_signature () {
- var signature = new Api.SignatureBuilder ();
+ var signature = new SignatureBuilder ();
if (ellipsis) {
signature.append ("...");
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
using Valadoc.Content;
-public class Valadoc.Interface : Api.TypeSymbolNode, SignalHandler, PropertyHandler, FieldHandler, ConstantHandler, TemplateParameterListHandler, MethodHandler, DelegateHandler, EnumHandler, StructHandler, ClassHandler {
- public Interface (Vala.Interface symbol, Api.Node parent) {
+public class Valadoc.Api.Interface : TypeSymbolNode, SignalHandler, PropertyHandler, FieldHandler, ConstantHandler, TemplateParameterListHandler, MethodHandler, DelegateHandler, EnumHandler, StructHandler, ClassHandler {
+ public Interface (Vala.Interface symbol, Node parent) {
base (symbol, parent);
this.vinterface = symbol;
}
doclet.visit_interface (this);
}
- public override Api.NodeType node_type { get { return Api.NodeType.INTERFACE; } }
+ public override NodeType node_type { get { return NodeType.INTERFACE; } }
public override void accept (Doclet doclet) {
visit (doclet);
}
protected override Inline build_signature () {
- var signature = new Api.SignatureBuilder ();
+ var signature = new SignatureBuilder ();
signature.append_keyword (get_accessibility_modifier ());
signature.append_keyword ("interface");
signature.append_symbol (this);
- var type_parameters = get_children_by_type (Api.NodeType.TYPE_PARAMETER, false);
+ var type_parameters = get_children_by_type (NodeType.TYPE_PARAMETER, false);
if (type_parameters.size > 0) {
signature.append ("<", false);
bool first = true;
- foreach (Api.Item param in type_parameters) {
+ foreach (Item param in type_parameters) {
if (!first) {
signature.append (",", false);
}
signature.append (":");
}
- foreach (Api.Item implemented_interface in interfaces) {
+ foreach (Item implemented_interface in interfaces) {
if (!first) {
signature.append (",", false);
}
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
-public interface Valadoc.InterfaceHandler : Api.Node {
+public interface Valadoc.Api.InterfaceHandler : Node {
public Collection<Interface> get_interface_list () {
- return get_children_by_type (Api.NodeType.INTERFACE);
+ return get_children_by_type (NodeType.INTERFACE);
}
public void visit_interfaces (Doclet doclet) {
- accept_children_by_type (Api.NodeType.INTERFACE, doclet);
+ accept_children_by_type (NodeType.INTERFACE, doclet);
}
}
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
using Valadoc.Content;
-public class Valadoc.Method : Api.MemberNode, ParameterListHandler, ExceptionHandler, TemplateParameterListHandler, ReturnTypeHandler {
+public class Valadoc.Api.Method : MemberNode, ParameterListHandler, ExceptionHandler, TemplateParameterListHandler, ReturnTypeHandler {
private Vala.Method vmethod;
- public Method (Vala.Method symbol, Api.Node parent) {
+ public Method (Vala.Method symbol, Node parent) {
base (symbol, parent);
this.vmethod = symbol;
owned get {
if (this.is_constructor) {
if (this.vmethod.name == ".new") {
- return ((Api.Node)this.parent).name;
+ return ((Node)this.parent).name;
} else {
- return ((Api.Node)this.parent).name + "." + this.vmethod.name;
+ return ((Node)this.parent).name + "." + this.vmethod.name;
}
}
else {
}
protected override Inline build_signature () {
- var signature = new Api.SignatureBuilder ();
+ var signature = new SignatureBuilder ();
signature.append_keyword (get_accessibility_modifier ());
if (is_static) {
signature.append_content (type_reference.signature);
signature.append_symbol (this);
- var type_parameters = get_children_by_type (Api.NodeType.TYPE_PARAMETER, false);
+ var type_parameters = get_children_by_type (NodeType.TYPE_PARAMETER, false);
if (type_parameters.size > 0) {
signature.append ("<", false);
bool first = true;
- foreach (Api.Item param in type_parameters) {
+ foreach (Item param in type_parameters) {
if (!first) {
signature.append (",", false);
}
signature.append ("(");
bool first = true;
- foreach (Api.Node param in get_children_by_type (Api.NodeType.FORMAL_PARAMETER)) {
+ foreach (Node param in get_children_by_type (NodeType.FORMAL_PARAMETER)) {
if (!first) {
signature.append (",", false);
}
signature.append (")", false);
- var exceptions = get_children_by_type (Api.NodeType.ERROR_DOMAIN);
+ var exceptions = get_children_by_type (NodeType.ERROR_DOMAIN);
if (exceptions.size > 0) {
signature.append_keyword ("throws");
- foreach (Api.Node param in exceptions) {
+ foreach (Node param in exceptions) {
if (!first) {
signature.append (",", false);
}
return signature.get ();
}
- public void visit (Doclet doclet, Valadoc.MethodHandler in_type) {
+ public void visit (Doclet doclet, Valadoc.Api.MethodHandler in_type) {
doclet.visit_method (this, in_type);
}
- public override Api.NodeType node_type {
+ public override NodeType node_type {
get {
- return is_constructor ? Api.NodeType.CREATION_METHOD : Api.NodeType.METHOD;
+ return is_constructor ? NodeType.CREATION_METHOD : NodeType.METHOD;
}
}
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
-public interface Valadoc.MethodHandler : Api.Node {
+public interface Valadoc.Api.MethodHandler : Node {
public void visit_methods (Doclet doclet) {
- accept_children_by_type (Api.NodeType.METHOD, doclet);
+ accept_children_by_type (NodeType.METHOD, doclet);
}
public Collection<Method> get_method_list () {
- return get_children_by_type (Api.NodeType.METHOD);
+ return get_children_by_type (NodeType.METHOD);
}
}
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
using Valadoc.Content;
-public class Valadoc.Namespace : Api.SymbolNode, MethodHandler, FieldHandler, NamespaceHandler, ErrorDomainHandler,
+public class Valadoc.Api.Namespace : SymbolNode, MethodHandler, FieldHandler, NamespaceHandler, ErrorDomainHandler,
EnumHandler, ClassHandler, StructHandler, InterfaceHandler,
DelegateHandler, ConstantHandler
{
}
protected override Inline build_signature () {
- return new Api.SignatureBuilder ()
+ return new SignatureBuilder ()
.append_keyword (get_accessibility_modifier ())
.append_keyword ("namespace")
.append_symbol (this)
doclet.visit_namespace (this);
}
- public override Api.NodeType node_type { get { return Api.NodeType.NAMESPACE; } }
+ public override NodeType node_type { get { return NodeType.NAMESPACE; } }
public override void accept (Doclet doclet) {
visit (doclet);
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
-public interface Valadoc.NamespaceHandler : Api.Node {
+public interface Valadoc.Api.NamespaceHandler : Node {
public Collection<Namespace> get_namespace_list (bool filtered = true) {
- return get_children_by_type (Api.NodeType.NAMESPACE, filtered);
+ return get_children_by_type (NodeType.NAMESPACE, filtered);
}
public void visit_namespaces (Doclet doclet) {
- accept_children_by_type (Api.NodeType.NAMESPACE, doclet);
+ accept_children_by_type (NodeType.NAMESPACE, doclet);
}
private ArrayList<Vala.Namespace> create_parent_vnamespace_list (Vala.Symbol vsymbol) {
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
using Valadoc.Content;
-public class Valadoc.Package : Api.Node, NamespaceHandler {
+public class Valadoc.Api.Package : Node, NamespaceHandler {
private ArrayList<Vala.SourceFile> vfiles = new ArrayList<Vala.SourceFile> ();
internal void add_file (Vala.SourceFile vfile) {
doclet.visit_package ( this );
}
- public override Api.NodeType node_type { get { return Api.NodeType.PACKAGE; } }
+ public override NodeType node_type { get { return NodeType.PACKAGE; } }
public override void accept (Doclet doclet) {
visit (doclet);
}
protected override Inline build_signature () {
- return new Api.SignatureBuilder ()
+ return new SignatureBuilder ()
.append_keyword ("package")
.append (name)
.get ();
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
// TODO Rename FormalParameters
-public interface Valadoc.ParameterListHandler : Api.Node {
+public interface Valadoc.Api.ParameterListHandler : Node {
public Gee.List<FormalParameter> param_list {
owned get { return get_parameter_list (); }
}
public Gee.List<FormalParameter> get_parameter_list () {
- return (Gee.List<FormalParameter>) get_children_by_type (Api.NodeType.FORMAL_PARAMETER);
+ return (Gee.List<FormalParameter>) get_children_by_type (NodeType.FORMAL_PARAMETER);
}
}
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
using Valadoc.Content;
-public class Valadoc.Pointer : Api.Item {
+public class Valadoc.Api.Pointer : Item {
private Vala.PointerType vtype;
- public Api.Item data_type {
+ public Item data_type {
private set;
get;
}
- public Pointer (Vala.PointerType vtyperef, Api.Item parent) {
+ public Pointer (Vala.PointerType vtyperef, Item parent) {
this.vtype = vtyperef;
this.parent = parent;
}
protected override Inline build_signature () {
- return new Api.SignatureBuilder ()
+ return new SignatureBuilder ()
.append_content (data_type.signature)
.append ("*", false)
.get ();
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
using Valadoc.Content;
-public class Valadoc.Property : Api.MemberNode, ReturnTypeHandler {
+public class Valadoc.Api.Property : MemberNode, ReturnTypeHandler {
private Vala.Property vproperty;
- public Property (Vala.Property symbol, Api.Node parent) {
+ public Property (Vala.Property symbol, Node parent) {
base (symbol, parent);
this.vproperty = symbol;
}
protected override Inline build_signature () {
- var signature = new Api.SignatureBuilder ();
+ var signature = new SignatureBuilder ();
signature.append_keyword (get_accessibility_modifier ());
if (is_abstract) {
doclet.visit_property (this);
}
- public override Api.NodeType node_type { get { return Api.NodeType.PROPERTY; } }
+ public override NodeType node_type { get { return NodeType.PROPERTY; } }
public override void accept (Doclet doclet) {
visit (doclet);
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
using Valadoc.Content;
-public class Valadoc.PropertyAccessor : Api.SymbolNode {
+public class Valadoc.Api.PropertyAccessor : SymbolNode {
private Vala.PropertyAccessor vpropacc;
public PropertyAccessor (Vala.PropertyAccessor symbol, Property parent) {
this.vpropacc = symbol;
}
- public override Api.NodeType node_type { get { return Api.NodeType.PROPERTY_ACCESSOR; } }
+ public override NodeType node_type { get { return NodeType.PROPERTY_ACCESSOR; } }
public override void accept (Doclet doclet) {
}
}
protected override Inline build_signature () {
- var signature = new Api.SignatureBuilder ();
+ var signature = new SignatureBuilder ();
if (!is_public) {
signature.append_keyword (get_accessibility_modifier ());
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
-public interface Valadoc.PropertyHandler : Api.Node {
+public interface Valadoc.Api.PropertyHandler : Node {
protected bool is_overwritten_property (Property prop) {
foreach (Property p in get_property_list ()) {
if (p.parent != this) {
}
public Collection<Property> get_property_list () {
- return get_children_by_type (Api.NodeType.PROPERTY);
+ return get_children_by_type (NodeType.PROPERTY);
}
public void visit_properties (Doclet doclet) {
- accept_children_by_type (Api.NodeType.PROPERTY, doclet);
+ accept_children_by_type (NodeType.PROPERTY, doclet);
}
}
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
-public interface Valadoc.ReturnTypeHandler : Api.Item {
+public interface Valadoc.Api.ReturnTypeHandler : Item {
public abstract TypeReference? type_reference {
protected set;
get;
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
using Valadoc.Content;
-public class Valadoc.Signal : Api.MemberNode, ParameterListHandler, ReturnTypeHandler {
+public class Valadoc.Api.Signal : MemberNode, ParameterListHandler, ReturnTypeHandler {
private Vala.Signal vsignal;
- public Signal (Vala.Signal symbol, Api.Node parent) {
+ public Signal (Vala.Signal symbol, Node parent) {
base (symbol, parent);
this.vsignal = symbol;
}
protected override Inline build_signature () {
- var signature = new Api.SignatureBuilder ();
+ var signature = new SignatureBuilder ();
signature.append_keyword (get_accessibility_modifier ());
if (is_virtual) {
signature.append ("(");
bool first = true;
- foreach (Api.Node param in get_children_by_type (Api.NodeType.FORMAL_PARAMETER)) {
+ foreach (Node param in get_children_by_type (NodeType.FORMAL_PARAMETER)) {
if (!first) {
signature.append (",", false);
}
doclet.visit_signal (this);
}
- public override Api.NodeType node_type { get { return Api.NodeType.SIGNAL; } }
+ public override NodeType node_type { get { return NodeType.SIGNAL; } }
public override void accept (Doclet doclet) {
visit (doclet);
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
-public interface Valadoc.SignalHandler : Api.Node {
+public interface Valadoc.Api.SignalHandler : Node {
public void visit_signals (Doclet doclet) {
- accept_children_by_type (Api.NodeType.SIGNAL, doclet);
+ accept_children_by_type (NodeType.SIGNAL, doclet);
}
public Collection<Signal> get_signal_list () {
- return get_children_by_type (Api.NodeType.SIGNAL);
+ return get_children_by_type (NodeType.SIGNAL);
}
}
/* signaturebuilder.vala
*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
using Valadoc.Content;
-public class Valadoc.Struct : Api.TypeSymbolNode, MethodHandler, ConstructionMethodHandler, FieldHandler, ConstantHandler, TemplateParameterListHandler {
+public class Valadoc.Api.Struct : TypeSymbolNode, MethodHandler, ConstructionMethodHandler, FieldHandler, ConstantHandler, TemplateParameterListHandler {
private Vala.Struct vstruct;
- public Struct (Vala.Struct symbol, Api.Node parent) {
+ public Struct (Vala.Struct symbol, Node parent) {
base (symbol, parent);
this.vstruct = symbol;
}
doclet.visit_struct (this);
}
- public override Api.NodeType node_type { get { return Api.NodeType.STRUCT; } }
+ public override NodeType node_type { get { return NodeType.STRUCT; } }
public override void accept (Doclet doclet) {
visit (doclet);
}
protected override Inline build_signature () {
- var signature = new Api.SignatureBuilder ();
+ var signature = new SignatureBuilder ();
signature.append_keyword (get_accessibility_modifier ());
signature.append_keyword ("struct");
signature.append_symbol (this);
- var type_parameters = get_children_by_type (Api.NodeType.TYPE_PARAMETER, false);
+ var type_parameters = get_children_by_type (NodeType.TYPE_PARAMETER, false);
if (type_parameters.size > 0) {
signature.append ("<", false);
bool first = true;
- foreach (Api.Item param in type_parameters) {
+ foreach (Item param in type_parameters) {
if (!first) {
signature.append (",", false);
}
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
-public interface Valadoc.StructHandler : Api.Node {
+public interface Valadoc.Api.StructHandler : Node {
public Collection<Struct> get_struct_list () {
- return get_children_by_type (Api.NodeType.STRUCT);
+ return get_children_by_type (NodeType.STRUCT);
}
public void visit_structs (Doclet doclet) {
- accept_children_by_type (Api.NodeType.STRUCT, doclet);
+ accept_children_by_type (NodeType.STRUCT, doclet);
}
}
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
-public interface Valadoc.SymbolAccessibility {
+public interface Valadoc.Api.SymbolAccessibility {
public abstract bool is_public { get; }
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
-public interface Valadoc.TemplateParameterListHandler : Api.Node {
+public interface Valadoc.Api.TemplateParameterListHandler : Node {
public Collection<TypeParameter> get_template_param_list () {
- return get_children_by_type (Api.NodeType.TYPE_PARAMETER, false);
+ return get_children_by_type (NodeType.TYPE_PARAMETER, false);
}
}
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
using Valadoc.Content;
-public class Valadoc.TypeParameter : Api.SymbolNode, ReturnTypeHandler {
+public class Valadoc.Api.TypeParameter : SymbolNode, ReturnTypeHandler {
- public TypeParameter (Vala.TypeParameter symbol, Api.Node parent) {
+ public TypeParameter (Vala.TypeParameter symbol, Node parent) {
base (symbol, parent);
}
}
protected override Inline build_signature () {
- return new Api.SignatureBuilder ()
+ return new SignatureBuilder ()
.append (name)
.get ();
}
- public override Api.NodeType node_type { get { return Api.NodeType.TYPE_PARAMETER; } }
+ public override NodeType node_type { get { return NodeType.TYPE_PARAMETER; } }
public override void accept (Doclet doclet) {
}
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
using Gee;
using Valadoc.Content;
-public class Valadoc.TypeReference : Api.Item {
+public class Valadoc.Api.TypeReference : Item {
private ArrayList<TypeReference> type_arguments = new ArrayList<TypeReference> ();
private Vala.DataType? vtyperef;
- public TypeReference (Vala.DataType? vtyperef, Api.Item parent) {
+ public TypeReference (Vala.DataType? vtyperef, Item parent) {
this.vtyperef = vtyperef;
this.parent = parent;
}
}
}
- public Api.Item? data_type {
+ public Item? data_type {
private set;
get;
}
}
protected override Inline build_signature () {
- var signature = new Api.SignatureBuilder ();
+ var signature = new SignatureBuilder ();
if (is_dynamic) {
signature.append_keyword ("dynamic");
if (data_type == null) {
signature.append_keyword ("void");
- } else if (data_type is Api.SymbolNode) {
- signature.append_type ((Api.SymbolNode) data_type);
+ } else if (data_type is SymbolNode) {
+ signature.append_type ((SymbolNode) data_type);
} else {
signature.append_content (data_type.signature);
}
if (type_arguments.size > 0) {
signature.append ("<", false);
bool first = true;
- foreach (Api.Item param in type_arguments) {
+ foreach (Item param in type_arguments) {
if (!first) {
signature.append (",", false);
}
/*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
* Copyright (C) 2008 Florian Brosch
*
* This program is free software; you can redistribute it and/or
// Rename to Browsable
-public interface Valadoc.Visitable : Api.Item {
+public interface Valadoc.Api.Visitable : Item {
// Rename to is_browsable
public abstract bool is_visitor_accessible (Settings settings);
public override void configure (Settings settings, ResourceLocator locator) {
}
- public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+ public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
foreach (Block element in _content) {
element.check (api_root, container, reporter);
}
public override void configure (Settings settings, ResourceLocator locator) {
}
- public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+ public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
base.check (api_root, container, reporter);
foreach (Taglet element in _taglets) {
public virtual void configure (Settings settings, ResourceLocator locator) {
}
- public abstract void check (Tree api_root, Api.Node? container, ErrorReporter reporter);
+ public abstract void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter);
public abstract void accept (ContentVisitor visitor);
_locator = locator;
}
- public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+ public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
// Check the image exists if it a local resource
}
_level = 0;
}
- public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+ public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
// TODO report error if level == 0 ?
// Check inline content
internal InlineContent () {
}
- public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+ public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
foreach (Inline element in _content) {
element.check (api_root, container, reporter);
}
this.locator = locator;
}
- public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+ public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
ContentElement element = get_content ();
element.check (api_root, container, reporter);
}
public override void configure (Settings settings, ResourceLocator locator) {
}
- public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+ public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
}
public override void accept (ContentVisitor visitor) {
_items = new ArrayList<ListItem> ();
}
- public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+ public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
// Check the list consistency in terms of successive item levels ?
// Check individual list items
_level = 0;
}
- public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+ public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
// TODO report error if level == 0 ?
// Check inline content
base ();
}
- public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+ public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
// Check inline content
base.check (api_root, container, reporter);
}
_style = style;
}
- public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+ public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
// Check inline content
base.check (api_root, container, reporter);
}
_language = Language.VALA;
}
- public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+ public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
}
public override void accept (ContentVisitor visitor) {
public override void configure (Settings settings, ResourceLocator locator) {
}
- public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+ public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
}
public override void accept (ContentVisitor visitor) {
_rows = new ArrayList<TableRow> ();
}
- public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+ public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
// Check the table consistency in term of row/column number
// Check individual rows
_rowspan = 1;
}
- public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+ public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
// Check inline content
base.check (api_root, container, reporter);
}
_cells = new ArrayList<TableCell> ();
}
- public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+ public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
// Check individual cells
foreach (var cell in _cells) {
cell.check (api_root, container, reporter);
}
}
- public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+ public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
}
public override void accept (ContentVisitor visitor) {
*/
using Gee;
+using Valadoc.Api;
-
-public static delegate Type Valadoc.DocletRegisterFunction ( );
-
+public static delegate Type Valadoc.DocletRegisterFunction ();
public abstract class Valadoc.Doclet : GLib.Object {
- public abstract void initialisation (Settings settings, Tree tree);
- public abstract void visit_package (Package pkg);
- public abstract void visit_namespace (Namespace ns);
- public abstract void visit_interface (Interface iface);
- public abstract void visit_class (Class cl);
- public abstract void visit_struct (Struct stru);
- public abstract void visit_error_domain (ErrorDomain errdom);
- public abstract void visit_enum (Enum en);
- public abstract void visit_property (Property prop);
- public abstract void visit_field (Field field, FieldHandler parent);
- public abstract void visit_constant (Constant constant, ConstantHandler parent);
- public abstract void visit_error_code (ErrorCode errcode);
- public abstract void visit_enum_value (EnumValue enval);
- public abstract void visit_delegate (Delegate del);
- public abstract void visit_signal (Signal sig);
- public abstract void visit_method (Method m, Valadoc.MethodHandler parent);
+ public abstract void initialisation (Settings settings, Api.Tree tree);
+ public abstract void visit_package (Api.Package pkg);
+ public abstract void visit_namespace (Api.Namespace ns);
+ public abstract void visit_interface (Api.Interface iface);
+ public abstract void visit_class (Api.Class cl);
+ public abstract void visit_struct (Api.Struct stru);
+ public abstract void visit_error_domain (Api.ErrorDomain errdom);
+ public abstract void visit_enum (Api.Enum en);
+ public abstract void visit_property (Api.Property prop);
+ public abstract void visit_field (Api.Field field, Api.FieldHandler parent);
+ public abstract void visit_constant (Api.Constant constant, Api.ConstantHandler parent);
+ public abstract void visit_error_code (Api.ErrorCode errcode);
+ public abstract void visit_enum_value (Api.EnumValue enval);
+ public abstract void visit_delegate (Api.Delegate del);
+ public abstract void visit_signal (Api.Signal sig);
+ public abstract void visit_method (Api.Method m, Api.MethodHandler parent);
}
-
public class Valadoc.DocumentationParser : Object, ResourceLocator {
- public DocumentationParser (Settings settings, ErrorReporter reporter, Tree tree, ModuleLoader modules) {
+ public DocumentationParser (Settings settings, ErrorReporter reporter, Api.Tree tree, ModuleLoader modules) {
_settings = settings;
_reporter = reporter;
_tree = tree;
private Settings _settings;
private ErrorReporter _reporter;
- private Tree _tree;
+ private Api.Tree _tree;
private ModuleLoader _modules;
private ContentFactory _factory;
using Graphviz;
using Gee;
-
+using Valadoc.Api;
namespace Valadoc.Diagrams {
// replace with .full_name
return run_rule;
}
- public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+ public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
base.check (api_root, container, reporter);
}
using Gee;
using Valadoc.Content;
-
public class Valadoc.Taglets.InheritDoc : InlineTaglet {
private Api.Node? _inherited;
return null;
}
- public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+ public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
// TODO Check that the container is an override of an abstract symbol
// Also retrieve that abstract symbol _inherited
- if (container is Method) {
- _inherited = ((Method) container).base_method;
- } else if (container is Property) {
- _inherited = ((Property) container).base_property;
+ if (container is Api.Method) {
+ _inherited = ((Api.Method) container).base_method;
+ } else if (container is Api.Property) {
+ _inherited = ((Api.Property) container).base_property;
}
// TODO report error if inherited is null
});
}
- public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+ public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
_symbol = api_root.search_symbol_str (container, symbol_name);
if (_symbol == null) {
// TODO use ContentElement's source reference
});
}
- public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+ public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
// TODO check for the existence of such a parameter
base.check (api_root, container, reporter);
return run_rule;
}
- public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+ public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
// TODO check for the existence of a return type
base.check (api_root, container, reporter);
});
}
- public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+ public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
symbol = api_root.search_symbol_str (container, symbol_name);
if (symbol == null) {
// TODO use ContentElement's source reference
});
}
- public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+ public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
}
public override void accept (ContentVisitor visitor) {
using Gee;
using Valadoc.Content;
-
public class Valadoc.Taglets.Throws : InlineContent, Taglet, Block {
public string error_domain_name { private set; get; }
public Api.Node error_domain { private set; get; }
});
}
- public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+ public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
error_domain = api_root.search_symbol_str (container, error_domain_name);
if (error_domain == null) {
// TODO use ContentElement's source reference
}
- Valadoc.Tree doctree = new Valadoc.Tree (reporter, settings);
+ Valadoc.Api.Tree doctree = new Valadoc.Api.Tree (reporter, settings);
Valadoc.DocumentationParser docparser = new Valadoc.DocumentationParser (settings, reporter, doctree, modules);
if (reporter.errors > 0) {
return quit (reporter);