Package org.eclipse.wb.internal.core.model.description

Examples of org.eclipse.wb.internal.core.model.description.MethodDescription


      throws Exception {
    for (ASTNode node : javaInfo.getRelatedNodes()) {
      MethodInvocation invocation = javaInfo.getMethodInvocation(node);
      if (invocation != null) {
        String methodSignature = AstNodeUtils.getMethodSignature(invocation);
        MethodDescription methodDescription = javaInfo.getDescription().getMethod(methodSignature);
        if (methodDescription != null
            && methodDescription.getName().startsWith("set")
            && methodDescription.getParameters().size() > 2
            && methodDescription.getParameter(0).getType() == int.class
            && methodDescription.getParameter(1).getType() == int.class
            && methodDescription.getParameter(0).getTags().containsKey("HTMLTable.row")
            && methodDescription.getParameter(1).getTags().containsKey("HTMLTable.cell")) {
          List<Expression> arguments = DomGenerics.arguments(invocation);
          Expression rowExpression = arguments.get(0);
          Expression cellExpression = arguments.get(1);
          int row = (Integer) JavaInfoEvaluationHelper.getValue(rowExpression);
          int cell = (Integer) JavaInfoEvaluationHelper.getValue(cellExpression);
View Full Code Here


      }
    }
    // visit methods
    for (MethodInvocation invocation : javaInfo.getMethodInvocations()) {
      String methodSignature = AstNodeUtils.getMethodSignature(invocation);
      MethodDescription methodDescription = javaInfo.getDescription().getMethod(methodSignature);
      if (methodDescription != null) {
        List<Expression> arguments = DomGenerics.arguments(invocation);
        for (ParameterDescription parameter : methodDescription.getParameters()) {
          if (parameter.hasTrueTag(tagName)) {
            visitTaggedParameter(visitor, methodDescription, arguments, parameter);
          }
        }
      }
View Full Code Here

TOP

Related Classes of org.eclipse.wb.internal.core.model.description.MethodDescription

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.