Class MethodDefinition
-
- All Implemented Interfaces:
@Serializable() public final class MethodDefinition implements IGenericDefinition, WithComment
A data class representing a method definition in a Wrap ABI.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMethodDefinition.EnvRequiredA data class representing whether an environment is required for a method in a Wrap ABI.
-
Field Summary
Fields Modifier and Type Field Description private final Stringtypeprivate final Integerkindprivate final Stringnameprivate final Booleanrequiredprivate final Stringcommentprivate final List<PropertyDefinition>argumentsprivate final MethodDefinition.EnvRequiredenvprivate final PropertyDefinition_return
-
Constructor Summary
Constructors Constructor Description MethodDefinition(String type, Integer kind, String name, Boolean required, String comment, List<PropertyDefinition> arguments, MethodDefinition.EnvRequired env, PropertyDefinition _return)
-
Method Summary
Modifier and Type Method Description StringgetType()The type of the method. IntegergetKind()The kind of the method definition. StringgetName()The name of the method. BooleangetRequired()A boolean indicating whether the method is required or not. StringgetComment()An optional comment associated with the method. final List<PropertyDefinition>getArguments()A list of PropertyDefinition objects representing the arguments of the method. final MethodDefinition.EnvRequiredgetEnv()An optional EnvRequired object representing the environment required for the method. final PropertyDefinitionget_return()An optional PropertyDefinition object representing the return value of the method. -
-
Constructor Detail
-
MethodDefinition
MethodDefinition(String type, Integer kind, String name, Boolean required, String comment, List<PropertyDefinition> arguments, MethodDefinition.EnvRequired env, PropertyDefinition _return)
-
-
Method Detail
-
getRequired
Boolean getRequired()
A boolean indicating whether the method is required or not.
-
getComment
String getComment()
An optional comment associated with the method.
-
getArguments
final List<PropertyDefinition> getArguments()
A list of PropertyDefinition objects representing the arguments of the method.
-
getEnv
final MethodDefinition.EnvRequired getEnv()
An optional EnvRequired object representing the environment required for the method.
-
get_return
final PropertyDefinition get_return()
An optional PropertyDefinition object representing the return value of the method.
-
-
-
-