|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.objectweb.fractal.adl.AbstractNode
public abstract class AbstractNode
An abstract Node.
| Field Summary | |
|---|---|
protected static byte |
END_OF_DECO
|
protected static byte |
NEW_DECO
|
| Constructor Summary | |
|---|---|
protected |
AbstractNode(java.lang.String type)
|
| Method Summary | |
|---|---|
java.lang.Object |
astGetDecoration(java.lang.String name)
Returns a decoration of this node. |
java.util.Map<java.lang.String,java.lang.Object> |
astGetDecorations()
Returns the decorations of this node. |
java.lang.String |
astGetSource()
Returns the source of this node. |
java.lang.String |
astGetType()
Returns the type of this node. |
void |
astSetDecoration(java.lang.String name,
java.lang.Object decoration)
Sets a decoration of this node. |
void |
astSetDecorations(java.util.Map<java.lang.String,java.lang.Object> decorations)
Sets the decorations of this node. |
void |
astSetSource(java.lang.String source)
Sets the source of this node. |
void |
readExternal(java.io.ObjectInput in)
|
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.objectweb.fractal.adl.Node |
|---|
astAddNode, astGetAttributes, astGetNodes, astGetNodeTypes, astNewInstance, astRemoveNode, astSetAttributes |
| Field Detail |
|---|
protected static final byte NEW_DECO
protected static final byte END_OF_DECO
| Constructor Detail |
|---|
protected AbstractNode(java.lang.String type)
| Method Detail |
|---|
public java.lang.String astGetType()
Node
astGetType in interface Nodepublic java.lang.String astGetSource()
Node
astGetSource in interface Nodepublic void astSetSource(java.lang.String source)
Node
astSetSource in interface Nodesource - the source of this node (such as a file name).public java.lang.Object astGetDecoration(java.lang.String name)
Node
astGetDecoration in interface Nodename - the decoration's name.
null if this node
does not have a decoration with the specified name.public java.util.Map<java.lang.String,java.lang.Object> astGetDecorations()
Node
astGetDecorations in interface Node
public void astSetDecoration(java.lang.String name,
java.lang.Object decoration)
Node
astSetDecoration in interface Nodename - the decoration's name.decoration - a decoration.public void astSetDecorations(java.util.Map<java.lang.String,java.lang.Object> decorations)
Node
astSetDecorations in interface Nodedecorations - the decorations of this node that must be changed
(decorations that are not defined in this argument are left
unchanged).
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||