codeElement.addContent(catchTableElement);
}
private void addDelegateElement(Method method, Element methodElement)
{
Annotation delegateAnnotation= getAnnotation(method.getAttributes(), XMLVMDelegateMethod.class);
if (delegateAnnotation != null)
{
Element delegateMethodElement= new Element("delegateMethod", NS_XMLVM);
methodElement.addContent(delegateMethodElement);
for (NameValuePair pair : delegateAnnotation.getNameValuePairs())
{
String attrName= pair.getName().getString();
if (attrName.equals("selector"))
{
String selector= ((CstString) pair.getValue()).getString().getString();
delegateMethodElement.setAttribute("selector", selector);
}
else if (attrName.equals("params"))
{
CstArray.List paramList= ((CstArray) pair.getValue()).getList();
for (int i= 0; i < paramList.size(); i++)
{
Element paramElement= new Element("param", NS_XMLVM);
delegateMethodElement.addContent(paramElement);
Annotation paramsAnnotation= ((CstAnnotation) paramList.get(i)).getAnnotation();
for (NameValuePair paramsPair : paramsAnnotation.getNameValuePairs())
{
String paramsAttrName= paramsPair.getName().getString();
if (paramsAttrName.equals("type"))
{
String type= ((CstString) paramsPair.getValue()).getString().getString();