Interface ICommonModuleMethodNamesProvider
-
- All Known Subinterfaces:
IBaseBmHandlerNameModel
,IEventSubscriptionHandlerNameModel
- All Known Implementing Classes:
BmEventSubscriptionHandlerNameModel
,IBaseBmHandlerNameModel.BaseBmHandlerNameModel
,ICommonModuleMethodNamesProvider.BaseModuleAndMethodNameProvider
,ModuleAndExportMethodNameProvider
public interface ICommonModuleMethodNamesProvider
Configuration modules and module method names provider
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ICommonModuleMethodNamesProvider.BaseModuleAndMethodNameProvider
Basic implementation of configuration modules and module method names provider
-
Field Summary
Fields Modifier and Type Field Description static com.google.common.base.Predicate<Method>
EXPORT_METHODS_PREDICATE
static com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription>
SERVER_MODULES_PREDICATE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>
getCommonModuleMethodsNames(org.eclipse.xtext.resource.IEObjectDescription moduleDescriptions, com.google.common.base.Predicate<org.eclipse.emf.ecore.EObject> predicate)
Returns containing module methods names by predicate.Iterable<org.eclipse.xtext.resource.IEObjectDescription>
getCommonModules(com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> predicate)
Returns server modules.List<Pair<String,String>>
getCommonModulesMethods(Iterable<org.eclipse.xtext.resource.IEObjectDescription> moduleDescriptions, com.google.common.base.Predicate<org.eclipse.emf.ecore.EObject> predicate)
Returns pair of module names and containing module methods by predicate.IV8Project
getV8project()
Returns the V8 project.
-
-
-
Field Detail
-
SERVER_MODULES_PREDICATE
static final com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> SERVER_MODULES_PREDICATE
-
EXPORT_METHODS_PREDICATE
static final com.google.common.base.Predicate<Method> EXPORT_METHODS_PREDICATE
-
-
Method Detail
-
getV8project
IV8Project getV8project()
Returns the V8 project.- Returns:
- the V8 project, never
null
.
-
getCommonModulesMethods
List<Pair<String,String>> getCommonModulesMethods(Iterable<org.eclipse.xtext.resource.IEObjectDescription> moduleDescriptions, com.google.common.base.Predicate<org.eclipse.emf.ecore.EObject> predicate)
Returns pair of module names and containing module methods by predicate.- Parameters:
moduleDescriptions
- the list of description of common module, cannot benull
predicate
- the predicate action for filtering methods, can benull
- Returns:
- the pair of module methods, never
null
-
getCommonModuleMethodsNames
List<String> getCommonModuleMethodsNames(org.eclipse.xtext.resource.IEObjectDescription moduleDescriptions, com.google.common.base.Predicate<org.eclipse.emf.ecore.EObject> predicate)
Returns containing module methods names by predicate.- Parameters:
moduleDescriptions
- the description of common module, cannot benull
predicate
- the predicate action for filtering methods, can benull
- Returns:
- the methods names, never
null
-
getCommonModules
Iterable<org.eclipse.xtext.resource.IEObjectDescription> getCommonModules(com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> predicate)
Returns server modules.- Returns:
- the server modules, never
null
-
-