public class Java4CppType extends Object
Java4cppType and Type:
Object (List<?>
will be replaced by List<Object>)
List<E extends String> will be replaced by
List<String>)
Java4cppType is a singleton, so it can be used as
a key.| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Java4CppType |
fromType(Type type)
Returns the corresponding
Java4CppType of a
Type. |
List<Java4CppType> |
getParameterizedTypes()
For parameterized type, contains an ordered list of
Java4CppType type compositing the type i.e. for a
Map<Integer, String> returns a list with
{ Integer, String }. |
Class<?> |
getRawClass()
The base raw class of a type i.e.
|
int |
hashCode() |
String |
toString() |
public static Java4CppType fromType(Type type)
Java4CppType of a
Type.
Even if List<E> and List<?> are two
different instance of Type, this method returns the same
instance of Java4CppType representing
List<Object>.type - a Java TypeJava4CppType singletonpublic Class<?> getRawClass()
List for
List<?>public List<Java4CppType> getParameterizedTypes()
Java4CppType type compositing the type i.e. for a
Map<Integer, String> returns a list with
{ Integer, String }.Copyright © 2014. All Rights Reserved.