Package org.aspectj.org.eclipse.jdt.core

Examples of org.aspectj.org.eclipse.jdt.core.BindingKey


    key.append(';');
    return key.toString();
  }

  protected String getFullyQualifiedParameterizedName(String fullyQualifiedName, String uniqueKey) throws JavaModelException {
    String[] typeArguments = new BindingKey(uniqueKey).getTypeArguments();
    int length = typeArguments.length;
    if (length == 0) return fullyQualifiedName;
    StringBuffer buffer = new StringBuffer();
    buffer.append(fullyQualifiedName);
    buffer.append('<');
View Full Code Here


   * Extract method arguments using unique key for parameterized methods
   * and type parameters for non-generic ones.
   */
  char[][] extractMethodArguments(IMethod method) {
    String[] argumentsSignatures = null;
    BindingKey key;
    if (method.isResolved() && (key = new BindingKey(method.getKey())).isParameterizedType()) {
      argumentsSignatures = key.getTypeArguments();
    } else {
      try {
        ITypeParameter[] parameters = method.getTypeParameters();
        if (parameters != null) {
          int length = parameters.length;
View Full Code Here

  /*
   * Extract and store type signatures and arguments using unique key for parameterized types
   * and type parameters for non-generic ones
   */
  void storeTypeSignaturesAndArguments(IType type) {
    BindingKey key;
    if (type.isResolved() && (key = new BindingKey(type.getKey())).isParameterizedType()) {
      String signature = key.toSignature();
      this.typeSignatures = Util.splitTypeLevelsSignature(signature);
      setTypeArguments(Util.getAllTypeArguments(this.typeSignatures));
    } else {
      // Scan hierachy to store type arguments at each level
      char[][][] typeParameters = new char[10][][];
View Full Code Here

  }

  // Get unique key for parameterized constructors
  String genericDeclaringTypeSignature = null;
  String key;
  if (method.isResolved() && new BindingKey(key = method.getKey()).isParameterizedType()) {
    genericDeclaringTypeSignature = Util.getDeclaringTypeSignature(key);
  } else {
    constructorParameters = true;
  }
View Full Code Here

TOP

Related Classes of org.aspectj.org.eclipse.jdt.core.BindingKey

Copyright © 2018 www.massapicom. 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.