Package org.pdtextensions.internal.corext.refactoring

Examples of org.pdtextensions.internal.corext.refactoring.ParameterInfo


  private void addMethodParameter(Variable variable) {
    // only add a new method parameter, if it wasn't already one...
    if (!isMethodParameter(variable)) {
     
      ParameterInfo newParameter = new ParameterInfo(
          ((Identifier) variable.getName()).getName());
     
      ITypeBinding binding = variable.resolveTypeBinding();

      if (binding != null) {
        if (binding.isArray()) {
          newParameter.setParameterType(TYPE_HINT_ARRAY);
        } else if (binding.isClass()) {
          newParameter.setParameterType(binding.getName());
        }
      }
     
      fExtractedMethodParameters.add(newParameter);
    }
View Full Code Here


  }

  private void addMethodReturnValue(Variable var) {
   
    if(!isMethodReturnValue(var)) {
      fExtractedMethodReturnValues.add(new ParameterInfo(((Identifier)var.getName()).getName()));
    }
  }
View Full Code Here

TOP

Related Classes of org.pdtextensions.internal.corext.refactoring.ParameterInfo

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.