All Packages Class Hierarchy This Package Previous Next Index
Interface aioli.vtp.AnnotatedTree
- public interface AnnotatedTree
- extends Serializable
An interface for the notion of annotated tree.
-
adopt(Tree, Move)
-
Adds a tree in a list tree.
-
adopt(Tree, String)
-
Adds a tree in a list tree.
-
annotations()
- Returns an Enumeration containing all the annotations.
-
annotp(String)
- Returns true if the tree has an annotation of name, else otherwise.
-
changeSon(Tree, Move)
-
Changes the value of a son.
-
changeSon(Tree, String)
-
Changes the value of a son.
-
createAnnot(String)
- Creates an annotation if it doesn'it exist.
-
createAnnotValue(String, Object)
- Creates an annotation if it doesn'it exist and sets the value.
-
disown(Move)
-
Deletes the son of a tree.
-
disown(String)
-
Deletes the son of a tree.
-
down(Move)
-
Moves down in the tree.
-
down(String)
-
Moves down in the tree.
-
getAnnotation(String)
- Returns the annotation, or null if no
such an annotation exists.
-
getAnnotValue(String)
- Returns the value of the annotation, or null if no
such an annotation exists or if the annotation has no value.
-
removeAnnot(String)
- Removes the annotation.
-
setAnnotValue(String, Object)
- Sets the value of the annotation.
annotations
public abstract Enumeration annotations()
- Returns an Enumeration containing all the annotations.
createAnnot
public abstract Annotation createAnnot(String name)
- Creates an annotation if it doesn'it exist.
- Parameters:
- name - The name of the annotation.
- Returns:
- The annotation.
createAnnotValue
public abstract Annotation createAnnotValue(String name,
Object val)
- Creates an annotation if it doesn'it exist and sets the value.
- Parameters:
- name - The name of the annotation.
- val - The value of the annotation.
- Returns:
- The annotation.
getAnnotation
public abstract Annotation getAnnotation(String name)
- Returns the annotation, or null if no
such an annotation exists.
- Parameters:
- name - The name of the annotation.
getAnnotValue
public abstract Object getAnnotValue(String name)
- Returns the value of the annotation, or null if no
such an annotation exists or if the annotation has no value.
- Parameters:
- name - The name of the annotation.
setAnnotValue
public abstract Object setAnnotValue(String name,
Object val)
- Sets the value of the annotation.
- Parameters:
- name - The name of the annotation.
- val - The new value.
- Returns:
- The previous value of the annotation,
or null if it did not have one.
removeAnnot
public abstract Object removeAnnot(String name)
- Removes the annotation.
- Parameters:
- name - The name of the annotation.
- Returns:
- The value if it was present, or null if there's no value or if
the annotation is not present.
annotp
public abstract boolean annotp(String name)
- Returns true if the tree has an annotation of name, else otherwise.
- Parameters:
- name - The name of the annotation
down
public abstract Tree down(String a)
- Moves down in the tree.
- Parameters:
- a - The annotation name to go down.
- Returns:
- The Tree that is selected by the move.
down
public abstract Tree down(Move m)
- Moves down in the tree.
- Parameters:
- m - The move to go down.
- Returns:
- The Tree that is selected by the move.
adopt
public abstract void adopt(Tree newtree,
String n)
- Adds a tree in a list tree.
- Parameters:
- newtree - is the tree to be added.
- n - is the annotation name
adopt
public abstract void adopt(Tree newtree,
Move m)
- Adds a tree in a list tree.
- Parameters:
- newtree - is the tree to be added.
- m - is the move
changeSon
public abstract void changeSon(Tree newtree,
String a)
- Changes the value of a son.
- Parameters:
- newtree - the new tree.
- a - the annotation name
changeSon
public abstract void changeSon(Tree newtree,
Move m)
- Changes the value of a son.
- Parameters:
- newtree - the new tree.
- m - the move to the tree to be changed.
disown
public abstract void disown(String a)
- Deletes the son of a tree.
- Parameters:
- a - is the annotation name we need in order to get the son to be removed.
disown
public abstract void disown(Move m)
- Deletes the son of a tree.
- Parameters:
- m - is the move we need in order to get the son to be removed.
All Packages Class Hierarchy This Package Previous Next Index