@NotNull public Type typeToType(@Nullable PsiType type) { if (type == null) return Type.EMPTY_TYPE; TypeVisitor typeVisitor = new TypeVisitor(this); type.accept(typeVisitor); return typeVisitor.getResult(); }
@Override public void accept(TypeVisitor v) { acceptOpen(v); v.beginChildren(this); for (MTType t : myMembers) { t.accept(v); } v.endChildren(this); acceptClose(v); }
private void invokeVisitor(TreeLogger logger, JClassType type, TypeVisitor typeVisitor) throws UnableToCompleteException { TreeLogger subLogger = logger.branch( Type.TRACE, "Visiting " + type.getName() + " with " + typeVisitor.getClass().getSimpleName()); if (isConnectedConnector(type)) { typeVisitor.visitConnector(subLogger, type, this); } if (isClientRpc(type)) { typeVisitor.visitClientRpc(subLogger, type, this); } if (isServerRpc(type)) { typeVisitor.visitServerRpc(subLogger, type, this); } }
public Type accept(TypeVisitor visit) throws ExpressionException { return visit.visit(this); }
@Override public void accept(TypeVisitor v) { v.nvarchar(this); }
@Override public void acceptOpen(TypeVisitor v) { v.beginMTType(this); v.beginMTAbstract(this); v.beginMTIntersect(this); }
@Override public void acceptClose(TypeVisitor v) { v.endMTIntersect(this); v.endMTAbstract(this); v.endMTType(this); }
public <R, P> R accept(TypeVisitor<R, P> v, P p) { return v.visitDeclared(this, p); }