Example usage for org.aspectj.weaver UnresolvedType getBaseName

List of usage examples for org.aspectj.weaver UnresolvedType getBaseName

Introduction

In this page you can find the example usage for org.aspectj.weaver UnresolvedType getBaseName.

Prototype

public String getBaseName() 

Source Link

Usage

From source file:org.eclipse.ajdt.core.model.AJWorldFacade.java

License:Open Source License

/**
 * @param typeVariables/*from   w w  w  . j a  v  a2s.  c  o  m*/
 * @return
 */
static TypeParameter[] convertTypeParameters(TypeVariable[] typeVariables) {
    if (typeVariables == null || typeVariables.length == 0) {
        return NO_TYPE_PARAMETERS;
    }
    TypeParameter[] typeParameters = new TypeParameter[typeVariables.length];

    for (int i = 0; i < typeVariables.length; i++) {
        String name = typeVariables[i].getName();
        UnresolvedType upperBoundMunger = typeVariables[i].getFirstBound();
        String upperBound;
        if (upperBoundMunger != null) {
            upperBound = createJDTSignature(upperBoundMunger.getBaseName());
        } else {
            upperBound = null;
        }
        typeParameters[i] = new TypeParameter(name, upperBound);
    }
    return typeParameters;
}