Package com.google.gwt.dev.jjs.ast

Examples of com.google.gwt.dev.jjs.ast.JNameOf


      if (named == null) {
        // Not found, must be null
        ctx.replaceMe(program.getLiteralNull());
      } else {
        ctx.replaceMe(new JNameOf(x.getSourceInfo(), program, named));
      }
    }
View Full Code Here


    return false;
  }

  @Override
  public boolean visit(JNameOf x, Context ctx) {
    expression = new JNameOf(x.getSourceInfo(), program, x.getNode());
    return false;
  }
View Full Code Here

  }

  @Override
  public boolean visit(JNameOf x, Context ctx) {
    expression =
        new JNameOf(x.getSourceInfo(), (JClassType) x.getType().getUnderlyingType(), x.getNode());
    return false;
  }
View Full Code Here

      if (node instanceof JMethod) {
        flowInto((JMethod) node);
        program.addPinnedMethod((JMethod) node);
      }
      return new JNameOf(x.getSourceInfo(), program.getTypeJavaLangString(), (HasName) node);
    }
View Full Code Here

    call.addArgs(packageName, className);

    if (type instanceof JArrayType) {
      // There's only one seed function for all arrays
      JDeclaredType arrayType = program.getIndexedType("Array");
      call.addArg(new JNameOf(info, className.getType(), arrayType));

    } else if (type instanceof JClassType) {
      // Add the name of the seed function for concrete types
      call.addArg(new JNameOf(info, className.getType(), type));

    } else if (type instanceof JPrimitiveType) {
      // And give primitive types an illegal, though meaningful, value
      call.addArg(program.getLiteralString(info, " " + type.getJavahSignatureName()));
    }
View Full Code Here

    return false;
  }

  @Override
  public boolean visit(JNameOf x, Context ctx) {
    expression = new JNameOf(x.getSourceInfo(), x.getType(), x.getNode());
    return false;
  }
View Full Code Here

      if (named == null) {
        // Not found, must be null
        ctx.replaceMe(JNullLiteral.INSTANCE);
      } else {
        ctx.replaceMe(new JNameOf(x.getSourceInfo(), stringLiteral.getType(),
            named));
      }
    }
View Full Code Here

  }

  @Override
  public boolean visit(JNameOf x, Context ctx) {
    expression =
        new JNameOf(x.getSourceInfo(), (JClassType) x.getType().getUnderlyingType(), x.getNode());
    return false;
  }
View Full Code Here

      if (node instanceof JMethod) {
        flowInto((JMethod) node);
        program.addPinnedMethod((JMethod) node);
      }
      return new JNameOf(x.getSourceInfo(), program.getTypeJavaLangString(), (HasName) node);
    }
View Full Code Here

TOP

Related Classes of com.google.gwt.dev.jjs.ast.JNameOf

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.