public static boolean isStringType(Type t){
  return t.equals(RefType.v("java.lang.String"));
}

public static boolean isStringType ( Type t ) { return t . equals ( RefType . v ( "java.lang.String" ) ) ; }
returns true if specified type is java . lang . string
