org.eclipse.xtend.middleend.xtend.plugin
Class OldXtendRegistryFactory

java.lang.Object
  extended by org.eclipse.xtend.middleend.xtend.plugin.OldXtendRegistryFactory
All Implemented Interfaces:
LanguageSpecificMiddleEndFactory

public class OldXtendRegistryFactory
extends java.lang.Object
implements LanguageSpecificMiddleEndFactory

Author:
Arno Haase (http://www.haase-consulting.com), André Arnold

Field Summary
static java.lang.String LANGUAGE_NAME
           
 
Constructor Summary
OldXtendRegistryFactory()
           
 
Method Summary
 LanguageSpecificMiddleEnd create(java.lang.Object specificData)
          This method creates the actual implementation of the middle end.
 java.lang.String getName()
          a clear text name describing the language / middle end
 int getPriority()
          the priority is a possible way to determine the order in which the middle ends are asked if they can handle a given resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LANGUAGE_NAME

public static final java.lang.String LANGUAGE_NAME
See Also:
Constant Field Values
Constructor Detail

OldXtendRegistryFactory

public OldXtendRegistryFactory()
Method Detail

create

public LanguageSpecificMiddleEnd create(java.lang.Object specificData)
Description copied from interface: LanguageSpecificMiddleEndFactory
This method creates the actual implementation of the middle end. The specificData parameter is passed through from the MiddleEnd constructor.
It is permitted for implementations to throw an IllegalArgumentException, which is the official way for an implementation to say that it views the passed data as insufficient to perform, and therefore needs to be removed from the list of registered middle ends. This is done on a per-call basis and avoids the necessity to always initialize all middle end implementations.

Specified by:
create in interface LanguageSpecificMiddleEndFactory

getName

public java.lang.String getName()
Description copied from interface: LanguageSpecificMiddleEndFactory
a clear text name describing the language / middle end

Specified by:
getName in interface LanguageSpecificMiddleEndFactory

getPriority

public int getPriority()
Description copied from interface: LanguageSpecificMiddleEndFactory
the priority is a possible way to determine the order in which the middle ends are asked if they can handle a given resource. Typically, only one middle end implementation should declare that it can handle a given resource (i.e. source file), and in this case a priority of 0 should be returned.
In the rare case where it is needed, highest priority is asked first.

Specified by:
getPriority in interface LanguageSpecificMiddleEndFactory