| java.lang.Object org.drools.eclipse.editors.completion.CompletionUtil
CompletionUtil | public class CompletionUtil (Code) | | |
Method Summary | |
public static String | getCompilableText(String backText) | public static String | getLastLine(String text) | public static String | getPropertyName(String methodName, int parameterCount, String returnType) Given a data depicting a method (name, # or params/args, returned type key), tries to return a bean property name derived from that method. | public static String | getPropertyName(String methodName, char[] signature) | public static boolean | isGetter(String methodName, int argCount, String returnedType) | public static boolean | isIsGetter(String methodName, int argCount, String returnedType) | public static boolean | isSetter(String methodName, int argCount, String returnedType) | public static boolean | isStartOfNewStatement(String text, String prefix) | public static String | stripLastWord(String prefix) Looks behind, gets stuff after the white space. | public static String | stripWhiteSpace(String prefix) |
COMPLETED_MVEL_EXPRESSION | final protected static Pattern COMPLETED_MVEL_EXPRESSION(Code) | | |
INCOMPLETED_MVEL_EXPRESSION | final protected static Pattern INCOMPLETED_MVEL_EXPRESSION(Code) | | |
getCompilableText | public static String getCompilableText(String backText)(Code) | | Attempt to enhance a consequence backtext such that it should compile in MVEL
Parameters: backText - a substring of the back text, that should be compilable withoutsyntax errors by the mvel compiler TODO: add tests and more usecases |
getPropertyName | public static String getPropertyName(String methodName, int parameterCount, String returnType)(Code) | | Given a data depicting a method (name, # or params/args, returned type key), tries to return a bean property name derived from that method.
If a bean property name is not found, the initial method name is returned
Parameters: methodName - Parameters: parameterCount - Parameters: returnType - a bean property name |
getPropertyName | public static String getPropertyName(String methodName, char[] signature)(Code) | | |
isGetter | public static boolean isGetter(String methodName, int argCount, String returnedType)(Code) | | |
isIsGetter | public static boolean isIsGetter(String methodName, int argCount, String returnedType)(Code) | | |
isSetter | public static boolean isSetter(String methodName, int argCount, String returnedType)(Code) | | |
isStartOfNewStatement | public static boolean isStartOfNewStatement(String text, String prefix)(Code) | | |
stripLastWord | public static String stripLastWord(String prefix)(Code) | | Looks behind, gets stuff after the white space. Basically ripping out the
last word.
|
|
|