ILangObjectMapper Interface

com.bea.ide.sourceeditor.compiler
ILangObjectMapper Interface

public interface ILangObjectMapper

Interface used to map a class of compiler objects returned from ISourceInfoFeature to objects with the interfaces necessary for IDE related features. Use the extension.xml handler 'urn:com-bea-ide:sourceeditor:sourceinfo' to register an implementation of this interface. Entries have the following format: <object-mapper class="workshop.sourceeditor.lang.TypeInfoObjectMapper"> <compiler-object type="com.bea.compiler.info.IMethod"> <compiler-object type="com.bea.compiler.info.IPackage"> ... </object-mapper>

Method Summary

public ICompletionSet
mapCompletions(List completions)
Maps a list of completions to an ICompletionSet implementation.
public IIdentifierInfo
mapIdentifierInfo(Object info, ISourceDocument doc, int offset)
Maps compiler identifier info objects.

Method Detail

mapCompletions(List) Method

public ICompletionSet mapCompletions(List completions)
Maps a list of completions to an ICompletionSet implementation. All objects in the list are required to map to the same ILangObjectMapper. Only the first object in the list is used to determin which mapper gets the list.


mapIdentifierInfo(Object, ISourceDocument, int) Method

public IIdentifierInfo mapIdentifierInfo(Object info, 
                                         ISourceDocument doc, 
                                         int offset)
Maps compiler identifier info objects.