public int getPatternType() {
ATerm match_pattern = buildMatchPattern();
if (match_pattern.getType() == ATerm.PLACEHOLDER) {
ATerm ph = ((ATermPlaceholder) match_pattern).getPlaceholder();
if (ph.match("int") != null) {
return ATerm.INT;
} else if (ph.match("real") != null) {
return ATerm.REAL;
} else if (ph.match("str") != null) {
return ATerm.APPL;