public class ParameterDef extends SimpleVariableDef implements Node
Parameter represent a Parameter in various signatures.
This can be a part of Function, BLangResource
or Action signature
VariableDef.Kindidentifier, isNative, isPublic, kind, location, memOffset, pkgPath, type, typeName, whiteSpaceDescriptor| Constructor and Description |
|---|
ParameterDef() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotation(AnnotationAttachment annotation)
Add an
AnnotationAttachment to the Argument. |
AnnotationAttachment[] |
getAnnotations()
Get all the Annotations attached to this parameter.
|
getKind, getName, getNodeLocation, getPackagePath, getType, getTypeName, getVarIndex, getWhiteSpaceDescriptor, isNative, isPublic, setKind, setType, setVarIndex, setWhiteSpaceDescriptorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNodeLocation, getWhiteSpaceDescriptorpublic AnnotationAttachment[] getAnnotations()
public void addAnnotation(AnnotationAttachment annotation)
AnnotationAttachment to the Argument.annotation - Annotation to be added to the ArgumentCopyright © 2018 WSO2. All rights reserved.