Package org.eclipse.jdt.core

Examples of org.eclipse.jdt.core.BindingKey


  // Get unique key for parameterized constructors
  String genericDeclaringTypeSignature = null;
  if (method.isResolved()) {
    String key = method.getKey();
    BindingKey bindingKey = new BindingKey(key);
    if (bindingKey.isParameterizedType()) {
      genericDeclaringTypeSignature = Util.getDeclaringTypeSignature(key);
      // Store type signature and arguments for declaring type
      if (genericDeclaringTypeSignature != null) {
          this.typeSignatures = Util.splitTypeLevelsSignature(genericDeclaringTypeSignature);
          setTypeArguments(Util.getAllTypeArguments(this.typeSignatures));
View Full Code Here


    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

    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

   */
  char[][] extractMethodArguments(IMethod method) {

    // Use bind key if the element is resolved
    if (method.isResolved()) {
      BindingKey bindingKey = new BindingKey(method.getKey());
      if (bindingKey.isParameterizedMethod()) {
        String[] argumentsSignatures = bindingKey.getTypeArguments();
        int length = argumentsSignatures.length;
        if (length > 0) {
          char[][] methodArguments = new char[length][];
          for (int i=0; i<length; i++) {
            methodArguments[i] = argumentsSignatures[i].toCharArray();
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) {
    if (type.isResolved()) {
      BindingKey bindingKey = new BindingKey(type.getKey());
      if (bindingKey.isParameterizedType() || bindingKey.isRawType()) {
        String signature = bindingKey.toSignature();
        this.typeSignatures = Util.splitTypeLevelsSignature(signature);
        setTypeArguments(Util.getAllTypeArguments(this.typeSignatures));
      }
      return;
    }
View Full Code Here

  // Get unique key for parameterized constructors
  String genericDeclaringTypeSignature = null;
  if (method.isResolved()) {
    String key = method.getKey();
    BindingKey bindingKey = new BindingKey(key);
    if (bindingKey.isParameterizedType()) {
      genericDeclaringTypeSignature = Util.getDeclaringTypeSignature(key);
      // Store type signature and arguments for declaring type
      if (genericDeclaringTypeSignature != null) {
          this.typeSignatures = Util.splitTypeLevelsSignature(genericDeclaringTypeSignature);
          setTypeArguments(Util.getAllTypeArguments(this.typeSignatures));
View Full Code Here

  // Get unique key for parameterized constructors
  String genericDeclaringTypeSignature = null;
  if (method.isResolved()) {
    String key = method.getKey();
    BindingKey bindingKey = new BindingKey(key);
    if (bindingKey.isParameterizedType()) {
      genericDeclaringTypeSignature = Util.getDeclaringTypeSignature(key);
      // Store type signature and arguments for declaring type
      if (genericDeclaringTypeSignature != null) {
          this.typeSignatures = Util.splitTypeLevelsSignature(genericDeclaringTypeSignature);
          setTypeArguments(Util.getAllTypeArguments(this.typeSignatures));
View Full Code Here

   */
  char[][] extractMethodArguments(IMethod method) {

    // Use bind key if the element is resolved
    if (method.isResolved()) {
      BindingKey bindingKey = new BindingKey(method.getKey());
      if (bindingKey.isParameterizedMethod()) {
        String[] argumentsSignatures = bindingKey.getTypeArguments();
        int length = argumentsSignatures.length;
        if (length > 0) {
          char[][] methodArguments = new char[length][];
          for (int i=0; i<length; i++) {
            methodArguments[i] = argumentsSignatures[i].toCharArray();
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) {
    if (type.isResolved()) {
      BindingKey bindingKey = new BindingKey(type.getKey());
      if (bindingKey.isParameterizedType() || bindingKey.isRawType()) {
        String signature = bindingKey.toSignature();
        this.typeSignatures = Util.splitTypeLevelsSignature(signature);
        setTypeArguments(Util.getAllTypeArguments(this.typeSignatures));
      }
      return;
    }
View Full Code Here

            }
            if (!(javaElement instanceof org.eclipse.jdt.internal.core.ResolvedBinaryType)) {
                continue;
            }
            org.eclipse.jdt.internal.core.ResolvedBinaryType rbt = (org.eclipse.jdt.internal.core.ResolvedBinaryType) javaElement;
            BindingKey bindingKey = new BindingKey(rbt.getKey());
            if (annotationTypeSig.equals(bindingKey.toSignature())) {
                return true;
            }
        }
        return false;
    }
View Full Code Here

TOP

Related Classes of 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.