Class Type
- java.lang.Object
-
- es.bsc.dataclay.util.management.classmgr.Type
-
-
Constructor Summary
Constructors Constructor Description Type()
Creates an empty TypeType(String newdescriptor, String newsignature, String newtypeName)
Type constructor with provided descriptor and signatureType(String newdescriptor, String newsignature, String newtypeName, List<Type> newincludes)
Type constructor with provided signature
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLanguageDepInfo(LanguageDependantTypeInfo langInfo)
Add language dependant informationboolean
equals(Object object)
String
getDescriptor()
Get descriptorUUID
getId()
List<Type>
getIncludes()
Get includesJavaTypeInfo
getJavaTypeInfo()
Get Java language-dependant information of the TypeMap<CommonMessages.Langs,LanguageDependantTypeInfo>
getLanguageDepInfos()
Get the Type::languageDepInfosPythonTypeInfo
getPythonTypeInfo()
Get Python language-dependant information of the TypeString
getSignature()
Get the Type::signatureString
getSignatureOrDescriptor()
Get the Type::signature or descriptor if nullString
getTypeName()
int
hashCode()
void
setDescriptor(String newdescriptor)
Set descriptorvoid
setId(UUID id)
void
setIncludes(List<Type> newincludes)
Set includesvoid
setLanguageDepInfos(Map<CommonMessages.Langs,LanguageDependantTypeInfo> newlanguageDepInfos)
Set the Type::languageDepInfosvoid
setSignature(String newsignature)
Set the Type::signaturevoid
setTypeName(String typeName)
String
toString()
-
-
-
Constructor Detail
-
Type
public Type()
Creates an empty Type
-
Type
public Type(String newdescriptor, String newsignature, String newtypeName)
Type constructor with provided descriptor and signature- Parameters:
newdescriptor
- Descriptor of the typenewsignature
- Signature of the typenewtypeName
- Type name
-
-
Method Detail
-
getLanguageDepInfos
public final Map<CommonMessages.Langs,LanguageDependantTypeInfo> getLanguageDepInfos()
Get the Type::languageDepInfos- Returns:
- the languageDepInfos
-
getJavaTypeInfo
public final JavaTypeInfo getJavaTypeInfo()
Get Java language-dependant information of the Type- Returns:
- Java language-dependant information of the Type
-
getPythonTypeInfo
public final PythonTypeInfo getPythonTypeInfo()
Get Python language-dependant information of the Type- Returns:
- Python language-dependant information of the Type
-
getSignature
public final String getSignature()
Get the Type::signature- Returns:
- the signature
-
getSignatureOrDescriptor
public final String getSignatureOrDescriptor()
Get the Type::signature or descriptor if null- Returns:
- the signature or descriptor if null
-
setSignature
public final void setSignature(String newsignature)
Set the Type::signature- Parameters:
newsignature
- the signature to set
-
setLanguageDepInfos
public final void setLanguageDepInfos(Map<CommonMessages.Langs,LanguageDependantTypeInfo> newlanguageDepInfos)
Set the Type::languageDepInfos- Parameters:
newlanguageDepInfos
- the languageDepInfos to set
-
addLanguageDepInfo
public final void addLanguageDepInfo(LanguageDependantTypeInfo langInfo)
Add language dependant information- Parameters:
langInfo
- Language information
-
setIncludes
public final void setIncludes(List<Type> newincludes)
Set includes- Parameters:
newincludes
- the includes to set
-
getDescriptor
public String getDescriptor()
Get descriptor- Returns:
- the descriptor
-
setDescriptor
public void setDescriptor(String newdescriptor)
Set descriptor- Parameters:
newdescriptor
- the descriptor to set
-
getTypeName
public String getTypeName()
- Returns:
- the typeName
-
setTypeName
public void setTypeName(String typeName)
- Parameters:
typeName
- the typeName to set
-
getId
public UUID getId()
- Returns:
- the id
-
setId
public void setId(UUID id)
- Parameters:
id
- the id to set
-
-