List of usage examples for org.eclipse.jdt.internal.core.util KeyToSignature parse
public void parse()
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(); 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 . ja v a 2 s . c om*/ * @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 . j a v a2s. c o m * <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(); }