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

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

Introduction

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

Prototype

int TYPE_ARGUMENTS

To view the source code for org.eclipse.jdt.internal.core.util KeyToSignature TYPE_ARGUMENTS.

Click 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.
 * //ww w  .j av a 2s .co  m
 * @return the type argument signatures
 */
public String[] getTypeArguments() {
    KeyToSignature keyToSignature = new KeyToSignature(this.key, KeyToSignature.TYPE_ARGUMENTS);
    keyToSignature.parse();
    return keyToSignature.getTypeArguments();
}