Examples of type()


Examples of com.helger.jcodemodel.JVar.type()

                JVar argument = factoryMethod.param(param.mods().getValue(), argumentType, param.name());
                staticInvoke.arg(argument);
            }
            JVar param = interfaceMethod.listVarParam();
            if (param != null) {
                AbstractJType argumentType = visitorInterface.substituteSpecialType(param.type().elementType(), usedValueClassType, usedValueClassType, types._RuntimeException);
                JVar argument = factoryMethod.varParam(param.mods().getValue(), argumentType, param.name());
                staticInvoke.arg(argument);
            }
            factoryMethod.body()._return(staticInvoke);
        }
View Full Code Here

Examples of com.itextpdf.text.Element.type()

        main_loop:
        while (true) {
            if (compositeElements.isEmpty())
                return NO_MORE_TEXT;
            Element element = compositeElements.getFirst();
            if (element.type() == Element.PARAGRAPH) {
                Paragraph para = (Paragraph)element;
                int status = 0;
                for (int keep = 0; keep < 2; ++keep) {
                    float lastY = yLine;
                    boolean createHere = false;
View Full Code Here

Examples of com.itextpdf.text.pdf.PdfObject.type()

    if (node.getChildCount() > 0) {
      return;
    }
    PdfObject object = node.getPdfObject();
    PdfObjectTreeNode leaf;
    switch (object.type()) {
    case PdfObject.INDIRECT:
      PdfIndirectReference ref = (PdfIndirectReference)object;
      leaf = getNode(ref.getNumber());
      addNodes(node, leaf);
      if (leaf instanceof PdfPagesTreeNode)
View Full Code Here

Examples of com.lowagie.text.Element.type()

        ArrayList allActions;
        int aCounter;
        // we loop over all the elements of the cell
        for (Iterator i = cell.getElements(); i.hasNext();) {
            element = (Element) i.next();
            switch (element.type()) {
                case Element.JPEG:
                case Element.JPEG2000:
                case Element.IMGRAW:
                case Element.IMGTEMPLATE:
                    addImage((Image) element, left, right, 0.4f * leading, alignment); //
View Full Code Here

Examples of com.lowagie.text.LwgElement.type()

                int columns = 0;
                Table table;
                LwgCell cell;
                while (true) {
                    LwgElement element = (LwgElement) stack.pop();
                    if (element.type() == LwgElement.CELL) {
                        cell = (LwgCell) element;
                        columns += cell.getColspan();
                        cells.add(cell);
                    } else {
                        table = (Table) element;
View Full Code Here

Examples of com.lowagie.text.pdf.PdfArray.type()

    height = rect.height();

    PdfArray dict = (PdfArray) PdfReader.getPdfObject(page.get(PdfName.ANNOTS));
    if (dict != null) {
      this.add(new ObjectTreeNode(PdfName.ANNOTS + " " + dict.length()));
      ObjectTreeNode annots_node = new ObjectTreeNode(PdfName.ANNOTS  + " " + dict.type());
      this.add(annots_node);
      pageanalyzer.iterateObjects(dict, pdfreader, annots_node);

    }
    PdfObject reso = PdfReader.getPdfObject(page.get(PdfName.RESOURCES));
View Full Code Here

Examples of com.lowagie.text.pdf.PdfObject.type()

    }
    PdfObject reso = PdfReader.getPdfObject(page.get(PdfName.RESOURCES));
    if (reso != null) {
      ObjectTreeNode resources_node = new ObjectTreeNode(PdfName.RESOURCES
          + " " + reso.type());
      this.add(resources_node);
      pageanalyzer.iterateObjects(reso, pdfreader, resources_node);
    }

    PdfObject contents = PdfReader.getPdfObject(page.get(PdfName.CONTENTS));
View Full Code Here

Examples of com.netflix.simianarmy.Monkey.type()

    @Test
    public void testRunner() throws InterruptedException {
        BasicScheduler sched = new BasicScheduler(200, TimeUnit.MILLISECONDS, 1);
        Monkey mockMonkey = mock(Monkey.class);
        when(mockMonkey.context()).thenReturn(new TestMonkeyContext(Enums.MONKEY));
        when(mockMonkey.type()).thenReturn(Enums.MONKEY).thenReturn(Enums.MONKEY);

        final AtomicLong counter = new AtomicLong(0L);
        sched.start(mockMonkey, new Runnable() {
            @Override
            public void run() {
View Full Code Here

Examples of com.opensymphony.xwork2.conversion.annotations.TypeConversion.type()

                        LOG.debug(key + ":" + key);
                    }

                    if (key != null) {
                        try {
                            if (tc.type() == ConversionType.APPLICATION) {
                                defaultMappings.put(key, createTypeConverter(tc.converter()));
                            } else {
                                if (tc.rule().toString().equals(ConversionRule.KEY_PROPERTY)) {
                                    mapping.put(key, tc.value());
                                }
View Full Code Here

Examples of com.pogofish.jadt.parser.ParserImpl.type()

    public void testRefTypeErrors() throws Exception {
        final ParserImpl p1 = parserImpl("Foo[");
        checkError(list(_UnexpectedToken("']'", "<EOF>", 1)), _ArrayType(_Ref(_ClassType("Foo", NO_ACTUAL_TYPE_ARGUMENTS))), p1.refType(), p1);

        final ParserImpl p2 = parserImpl("Foo<int>");
        checkError(list(_UnexpectedToken("'['", "'>'", 1)), _Ref(_ClassType("Foo", list(_ArrayType(_Primitive(_IntType()))))), p2.type(), p2);

        final ParserImpl p3 = parserImpl("Foo<A");
        checkError(list(_UnexpectedToken("'>'", "<EOF>", 1)), _Ref(_ClassType("Foo", list(_ClassType("A", NO_ACTUAL_TYPE_ARGUMENTS)))), p3.type(), p3);

        final ParserImpl p4 = parserImpl("Foo<A B>");
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.