PROPOSAL: String parameters compile time validation (early beta) (original) (raw)

Marek Kozieł develop4lasu at gmail.com
Thu Mar 26 16:07:41 PDT 2009


@Artur I didn't consider inheritance at all. But simple setting: match in all subclasses context / match only in current class context, this would solve 90% of yours problem.

class Binary{ @RegExp("regExpName","regExp")

 int parseBites(@InheritingRegExp("regExpName") String bites){
    ...
 };

}

class Binary2 extends Binary{ @RegExp("regExpName","regExp")

 int parseBites(@RegExp("regExpName") String bites){
    ...
 };

}

So in Binary2 context 2 regexp checking ( Binary2 and Binary ) would be performed.

-- Pozdrowionka. / Regards. Lasu aka Marek Kozieł

http://lasu2string.blogspot.com/



More information about the coin-dev mailing list