Examples of findMethod()


Examples of com.antlersoft.ilanalyze.db.DBClass.findMethod()

        protected Object filterObject( Object base)
        {
            DBClass filterc=(DBClass)base;
            try
            {
                DBMethod m=filterc.findMethod( soughtMethod.getName(), soughtMethod.getSignatureKey());
                return m;
            }
            catch ( Exception e)
            {
                throw new NoSuchElementException(
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JClassType.findMethod()

    JClassType asClass = type.isClassOrInterface();
    if (asClass == null) {
      return null;
    }

    JMethod m = asClass.findMethod(JSFlyweightWrapperGenerator.CREATE_PEER,
        new JType[] {oracle.findType(JavaScriptObject.class.getName())});

    if (m == null || !m.isStatic() || !type.equals(m.getReturnType())) {
      return null;
    }
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JClassType.findMethod()

    public static JMethod findInheritedMethod(JClassType type,
            String methodName, JType... params) {

        JClassType currentType = type;
        while (currentType != null) {
            JMethod method = currentType.findMethod(methodName, params);
            if (method != null) {
                return method;
            }
            currentType = currentType.getSuperclass();
        }
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JClassType.findMethod()

    {
      JMethod method = null;
      JClassType superClass = clazz;
      while (method == null && superClass != null)
      {
        method = superClass.findMethod(methodName, params);
        superClass = superClass.getSuperclass();
      }
      return method;
    }
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JClassType.findMethod()

          throw new UnableToCompleteException();
        }
        desc.eventFullName = eventType.getQualifiedSourceName();

        // Make sure the eventType has a static getType method
        JMethod getTypeMethod = eventType.findMethod("getType", new JType[0]);
        if (getTypeMethod == null || !getTypeMethod.isStatic()
            || getTypeMethod.getParameters().length != 0) {
          logger.log(TreeLogger.ERROR, "In presenter " + presenterClassName
              + ", method " + desc.functionName + " annotated with @"
              + ProxyEvent.class.getSimpleName() + ". The event class "
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JClassType.findMethod()

     * We want to allow the user to override some of the useful Object methods,
     * so we'll extract them here.
     */
    JClassType objectType = oracle.getJavaLangObject();
    objectMethods = Arrays.asList(
        objectType.findMethod("equals", new JType[] {objectType}),
        objectType.findMethod("hashCode", EMPTY_JTYPE),
        objectType.findMethod("toString", EMPTY_JTYPE));

    // Process annotations
    {
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JClassType.findMethod()

     * so we'll extract them here.
     */
    JClassType objectType = oracle.getJavaLangObject();
    objectMethods = Arrays.asList(
        objectType.findMethod("equals", new JType[] {objectType}),
        objectType.findMethod("hashCode", EMPTY_JTYPE),
        objectType.findMethod("toString", EMPTY_JTYPE));

    // Process annotations
    {
      Category categoryAnnotation = factoryType.getAnnotation(Category.class);
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JClassType.findMethod()

     */
    JClassType objectType = oracle.getJavaLangObject();
    objectMethods = Arrays.asList(
        objectType.findMethod("equals", new JType[] {objectType}),
        objectType.findMethod("hashCode", EMPTY_JTYPE),
        objectType.findMethod("toString", EMPTY_JTYPE));

    // Process annotations
    {
      Category categoryAnnotation = factoryType.getAnnotation(Category.class);
      if (categoryAnnotation != null) {
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JClassType.findMethod()

    public static JMethod findGetterMethod(JClassType type, String propertyName) {
        JMethod method = null;
        JClassType currentType = type;
        while (currentType != null) {
            method = currentType.findMethod(createGetGetterName(propertyName), new JType[0]);
            if (method != null) {
                break;
            }
            method = currentType.findMethod(createIsGetterName(propertyName), new JType[0]);
            if (method != null) {
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JClassType.findMethod()

        while (currentType != null) {
            method = currentType.findMethod(createGetGetterName(propertyName), new JType[0]);
            if (method != null) {
                break;
            }
            method = currentType.findMethod(createIsGetterName(propertyName), new JType[0]);
            if (method != null) {
                break;
            }
            currentType = currentType.getSuperclass();
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.