Example usage for javax.lang.model.type TypeKind EXECUTABLE

List of usage examples for javax.lang.model.type TypeKind EXECUTABLE

Introduction

In this page you can find the example usage for javax.lang.model.type TypeKind EXECUTABLE.

Prototype

TypeKind EXECUTABLE

To view the source code for javax.lang.model.type TypeKind EXECUTABLE.

Click Source Link

Document

A method, constructor, or initializer.

Usage

From source file:cop.raml.mocks.MockUtils.java

public static TypeElementMock createMethodElement(String name) {
    TypeElementMock element = new TypeElementMock("Method", ElementKind.CLASS);
    element.setType(new TypeMirrorMock(element, TypeKind.EXECUTABLE).setName(name));
    return element;
}