tip.cfg
Class DeclarationTarget

java.lang.Object
  extended by tip.cfg.DeclarationTarget
All Implemented Interfaces:
Target

public class DeclarationTarget
extends Object
implements Target

DeclarationTarget represents the pointer target of a declaration (both function and variable declarations).

Author:
Johnni Winther, jw@brics.dk

Constructor Summary
DeclarationTarget(PDecl decl)
          Creates a new DeclarationTarget pointing to decl.
 
Method Summary
 boolean equals(Object o)
          
 PDecl getTarget()
          Returns the target PDecl of this DeclarationTarget.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeclarationTarget

public DeclarationTarget(PDecl decl)
Creates a new DeclarationTarget pointing to decl.

Parameters:
decl - the target of this DeclarationTarget
Method Detail

getTarget

public PDecl getTarget()
Returns the target PDecl of this DeclarationTarget.

Specified by:
getTarget in interface Target
Returns:
the target PDecl of this DeclarationTarget

equals

public boolean equals(Object o)

Specified by:
equals in interface Target
Overrides:
equals in class Object

hashCode

public int hashCode()

Specified by:
hashCode in interface Target
Overrides:
hashCode in class Object

toString

public String toString()

Specified by:
toString in interface Target
Overrides:
toString in class Object