Class EcmaScriptRules
java.lang.Object
org.palladiosimulator.retriever.extraction.rules.EcmaScriptRules
- All Implemented Interfaces:
org.palladiosimulator.retriever.services.Rule
,org.palladiosimulator.retriever.services.Service
public class EcmaScriptRules
extends Object
implements org.palladiosimulator.retriever.services.Rule
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindAllHttpRequests
(org.palladiosimulator.retriever.services.blackboard.RetrieverBlackboard 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) getID()
getName()
boolean
static HashMap<String,
Collection<String>> mapURL
(String host, String url, List<GatewayRoute> routes) void
processRules
(org.palladiosimulator.retriever.services.blackboard.RetrieverBlackboard blackboard, Path path) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.palladiosimulator.retriever.services.Rule
create
-
Field Details
-
RULE_ID
- See Also:
-
ECMASCRIPT_DISCOVERER_ID
- See Also:
-
HOSTNAMES_ID
- See Also:
-
GATEWAY_ROUTES_ID
- See Also:
-
DONE_ID
- See Also:
-
-
Constructor Details
-
EcmaScriptRules
public EcmaScriptRules()
-
-
Method Details
-
processRules
public void processRules(org.palladiosimulator.retriever.services.blackboard.RetrieverBlackboard blackboard, Path path) - Specified by:
processRules
in interfaceorg.palladiosimulator.retriever.services.Rule
-
findAllHttpRequests
-
findDirectHttpRequest
-
findFunctionCallsWithUrls
-
findFunctionDeclarationsWithUrls
-
findLiteralInExpression
-
findLiteralsForIdentifier
-
findLiteralsInArguments
-
findVariableAssignments
-
join
-
mapURL
-
isBuildRule
public boolean isBuildRule()- Specified by:
isBuildRule
in interfaceorg.palladiosimulator.retriever.services.Rule
-
getConfigurationKeys
- Specified by:
getConfigurationKeys
in interfaceorg.palladiosimulator.retriever.services.Service
-
getID
- Specified by:
getID
in interfaceorg.palladiosimulator.retriever.services.Service
-
getName
- Specified by:
getName
in interfaceorg.palladiosimulator.retriever.services.Service
-
getRequiredServices
- Specified by:
getRequiredServices
in interfaceorg.palladiosimulator.retriever.services.Service
-
getDependentServices
- Specified by:
getDependentServices
in interfaceorg.palladiosimulator.retriever.services.Service
-