
msv.tahiti.src.com.sun.tahiti.runtime.ll.DefaultNonTerminalSymbol Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jaxb1-impl Show documentation
Show all versions of jaxb1-impl Show documentation
JAXB (JSR 222) reference implementation - JAXB1 build
The newest version!
/*
* @(#)$Id: DefaultNonTerminalSymbol.java 996 2001-07-31 01:19:21Z Bear $
*
* Copyright 2001 Sun Microsystems, Inc. All Rights Reserved.
*
* This software is the proprietary information of Sun Microsystems, Inc.
* Use is subject to license terms.
*
*/
package com.sun.tahiti.runtime.ll;
import com.sun.msv.datatype.DatabindableDatatype;
import org.relaxng.datatype.ValidationContext;
/**
* base class of the non-terminal symbols of LL grammar.
*
* @author
* Kohsuke KAWAGUCHI
*/
public class DefaultNonTerminalSymbol extends NonTerminalSymbol {
public DefaultNonTerminalSymbol( String symbolName ) {
this.symbolName = symbolName;
}
private final String symbolName;
public LLParser.Receiver createReceiver( final LLParser.Receiver parent ) {
return new LLParser.CharacterReceiver(){
public void action(DatabindableDatatype dt, String literal, ValidationContext context ) throws Exception {
((LLParser.ObjectReceiver)parent).action(
dt.createJavaObject(literal,context) );
}
public void start() throws Exception {}
public void end() throws Exception {}
};
}
public String toString() { return symbolName; }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy