public void visitTypeUnion(JCTypeUnion that) { try { print("JCTypeUnion:"); } catch (Exception e) { } super.visitTypeUnion(that); }
public void visitTypeUnion(JCTypeUnion tree) { try { printExprs(tree.alternatives, " | "); } catch (IOException e) { throw new UncheckedIOException(e); } }
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, "|"); }
public AJCTypeUnion(JCTypeUnion ltree) { super(ltree.getTypeAlternatives()); }
public AJCTypeUnion(JCTypeUnion ltree, String lcomment) { this(ltree); setComment(lcomment); }
@Override public JCTypeUnion inline(Inliner inliner) throws CouldNotResolveImportException { return inliner.maker().TypeUnion(inliner.inlineList(getTypeAlternatives())); }