public List<MetaMethod> getMetaMethods() { return delegate.getMetaMethods(); }
/** * Get info about instance and class Methods that are dynamically added through Groovy. * * @return Array of StringArrays that can be indexed with the MEMBER_xxx_IDX constants */ public Object[] getMetaMethods() { MetaClass metaClass = InvokerHelper.getMetaClass(objectUnderInspection); List metaMethods = metaClass.getMetaMethods(); Object[] result = new Object[metaMethods.size()]; int i = 0; for (Iterator iter = metaMethods.iterator(); iter.hasNext(); i++) { MetaMethod metaMethod = (MetaMethod) iter.next(); result[i] = methodInfo(metaMethod); } return result; }
public List<MetaMethod> getMetaMethods() { final Object owner = getOwner(); final MetaClass ownerMetaClass = getOwnerMetaClass(owner); return ownerMetaClass.getMetaMethods(); }
ClassInfo ci = ClassInfo.getClassInfo(type); List<MetaMethod> methods = new ArrayList<MetaMethod>(ci.getMetaClass().getMethods()); methods.addAll(ci.getMetaClass().getMetaMethods()); List<MetaMethod> sugg = rankMethods(methodName,arguments,methods); StringBuilder sb = new StringBuilder();
public void testMetaMethodsOnlyAddedOnce() { MetaClass metaClass = InvokerHelper.getMetaClass("some String"); List methods = metaClass.getMetaMethods(); for (Iterator iter = methods.iterator(); iter.hasNext();) { MetaMethod method = (MetaMethod) iter.next(); int count = 0; for (Iterator inner = methods.iterator(); inner.hasNext();) { MetaMethod runner = (MetaMethod) inner.next(); if (method.equals(runner)) { System.out.println("runner = " + runner); System.out.println("method = " + method); count++; } } assertEquals("count of Method " + method.getName(), 1, count); } }
public List getMetaMethods() { return delegate.getMetaMethods(); } /* (non-Javadoc)
public List getMetaMethods() { return delegate.getMetaMethods(); } /* (non-Javadoc)
@Override public List<MetaMethod> getMetaMethods() { return adaptee.getMetaMethods(); }
public List<MetaMethod> getMetaMethods() { return delegate.getMetaMethods(); }
public List<MetaMethod> getMetaMethods() { return delegate.getMetaMethods(); }
public List getMetaMethods() { return adaptee.getMetaMethods(); }
/** * Get info about instance and class Methods that are dynamically added through Groovy. * * @return Array of StringArrays that can be indexed with the MEMBER_xxx_IDX constants */ public Object[] getMetaMethods() { MetaClass metaClass = InvokerHelper.getMetaClass(objectUnderInspection); List metaMethods = metaClass.getMetaMethods(); Object[] result = new Object[metaMethods.size()]; int i = 0; for (Iterator iter = metaMethods.iterator(); iter.hasNext(); i++) { MetaMethod metaMethod = (MetaMethod) iter.next(); result[i] = methodInfo(metaMethod); } return result; }
/** * Get info about instance and class Methods that are dynamically added through Groovy. * @return Array of StringArrays that can be indexed with the MEMBER_xxx_IDX constants */ public Object[] getMetaMethods(){ MetaClass metaClass = InvokerHelper.getMetaClass(objectUnderInspection); List metaMethods = metaClass.getMetaMethods(); Object[] result = new Object[metaMethods.size()]; int i=0; for (Iterator iter = metaMethods.iterator(); iter.hasNext(); i++) { MetaMethod metaMethod = (MetaMethod) iter.next(); result[i] = methodInfo(metaMethod); } return result; }
/** * Get info about instance and class Methods that are dynamically added through Groovy. * @return Array of StringArrays that can be indexed with the MEMBER_xxx_IDX constants */ public Object[] getMetaMethods(){ MetaClass metaClass = InvokerHelper.getMetaClass(objectUnderInspection); List metaMethods = metaClass.getMetaMethods(); Object[] result = new Object[metaMethods.size()]; int i=0; for (Iterator iter = metaMethods.iterator(); iter.hasNext(); i++) { MetaMethod metaMethod = (MetaMethod) iter.next(); result[i] = methodInfo(metaMethod); } return result; }
/** * Get info about instance and class Methods that are dynamically added through Groovy. * @return Array of StringArrays that can be indexed with the MEMBER_xxx_IDX constants */ public Object[] getMetaMethods(){ MetaClass metaClass = InvokerHelper.getMetaClass(objectUnderInspection); List metaMethods = metaClass.getMetaMethods(); Object[] result = new Object[metaMethods.size()]; int i=0; for (Iterator iter = metaMethods.iterator(); iter.hasNext(); i++) { MetaMethod metaMethod = (MetaMethod) iter.next(); result[i] = methodInfo(metaMethod); } return result; }
public List<MetaMethod> getMetaMethods() { final Object owner = getOwner(); final MetaClass ownerMetaClass = getOwnerMetaClass(owner); return ownerMetaClass.getMetaMethods(); }
public List<MetaMethod> getMetaMethods() { final Object owner = getOwner(); final MetaClass ownerMetaClass = getOwnerMetaClass(owner); return ownerMetaClass.getMetaMethods(); }
public List getMetaMethods() { final Object owner = getOwner(); final MetaClass ownerMetaClass = getOwnerMetaClass(owner); return ownerMetaClass.getMetaMethods(); }
ClassInfo ci = ClassInfo.getClassInfo(type); List<MetaMethod> methods = new ArrayList<MetaMethod>(ci.getMetaClass().getMethods()); methods.addAll(ci.getMetaClass().getMetaMethods()); List<MetaMethod> sugg = rankMethods(methodName,arguments,methods); StringBuffer sb = new StringBuffer();
@Override public Map<MethodSignature, CompletionItem> getMethods(CompletionContext context) { final Map<MethodSignature, CompletionItem> result = new HashMap<MethodSignature, CompletionItem>(); final Class clz = loadClass(context.getTypeName()); if (clz != null) { final MetaClass metaClz = GroovySystem.getMetaClassRegistry().getMetaClass(clz); if (metaClz != null) { for (MetaMethod method : metaClz.getMetaMethods()) { populateProposal(clz, method, context.getPrefix(), context.getAnchor(), result, context.isNameOnly()); } } } return result; }