Here you can find the source of startsWithPrefix(final String methodName, final String prefix, final int prefixLength)
protected static boolean startsWithPrefix(final String methodName, final String prefix, final int prefixLength)
//package com.java2s; /**/*from w w w. ja v a2 s .c o m*/ * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */ public class Main { protected static boolean startsWithPrefix(final String methodName, final String prefix, final int prefixLength) { return (((methodName.length() > prefixLength) && methodName.startsWith(prefix)) && Character.isUpperCase(methodName.charAt(prefixLength))); } }