private void resolveType ( Node node ) throws ClassNotFoundException { String typeName = node . getTag ( ) . getClassName ( ) ; if ( typeName . equals ( "int" ) ) { node . setType ( Integer . TYPE ) ; } else if ( typeName . equals ( "float" ) ) { node . setType ( Float . TYPE ) ; } else if ( typeName . equals ( "double" ) ) { node . setType ( Double . TYPE ) ; } else if ( typeName . equals ( "bool" ) ) { node . setType ( Boolean . TYPE ) ; } else if ( typeName . equals ( "date" ) ) { node . setType ( Date . class ) ; } else if ( typeName . equals ( "seq" ) ) { node . setType ( List . class ) ; } else if ( typeName . equals ( "str" ) ) { node . setType ( String . class ) ; } else if ( typeName . equals ( "map" ) ) { node . setType ( Map . class ) ; } else { node . setType ( getClassForName ( node . getTag ( ) . getClassName ( ) ) ) ; } }
Resolves the type of a node after the tag gets re - resolved .