de.tuberlin.cs.cis.ocl.env
Class NodeIdentifier

java.lang.Object
  |
  +--de.tuberlin.cs.cis.ocl.env.NodeIdentifier
All Implemented Interfaces:
Identifier

public final class NodeIdentifier
extends java.lang.Object
implements Identifier

a node of an OCL-AST.

Author:
fchabar

Constructor Summary
NodeIdentifier(de.tuberlin.cs.cis.ocl.parser.node.Node node)
          Constructs an identifier identifiying a node in the AST.
 
Method Summary
 boolean equals(java.lang.Object id2)
           
 de.tuberlin.cs.cis.ocl.parser.node.Node getNode()
          Returns the node identified by this identifier.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeIdentifier

public NodeIdentifier(de.tuberlin.cs.cis.ocl.parser.node.Node node)
Constructs an identifier identifiying a node in the AST.

Parameters:
node - a node.
Method Detail

getNode

public de.tuberlin.cs.cis.ocl.parser.node.Node getNode()
Returns the node identified by this identifier.

Returns:
the identified node.

equals

public boolean equals(java.lang.Object id2)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()