protected SystemVar(Symbol systemSymbol) { if ( systemSymbol == null ) throw new ExprException("System symbol is null ptr") ; this.systemSymbol = systemSymbol ; }
protected SystemVar(Symbol systemSymbol) { if ( systemSymbol == null ) throw new ExprException("System symbol is null ptr") ; this.systemSymbol = systemSymbol ; }
public NodeValueDate(XSDDateTime dt) { date = dt ; // dt.getHours() ; // dt.getMinutes() ; // dt.getSeconds() ; // dt.getFullSeconds() ; if ( dt.getTimePart() != 0 ) throw new ExprException("Illegal date: "+dt) ; }
public NodeValueGYear(XSDDateTime dt) { date = dt ; if ( dt.getTimePart() != 0 ) throw new ExprException("Illegal date: "+dt) ; }
private RegularExpression makePattern(String patternStr, String flags) { // Input : only m s i x // Check/modify flags. // Always "u", never patternStr //x: Remove whitespace characters (#x9, #xA, #xD and #x20) unless in [] classes try { return new RegularExpression(patternStr, flags) ; } catch (ParseException pEx) { throw new ExprException("Regex: Pattern exception: "+pEx) ; } } }
private Pattern makePattern(String patternStr, String flags) { try { int mask = 0 ; if ( flags != null ) mask = makeMask(flags) ; return Pattern.compile(patternStr, mask) ; } catch (PatternSyntaxException pEx) { throw new ExprException("Regex: Pattern exception: "+pEx) ; } }
private RegularExpression makePattern(String patternStr, String flags) { // Input : only m s i x // Check/modify flags. // Always "u", never patternStr //x: Rmove whitespace characters (#x9, #xA, #xD and #x20) unless in [] classes try { return new RegularExpression(patternStr, flags) ; } catch (ParseException pEx) { throw new ExprException("Regex: Pattern exception: "+pEx) ; } } }
private Pattern makePattern(String patternStr, String flags) { try { int mask = 0 ; if ( flags != null ) mask = makeMask(flags) ; return Pattern.compile(patternStr, mask) ; } catch (PatternSyntaxException pEx) { throw new ExprException("Regex: Pattern exception: "+pEx) ; } }
public NodeValueTime(XSDDateTime dt) { time = dt ; if (dt.getDays() != 0 && dt.getMonths() !=0 && dt.getYears() != 0) { throw new ExprException("Illegal time: "+dt) ; } if ( dt.getTimePart() == 0 ) throw new ExprException("Illegal time: "+dt) ; }
public NodeValueDuration(XSDDuration dt) { duration = dt ; if (dt.getDays() != 0 && dt.getMonths() !=0 && dt.getYears() != 0) { throw new ExprException("Illegal time: "+dt) ; } if ( dt.getTimePart() == 0 ) throw new ExprException("Illegal time: "+dt) ; }
public static RegexEngine makeRegexEngine(NodeValue vPattern, NodeValue vFlags) { if ( ! vPattern.isString() ) throw new ExprException("REGEX: Pattern is not a string: "+vPattern) ; if ( vFlags != null && ! vFlags.isString() ) throw new ExprException("REGEX: Pattern flags are not a string: "+vFlags) ; String s = (vFlags==null)?null:vFlags.getString() ; return makeRegexEngine(vPattern.getString(), s) ; }
public static RegexEngine makeRegexEngine(NodeValue vPattern, NodeValue vFlags) { if ( ! vPattern.isString() ) throw new ExprException("REGEX: Pattern is not a string: "+vPattern) ; if ( vFlags != null && ! vFlags.isString() ) throw new ExprException("REGEX: Pattern flags are not a string: "+vFlags) ; String s = (vFlags==null)?null:vFlags.getString() ; return makeRegexEngine(vPattern.getString(), s) ; }