Package etch.compiler.ast

Examples of etch.compiler.ast.Parameter


  @Override
  public String getValidator( Named<?> named )
  {
    if (named instanceof Parameter)
    {
      Parameter param = (Parameter) named;
      TypeRef type = param.type();

      if (type.isBuiltin())
        return "Validator_" + type.type() + ".Get( " + type.dim()
          + " )";
View Full Code Here


        m.descr().add( s );
      }
      else if (type == Type.Param)
      {
//        System.out.printf( "adding to p.descr (%s): %s\n", name, s );
        Parameter p = m.getParameter( name );
        if (p != null)
          p.descr().add( s );
        else
          System.out.printf( "*** warning: cannot document parameter %s of %s\n", name, m.name() );
      }
      else if (type == Type.Return)
      {
View Full Code Here

  @Override
  public String getValidator( Named<?> named )
  {
    if (named instanceof Parameter)
    {
      Parameter param = (Parameter) named;
      TypeRef type = param.type();

      if (type.isBuiltin())
        return String.format( "Validator_%s.get( %d )",
          type.type(), type.dim() );
View Full Code Here

  @Override
  public String getValidator( Named<?> named )
  {
    if (named instanceof Parameter)
    {
      Parameter param = (Parameter) named;
      TypeRef type = param.type();

      if (type.isBuiltin())
        return "Validator_"+type.type()+".get( "+type.dim()+" )";

      return "Validator_custom.getCustom( "+type.getNamed( type.intf() ).efqname( this )+".class, "+type.dim()+" )";
View Full Code Here

TOP

Related Classes of etch.compiler.ast.Parameter

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.