/** * Prepares to use $type. Note that recordReturnType() overwrites * the value of $type. * * @param t the type represented by $type. */ public void recordType(CtClass t) { gen.recordType(t); }
/** * Prepares to use $type. Note that recordReturnType() overwrites * the value of $type. * * @param t the type represented by $type. */ public void recordType(CtClass t) { gen.recordType(t); }
/** * Prepares to use cast $r, $w, $_, and $type. * $type is made to represent the specified return type. * It also enables to write a return statement with a return value * for void method. * * <p>If the return type is void, ($r) does nothing. * The type of $_ is java.lang.Object. * * @param type the return type. * @param useResultVar true if $_ is used. * @return -1 or the variable index assigned to $_. * @see #recordType(CtClass) */ public int recordReturnType(CtClass type, boolean useResultVar) throws CompileError { gen.recordType(type); return gen.recordReturnType(type, "$r", (useResultVar ? resultVarName : null), stable); }
/** * Prepares to use cast $r, $w, $_, and $type. * $type is made to represent the specified return type. * It also enables to write a return statement with a return value * for void method. * * <p>If the return type is void, ($r) does nothing. * The type of $_ is java.lang.Object. * * @param type the return type. * @param useResultVar true if $_ is used. * @return -1 or the variable index assigned to $_. * @see #recordType(CtClass) */ public int recordReturnType(CtClass type, boolean useResultVar) throws CompileError { gen.recordType(type); return gen.recordReturnType(type, "$r", (useResultVar ? resultVarName : null), stable); }
/** * Prepares to use $type. Note that recordReturnType() overwrites * the value of $type. * * @param t the type represented by $type. */ public void recordType(CtClass t) { gen.recordType(t); }
/** * Prepares to use $type. Note that recordReturnType() overwrites * the value of $type. * * @param t the type represented by $type. */ public void recordType(CtClass t) { gen.recordType(t); }
/** * Prepares to use $type. Note that recordReturnType() overwrites * the value of $type. * * @param t the type represented by $type. */ public void recordType(CtClass t) { gen.recordType(t); }
/** * Prepares to use $type. Note that recordReturnType() overwrites * the value of $type. * * @param t the type represented by $type. */ public void recordType(CtClass t) { gen.recordType(t); }
/** * Prepares to use $type. Note that recordReturnType() overwrites * the value of $type. * * @param t the type represented by $type. */ public void recordType(CtClass t) { gen.recordType(t); }
/** * Prepares to use cast $r, $w, $_, and $type. * $type is made to represent the specified return type. * It also enables to write a return statement with a return value * for void method. * * <p>If the return type is void, ($r) does nothing. * The type of $_ is java.lang.Object. * * @param type the return type. * @param useResultVar true if $_ is used. * @return -1 or the variable index assigned to $_. * @see #recordType(CtClass) */ public int recordReturnType(CtClass type, boolean useResultVar) throws CompileError { gen.recordType(type); return gen.recordReturnType(type, "$r", (useResultVar ? resultVarName : null), stable); }
/** * Prepares to use cast $r, $w, $_, and $type. * $type is made to represent the specified return type. * It also enables to write a return statement with a return value * for void method. * * <p>If the return type is void, ($r) does nothing. * The type of $_ is java.lang.Object. * * @param type the return type. * @param useResultVar true if $_ is used. * @return -1 or the variable index assigned to $_. * @see #recordType(CtClass) */ public int recordReturnType(CtClass type, boolean useResultVar) throws CompileError { gen.recordType(type); return gen.recordReturnType(type, "$r", (useResultVar ? resultVarName : null), stable); }
/** * Prepares to use cast $r, $w, $_, and $type. * $type is made to represent the specified return type. * It also enables to write a return statement with a return value * for void method. * * <p>If the return type is void, ($r) does nothing. * The type of $_ is java.lang.Object. * * @param type the return type. * @param useResultVar true if $_ is used. * @return -1 or the variable index assigned to $_. * @see #recordType(CtClass) */ public int recordReturnType(CtClass type, boolean useResultVar) throws CompileError { gen.recordType(type); return gen.recordReturnType(type, "$r", (useResultVar ? resultVarName : null), stable); }
/** * Prepares to use cast $r, $w, $_, and $type. * $type is made to represent the specified return type. * It also enables to write a return statement with a return value * for void method. * * <p>If the return type is void, ($r) does nothing. * The type of $_ is java.lang.Object. * * @param type the return type. * @param useResultVar true if $_ is used. * @return -1 or the variable index assigned to $_. * @see #recordType(CtClass) */ public int recordReturnType(CtClass type, boolean useResultVar) throws CompileError { gen.recordType(type); return gen.recordReturnType(type, "$r", (useResultVar ? resultVarName : null), stable); }
/** * Prepares to use cast $r, $w, $_, and $type. * $type is made to represent the specified return type. * It also enables to write a return statement with a return value * for void method. * * <p>If the return type is void, ($r) does nothing. * The type of $_ is java.lang.Object. * * @param type the return type. * @param useResultVar true if $_ is used. * @return -1 or the variable index assigned to $_. * @see #recordType(CtClass) */ public int recordReturnType(CtClass type, boolean useResultVar) throws CompileError { gen.recordType(type); return gen.recordReturnType(type, "$r", (useResultVar ? resultVarName : null), stable); }
gen.recordParams(ctConstructor.getParameterTypes(), Modifier.isStatic(mod), "$", "$args", "$$", stable); gen.recordType(CtClass.voidType); gen.recordReturnType(CtClass.voidType, "$r", null, stable);