Example usage for org.eclipse.jdt.core.dom TypeMethodReference setType

List of usage examples for org.eclipse.jdt.core.dom TypeMethodReference setType

Introduction

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

Prototype

public void setType(Type type) 

Source Link

Document

Sets the type of this type method reference expression.

Usage

From source file:org.whole.lang.java.util.JDTTransformerVisitor.java

License:Open Source License

@Override
public boolean visit(TypeMethodReference node) {
    org.whole.lang.java.model.TypeMethodReference typeMethodReference = lf.createTypeMethodReference();
    acceptChild((ASTNode) node.getType());
    typeMethodReference.setType(type);
    setTypeArguments(typeMethodReference.getTypeArguments(), node.typeArguments());
    acceptChild((ASTNode) node.getName());
    typeMethodReference.setName((org.whole.lang.java.model.SimpleName) name);
    this.exp = typeMethodReference;
    return false;
}