public class Annotated extends Named
Modifier and Type | Field and Description |
---|---|
protected Notice |
notice
The Notice attached to this Annotated object, typically
a Warning or Analysis node.
|
Constructor and Description |
---|
Annotated()
Creates a default Annotated element.
|
Annotated(java.lang.String name)
Creates a named Annotated element.
|
Modifier and Type | Method and Description |
---|---|
Annotated |
addNotice(Notice notice)
Attaches the Notice to this Annotated element.
|
Notice |
getNotice()
Returns the Notice attached to this Annotated element.
|
equals, getName, hashCode, setName, setName, toString
safeEquals, safeHashCode, semanticError
protected Notice notice
public Annotated()
public Annotated(java.lang.String name)
name
- the name of this Annotated element.public Annotated addNotice(Notice notice)
notice
- the Notice to attach.public Notice getNotice()