Package com.sun.jdo.spi.persistence.support.sqlstore.query.util.scope

Examples of com.sun.jdo.spi.persistence.support.sqlstore.query.util.scope.Definition


   
    // get base name
    int index = name.lastIndexOf('.');
    String identName = index>0 ? name.substring(index+1) : name;
   
    Definition old = typeNames.declare(identName, new TypeName(type, name));
    if (old != null)
    {
    errorMsg.error(i_AST.getLine(), i_AST.getColumn(),
    I18NHelper.getMessage(messages, "jqlc.semantic.generic.alreadydeclared", //NOI18N
    identName, old.getName()));
    }
   
    declareImport_AST = (JQLAST)currentAST.root;
    returnAST = declareImport_AST;
    _retTree = _t;
View Full Code Here


    _t = __t13;
    _t = _t.getNextSibling();
   
    String name = i_AST.getText();
    Type type = t_AST.getJQLType();
    Definition old = symtab.declare(name, new Parameter(type));
    if (old != null)
    {
    errorMsg.error(i_AST.getLine(), i_AST.getColumn(),
    I18NHelper.getMessage(messages, "jqlc.semantic.generic.alreadydeclared", //NOI18N
    name, old.getName()));
    }
    i_AST.setJQLType(type);
    paramtab.add(name, type);
   
    declareParameter_AST = (JQLAST)currentAST.root;
View Full Code Here

      astFactory.addASTChild(currentAST, returnAST);
     
      Type type = null;
      if (typeNames.isDeclared(name))
      {
      Definition def = typeNames.getDefinition(name);
      if (def instanceof TypeName)
      {
      type = def.getType();
      }
      else
      {
      errorMsg.error(qn_AST.getLine(), qn_AST.getColumn(),
      I18NHelper.getMessage(messages, "jqlc.semantic.type.notype", //NOI18N
      name, def.getName()));
      }
      }
      else
      {
      type = typetab.checkType(name);
View Full Code Here

    _t = __t18;
    _t = _t.getNextSibling();
   
    String name = i_AST.getText();
    Type type = t_AST.getJQLType();
    Definition old = symtab.declare(name, new Variable(type));
    if (old != null)
    {
    errorMsg.error(i_AST.getLine(), i_AST.getColumn(),
    I18NHelper.getMessage(messages, "jqlc.semantic.generic.alreadydeclared", //NOI18N
    name, old.getName()));
    }
    vartab.add(name);
    i_AST.setJQLType(type);
   
    declareVariable_AST = (JQLAST)currentAST.root;
View Full Code Here

    }
    }
    }
   
    String name = ident_AST.getText();
    Definition def = symtab.getDefinition(name);
   
    // check args, if defined => invalid method call
    if (args_AST != null)
    {
    ident_AST.setJQLType(typetab.errorType);
    errorMsg.error(ident_AST.getLine(), ident_AST.getColumn()
    I18NHelper.getMessage(messages, "jqlc.semantic.generic.invalidmethodcall")); //NOI18N
    }
    else if (def != null)
    {
    ident_AST = analyseDefinedIdentifier(ident_AST, def);
    }
    else if (insideDotExpr)
    {
    Definition typedef = typeNames.getDefinition(name);
    if (typedef != null)
    {
    ident_AST = analyseDefinedIdentifier(ident_AST, typedef);
    }
    else
View Full Code Here

TOP

Related Classes of com.sun.jdo.spi.persistence.support.sqlstore.query.util.scope.Definition

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.