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.Kind
identifier, 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, setWhiteSpaceDescriptor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNodeLocation, getWhiteSpaceDescriptor
public AnnotationAttachment[] getAnnotations()
public void addAnnotation(AnnotationAttachment annotation)
AnnotationAttachment
to the Argument.annotation
- Annotation to be added to the ArgumentCopyright © 2018 WSO2. All rights reserved.