Example usage for org.eclipse.jdt.core.dom MethodRefParameter setName

List of usage examples for org.eclipse.jdt.core.dom MethodRefParameter setName

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.dom MethodRefParameter setName.

Prototype

public void setName(SimpleName name) 

Source Link

Document

Sets or clears the parameter name.

Usage

From source file:java5totext.input.JDTVisitor.java

License:Open Source License

@Override
public void endVisit(org.eclipse.jdt.core.dom.MethodRefParameter node) {
    MethodRefParameter element = (MethodRefParameter) this.binding.get(node);
    this.initializeNode(element, node);
    if (node.getName() != null)
        element.setName(node.getName().getIdentifier());
    element.setIsVarargs(node.isVarargs());
    if (this.binding.get(node.getType()) != null)
        element.setType((NamedElementRef) this.binding.get(node.getType()));
}

From source file:org.eclipse.modisco.java.discoverer.internal.io.java.JDTVisitor.java

License:Open Source License

@Override
public void endVisit(final org.eclipse.jdt.core.dom.MethodRefParameter node) {
    MethodRefParameter element = (MethodRefParameter) this.binding.get(node);
    initializeNode(element, node);/*w ww  . j  a  va 2s  .  com*/

    if (node.getName() != null) {
        element.setName(node.getName().getIdentifier());
    }

    element.setVarargs(node.isVarargs());

    if (this.binding.get(node.getType()) != null) {
        element.setType(JDTVisitorUtils.completeTypeAccess(this.binding.get(node.getType()), this));
    }
}