class BELParser::Parsers::AST::AnnotationDefinition

AST node representing the definition of an annotation.

Attributes

uri[RW]

Get/Set the uri property.

Public Class Methods

new(children = [], properties = {}) click to toggle source

New AnnotationDefinition AST node.

@see Node#initialize Node class for basic properties

Calls superclass method BELParser::Parsers::AST::Node::new
# File lib/bel_parser/parsers/ast/node.rb, line 256
def initialize(children = [], properties = {})
  super(AnnotationDefinition.ast_type, children, properties)
end

Public Instance Methods

domain() click to toggle source

Get the annotation definition's domain.

# File lib/bel_parser/parsers/ast/node.rb, line 266
def domain
  children[1]
end
keyword() click to toggle source

Get the annotation definition's keyword.

# File lib/bel_parser/parsers/ast/node.rb, line 261
def keyword
  children[0]
end