public class DefaultFunctionType extends BaseMetadataType implements FunctionType
annotations| Constructor and Description |
|---|
DefaultFunctionType(MetadataFormat metadataFormat,
Map<Class<? extends TypeAnnotation>,TypeAnnotation> annotations,
Optional<MetadataType> returnType,
List<FunctionParameter> parameters) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(MetadataTypeVisitor visitor)
Dispatches in a reflective way to the method with prefix "visit" with the specific type as argument.
|
List<FunctionParameter> |
getParameters()
Returns the list of parameters expected by this function
|
Optional<MetadataType> |
getReturnType()
The return type of the function.
|
equals, getAnnotation, getAnnotations, getDescription, getMetadataFormat, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAnnotation, getAnnotations, getDescription, getMetadataFormatpublic DefaultFunctionType(MetadataFormat metadataFormat, Map<Class<? extends TypeAnnotation>,TypeAnnotation> annotations, Optional<MetadataType> returnType, List<FunctionParameter> parameters)
public List<FunctionParameter> getParameters()
FunctionTypegetParameters in interface FunctionTypepublic Optional<MetadataType> getReturnType()
FunctionTypegetReturnType in interface FunctionTypepublic void accept(MetadataTypeVisitor visitor)
MetadataTypevisitObject(ObjectType objectType) will be called when this type is an ObjectType.accept in interface MetadataTypevisitor - The visitorCopyright © 2018 MuleSoft, Inc.. All rights reserved.