Skip to content
Snippets Groups Projects
Select Git revision
  • b71daace7460f8826593f43c0aafd30ba23914fb
  • dev default protected
  • main protected
  • feature/ros-java-integration
4 results

ragconnect.mustache

Blame
  • ragconnect.mustache 2.75 KiB
    {{> handler}}
    aspect RagConnect {
      {{#allPortDefinitionList}}
        {{#Send}}
          {{> sendDefinition}}
        {{/Send}}
        {{^Send}}
          {{> receiveDefinition}}
        {{/Send}}
      {{/allPortDefinitionList}}
    
      class RagConnectRejectMappingException extends RuntimeException {}
      private static void ASTNode.reject() {
        throw new RagConnectRejectMappingException();
      }
    
      {{#allMappingDefinitions}}
      {{> mappingDefinition}}
      {{/allMappingDefinitions}}
    
      {{#allDependencyDefinitionList}}
      {{> dependencyDefinition}}
      {{/allDependencyDefinitionList}}
    
      {{#tokenComponentsThatNeedProxy}}
      {{> tokenComponent}}
      {{/tokenComponentsThatNeedProxy}}
    
      {{#typeDeclsOfContextFreePortTargets}}
      {{> typeDecl}}
      {{/typeDeclsOfContextFreePortTargets}}
    
      {{! --- touchedTerminals ---}}
      {{#allTypeDecls}}
        {{Name}} {{Name}}.{{touchedTerminalsMethodName}}() {
        {{#tokenComponents}}
          get{{Name}}();
        {{/tokenComponents}}
        {{#normalComponents}}
          get{{Name}}().{{touchedTerminalsMethodName}}();
        {{/normalComponents}}
        {{#listComponents}}
          for ({{#TypeDecl}}{{Name}}{{/TypeDecl}} element : get{{Name}}List()) {
            element.{{touchedTerminalsMethodName}}();
          }
        {{/listComponents}}
        return this;
      }
      {{/allTypeDecls}}
      ASTNode ASTNode.{{touchedTerminalsMethodName}}() {
        return this;
      }
      {{configJastAddList}}<T> {{configJastAddList}}.{{touchedTerminalsMethodName}}() {
        for (T child : this) {
          child.{{touchedTerminalsMethodName}}();
        }
        return this;
      }
      {{configJastAddOpt}}<T> {{configJastAddOpt}}.{{touchedTerminalsMethodName}}() {
        if (getChild(0) != null) {
          getChild(0).{{touchedTerminalsMethodName}}();
        }
        return this;
      }
    
      static void ASTNode.{{logConsoleOut}}(String message, Object... args) {
        System.out.println(String.format(message, args));
      }
    
      static void ASTNode.{{logConsoleOut}}(String message, Throwable t) {