public boolean hasBytecodeName(String name) {
    return getReflection().getName().equals(name);
  }
Runtime information about a method in a Spock specification.

@author Peter Niederwieser
spock-core/src/main/java/org/spockframework/runtime/model/MethodInfo.java