TypedNameDeclaration
public class SimpleTypedNameDeclaration extends java.lang.Object implements TypedNameDeclaration
Constructor | Description |
---|---|
SimpleTypedNameDeclaration(java.lang.String typeImage,
java.lang.Class<?> type) |
Creates a new
SimpleTypedNameDeclaration with the given type |
SimpleTypedNameDeclaration(java.lang.String typeImage,
java.lang.Class<?> type,
SimpleTypedNameDeclaration next) |
Modifier and Type | Method | Description |
---|---|---|
void |
addNext(SimpleTypedNameDeclaration next) |
|
boolean |
equals(java.lang.Object obj) |
|
java.lang.Class<?> |
getType() |
|
java.lang.String |
getTypeImage() |
|
int |
hashCode() |
|
java.lang.String |
toString() |
public SimpleTypedNameDeclaration(java.lang.String typeImage, java.lang.Class<?> type)
SimpleTypedNameDeclaration
with the given typetypeImage
- the type imagetype
- the actual typepublic SimpleTypedNameDeclaration(java.lang.String typeImage, java.lang.Class<?> type, SimpleTypedNameDeclaration next)
public void addNext(SimpleTypedNameDeclaration next)
public java.lang.String getTypeImage()
getTypeImage
in interface TypedNameDeclaration
public java.lang.Class<?> getType()
getType
in interface TypedNameDeclaration
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
Additionally - two SimpleTypedNameDeclaration
are equal, if they
contain types, that can be cast into each other.
equals
in class java.lang.Object
Copyright © 2002–2018 PMD. All rights reserved.