Class MetaClass<T>

java.lang.Object
org.apache.groovy.metaclass.MetaClass<T>

@Incubating public final class MetaClass<T> extends Object
A MetaClass within Groovy defines the behaviour of any given Groovy or Java class
  • Method Details

    • getMethod

      public MetaMethod getMethod(String name, Class[] parameters)
      Delegates to the current MetaClassConstant.
      Parameters:
      name - method name
      parameters - parameter classes passed through to that constant
      Returns:
      the meta-method that constant selects for this name and these parameter types