Unparses a VarModifier into the string of instructions used to produce it. @param varModifier The VarModifier to be unparsed @return The string of instructions for the given VarModifier
(VarModifier<?> varModifier)
| 210 | * @return The string of instructions for the given VarModifier |
| 211 | */ |
| 212 | public static String unparseModifier(VarModifier<?> varModifier) |
| 213 | { |
| 214 | FormulaModifier<?> modifier = varModifier.getModifier(); |
| 215 | String type = modifier.getIdentification(); |
| 216 | StringBuilder sb = new StringBuilder(); |
| 217 | sb.append(type); |
| 218 | sb.append(Constants.PIPE); |
| 219 | sb.append(modifier.getInstructions()); |
| 220 | Collection<String> assocs = modifier.getAssociationInstructions(); |
| 221 | if (assocs != null && !assocs.isEmpty()) |
| 222 | { |
| 223 | sb.append(Constants.PIPE); |
| 224 | sb.append(StringUtil.join(assocs, Constants.PIPE)); |
| 225 | } |
| 226 | return sb.toString(); |
| 227 | } |
| 228 | |
| 229 | @Override |
| 230 | public Class<VarHolder> getTokenClass() |
no test coverage detected