dataOutputStream.writeInt(jclass.mods().getValue()); for (JTypeVar typeParam : jclass.typeParams()) { dataOutputStream.writeUTF(typeParam.fullName());
/** * Indicates if this <code>JavaClass</code> has actual type arguments, i.e. is a * parameterized type (for example, <code>List<Employee</code>). * * @return <code>true</code> if this <code>JavaClass</code> is parameterized, otherwise <code>false</code>. */ public boolean hasActualTypeArguments() { return xjcClass.typeParams().length > 0; }
@Override public JMethod buildMethod(final JDefinedClass builder, final String methodName) { if (builder.typeParams().length == 0) { throw new RammlerException("Attempted to build method with generic return type for a non parametrized parent class!"); } final JType tType = builder.typeParams()[0]; return builder.method(JMod.PUBLIC, tType, methodName); } }
dataOutputStream.writeInt(jclass.mods().getValue()); for (JTypeVar typeParam : jclass.typeParams()) { dataOutputStream.writeUTF(typeParam.fullName());
JTypeVar[] typeParams = xjcClass.typeParams();