- java.lang.Object
-
- io.hotmoka.network.signatures.SignatureModel
-
- Direct Known Subclasses:
CodeSignatureModel,FieldSignatureModel
public abstract class SignatureModel extends Object
The model of the signature of a field, method or constructor.
-
-
Field Summary
Fields Modifier and Type Field Description StringdefiningClassThe name of the class defining the field, method or constructor.
-
Constructor Summary
Constructors Modifier Constructor Description protectedSignatureModel()protectedSignatureModel(String definingClass)Builds the model of the signature of a field, method or constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static StringnameOf(StorageType type)Yields a string representation of the given type.protected static StorageTypetypeWithName(String name)Yields the type with the given name.
-
-
-
Field Detail
-
definingClass
public String definingClass
The name of the class defining the field, method or constructor.
-
-
Constructor Detail
-
SignatureModel
protected SignatureModel(String definingClass)
Builds the model of the signature of a field, method or constructor.- Parameters:
definingClass- the name of the class defining the field, method or constructor
-
SignatureModel
protected SignatureModel()
-
-
Method Detail
-
nameOf
protected static String nameOf(StorageType type)
Yields a string representation of the given type.- Parameters:
type- the type- Returns:
- the string
-
typeWithName
protected static StorageType typeWithName(String name)
Yields the type with the given name.- Parameters:
name- the name of the type- Returns:
- the type
-
-