Select Git revision
ragconnect.mustache
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) {