Package org.allspice.structured.expr

Examples of org.allspice.structured.expr.Expr


* @param state
* @return The object
**/
private static final ImmutableCollection<Statement> reduce50(PositionRange range,Parser parser,ParserState state) {
      ForInitializer for_init = (ForInitializer)state.reductions.tail.tail.tail.tail.tail.tail.head.o ;
      Expr term = (Expr)state.reductions.tail.tail.tail.tail.head.o ;
      Expr inc = (Expr)state.reductions.tail.tail.head.o ;
      ImmutableCollection<Statement> statement = (ImmutableCollection<Statement>)state.reductions.head.o ;
{
  return org.allspice.javacompiler.JavaGrammarUtils.createForStatement(range,for_init,term,inc,statement) ;
}
}
View Full Code Here


* @param state
* @return The object
**/
private static final ImmutableCollection<Statement> reduce51(PositionRange range,Parser parser,ParserState state) {
      ImmutableCollection<Statement> statement = (ImmutableCollection<Statement>)state.reductions.tail.tail.tail.tail.head.o ;
      Expr expr = (Expr)state.reductions.tail.head.o ;
{
  return new FIFO<Statement>(new org.allspice.structured.statement.DoWhileStatement(expr,statement,range)) ;
}
}
View Full Code Here

* @param parser
* @param state
* @return The object
**/
private static final ImmutableCollection<Statement> reduce52(PositionRange range,Parser parser,ParserState state) {
      Expr expr = (Expr)state.reductions.tail.tail.head.o ;
      ImmutableCollection<Statement> statement = (ImmutableCollection<Statement>)state.reductions.head.o ;
{
  return new FIFO<Statement>(new org.allspice.structured.statement.WhileStatement(expr,statement,range)) ;
}
}
View Full Code Here

      return context.classPool.isAssignableFrom(type, getType(t, context)) ;
    }
  }
  private static final class ConvertConverter implements ExprCompiler<ConvertExpr> {
    public void compile(TypeName forwardType, ConvertExpr t, EvaluationContext context, InstList result) throws CompilerException {
      Expr e = t.e ;
      createConvert(context, e,context.fullyQualified(t.type),result);
      convertResult(context,t,forwardType,result) ;
    }
View Full Code Here

      return context.classPool.isAssignableFrom(type, getType(t, context)) ;
    }
  }
  private static final class NegateConverter implements ExprCompiler<NegateExpr> {
    public void compile(TypeName forwardType, NegateExpr t, EvaluationContext context, InstList result) throws CompilerException {
      Expr e = t.e ;
      createNegate(context, e,result);
      convertResult(context,t,forwardType,result) ;
    }
View Full Code Here

      return context.classPool.isAssignableFrom(type, getType(t, context)) ;
    }
  }
  private static final class PositiveConverter implements ExprCompiler<PositiveExpr> {
    public void compile(TypeName forwardType, PositiveExpr t, EvaluationContext context, InstList result) throws CompilerException {
      Expr e = t.e ;
      createPositive(context, e,result);
      convert(context,getType(t,context),forwardType,result) ;
    }
View Full Code Here

      return context.classPool.isAssignableFrom(type, getType(t, context)) ;
    }
  }
  private static final class NotConverter implements ExprCompiler<NotExpr> {
    public void compile(TypeName forwardType, NotExpr t, EvaluationContext context, InstList result) throws CompilerException {
      Expr e = t.e ;
      createNot(context, e,result);
      convert(context,getType(t,context),forwardType,result) ;
    }
View Full Code Here

  }

  private static final class FieldVarConverter implements ExprCompiler<FieldVarExpr> {
    @Override
    public void compile(TypeName forwardType, FieldVarExpr t, EvaluationContext context, InstList result) throws CompilerException {
      Expr e = t.object ;
      final String name = t.name;
      createFieldVar(context, e, name,result);
      convertResult(context,t,forwardType,result) ;
    }
View Full Code Here

      final String name = t.name;
      createFieldVar(context, e, name,result);
      convertResult(context,t,forwardType,result) ;
    }
    public StubResolver getType(FieldVarExpr t, EvaluationContext context) throws CompilerException {
      Expr e = t.object ;
      final String name = t.name;
      return getFieldVarType(context, e, name);
    }
View Full Code Here

      final String name = t.name;
      return getFieldVarType(context, e, name);
    }
 
    public ConstObj getConst(FieldVarExpr t, EvaluationContext context) throws CompilerException {
      final Expr e = t.object;
      final StubResolver type = context.getType(e);
      final String name = t.name;
      return getFieldVarConst(context, type, name);
    }
View Full Code Here

TOP

Related Classes of org.allspice.structured.expr.Expr

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.