in util/src/main/java/org/apache/jsieve/util/NodeToSieveAdapter.java [139:164]
public void start(ASTargument node) throws HaltTraversalException {
final Object value = node.getValue();
if (value == null) {
LOGGER.debug("Ignoring null argument");
} else if (value instanceof NumberArgument) {
final NumberArgument numberArgument = (NumberArgument) value;
Integer integer = numberArgument.getInteger();
if (integer == null) {
LOGGER.debug("Ignoring null numeric argument");
} else {
handler.argument(integer);
}
} else if (value instanceof TagArgument) {
final TagArgument tagArgument = (TagArgument) value;
final String tag = tagArgument.getTag();
// tag = ":" identifier
// handlers are only interesting in the identifier for the tag
final String identifier;
if (tag.charAt(0) == ':') {
identifier = tag.substring(1);
} else {
identifier = tag;
}
handler.argument(identifier);
}
}