Java 类com.sun.tools.javac.tree.JCTree.JCTypeUnion 实例源码

项目:javaparser2jctree    文件:PrintAstVisitor.java   
public void visitTypeUnion(JCTypeUnion that) {
    try {
        print("JCTypeUnion:");
    } catch (Exception e) {
    }
    super.visitTypeUnion(that);
}
项目:s4j    文件:Pretty.java   
public void visitTypeUnion(JCTypeUnion tree) {
    try {
        printExprs(tree.alternatives, " | ");
    } catch (IOException e) {
        throw new UncheckedIOException(e);
    }
}
项目:incubator-netbeans    文件:CasualDiff.java   
protected int diffUnionType(JCTypeUnion oldT, JCTypeUnion newT, int[] bounds) {
    int localPointer = bounds[0];
    return diffParameterList(oldT.alternatives, newT.alternatives, null, localPointer, Measure.MEMBER, diffContext.style.spaceAroundBinaryOps(), diffContext.style.spaceAroundBinaryOps(), false, "|");
}
项目:javaparser2jctree    文件:AJCTypeUnion.java   
public AJCTypeUnion(JCTypeUnion ltree) {
    super(ltree.getTypeAlternatives());
}
项目:javaparser2jctree    文件:AJCTypeUnion.java   
public AJCTypeUnion(JCTypeUnion ltree, String lcomment) {
    this(ltree);
    setComment(lcomment);
}
项目:error-prone    文件:UUnionType.java   
@Override
public JCTypeUnion inline(Inliner inliner) throws CouldNotResolveImportException {
  return inliner.maker().TypeUnion(inliner.inlineList(getTypeAlternatives()));
}