Examples of MethodBinding


Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodBinding

   * @see ITypeBinding#getDeclaringMethod()
   */
  public synchronized IMethodBinding getDeclaringMethod() {
    if (this.binding instanceof LocalTypeBinding) {
      LocalTypeBinding localTypeBinding = (LocalTypeBinding) this.binding;
      MethodBinding methodBinding = localTypeBinding.enclosingMethod;
      if (methodBinding != null) {
        try {
          return this.resolver.getMethodBinding(localTypeBinding.enclosingMethod);
        } catch (RuntimeException e) {
          /* in case a method cannot be resolvable due to missing jars on the classpath
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodBinding

      }
    } else if (isTypeVariable()) {
      final TypeVariableBinding typeVariableBinding = (TypeVariableBinding) this.binding;
      final Binding declaringElement = typeVariableBinding.declaringElement;
      if (declaringElement instanceof MethodBinding) {
        MethodBinding methodBinding = (MethodBinding) declaringElement;
        return !methodBinding.declaringClass.isBinaryBinding();
      } else {
        final org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeBinding typeBinding = (org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeBinding) declaringElement;
        if (typeBinding instanceof ReferenceBinding) {
          return !((ReferenceBinding) typeBinding).isBinaryBinding();
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodBinding

      ReferenceBinding refBinding  = (ReferenceBinding) variable.declaringElement;
      if (matchesName(refBinding.sourceName, pattern.declaringMemberName)) {
        return ACCURATE_MATCH;
      }
    } else if (variable.declaringElement instanceof MethodBinding) {
      MethodBinding methBinding  = (MethodBinding) variable.declaringElement;
      if (matchesName(methBinding.declaringClass.sourceName, pattern.methodDeclaringClassName) &&
        (methBinding.isConstructor() || matchesName(methBinding.selector, pattern.declaringMemberName))) {
        int length = pattern.methodArgumentTypes==null ? 0 : pattern.methodArgumentTypes.length;
        if (methBinding.parameters == null) {
          if (length == 0) return ACCURATE_MATCH;
        } else if (methBinding.parameters.length == length){
          for (int i=0; i<length; i++) {
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.MethodBinding

      FindDeferredBindingSitesVisitor.reportRebindProblem(site,
          "Rebind result '" + typeName + "' cannot be a local class");
      return;
    }
    // Look for a noArg ctor.
    MethodBinding noArgCtor = type.getExactConstructor(TypeBinding.NO_PARAMETERS);
    if (noArgCtor == null) {
      FindDeferredBindingSitesVisitor.reportRebindProblem(site,
          "Rebind result '" + typeName
              + "' has no default (zero argument) constructors");
      return;
View Full Code Here

Examples of org.jboss.seam.core.Expressions.MethodBinding

         if (actionId!=null)
         {
            if ( !SafeActions.instance().isActionSafe(actionId) ) return result;
            String expression = SafeActions.toAction(actionId);
            result = true;
            MethodBinding actionBinding = Expressions.instance().createMethodBinding(expression);
            outcome = toString( actionBinding.invoke() );
            fromAction = expression;
            handleOutcome(facesContext, outcome, fromAction);
         }
      }
      else
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.