Java Code Examples for codemining.java.codeutils.MethodUtils

The following examples show how to use codemining.java.codeutils.MethodUtils. These examples are extracted from open source projects. 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
/**
 * @param node
 * @return
 */
public boolean methodOverrides(final MethodDeclaration node) {
	final boolean hasAnnotation = MethodUtils
			.hasOverrideAnnotation(node);
	final boolean isOverride = pti.isMethodOverride(className.peek(),
			node);
	return hasAnnotation || isOverride;
}
 
Example 2
@Override
public boolean visit(final MethodDeclaration node) {
	final String methodType = MethodUtils.getMethodType(node);

	final IdentifierInformation md = new IdentifierInformation(SHA,
			file, node.getName().getIdentifier(), methodType,
			getLineNumber(node), getAstParentString(node));
	identifiers.add(md);
	return super.visit(node);
}
 
Example 3
/**
 * @param node
 * @return
 */
public boolean methodOverrides(final MethodDeclaration node) {
	final boolean hasAnnotation = MethodUtils
			.hasOverrideAnnotation(node);
	final boolean isOverride = pti.isMethodOverride(className.peek(),
			node);
	return hasAnnotation || isOverride;
}
 
Example 4
/**
 * @param node
 * @return
 */
public boolean methodOverrides(final MethodDeclaration node) {
	final boolean hasAnnotation = MethodUtils
			.hasOverrideAnnotation(node);
	final boolean isOverride = pti.isMethodOverride(className.peek(),
			node);
	return hasAnnotation || isOverride;
}