Example #1
0
 @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();
 }
Example #2
0
  @Override
  public void accept(TypeVisitor v) {
    acceptOpen(v);

    v.beginChildren(this);

    for (MTType t : myMembers) {
      t.accept(v);
    }

    v.endChildren(this);

    acceptClose(v);
  }
Example #3
0
 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);
   }
 }
Example #4
0
 public Type accept(TypeVisitor visit) throws ExpressionException {
   return visit.visit(this);
 }
 @Override
 public void accept(TypeVisitor v) {
   v.nvarchar(this);
 }
Example #6
0
 @Override
 public void acceptOpen(TypeVisitor v) {
   v.beginMTType(this);
   v.beginMTAbstract(this);
   v.beginMTIntersect(this);
 }
Example #7
0
 @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);
 }