Package org.openiaml.docs.modeldoc

Examples of org.openiaml.docs.modeldoc.JavaMethod


  private String getDescription(JavaElement p) {
    if (p instanceof JavaClass) {
      JavaClass jc = (JavaClass) p;
      return jc.getPlugin() + "/" + jc.getPackage() + "/" + jc.getName();
    } else if (p instanceof JavaMethod) {
      JavaMethod m = (JavaMethod) p;
       return getDescription(m.getJavaClass()) + "#" + m.getName() + "()";
    }
    return p.toString();
  }
View Full Code Here


          JavadocTextElement e = factory.createJavadocTextElement();
          e.setValue(text.getText());
          result.add(e);
        } else if (o instanceof MethodRef) {
          MethodRef ref = (MethodRef) o;
          JavaMethod method = getMethodFor(ref);
          if (method != null) {
            JavadocMethodReference e = factory.createJavadocMethodReference();
            e.setReference(method);
            result.add(e);
          }
View Full Code Here

          }
        } else if (node.getParent() instanceof MethodDeclaration) {
          // a method
          MethodDeclaration parent = (MethodDeclaration) node.getParent();
         
          JavaMethod method = getMethodFor(parent, cls);
          if (method != null) {
            for (Object o : node.tags()) {
              TagElement tag = (TagElement) o;
              JavadocTagElement docs = handleTagFragment(tag, method);
              method.getJavadocs().add(docs);
            }
          }
         
        }
      } catch (SemanticHandlerException e) {
View Full Code Here

          return m;
        }
      }
     
      // need to create a new one
      JavaMethod method = factory.createJavaMethod();
      method.setName( ref.getName().getFullyQualifiedName() );
      // cannot update the line count; we let {@link #getMethodFor(MethodDeclaration, JavaClass)} do this.
      // method.setLine( getLineFor(ref.getStartPosition()) );
      method.setJavaClass(cls);
      return method;   
    }
View Full Code Here

          return m;
        }
      }
     
      // we need to make a new one
      JavaMethod method = factory.createJavaMethod();
      method.setName( parent.getName().getFullyQualifiedName() );
      method.setLine( getLineFor(parent.getStartPosition()) );
      method.setJavaClass(cls);
      return method;       
    }
View Full Code Here

TOP

Related Classes of org.openiaml.docs.modeldoc.JavaMethod

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.