public class CGUtil
extends java.lang.Object
Constructor and Description |
---|
CGUtil() |
Modifier and Type | Method and Description |
---|---|
static CGParameter |
createCGParameter(java.lang.String name,
CGTypeId typeId) |
static CGClass |
getContainingClass(CGElement cgExpression) |
static boolean |
isInlinedId(ElementId elementId) |
static java.lang.Boolean |
isKindOf(CGValuedElement cgValue,
CGExecutorType executorType) |
static CGValuedElement |
replace(CGValuedElement oldElement,
CGValuedElement newElement)
Replace oldElement by newElement and return oldElement which is orphaned by the replacement.
|
static void |
wrap(CGCallExp wrapExp,
CGValuedElement wrappedExp)
Use wrapExp to wrap wrappedExp.
|
@NonNull public static CGParameter createCGParameter(@NonNull java.lang.String name, @NonNull CGTypeId typeId)
@Nullable public static CGClass getContainingClass(@NonNull CGElement cgExpression)
public static boolean isInlinedId(@NonNull ElementId elementId)
@Nullable public static java.lang.Boolean isKindOf(@NonNull CGValuedElement cgValue, @NonNull CGExecutorType executorType)
@NonNull public static CGValuedElement replace(@NonNull CGValuedElement oldElement, @NonNull CGValuedElement newElement)
public static void wrap(@NonNull CGCallExp wrapExp, @NonNull CGValuedElement wrappedExp)