/** * Returns a new interned instance, which is the same as this instance, * except that it has an additional parameter prepended to the original's * argument list. * * @param param {@code non-null;} the new first parameter * @return {@code non-null;} an appropriately-constructed instance */ public Prototype withFirstParameter(Type param) { String newDesc = "(" + param.getDescriptor() + descriptor.substring(1); StdTypeList newParams = parameterTypes.withFirst(param); newParams.setImmutable(); Prototype result = new Prototype(newDesc, returnType, newParams); return putIntern(result); }
/** * Returns a new interned instance, which is the same as this instance, * except that it has an additional parameter prepended to the original's * argument list. * * @param param {@code non-null;} the new first parameter * @return {@code non-null;} an appropriately-constructed instance */ public Prototype withFirstParameter(Type param) { String newDesc = "(" + param.getDescriptor() + descriptor.substring(1); StdTypeList newParams = parameterTypes.withFirst(param); newParams.setImmutable(); Prototype result = new Prototype(newDesc, returnType, newParams); return putIntern(result); }
/** * Returns a new interned instance, which is the same as this instance, * except that it has an additional parameter prepended to the original's * argument list. * * @param param {@code non-null;} the new first parameter * @return {@code non-null;} an appropriately-constructed instance */ public Prototype withFirstParameter(Type param) { String newDesc = "(" + param.getDescriptor() + descriptor.substring(1); StdTypeList newParams = parameterTypes.withFirst(param); newParams.setImmutable(); Prototype result = new Prototype(newDesc, returnType, newParams); return putIntern(result); }
/** * Returns a new interned instance, which is the same as this instance, * except that it has an additional parameter prepended to the original's * argument list. * * @param param {@code non-null;} the new first parameter * @return {@code non-null;} an appropriately-constructed instance */ public Prototype withFirstParameter(Type param) { String newDesc = "(" + param.getDescriptor() + descriptor.substring(1); StdTypeList newParams = parameterTypes.withFirst(param); newParams.setImmutable(); Prototype result = new Prototype(newDesc, returnType, newParams); return putIntern(result); }
/** * Returns a new interned instance, which is the same as this instance, * except that it has an additional parameter prepended to the original's * argument list. * * @param param {@code non-null;} the new first parameter * @return {@code non-null;} an appropriately-constructed instance */ public Prototype withFirstParameter(Type param) { String newDesc = "(" + param.getDescriptor() + descriptor.substring(1); StdTypeList newParams = parameterTypes.withFirst(param); newParams.setImmutable(); Prototype result = new Prototype(newDesc, returnType, newParams); return putIntern(result); }
/** * Returns a new interned instance, which is the same as this instance, * except that it has an additional parameter prepended to the original's * argument list. * * @param param {@code non-null;} the new first parameter * @return {@code non-null;} an appropriately-constructed instance */ public Prototype withFirstParameter(Type param) { String newDesc = "(" + param.getDescriptor() + descriptor.substring(1); StdTypeList newParams = parameterTypes.withFirst(param); newParams.setImmutable(); Prototype result = new Prototype(newDesc, returnType, newParams); return putIntern(result); }
/** * Returns a new interned instance, which is the same as this instance, * except that it has an additional parameter prepended to the original's * argument list. * * @param param {@code non-null;} the new first parameter * @return {@code non-null;} an appropriately-constructed instance */ public Prototype withFirstParameter(Type param) { String newDesc = "(" + param.getDescriptor() + descriptor.substring(1); StdTypeList newParams = parameterTypes.withFirst(param); newParams.setImmutable(); Prototype result = new Prototype(newDesc, returnType, newParams); return putIntern(result); }
/** * Returns a new interned instance, which is the same as this instance, * except that it has an additional parameter prepended to the original's * argument list. * * @param param {@code non-null;} the new first parameter * @return {@code non-null;} an appropriately-constructed instance */ public Prototype withFirstParameter(Type param) { String newDesc = "(" + param.getDescriptor() + descriptor.substring(1); StdTypeList newParams = parameterTypes.withFirst(param); newParams.setImmutable(); Prototype result = new Prototype(newDesc, returnType, newParams); return putIntern(result); }
/** {@inheritDoc} */ public TypeList withAddedType(Type type) { int sz = size(); StdTypeList result = new StdTypeList(sz + 1); for (int i = 0; i < sz; i++) { result.set0(i, get0(i)); } result.set(sz, type); result.setImmutable(); return result; }
/** {@inheritDoc} */ public TypeList withAddedType(Type type) { int sz = size(); StdTypeList result = new StdTypeList(sz + 1); for (int i = 0; i < sz; i++) { result.set0(i, get0(i)); } result.set(sz, type); result.setImmutable(); return result; }
/** {@inheritDoc} */ public TypeList withAddedType(Type type) { int sz = size(); StdTypeList result = new StdTypeList(sz + 1); for (int i = 0; i < sz; i++) { result.set0(i, get0(i)); } result.set(sz, type); result.setImmutable(); return result; }
/** {@inheritDoc} */ @Override public TypeList withAddedType(Type type) { int sz = size(); StdTypeList result = new StdTypeList(sz + 1); for (int i = 0; i < sz; i++) { result.set0(i, get0(i)); } result.set(sz, type); result.setImmutable(); return result; }
/** {@inheritDoc} */ @Override public TypeList withAddedType(Type type) { int sz = size(); StdTypeList result = new StdTypeList(sz + 1); for (int i = 0; i < sz; i++) { result.set0(i, get0(i)); } result.set(sz, type); result.setImmutable(); return result; }
/** {@inheritDoc} */ public TypeList withAddedType(Type type) { int sz = size(); StdTypeList result = new StdTypeList(sz + 1); for (int i = 0; i < sz; i++) { result.set0(i, get0(i)); } result.set(sz, type); result.setImmutable(); return result; }
/** {@inheritDoc} */ public TypeList withAddedType(Type type) { int sz = size(); StdTypeList result = new StdTypeList(sz + 1); for (int i = 0; i < sz; i++) { result.set0(i, get0(i)); } result.set(sz, type); result.setImmutable(); return result; }
/** {@inheritDoc} */ public TypeList withAddedType(Type type) { int sz = size(); StdTypeList result = new StdTypeList(sz + 1); for (int i = 0; i < sz; i++) { result.set0(i, get0(i)); } result.set(sz, type); result.setImmutable(); return result; }
/** * Returns a rop-style catches list equivalent to this one. * * @return {@code non-null;} the converted instance */ public TypeList toRopCatchList() { int sz = size(); if (sz == 0) { return StdTypeList.EMPTY; } StdTypeList result = new StdTypeList(sz); for (int i = 0; i < sz; i++) { result.set(i, get(i).getExceptionClass().getClassType()); } result.setImmutable(); return result; }
/** * Returns a rop-style catches list equivalent to this one. * * @return {@code non-null;} the converted instance */ public TypeList toRopCatchList() { int sz = size(); if (sz == 0) { return StdTypeList.EMPTY; } StdTypeList result = new StdTypeList(sz); for (int i = 0; i < sz; i++) { result.set(i, get(i).getExceptionClass().getClassType()); } result.setImmutable(); return result; }
/** * Returns a rop-style catches list equivalent to this one. * * @return {@code non-null;} the converted instance */ public TypeList toRopCatchList() { int sz = size(); if (sz == 0) { return StdTypeList.EMPTY; } StdTypeList result = new StdTypeList(sz); for (int i = 0; i < sz; i++) { result.set(i, get(i).getExceptionClass().getClassType()); } result.setImmutable(); return result; }
/** * Returns a rop-style catches list equivalent to this one. * * @return {@code non-null;} the converted instance */ public TypeList toRopCatchList() { int sz = size(); if (sz == 0) { return StdTypeList.EMPTY; } StdTypeList result = new StdTypeList(sz); for (int i = 0; i < sz; i++) { result.set(i, get(i).getExceptionClass().getClassType()); } result.setImmutable(); return result; }