public abstract class IdDeclaration
A declaration that is identified by a unique ID. This allows different
languages to have references to each other. The language containing the
reference just has to know the ID of the declaration. The owner of the
declaration is reponsible for providing a public API to obtain the ID.
For example, a Java language provider should have an API to obtain the
declaration ID for classes, methods, fields, etc.
public static IdDeclaration findDeclaration(Context context,
Find the IdDeclaration for an ID.
context - the context
id - the declaration ID
the IdDeclaration, or null if no matching
declaration is found
java.lang.InterruptedException - if the operation is interrupted
java.lang.IllegalStateException - if the method is called on the event thread
public java.lang.String getDeclarationId()
Gets the unique ID for this declaration. To ensure uniqueness, the ID
should contain a unique language identifier. For example, the ID for a
Java class might be "java:class:" followed by the fully qualified class