public class ResourceImpl extends AnnotatableNode implements Resource
ResourceImpl
This is the implementation for the Resource
API.annotationMap
Constructor and Description |
---|
ResourceImpl(String name,
ResourceInfo resourceInfo) |
Modifier and Type | Method and Description |
---|---|
String |
getAnnotationEntryKey() |
List<Annotation> |
getAnnotationList(String pkgPath,
String name)
This method will return annotation for the given package path and annotation name.
|
String |
getName()
This method returns the resource name.
|
List<ParamDetail> |
getParamDetails()
This method will return parameter list of the resource.
|
ResourceInfo |
getResourceInfo()
This is a protected method to access original resourceInfo object within Ballerina.
|
String |
getServiceName()
This method returns the corresponding service name.
|
addAnnotation
public ResourceImpl(String name, ResourceInfo resourceInfo)
public String getName()
Resource
public String getServiceName()
Resource
getServiceName
in interface Resource
public ResourceInfo getResourceInfo()
getResourceInfo
in interface Resource
public List<Annotation> getAnnotationList(String pkgPath, String name)
Resource
getAnnotationList
in interface Resource
pkgPath
- of the annotation.name
- of the annotation.public List<ParamDetail> getParamDetails()
Resource
getParamDetails
in interface Resource
public String getAnnotationEntryKey()
getAnnotationEntryKey
in class AnnotatableNode
Copyright © 2018 WSO2. All rights reserved.