static BaseTypeSignature parse ( final Parser parser ) { switch ( parser . peek ( ) ) { case ' ' : parser . next ( ) ; return new BaseTypeSignature ( "byte" ) ; case ' ' : parser . next ( ) ; return new BaseTypeSignature ( "char" ) ; case ' ' : parser . next ( ) ; return new BaseTypeSignature ( "double" ) ; case ' ' : parser . next ( ) ; return new BaseTypeSignature ( "float" ) ; case ' ' : parser . next ( ) ; return new BaseTypeSignature ( "int" ) ; case ' ' : parser . next ( ) ; return new BaseTypeSignature ( "long" ) ; case ' ' : parser . next ( ) ; return new BaseTypeSignature ( "short" ) ; case ' ' : parser . next ( ) ; return new BaseTypeSignature ( "boolean" ) ; case ' ' : parser . next ( ) ; return new BaseTypeSignature ( "void" ) ; default : return null ; } }
Parse a base type .