org.openrewrite.csharp.remote.Extensions Maven / Gradle / Ivy
Show all versions of rewrite-csharp-remote Show documentation
/*
* Copyright 2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.openrewrite.csharp.remote;
import org.jspecify.annotations.Nullable;
import org.openrewrite.java.tree.*;
import org.openrewrite.remote.ReceiverContext;
import org.openrewrite.remote.SenderContext;
public final class Extensions {
public static Space receiveSpace(@Nullable Space space, Class> type, ReceiverContext ctx) {
return org.openrewrite.remote.java.Extensions.receiveSpace(space, type, ctx);
}
public static Comment receiveComment(@Nullable Comment comment, @Nullable Class type, ReceiverContext ctx) {
return org.openrewrite.remote.java.Extensions.receiveComment(comment, type, ctx);
}
public static void sendSpace(Space space, SenderContext ctx) {
org.openrewrite.remote.java.Extensions.sendSpace(space, ctx);
}
public static void sendComment(Comment comment, SenderContext ctx) {
org.openrewrite.remote.java.Extensions.sendComment(comment, ctx);
}
public static void sendContainer(JContainer container, SenderContext ctx) {
org.openrewrite.remote.java.Extensions.sendContainer(container, ctx);
}
public static void sendLeftPadded(JLeftPadded leftPadded, SenderContext ctx) {
org.openrewrite.remote.java.Extensions.sendLeftPadded(leftPadded, ctx);
}
public static void sendRightPadded(JRightPadded rightPadded, SenderContext ctx) {
org.openrewrite.remote.java.Extensions.sendRightPadded(rightPadded, ctx);
}
public static JContainer receiveContainer(@Nullable JContainer container, @Nullable Class> type, ReceiverContext ctx) {
return org.openrewrite.remote.java.Extensions.receiveContainer(container, type, ctx);
}
public static ReceiverContext.DetailsReceiver> leftPaddedValueReceiver(Class valueType) {
return org.openrewrite.remote.java.Extensions.leftPaddedValueReceiver(valueType);
}
public static ReceiverContext.DetailsReceiver> leftPaddedNodeReceiver(Class nodeType) {
return org.openrewrite.remote.java.Extensions.leftPaddedNodeReceiver(nodeType);
}
public static JLeftPadded receiveLeftPaddedTree(@Nullable JLeftPadded leftPadded, @Nullable Class> type, ReceiverContext ctx) {
return org.openrewrite.remote.java.Extensions.receiveLeftPaddedTree(leftPadded, type, ctx);
}
public static ReceiverContext.DetailsReceiver> rightPaddedValueReceiver(Class valueType) {
return org.openrewrite.remote.java.Extensions.rightPaddedValueReceiver(valueType);
}
public static ReceiverContext.DetailsReceiver> rightPaddedNodeReceiver(Class nodeType) {
return org.openrewrite.remote.java.Extensions.rightPaddedNodeReceiver(nodeType);
}
public static JRightPadded receiveRightPaddedTree(@Nullable JRightPadded rightPadded, @Nullable Class> type, ReceiverContext ctx) {
return org.openrewrite.remote.java.Extensions.receiveRightPaddedTree(rightPadded, type, ctx);
}
}