|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtend.middleend.internal.MiddleEndImpl
public final class MiddleEndImpl
This class is the generic entry point for parsing and executing code. Different
languages can contribute their specific middle ends using extension points.
MiddleEnd instances are stateful in that they preserve caching of the contributed
middle ends. They also preserve a single ExecutionContext instance throughout their
life span, but they expose it to allows using code to selectively manipulate and / or
re-initialize it between invocations.
Constructor Summary | |
---|---|
MiddleEndImpl(BackendTypesystem ts,
java.util.List<LanguageSpecificMiddleEnd> languageHandlers)
The map with "specific params" is used to initialize the contributed middle ends. |
Method Summary | |
---|---|
void |
applyAdvice(java.lang.String resourceName)
tells this middle end instance to apply the advice in a given resource to all subsequent invocations. |
FunctionDefContextInternal |
createEmptyFdc()
|
ExecutionContext |
getExecutionContext()
This method exposes the execution context to using code with the explicit purpose of allowing others to inspect and manipulate / re-initialize it partially or in toto. |
FunctionDefContext |
getFunctions(java.lang.String resourceName)
|
java.util.List<LanguageSpecificMiddleEnd> |
getLanguageSpecificMiddleEnds()
|
java.util.Map<java.lang.String,ParsedResource> |
getParsedResources()
|
BackendTypesystem |
getTypesystem()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MiddleEndImpl(BackendTypesystem ts, java.util.List<LanguageSpecificMiddleEnd> languageHandlers)
Method Detail |
---|
public void applyAdvice(java.lang.String resourceName)
applyAdvice
in interface MiddleEnd
public FunctionDefContext getFunctions(java.lang.String resourceName)
getFunctions
in interface MiddleEnd
public ExecutionContext getExecutionContext()
getExecutionContext
in interface MiddleEnd
public BackendTypesystem getTypesystem()
getTypesystem
in interface MiddleEnd
public FunctionDefContextInternal createEmptyFdc()
createEmptyFdc
in interface MiddleEnd
public java.util.Map<java.lang.String,ParsedResource> getParsedResources()
getParsedResources
in interface MiddleEnd
public java.util.List<LanguageSpecificMiddleEnd> getLanguageSpecificMiddleEnds()
getLanguageSpecificMiddleEnds
in interface MiddleEnd
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |