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 Details

  • Constructor Details

    • EcmaScriptRules

      public EcmaScriptRules()
  • Method Details

    • processRules

      public void processRules(org.palladiosimulator.retriever.services.blackboard.RetrieverBlackboard blackboard, Path path)
      Specified by:
      processRules in interface org.palladiosimulator.retriever.services.Rule
    • findAllHttpRequests

      public Map<String,Set<String>> findAllHttpRequests(org.palladiosimulator.retriever.services.blackboard.RetrieverBlackboard blackboard, org.openjdk.nashorn.api.tree.CompilationUnitTree unit)
    • findDirectHttpRequest

      public Map<String,Set<String>> findDirectHttpRequest(org.openjdk.nashorn.api.tree.Tree element)
    • findFunctionCallsWithUrls

      public HashMap<String,HashSet<String>> findFunctionCallsWithUrls(org.openjdk.nashorn.api.tree.Tree element)
    • findFunctionDeclarationsWithUrls

      public Map<String,Set<String>> findFunctionDeclarationsWithUrls(org.openjdk.nashorn.api.tree.Tree element)
    • findLiteralInExpression

      public String findLiteralInExpression(org.openjdk.nashorn.api.tree.ExpressionTree expression)
    • findLiteralsForIdentifier

      public HashSet<String> findLiteralsForIdentifier(org.openjdk.nashorn.api.tree.Tree element, String identifier)
    • findLiteralsInArguments

      public HashSet<String> findLiteralsInArguments(List<? extends org.openjdk.nashorn.api.tree.ExpressionTree> arguments)
    • findVariableAssignments

      public HashMap<String,String> findVariableAssignments(org.openjdk.nashorn.api.tree.Tree element)
    • join

      public static HashMap<String,Collection<String>> join(Map<String,? extends Set<String>>... maps)
    • mapURL

      public RESTName mapURL(String host, String url, List<GatewayRoute> routes)
    • isBuildRule

      public boolean isBuildRule()
      Specified by:
      isBuildRule in interface org.palladiosimulator.retriever.services.Rule
    • getConfigurationKeys

      public Set<String> getConfigurationKeys()
      Specified by:
      getConfigurationKeys in interface org.palladiosimulator.retriever.services.Service
    • getID

      public String getID()
      Specified by:
      getID in interface org.palladiosimulator.retriever.services.Service
    • getName

      public String getName()
      Specified by:
      getName in interface org.palladiosimulator.retriever.services.Service
    • getRequiredServices

      public Set<String> getRequiredServices()
      Specified by:
      getRequiredServices in interface org.palladiosimulator.retriever.services.Service
    • getDependentServices

      public Set<String> getDependentServices()
      Specified by:
      getDependentServices in interface org.palladiosimulator.retriever.services.Service