io.cloudshiftdev.awscdk.IFragmentConcatenator.kt Maven / Gradle / Ivy
The newest version!
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk
import io.cloudshiftdev.awscdk.common.CdkObject
import io.cloudshiftdev.awscdk.common.CdkObjectWrappers
import kotlin.Any
/**
* Function used to concatenate symbols in the target document language.
*
* Interface so it could potentially be exposed over jsii.
*/
public interface IFragmentConcatenator {
/**
* Join the fragment on the left and on the right.
*
* @param left
* @param right
*/
public fun join(left: Any, right: Any): Any
private class Wrapper(
cdkObject: software.amazon.awscdk.IFragmentConcatenator,
) : CdkObject(cdkObject),
IFragmentConcatenator {
/**
* Join the fragment on the left and on the right.
*
* @param left
* @param right
*/
override fun join(left: Any, right: Any): Any = unwrap(this).join(left, right)
}
public companion object {
internal fun wrap(cdkObject: software.amazon.awscdk.IFragmentConcatenator):
IFragmentConcatenator = CdkObjectWrappers.wrap(cdkObject) as? IFragmentConcatenator ?:
Wrapper(cdkObject)
internal fun unwrap(wrapped: IFragmentConcatenator):
software.amazon.awscdk.IFragmentConcatenator = (wrapped as CdkObject).cdkObject as
software.amazon.awscdk.IFragmentConcatenator
}
}