public abstract class AbstractNamedType extends AbstractType implements NamedType
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Object |
getData()
Returns the data.
|
String |
getFullName()
Returns the full name of the given type.
|
Map<String,String> |
getMetadata()
Returns the metadata of this type
|
String |
getMetadata(String key)
Returns the metadata stored under a given key.
|
String |
getModuleName()
Returns the module name where the type is defined.
|
String |
getName()
Return the type name.
|
int |
hashCode() |
boolean |
hasMetadata(String key)
Returns
true if the metadata contain the given key. |
boolean |
isPrivate()
Returns
true if the type is private. |
void |
setData(Object data)
Sets the given data.
|
String |
toString()
Returns full class name of this defined type (the same as
getFullName() returns). |
assignableTo, findCommonSubtype, findCommonSupertype, getFreeTypes, hasFreeTypes, isCollection, matchesSubtype, matchesSupertype, performConversion, substituteFreeTypes
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
accept, assignableTo, findCommonSubtype, findCommonSupertype, getFreeTypes, getJavaClass, getSupertype, hasFreeTypes, hasIntersectionType, isCollection, matchesSubtype, matchesSupertype, performConversion, substituteFreeTypes
public String getName()
getName
in interface LangElement
getName
in interface NamedType
public String getModuleName()
getModuleName
in interface NamedType
public String getFullName()
getFullName
in interface NamedType
public boolean isPrivate()
NamedType
true
if the type is private.public Map<String,String> getMetadata()
LangElement
getMetadata
in interface LangElement
public String getMetadata(String key)
LangElement
getMetadata
in interface LangElement
public boolean hasMetadata(String key)
LangElement
true
if the metadata contain the given key.hasMetadata
in interface LangElement
true
if the metadata contain the given keypublic void setData(Object data)
data
- public Object getData()
getData
in interface LangElement
getData
in interface NamedType
public String toString()
getFullName()
returns).toString
in class Object
Object.toString()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.