Package sizzle.types

Examples of sizzle.types.SizzleVarargs


    for (int i = 0; i < formalParameters.length; i++) {
      final String id = formalParameters[i];

      // check for varargs
      if (id.endsWith("..."))
        formalParameterTypes[i] = new SizzleVarargs(this.getType(id.substring(0, id.indexOf('.'))));
      else
        formalParameterTypes[i] = this.getType(id);
    }

    for (final String dep : annotation.typeDependencies())
View Full Code Here


  @Test
  public void testFunctionTrieVarargs() {
    final FunctionTrie functionTrie = new FunctionTrie();

    final SizzleFunction sizzleFunction = new SizzleFunction(new SizzleBool(),
        new SizzleType[] { new SizzleString(), new SizzleVarargs(new SizzleString()) });

    functionTrie.addFunction("function", sizzleFunction);
    functionTrie.addFunction("function", new SizzleFunction(new SizzleBool(), new SizzleType[] { new SizzleString(), new SizzleVarargs(new SizzleInt()) }));

    Assert.assertEquals("did not return correct function", sizzleFunction,
        functionTrie.getFunction("function", new SizzleType[] { new SizzleString(), new SizzleString(), new SizzleString(), new SizzleString() }));
  }
View Full Code Here

TOP

Related Classes of sizzle.types.SizzleVarargs

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.