/** * Answer <code>true</code> if the receiver of this method can be assigned * to the argument lhs (e.g lhs= this is a valid assignment). * * @param lhs the left hand side of the assignment * @return whether or not this type can be assigned to lhs */ public final boolean canAssignTo(TType lhs) { if (this.isTypeEquivalentTo(lhs)) return true; return doCanAssignTo(lhs); }
/** * Answer <code>true</code> if the receiver of this method can be assigned * to the argument lhs (e.g lhs= this is a valid assignment). * * @param lhs the left hand side of the assignment * @return whether or not this type can be assigned to lhs */ public final boolean canAssignTo(TType lhs) { if (this.isTypeEquivalentTo(lhs)) return true; return doCanAssignTo(lhs); }
/** * Answer <code>true</code> if the receiver of this method can be assigned * to the argument lhs (e.g lhs= this is a valid assignment). * * @param lhs the left hand side of the assignment * @return whether or not this type can be assigned to lhs */ public final boolean canAssignTo(TType lhs) { if (this.isTypeEquivalentTo(lhs)) return true; return doCanAssignTo(lhs); }