/** * Returns an instance that is identical to this one, except that * the type bearer is replaced by the actual underlying type * (thereby stripping off non-type information) with any * initialization information stripped away as well. * * @return {@code non-null;} an appropriately-constructed instance */ public RegisterSpec withSimpleType() { TypeBearer orig = type; Type newType; if (orig instanceof Type) { newType = (Type) orig; } else { newType = orig.getType(); } if (newType.isUninitialized()) { newType = newType.getInitializedType(); } if (newType == orig) { return this; } return makeLocalOptional(reg, newType, local); }
/** * Returns an instance that is identical to this one, except that * the type bearer is replaced by the actual underlying type * (thereby stripping off non-type information) with any * initialization information stripped away as well. * * @return {@code non-null;} an appropriately-constructed instance */ public RegisterSpec withSimpleType() { TypeBearer orig = type; Type newType; if (orig instanceof Type) { newType = (Type) orig; } else { newType = orig.getType(); } if (newType.isUninitialized()) { newType = newType.getInitializedType(); } if (newType == orig) { return this; } return makeLocalOptional(reg, newType, local); }
/** * Returns an instance that is identical to this one, except that * the type bearer is replaced by the actual underlying type * (thereby stripping off non-type information) with any * initialization information stripped away as well. * * @return {@code non-null;} an appropriately-constructed instance */ public RegisterSpec withSimpleType() { TypeBearer orig = type; Type newType; if (orig instanceof Type) { newType = (Type) orig; } else { newType = orig.getType(); } if (newType.isUninitialized()) { newType = newType.getInitializedType(); } if (newType == orig) { return this; } return makeLocalOptional(reg, newType, local); }
/** * Returns an instance that is identical to this one, except that * the type bearer is replaced by the actual underlying type * (thereby stripping off non-type information) with any * initialization information stripped away as well. * * @return {@code non-null;} an appropriately-constructed instance */ public RegisterSpec withSimpleType() { TypeBearer orig = type; Type newType; if (orig instanceof Type) { newType = (Type) orig; } else { newType = orig.getType(); } if (newType.isUninitialized()) { newType = newType.getInitializedType(); } if (newType == orig) { return this; } return makeLocalOptional(reg, newType, local); }
/** * Returns an instance that is identical to this one, except that * the type bearer is replaced by the actual underlying type * (thereby stripping off non-type information) with any * initialization information stripped away as well. * * @return {@code non-null;} an appropriately-constructed instance */ public RegisterSpec withSimpleType() { TypeBearer orig = type; Type newType; if (orig instanceof Type) { newType = (Type) orig; } else { newType = orig.getType(); } if (newType.isUninitialized()) { newType = newType.getInitializedType(); } if (newType == orig) { return this; } return makeLocalOptional(reg, newType, local); }
/** * Returns an instance that is identical to this one, except that * the type bearer is replaced by the actual underlying type * (thereby stripping off non-type information) with any * initialization information stripped away as well. * * @return {@code non-null;} an appropriately-constructed instance */ public RegisterSpec withSimpleType() { TypeBearer orig = type; Type newType; if (orig instanceof Type) { newType = (Type) orig; } else { newType = orig.getType(); } if (newType.isUninitialized()) { newType = newType.getInitializedType(); } if (newType == orig) { return this; } return makeLocalOptional(reg, newType, local); }
/** * Returns an instance that is identical to this one, except that * the type bearer is replaced by the actual underlying type * (thereby stripping off non-type information) with any * initialization information stripped away as well. * * @return {@code non-null;} an appropriately-constructed instance */ public RegisterSpec withSimpleType() { TypeBearer orig = type; Type newType; if (orig instanceof Type) { newType = (Type) orig; } else { newType = orig.getType(); } if (newType.isUninitialized()) { newType = newType.getInitializedType(); } if (newType == orig) { return this; } return makeLocalOptional(reg, newType, local); }
/** * Returns an instance that is identical to this one, except that * the type bearer is replaced by the actual underlying type * (thereby stripping off non-type information) with any * initialization information stripped away as well. * * @return {@code non-null;} an appropriately-constructed instance */ public RegisterSpec withSimpleType() { TypeBearer orig = type; Type newType; if (orig instanceof Type) { newType = (Type) orig; } else { newType = orig.getType(); } if (newType.isUninitialized()) { newType = newType.getInitializedType(); } if (newType == orig) { return this; } return makeLocalOptional(reg, newType, local); }
/** {@inheritDoc} */ public TypeBearer getCategory1(int idx) { TypeBearer result = get(idx); Type type = result.getType(); if (type.isUninitialized()) { return throwSimException(idx, "uninitialized instance"); } if (type.isCategory2()) { return throwSimException(idx, "category-2"); } return result; }
/** @inheritDoc */ public TypeBearer getCategory1(int idx) { TypeBearer result = get(idx); Type type = result.getType(); if (type.isUninitialized()) { return throwSimException(idx, "uninitialized instance"); } if (type.isCategory2()) { return throwSimException(idx, "category-2"); } return result; }
/** @inheritDoc */ public TypeBearer getCategory1(int idx) { TypeBearer result = get(idx); Type type = result.getType(); if (type.isUninitialized()) { return throwSimException(idx, "uninitialized instance"); } if (type.isCategory2()) { return throwSimException(idx, "category-2"); } return result; }
/** @inheritDoc */ public TypeBearer getCategory1(int idx) { TypeBearer result = get(idx); Type type = result.getType(); if (type.isUninitialized()) { return throwSimException(idx, "uninitialized instance"); } if (type.isCategory2()) { return throwSimException(idx, "category-2"); } return result; }
/** {@inheritDoc} */ @Override public TypeBearer getCategory1(int idx) { TypeBearer result = get(idx); Type type = result.getType(); if (type.isUninitialized()) { return throwSimException(idx, "uninitialized instance"); } if (type.isCategory2()) { return throwSimException(idx, "category-2"); } return result; }
/** {@inheritDoc} */ @Override public TypeBearer getCategory1(int idx) { TypeBearer result = get(idx); Type type = result.getType(); if (type.isUninitialized()) { return throwSimException(idx, "uninitialized instance"); } if (type.isCategory2()) { return throwSimException(idx, "category-2"); } return result; }