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.
-
-
Constructor Summary
Constructors Constructor Description SimpleTypedNameDeclaration(String typeImage, Class<?> type)Creates a newSimpleTypedNameDeclarationwith the given typeSimpleTypedNameDeclaration(String typeImage, Class<?> type, SimpleTypedNameDeclaration next)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNext(SimpleTypedNameDeclaration next)booleanequals(Object obj)Class<?>getType()StringgetTypeImage()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
SimpleTypedNameDeclaration
public SimpleTypedNameDeclaration(String typeImage, Class<?> type)
Creates a newSimpleTypedNameDeclarationwith the given type- Parameters:
typeImage- the type imagetype- the actual type
-
SimpleTypedNameDeclaration
public SimpleTypedNameDeclaration(String typeImage, Class<?> type, SimpleTypedNameDeclaration next)
-
-
Method Detail
-
addNext
public void addNext(SimpleTypedNameDeclaration next)
-
getTypeImage
public String getTypeImage()
- Specified by:
getTypeImagein interfaceTypedNameDeclaration
-
getType
public Class<?> getType()
- Specified by:
getTypein interfaceTypedNameDeclaration
-
equals
public boolean equals(Object obj)
Additionally - two
SimpleTypedNameDeclarationare equal, if they contain types, that can be cast into each other.
-
-