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

java.lang.Object
  |
  +--de.tuberlin.cs.cis.ocl.env.NameIdentifier
All Implemented Interfaces:
Identifier
Direct Known Subclasses:
PropertyIdentifier

public class NameIdentifier
extends java.lang.Object
implements Identifier

a name within its scope in an OCL-constraint.

Author:
fchabar

Constructor Summary
NameIdentifier(Scope scope, de.tuberlin.cs.cis.ocl.parser.node.AName name)
          Constructs a name identifier.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 de.tuberlin.cs.cis.ocl.parser.node.AName getName()
          Returns the name of this identifier.
 Scope getScope()
          Returns the scope of the name of this identifier.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NameIdentifier

public NameIdentifier(Scope scope,
                      de.tuberlin.cs.cis.ocl.parser.node.AName name)
Constructs a name identifier.

Parameters:
scope - the scope of the name.
name - a name.
Method Detail

getName

public de.tuberlin.cs.cis.ocl.parser.node.AName getName()
Returns the name of this identifier.

Returns:
the name of this identifier.

getScope

public Scope getScope()
Returns the scope of the name of this identifier.

Returns:
the scope of the name of this identifier.

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

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