com.sun.xml.internal.rngom.digested.DElementPattern Java Examples

The following examples show how to use com.sun.xml.internal.rngom.digested.DElementPattern. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RELAXNGCompiler.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
private void mapToClass(DElementPattern p) {
    NameClass nc = p.getName();
    if(nc.isOpen())
        return;   // infinite name. can't map to a class.

    Set<QName> names = nc.listNames();

    CClassInfo[] types = new CClassInfo[names.size()];
    int i=0;
    for( QName n : names ) {
        // TODO: read class names from customization
        String name = model.getNameConverter().toClassName(n.getLocalPart());

        bindQueue.put(
            types[i++] = new CClassInfo(model,pkg,name,p.getLocation(),null,n,null,null/*TODO*/),
            p.getChild() );
    }

    classes.put(p,types);
}
 
Example #2
Source File: RELAXNGCompiler.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
private void mapToClass(DElementPattern p) {
    NameClass nc = p.getName();
    if(nc.isOpen())
        return;   // infinite name. can't map to a class.

    Set<QName> names = nc.listNames();

    CClassInfo[] types = new CClassInfo[names.size()];
    int i=0;
    for( QName n : names ) {
        // TODO: read class names from customization
        String name = model.getNameConverter().toClassName(n.getLocalPart());

        bindQueue.put(
            types[i++] = new CClassInfo(model,pkg,name,p.getLocation(),null,n,null,null/*TODO*/),
            p.getChild() );
    }

    classes.put(p,types);
}
 
Example #3
Source File: RELAXNGCompiler.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
private void mapToClass(DElementPattern p) {
    NameClass nc = p.getName();
    if(nc.isOpen())
        return;   // infinite name. can't map to a class.

    Set<QName> names = nc.listNames();

    CClassInfo[] types = new CClassInfo[names.size()];
    int i=0;
    for( QName n : names ) {
        // TODO: read class names from customization
        String name = model.getNameConverter().toClassName(n.getLocalPart());

        bindQueue.put(
            types[i++] = new CClassInfo(model,pkg,name,p.getLocation(),null,n,null,null/*TODO*/),
            p.getChild() );
    }

    classes.put(p,types);
}
 
Example #4
Source File: RELAXNGCompiler.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
private void mapToClass(DElementPattern p) {
    NameClass nc = p.getName();
    if(nc.isOpen())
        return;   // infinite name. can't map to a class.

    Set<QName> names = nc.listNames();

    CClassInfo[] types = new CClassInfo[names.size()];
    int i=0;
    for( QName n : names ) {
        // TODO: read class names from customization
        String name = model.getNameConverter().toClassName(n.getLocalPart());

        bindQueue.put(
            types[i++] = new CClassInfo(model,pkg,name,p.getLocation(),null,n,null,null/*TODO*/),
            p.getChild() );
    }

    classes.put(p,types);
}
 
Example #5
Source File: RELAXNGCompiler.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
private void mapToClass(DElementPattern p) {
    NameClass nc = p.getName();
    if(nc.isOpen())
        return;   // infinite name. can't map to a class.

    Set<QName> names = nc.listNames();

    CClassInfo[] types = new CClassInfo[names.size()];
    int i=0;
    for( QName n : names ) {
        // TODO: read class names from customization
        String name = model.getNameConverter().toClassName(n.getLocalPart());

        bindQueue.put(
            types[i++] = new CClassInfo(model,pkg,name,p.getLocation(),null,n,null,null/*TODO*/),
            p.getChild() );
    }

    classes.put(p,types);
}
 
Example #6
Source File: RELAXNGCompiler.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
private void mapToClass(DElementPattern p) {
    NameClass nc = p.getName();
    if(nc.isOpen())
        return;   // infinite name. can't map to a class.

    Set<QName> names = nc.listNames();

    CClassInfo[] types = new CClassInfo[names.size()];
    int i=0;
    for( QName n : names ) {
        // TODO: read class names from customization
        String name = model.getNameConverter().toClassName(n.getLocalPart());

        bindQueue.put(
            types[i++] = new CClassInfo(model,pkg,name,p.getLocation(),null,n,null,null/*TODO*/),
            p.getChild() );
    }

    classes.put(p,types);
}
 
Example #7
Source File: RELAXNGCompiler.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
private void mapToClass(DElementPattern p) {
    NameClass nc = p.getName();
    if(nc.isOpen())
        return;   // infinite name. can't map to a class.

    Set<QName> names = nc.listNames();

    CClassInfo[] types = new CClassInfo[names.size()];
    int i=0;
    for( QName n : names ) {
        // TODO: read class names from customization
        String name = model.getNameConverter().toClassName(n.getLocalPart());

        bindQueue.put(
            types[i++] = new CClassInfo(model,pkg,name,p.getLocation(),null,n,null,null/*TODO*/),
            p.getChild() );
    }

    classes.put(p,types);
}
 
Example #8
Source File: RELAXNGCompiler.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
private void mapToClass(DElementPattern p) {
    NameClass nc = p.getName();
    if(nc.isOpen())
        return;   // infinite name. can't map to a class.

    Set<QName> names = nc.listNames();

    CClassInfo[] types = new CClassInfo[names.size()];
    int i=0;
    for( QName n : names ) {
        // TODO: read class names from customization
        String name = model.getNameConverter().toClassName(n.getLocalPart());

        bindQueue.put(
            types[i++] = new CClassInfo(model,pkg,name,p.getLocation(),null,n,null,null/*TODO*/),
            p.getChild() );
    }

    classes.put(p,types);
}
 
Example #9
Source File: RawTypeSetBuilder.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public Void onElement(DElementPattern p) {
    CTypeInfo[] tis = compiler.classes.get(p);
    if(tis!=null) {
        for( CTypeInfo ti : tis )
            refs.add(new CClassInfoRef((CClassInfo)ti));
    } else {
        // TODO
        assert false;
    }
    return null;
}
 
Example #10
Source File: RawTypeSetBuilder.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public Void onElement(DElementPattern p) {
    CTypeInfo[] tis = compiler.classes.get(p);
    if(tis!=null) {
        for( CTypeInfo ti : tis )
            refs.add(new CClassInfoRef((CClassInfo)ti));
    } else {
        // TODO
        assert false;
    }
    return null;
}
 
Example #11
Source File: RawTypeSetBuilder.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public Void onElement(DElementPattern p) {
    CTypeInfo[] tis = compiler.classes.get(p);
    if(tis!=null) {
        for( CTypeInfo ti : tis )
            refs.add(new CClassInfoRef((CClassInfo)ti));
    } else {
        // TODO
        assert false;
    }
    return null;
}
 
Example #12
Source File: RawTypeSetBuilder.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public Void onElement(DElementPattern p) {
    CTypeInfo[] tis = compiler.classes.get(p);
    if(tis!=null) {
        for( CTypeInfo ti : tis )
            refs.add(new CClassInfoRef((CClassInfo)ti));
    } else {
        // TODO
        assert false;
    }
    return null;
}
 
Example #13
Source File: RawTypeSetBuilder.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public Void onElement(DElementPattern p) {
    CTypeInfo[] tis = compiler.classes.get(p);
    if(tis!=null) {
        for( CTypeInfo ti : tis )
            refs.add(new CClassInfoRef((CClassInfo)ti));
    } else {
        // TODO
        assert false;
    }
    return null;
}
 
Example #14
Source File: RawTypeSetBuilder.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public Void onElement(DElementPattern p) {
    CTypeInfo[] tis = compiler.classes.get(p);
    if(tis!=null) {
        for( CTypeInfo ti : tis )
            refs.add(new CClassInfoRef((CClassInfo)ti));
    } else {
        // TODO
        assert false;
    }
    return null;
}
 
Example #15
Source File: RawTypeSetBuilder.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public Void onElement(DElementPattern p) {
    CTypeInfo[] tis = compiler.classes.get(p);
    if(tis!=null) {
        for( CTypeInfo ti : tis )
            refs.add(new CClassInfoRef((CClassInfo)ti));
    } else {
        // TODO
        assert false;
    }
    return null;
}
 
Example #16
Source File: RawTypeSetBuilder.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public Void onElement(DElementPattern p) {
    CTypeInfo[] tis = compiler.classes.get(p);
    if(tis!=null) {
        for( CTypeInfo ti : tis )
            refs.add(new CClassInfoRef((CClassInfo)ti));
    } else {
        // TODO
        assert false;
    }
    return null;
}
 
Example #17
Source File: TypeUseBinder.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public TypeUse onElement(DElementPattern p) {
    return error();
}
 
Example #18
Source File: TypeUseBinder.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public TypeUse onElement(DElementPattern p) {
    return error();
}
 
Example #19
Source File: TypeUseBinder.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public TypeUse onElement(DElementPattern p) {
    return error();
}
 
Example #20
Source File: TypeUseBinder.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public TypeUse onElement(DElementPattern p) {
    return error();
}
 
Example #21
Source File: TypeUseBinder.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public TypeUse onElement(DElementPattern p) {
    return error();
}
 
Example #22
Source File: TypeUseBinder.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public TypeUse onElement(DElementPattern p) {
    return error();
}
 
Example #23
Source File: TypeUseBinder.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public TypeUse onElement(DElementPattern p) {
    return error();
}
 
Example #24
Source File: TypeUseBinder.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public TypeUse onElement(DElementPattern p) {
    return error();
}