Constructor and Description |
---|
CGUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
compressJDTannotations(String classFileContent)
Simplify org.eclipse.jdt.annotation references that unnecessarily use long firm within a long firm.
|
static CGParameter |
createCGParameter(String name,
CGTypeId typeId) |
static CGClass |
getContainingClass(CGElement cgExpression) |
static CGValuedElement |
getInit(CGTuplePart cgTuplePart) |
static CGValuedElement |
getInit(CGVariable cgVariable) |
static Iterable<CGTuplePart> |
getParts(CGTupleExp cgTupleExp) |
static CGValuedElement |
getReferredConstant(CGConstantExp cgConstantExp) |
static CGValuedElement |
getReferredVariable(CGVariableExp cgVariableExp) |
static boolean |
isInlinedId(ElementId elementId) |
static 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 String |
trimLines(String classFileContent)
Trim trailing spaces from lines.
|
static void |
wrap(CGCallExp wrapExp,
CGValuedElement wrappedExp)
Use wrapExp to wrap wrappedExp.
|
public static String compressJDTannotations(String classFileContent)
public static CGParameter createCGParameter(String name, CGTypeId typeId)
public static CGValuedElement getInit(CGTuplePart cgTuplePart)
public static CGValuedElement getInit(CGVariable cgVariable)
public static Iterable<CGTuplePart> getParts(CGTupleExp cgTupleExp)
public static CGValuedElement getReferredConstant(CGConstantExp cgConstantExp)
public static CGValuedElement getReferredVariable(CGVariableExp cgVariableExp)
public static boolean isInlinedId(ElementId elementId)
public static Boolean isKindOf(CGValuedElement cgValue, CGExecutorType executorType)
public static CGValuedElement replace(CGValuedElement oldElement, CGValuedElement newElement)
public static void wrap(CGCallExp wrapExp, CGValuedElement wrappedExp)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.