/// <summary> /// @since 2.0 /// </summary> public StaticNameResolver(org.eclipse.wst.xml.xpath2.api.StaticContext context) { _sc = context; _err = null; }
// the problem is that visitor interface does not throw exceptions... // so we get around it ;D private void reportError(StaticNameError err) { _err = err; throw new DummyError(); }
/// <summary> /// Constructor for static name resolver /// </summary> /// <param name="sc"> /// is the static context. /// @since 2.0 </param> //JAVA TO C# CONVERTER WARNING: 'final' parameters are not available in .NET: //ORIGINAL LINE: public StaticNameResolver(final org.eclipse.wst.xml.xpath2.processor.StaticContext sc) public StaticNameResolver(org.eclipse.wst.xml.xpath2.processor.StaticContext sc) { _sc = new StaticContextAdapter(sc); _err = null; }