public class Root
extends java.lang.Object
Constructor and Description |
---|
Root()
Creates a new Abstract Syntax Tree (AST) containing an empty "random" topic.
|
Modifier and Type | Method and Description |
---|---|
void |
addObject(ObjectMacro object)
Adds the given object.
|
void |
addTopic(java.lang.String name)
Adds a new topic with the given name.
|
boolean |
equals(java.lang.Object o) |
Begin |
getBegin()
Returns the "begin block" (configuration) data.
|
java.util.List<ObjectMacro> |
getObjects()
Returns the objects.
|
Topic |
getTopic(java.lang.String name)
Returns the topic with the given name.
|
java.util.Map<java.lang.String,Topic> |
getTopics()
Returns the topics.
|
int |
hashCode() |
void |
setBegin(Begin begin)
Sets the "begin block" (configuration) data.
|
void |
setObjects(java.util.List<ObjectMacro> objects)
Sets the objects.
|
void |
setTopics(java.util.Map<java.lang.String,Topic> topics)
Sets the topics.
|
java.lang.String |
toString() |
public Root()
public Begin getBegin()
public void setBegin(Begin begin)
begin
- the "begin block" (configuration) datapublic Topic getTopic(java.lang.String name)
name
- the name of the topicnull
if not foundpublic java.util.Map<java.lang.String,Topic> getTopics()
public void setTopics(java.util.Map<java.lang.String,Topic> topics)
topics
- the topicspublic java.util.List<ObjectMacro> getObjects()
public void setObjects(java.util.List<ObjectMacro> objects)
objects
- the objectspublic void addTopic(java.lang.String name)
name
- the name of the topicpublic void addObject(ObjectMacro object)
object
- the objectpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object