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

The following examples show how to use com.sun.xml.internal.rngom.digested.DRefPattern. 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: TypePatternBinder.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public Void onRef(DRefPattern p) {
    if(!canInherit) {
        cannotBeInherited.add(p.getTarget());
    } else {
        // if the whole pattern is like "A,B", we can only inherit from
        // either A or B. For now, always derive from A.
        // it might be worthwhile to have a smarter binding logic where
        // we pick A and B based on their 'usefulness' --- by taking into
        // account how many other paterns are derived from those.
        canInherit = false;
    }
    return null;
}
 
Example #2
Source File: TypePatternBinder.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public Void onRef(DRefPattern p) {
    if(!canInherit) {
        cannotBeInherited.add(p.getTarget());
    } else {
        // if the whole pattern is like "A,B", we can only inherit from
        // either A or B. For now, always derive from A.
        // it might be worthwhile to have a smarter binding logic where
        // we pick A and B based on their 'usefulness' --- by taking into
        // account how many other paterns are derived from those.
        canInherit = false;
    }
    return null;
}
 
Example #3
Source File: TypePatternBinder.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public Void onRef(DRefPattern p) {
    if(!canInherit) {
        cannotBeInherited.add(p.getTarget());
    } else {
        // if the whole pattern is like "A,B", we can only inherit from
        // either A or B. For now, always derive from A.
        // it might be worthwhile to have a smarter binding logic where
        // we pick A and B based on their 'usefulness' --- by taking into
        // account how many other paterns are derived from those.
        canInherit = false;
    }
    return null;
}
 
Example #4
Source File: TypePatternBinder.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public Void onRef(DRefPattern p) {
    if(!canInherit) {
        cannotBeInherited.add(p.getTarget());
    } else {
        // if the whole pattern is like "A,B", we can only inherit from
        // either A or B. For now, always derive from A.
        // it might be worthwhile to have a smarter binding logic where
        // we pick A and B based on their 'usefulness' --- by taking into
        // account how many other paterns are derived from those.
        canInherit = false;
    }
    return null;
}
 
Example #5
Source File: TypePatternBinder.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public Void onRef(DRefPattern p) {
    if(!canInherit) {
        cannotBeInherited.add(p.getTarget());
    } else {
        // if the whole pattern is like "A,B", we can only inherit from
        // either A or B. For now, always derive from A.
        // it might be worthwhile to have a smarter binding logic where
        // we pick A and B based on their 'usefulness' --- by taking into
        // account how many other paterns are derived from those.
        canInherit = false;
    }
    return null;
}
 
Example #6
Source File: TypePatternBinder.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public Void onRef(DRefPattern p) {
    if(!canInherit) {
        cannotBeInherited.add(p.getTarget());
    } else {
        // if the whole pattern is like "A,B", we can only inherit from
        // either A or B. For now, always derive from A.
        // it might be worthwhile to have a smarter binding logic where
        // we pick A and B based on their 'usefulness' --- by taking into
        // account how many other paterns are derived from those.
        canInherit = false;
    }
    return null;
}
 
Example #7
Source File: TypePatternBinder.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public Void onRef(DRefPattern p) {
    if(!canInherit) {
        cannotBeInherited.add(p.getTarget());
    } else {
        // if the whole pattern is like "A,B", we can only inherit from
        // either A or B. For now, always derive from A.
        // it might be worthwhile to have a smarter binding logic where
        // we pick A and B based on their 'usefulness' --- by taking into
        // account how many other paterns are derived from those.
        canInherit = false;
    }
    return null;
}
 
Example #8
Source File: TypePatternBinder.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public Void onRef(DRefPattern p) {
    if(!canInherit) {
        cannotBeInherited.add(p.getTarget());
    } else {
        // if the whole pattern is like "A,B", we can only inherit from
        // either A or B. For now, always derive from A.
        // it might be worthwhile to have a smarter binding logic where
        // we pick A and B based on their 'usefulness' --- by taking into
        // account how many other paterns are derived from those.
        canInherit = false;
    }
    return null;
}
 
Example #9
Source File: TypeUseBinder.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public TypeUse onRef(DRefPattern p) {
    // TODO: check for enums
    return p.getTarget().getPattern().accept(this);
}
 
Example #10
Source File: TypeUseBinder.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public TypeUse onRef(DRefPattern p) {
    // TODO: check for enums
    return p.getTarget().getPattern().accept(this);
}
 
Example #11
Source File: TypeUseBinder.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public TypeUse onRef(DRefPattern p) {
    // TODO: check for enums
    return p.getTarget().getPattern().accept(this);
}
 
Example #12
Source File: TypeUseBinder.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public TypeUse onRef(DRefPattern p) {
    // TODO: check for enums
    return p.getTarget().getPattern().accept(this);
}
 
Example #13
Source File: TypeUseBinder.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public TypeUse onRef(DRefPattern p) {
    // TODO: check for enums
    return p.getTarget().getPattern().accept(this);
}
 
Example #14
Source File: TypeUseBinder.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public TypeUse onRef(DRefPattern p) {
    // TODO: check for enums
    return p.getTarget().getPattern().accept(this);
}
 
Example #15
Source File: TypeUseBinder.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public TypeUse onRef(DRefPattern p) {
    // TODO: check for enums
    return p.getTarget().getPattern().accept(this);
}
 
Example #16
Source File: TypeUseBinder.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public TypeUse onRef(DRefPattern p) {
    // TODO: check for enums
    return p.getTarget().getPattern().accept(this);
}
 
Example #17
Source File: DefineFinder.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * We visit all {@link DDefine}s from {@link DGrammarPattern},
 * so no point in resolving refs.
 */
public Void onRef(DRefPattern p) {
    return null;
}
 
Example #18
Source File: DefineFinder.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * We visit all {@link DDefine}s from {@link DGrammarPattern},
 * so no point in resolving refs.
 */
public Void onRef(DRefPattern p) {
    return null;
}
 
Example #19
Source File: DefineFinder.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * We visit all {@link DDefine}s from {@link DGrammarPattern},
 * so no point in resolving refs.
 */
public Void onRef(DRefPattern p) {
    return null;
}
 
Example #20
Source File: DefineFinder.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * We visit all {@link DDefine}s from {@link DGrammarPattern},
 * so no point in resolving refs.
 */
public Void onRef(DRefPattern p) {
    return null;
}
 
Example #21
Source File: DefineFinder.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * We visit all {@link DDefine}s from {@link DGrammarPattern},
 * so no point in resolving refs.
 */
public Void onRef(DRefPattern p) {
    return null;
}
 
Example #22
Source File: DefineFinder.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * We visit all {@link DDefine}s from {@link DGrammarPattern},
 * so no point in resolving refs.
 */
public Void onRef(DRefPattern p) {
    return null;
}
 
Example #23
Source File: DefineFinder.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * We visit all {@link DDefine}s from {@link DGrammarPattern},
 * so no point in resolving refs.
 */
public Void onRef(DRefPattern p) {
    return null;
}
 
Example #24
Source File: DefineFinder.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * We visit all {@link DDefine}s from {@link DGrammarPattern},
 * so no point in resolving refs.
 */
public Void onRef(DRefPattern p) {
    return null;
}