Examples of Symbol


Examples of net.sf.lapg.api.Symbol

    public String[] getSamples() {
      return samples;
    }

    public Symbol getSymbol() {
      return new Symbol() {
        public boolean isTerm() {
          throw new NotImplementedException();
        }

        public boolean isDefined() {
View Full Code Here

Examples of net.sourceforge.chaperon.grammar.symbol.Symbol

   */
  private boolean contains(ItemSet itemset)
  {
    int i, j;
    int production, position;
    Symbol lookahead;
    boolean found;

    for (i = 0; i < itemset._elementCount; i++)
    {
      production = itemset._productions[i];
View Full Code Here

Examples of net.sourceforge.chaperon.model.symbol.Symbol

        SymbolList productiondefinition = grammar.getProduction(J.productions[i]).getDefinition();

        // and not A=XYZ^
        if (J.positions[i]<productiondefinition.getSymbolCount())
        {
          Symbol symbol = productiondefinition.getSymbol(J.positions[i])// A=X ^symbol Z

          // for every item [A=u^Bv,a] in J and production B=w in G
          if (symbol instanceof Nonterminal)
          {
            int pos = J.positions[i]+1// for the FIRST set from (va)
View Full Code Here

Examples of nexj.core.scripting.Symbol

                  head.setTail(Boolean.valueOf((!((Boolean)head.getTail()).booleanValue() ^ bAscending)));
               }
            }
            else
            {
               Symbol sym = (Symbol)orderBy.getHead();

               if (sym == null)
               {
                  throw new ClassCastException();
               }

               metaclass.getAttribute(sym.getName());
               orderBy.setHead(new Pair(sym, Boolean.valueOf(bAscending)));
            }
           
            if (first == null)
            {
View Full Code Here

Examples of org.activiti.engine.impl.juel.Scanner.Symbol

   * dynmamic := &lt;START_EVAL_DYNAMIC&gt; expr &lt;END_EVAL&gt;
   * deferred := &lt;START_EVAL_DEFERRED&gt; expr &lt;END_EVAL&gt;
   */
  protected AstEval eval(boolean required, boolean deferred) throws ScanException, ParseException {
    AstEval v = null;
    Symbol start_eval = deferred ? START_EVAL_DEFERRED : START_EVAL_DYNAMIC;
    if (token.getSymbol() == start_eval) {
      consumeToken();
      v = new AstEval(expr(true), deferred);
      consumeToken(END_EVAL);
    } else if (required) {
View Full Code Here

Examples of org.apache.avro.io.parsing.Symbol

    parser.processImplicitActions();
  }

  @Override
  public long readLong() throws IOException {
    Symbol actual = parser.advance(Symbol.LONG);
    if (actual == Symbol.INT) {
      return in.readInt();
    } else if (actual == Symbol.DOUBLE) {
      return (long) in.readDouble();
    } else {
View Full Code Here

Examples of org.apache.fop.fonts.base14.Symbol

        fontInfo.addMetrics("F8", new TimesBoldItalic(enableBase14Kerning));
        fontInfo.addMetrics("F9", new Courier(enableBase14Kerning));
        fontInfo.addMetrics("F10", new CourierOblique(enableBase14Kerning));
        fontInfo.addMetrics("F11", new CourierBold(enableBase14Kerning));
        fontInfo.addMetrics("F12", new CourierBoldOblique(enableBase14Kerning));
        fontInfo.addMetrics("F13", new Symbol());
        fontInfo.addMetrics("F14", new ZapfDingbats());

        // Custom type 1 fonts step 1/2
        // fontInfo.addMetrics("F15", new OMEP());
        // fontInfo.addMetrics("F16", new GaramondLightCondensed());
View Full Code Here

Examples of org.apache.imperius.spl.parser.compiler.symboltable.Symbol

                referenceTypeName=CIMSPLTypeConstants.getReferenceTypeName(path);
              }

              if(logger.isLoggable(Level.FINE))
                logger.fine(Thread.currentThread().getName()+" symboltable does not currently contain the given property, so creating property symbol");
              Symbol symbol =new PropertySymbol(qualifiedPropertyName,type,referenceTypeName,cimproperty.isArray(),_isKey(cimproperty),true);
              //add property to properties list
              if(logger.isLoggable(Level.FINE))
                logger.fine(Thread.currentThread().getName()+" adding property to Map in datacollector : "+qualifiedPropertyName);
              symbols.put(qualifiedPropertyName, symbol);

            }
            else
            {
              if(logger.isLoggable(Level.FINE))
                logger.fine(Thread.currentThread().getName()+" symboltable already contains the given symbol "+cimproperty.getName().toLowerCase());
              logger.severe(qualifiedPropertyName+" symbol Already exists in SymbolTable");
              throw new SPLException("symbol Already exists in SymbolTable");
            }

          }
          if(logger.isLoggable(Level.FINE))
            logger.fine(Thread.currentThread().getName()+" done adding all the properties");
          if(logger.isLoggable(Level.FINE))
            logger.fine(Thread.currentThread().getName()+" get all methods of the class and iterate over them");






          //get all methods of the class and iterate over them
          for(int i=0;i<cimclass.getMethodCount();i++)
          {
            CIMMethod cimMethod= cimclass.getMethod(i);

            if(logger.isLoggable(Level.FINE))
              logger.fine(Thread.currentThread().getName()+" method : "+cimMethod.getName()+ " Parameter count "+cimMethod.getParameterCount()+" is of type "+cimMethod.getType());
//            //ArrayList argTypeList=new ArrayList ();
            List methodArgs=new ArrayList();
            SPLSymbolTable methodArgsSymbolTable=new SPLSymbolTable();

            for(int j=0;j<cimMethod.getParameterCount();j++)
            {
              CIMParameter cimparameter=cimMethod.getParameter(j);
              String parameterName=cimparameter.getName();
              boolean isArr=cimparameter.isArray();
              int type=CIMSPLTypeConstants.convertCIMTypeToInternalType(cimparameter.getType().getType());

              String referenceTypeName="";

              if(type == TypeConstants.referenceType)
              { 
                referenceTypeName = CIMSPLTypeConstants.getReferenceTypeName(cimparameter.getReferenceClassName());
              }
              Argument arg=new ArgumentImpl(type, parameterName, isArr, referenceTypeName);

              methodArgsSymbolTable.insertVariableSymbol(parameterName, type, referenceTypeName, isArr, false, false);
              //System.out.println(" inserted variable symbol into methodArgsSymbolTable "+parameterName);
              methodArgs.add(arg);
            }
            String methodName=cimMethod.getName();
            if( ! symbols.containsKey(methodName))
            {
              int localReturnType=CIMSPLTypeConstants.convertCIMTypeToInternalType(cimMethod.getType());

              Symbol methodSymbol=new MethodSymbol(methodName,localReturnType,CIMSPLTypeConstants.getIsArray(localReturnType),cimclass.getName(),methodArgs,methodArgsSymbolTable);
              //add property to properties list
              if(logger.isLoggable(Level.FINE))
                logger.fine(Thread.currentThread().getName()+" adding method to symbol table" + methodName);
              symbols.put(methodName, methodSymbol);
            }
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.type.Symbol

            size = in.getInt();
        }

        BinaryString binaryStr = new BinaryString(in.array(), in.arrayOffset()+in.position(), size);

        Symbol symbolVal = SYMBOL_MAP.get(binaryStr);
        if(symbolVal == null)
        {
            ByteBuffer dup = in.duplicate();
            try
            {
View Full Code Here

Examples of org.apache.qpid.proton.amqp.Symbol

         {
            Map values = deliveryAnnotations.getValue();
            Set keySet = values.keySet();
            for (Object key : keySet)
            {
               Symbol symbol = (Symbol) key;
               Object value = values.get(key);
               properties.putSimpleStringProperty(new SimpleString(DELIVERY_ANNOTATIONS + symbol.toString()), new SimpleString(value.toString()));
            }
         }
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.