[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] Problem with IType class
|
Problem solved, it is waiting for "eVoid".
My fault, should open an english dictionnary sometimes =)
Thefore I don't see wat is the aim of the function...
Sorry for disturbing
maximed@xxxxxxxxxxxxxxxxxxx a écrit :
Hi all.
Is there somebody who has already used this function, from the
internal class Kind from the IType class:
/////////////////////////////////////////////////////////////////////////////////////////////////////////
valueOf
public static IBasicType.Kind valueOf(String name)
Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an enum
constant in this type. (Extraneous whitespace characters are not
permitted.)
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
///////////////////////////////////////////////////////////////////////////////////////////////////////////
My problem is that Kind.valueOf("void") throws an exception,
althought it should logically return Kind.eVoid.
Any guess about this?
Thanks in advance.
Maxime.
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev