Class EcmaScriptRules
java.lang.Object
org.palladiosimulator.somox.analyzer.rules.impl.EcmaScriptRules
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindAllHttpRequests
(RuleEngineBlackboard blackboard, org.openjdk.nashorn.api.tree.CompilationUnitTree unit) findDirectHttpRequest
(org.openjdk.nashorn.api.tree.Tree element) findFunctionCallsWithUrls
(org.openjdk.nashorn.api.tree.Tree element) findFunctionDeclarationsWithUrls
(org.openjdk.nashorn.api.tree.Tree element) findLiteralInExpression
(org.openjdk.nashorn.api.tree.ExpressionTree expression) findLiteralsForIdentifier
(org.openjdk.nashorn.api.tree.Tree element, String identifier) findLiteralsInArguments
(List<? extends org.openjdk.nashorn.api.tree.ExpressionTree> arguments) findVariableAssignments
(org.openjdk.nashorn.api.tree.Tree element) IDs of services that may only run after this one.getID()
getName()
IDs of services that must run before this one.boolean
static HashMap<String,
Collection<String>> mapURL
(String host, String url, List<GatewayRoute> routes) void
processRules
(RuleEngineBlackboard blackboard, Path path)
-
Field Details
-
RULE_ID
- See Also:
-
ECMASCRIPT_DISCOVERER_ID
- See Also:
-
HOSTNAMES_ID
- See Also:
-
GATEWAY_ROUTES_ID
- See Also:
-
-
Constructor Details
-
EcmaScriptRules
public EcmaScriptRules()
-
-
Method Details
-
processRules
- Specified by:
processRules
in interfaceRule
-
findAllHttpRequests
public Map<String,Set<String>> findAllHttpRequests(RuleEngineBlackboard blackboard, org.openjdk.nashorn.api.tree.CompilationUnitTree unit) -
findDirectHttpRequest
-
findFunctionCallsWithUrls
-
findFunctionDeclarationsWithUrls
-
findLiteralInExpression
-
findLiteralsForIdentifier
-
findLiteralsInArguments
-
findVariableAssignments
-
join
-
mapURL
-
isBuildRule
public boolean isBuildRule()- Specified by:
isBuildRule
in interfaceRule
-
getConfigurationKeys
- Specified by:
getConfigurationKeys
in interfaceService
-
getID
-
getName
-
getRequiredServices
Description copied from interface:Service
IDs of services that must run before this one.- Specified by:
getRequiredServices
in interfaceService
-
getDependentServices
Description copied from interface:Service
IDs of services that may only run after this one.- Specified by:
getDependentServices
in interfaceService
-