Example usage for org.eclipse.jdt.internal.core.util KeyToSignature getTypeArguments

List of usage examples for org.eclipse.jdt.internal.core.util KeyToSignature getTypeArguments

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.core.util KeyToSignature getTypeArguments.

Prototype

public String[] getTypeArguments() 

Source Link

Usage

From source file:org.eclipse.imp.analysis.type.constraints.fastrep.BindingKey.java

License:Open Source License

/**
 * Returns the type argument signatures of the element represented by this binding key. If this binding key doesn't
 * represent a parameterized type or a parameterized method, returns an empty array.
 * //from w w w.ja  v  a  2 s. c o  m
 * @return the type argument signatures
 */
public String[] getTypeArguments() {
    KeyToSignature keyToSignature = new KeyToSignature(this.key, KeyToSignature.TYPE_ARGUMENTS);
    keyToSignature.parse();
    return keyToSignature.getTypeArguments();
}