- java.lang.Object
-
- io.hotmoka.network.signatures.SignatureModel
-
- io.hotmoka.network.signatures.CodeSignatureModel
-
- io.hotmoka.network.signatures.MethodSignatureModel
-
public class MethodSignatureModel extends CodeSignatureModel
The model of the signature of a method of a class.
-
-
Field Summary
Fields Modifier and Type Field Description StringmethodNameThe name of the method.StringreturnTypeThe return type of the method, if any.-
Fields inherited from class io.hotmoka.network.signatures.CodeSignatureModel
formals
-
Fields inherited from class io.hotmoka.network.signatures.SignatureModel
definingClass
-
-
Constructor Summary
Constructors Constructor Description MethodSignatureModel()MethodSignatureModel(MethodSignature method)Builds the model of the signature of a method.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodSignaturetoBean()Yields the method signature corresponding to this model.-
Methods inherited from class io.hotmoka.network.signatures.CodeSignatureModel
getFormalsAsTypes
-
Methods inherited from class io.hotmoka.network.signatures.SignatureModel
nameOf, typeWithName
-
-
-
-
Constructor Detail
-
MethodSignatureModel
public MethodSignatureModel(MethodSignature method)
Builds the model of the signature of a method.- Parameters:
method- the method original signature to copy
-
MethodSignatureModel
public MethodSignatureModel()
-
-
Method Detail
-
toBean
public MethodSignature toBean()
Yields the method signature corresponding to this model.- Returns:
- the method signature
-
-