if (type instanceof NormalListType) { genFactoryListTypeFromTerm((NormalListType) type); } else if (type instanceof SeparatedListType) { genFactorySeparatedListTypeFromTermMethod((SeparatedListType) type); } else { genTypeFromTermMethod(type); } } }
if (type instanceof NormalListType) { genFactoryListTypeFromTerm((NormalListType) type); } else if (type instanceof SeparatedListType) { genSeparatedListTypeFromTermMethod((SeparatedListType) type); } else { genTypeFromTermMethod(type); } } }
	private void genTypeFromTermMethods(ADT api) {		Iterator types = api.typeIterator();		while (types.hasNext()) {			Type type = (Type) types.next();			if (type instanceof NormalListType) {				genFactoryListTypeFromTerm((NormalListType) type);			}			else if (type instanceof SeparatedListType) {				genFactorySeparatedListTypeFromTermMethod((SeparatedListType) type);			}			else {				genTypeFromTermMethod(type);			}		}	}