public class CGUtils
extends java.lang.Object
| Constructor and Description |
|---|
CGUtils() |
| Modifier and Type | Method and Description |
|---|---|
static CGParameter |
createCGParameter(java.lang.String name,
CGTypeId typeId) |
static CGClass |
getContainingClass(CGElement cgExpression) |
static boolean |
isInlineableId(ElementId elementId) |
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 isInlineableId(@NonNull
ElementId elementId)
@NonNull public static CGValuedElement replace(@NonNull CGValuedElement oldElement, @NonNull CGValuedElement newElement)
public static void wrap(@NonNull
CGCallExp wrapExp,
@NonNull
CGValuedElement wrappedExp)