public static IType parseTypeLiteral ( String typeName ) { try { IType type = GosuParserFactory . createParser ( typeName ) . parseTypeLiteral ( null ) . getType ( ) . getType ( ) ; if ( type instanceof IErrorType ) { throw new RuntimeException ( "Type not found: " + typeName ) ; } return type ; } catch ( ParseResultsException e ) { throw new RuntimeException ( "Type not found: " + typeName , e ) ; } }
Parses a type name such as Iterable&lt ; Claim&gt ; .