public abstract class NamedClassType extends ClassType 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.
|
Collection<FunctionSignature> |
getLocalMethods()
Returns locally defined methods (methods defined in this type, not inherited).
|
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.
|
ClassNamespaceModel |
getNamespaceModel(NamespaceModel parent,
boolean isStatic,
boolean readonlyStrict)
Returns
NamespaceModel for this type. |
int |
hashCode() |
boolean |
hasIntersectionType() |
boolean |
hasMetadata(String key)
Returns
true if the metadata contain the given key. |
boolean |
isCompiled()
Indicates whether this type is compiled
|
boolean |
isPrivate()
Returns
true if the type is private. |
void |
setData(Object data)
Sets the given data.
|
void |
setMethods(Collection<FunctionSignature> methods)
Sets methods.
|
String |
toString()
Returns full class name of this defined type (the same as
getFullName() returns). |
assignableTo, findCommonSubtype, findCommonSupertype, getAllInterfaces, getInterfaces, getJavaClass, getLocalStaticMethods, getMethodBySignature, getMethods, getMethodsForName, getMethodsForName, getOverriddenMethodsBySignature, getRecordSupertype, getStaticMethods, getStaticMethodsForName, getSupertype, isAbstract
getFreeTypes, hasFreeTypes, isCollection, matchesSubtype, matchesSupertype, performConversion, substituteFreeTypes
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
accept, assignableTo, findCommonSubtype, findCommonSupertype, getFreeTypes, getJavaClass, getSupertype, hasFreeTypes, isCollection, matchesSubtype, matchesSupertype, performConversion, substituteFreeTypes
public ClassNamespaceModel getNamespaceModel(NamespaceModel parent, boolean isStatic, boolean readonlyStrict)
NamespaceModel
for this type.parent
- isStatic
- readonlyStrict
- NamespaceModel
for this typepublic 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 Object getData()
getData
in interface LangElement
getData
in interface NamedType
public void setData(Object data)
data
- public String toString()
getFullName()
returns).public boolean isCompiled()
ClassType
isCompiled
in class ClassType
true
if this type is compiledpublic boolean hasIntersectionType()
hasIntersectionType
in interface Type
true
if the type contains an intersection typepublic void setMethods(Collection<FunctionSignature> methods)
methods
- public Collection<FunctionSignature> getLocalMethods()
ClassType
getLocalMethods
in class ClassType
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.