Java Code Examples for org.codehaus.groovy.ast.MethodNode#getTypeDescriptor()

The following examples show how to use org.codehaus.groovy.ast.MethodNode#getTypeDescriptor() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ClassCompletionVerifier.java    From groovy with Apache License 2.0 4 votes vote down vote up
private static String getDescription(MethodNode node) {
    return "method '" + node.getTypeDescriptor() + "'";
}
 
Example 2
Source File: IncorrectTypeHintException.java    From groovy with Apache License 2.0 4 votes vote down vote up
public IncorrectTypeHintException(final MethodNode mn, final Throwable e, int line, int column) {
    super("Incorrect type hint in @ClosureParams in class "+mn.getDeclaringClass().getName()+" method "+mn.getTypeDescriptor()+" : "+e.getMessage(), e, line, column);
}
 
Example 3
Source File: IncorrectTypeHintException.java    From groovy with Apache License 2.0 4 votes vote down vote up
public IncorrectTypeHintException(final MethodNode mn, final String msg, final int line, final int column) {
    super("Incorrect type hint in @ClosureParams in class "+mn.getDeclaringClass().getName()+" method "+mn.getTypeDescriptor()+" : "+msg, line, column);
}