Class EcmaScriptRules
java.lang.Object
org.palladiosimulator.somox.analyzer.rules.impl.EcmaScriptRules
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.booleanstatic HashMap<String,Collection<String>> mapURL(String host, String url, List<GatewayRoute> routes) voidprocessRules(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:
processRulesin 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:
isBuildRulein interfaceRule
-
getConfigurationKeys
- Specified by:
getConfigurationKeysin interfaceService
-
getID
-
getName
-
getRequiredServices
Description copied from interface:ServiceIDs of services that must run before this one.- Specified by:
getRequiredServicesin interfaceService
-
getDependentServices
Description copied from interface:ServiceIDs of services that may only run after this one.- Specified by:
getDependentServicesin interfaceService
-