Here are my constructor implementations:
constructor(position: FlagPosition, flag: string);
constructor(position: FlagPosition, flag: Expression<any> | string) {
this.position = position;
//TODO: Check if flag type is a string or an Expression:
//if flag is a string
// this(position, ExpressionUtils.template(Object.class, flag));
//else
// this.flag = flag;
}
I'm unsure how to determine whether the flag
parameter is a string or an Expression<any>
.
Any suggestions?