net.sourceforge.pmd.lang.java.symboltable
Class SimpleTypedNameDeclaration
java.lang.Object
net.sourceforge.pmd.lang.java.symboltable.SimpleTypedNameDeclaration
- All Implemented Interfaces:
- TypedNameDeclaration
public class SimpleTypedNameDeclaration
- extends Object
- implements TypedNameDeclaration
Just stores a type image and a actual type. And makes it easy to compare
these.
SimpleTypedNameDeclaration
public SimpleTypedNameDeclaration(String typeImage,
Class<?> type)
- Creates a new
SimpleTypedNameDeclaration
with the given type
- Parameters:
typeImage
- the type imagetype
- the actual type
SimpleTypedNameDeclaration
public SimpleTypedNameDeclaration(String typeImage,
Class<?> type,
SimpleTypedNameDeclaration next)
addNext
public void addNext(SimpleTypedNameDeclaration next)
getTypeImage
public String getTypeImage()
- Specified by:
getTypeImage
in interface TypedNameDeclaration
getType
public Class<?> getType()
- Specified by:
getType
in interface TypedNameDeclaration
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
-
Additionally - two SimpleTypedNameDeclaration
are equal, if they
contain types, that can be cast into each other.
- Overrides:
equals
in class Object
Copyright © 2002-2016 InfoEther. All Rights Reserved.