codemining.java.codeutils.MethodUtils Java Examples

The following examples show how to use codemining.java.codeutils.MethodUtils. 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: JavaMethodDeclarationBindingExtractor.java    From api-mining with GNU General Public License v3.0 5 votes vote down vote up
/**
 * @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
Source File: IdentifierInformationScanner.java    From naturalize with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@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
Source File: JavaMethodDeclarationBindingExtractor.java    From tassal with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * @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
Source File: JavaMethodDeclarationBindingExtractor.java    From codemining-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * @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;
}