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

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

Introduction

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

Prototype

public KeyToSignature(String key, int kind) 

Source Link

Usage

From source file:com.codenvy.ide.ext.java.server.internal.core.util.Util.java

License:Open Source License

public static String getDeclaringTypeSignature(String key) {
    KeyToSignature keyToSignature = new KeyToSignature(key, KeyToSignature.DECLARING_TYPE);
    keyToSignature.parse();//from ww  w .ja  v  a  2s .  c  o  m
    return keyToSignature.signature.toString();
}

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.
 * //w ww  .  j  a  v 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();
}

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

License:Open Source License

/**
 * Internal method./*w  w w .ja va2 s .com*/
 * <p>
 * This method transforms this binding key into a signature. This method is not intended to be called by clients.
 * </p>
 * 
 * @return the signature for this binding key
 */
public String internalToSignature() {
    KeyToSignature keyToSignature = new KeyToSignature(this.key, KeyToSignature.SIGNATURE);
    keyToSignature.parse();
    return keyToSignature.signature.toString();
}