Package org.cx4a.rsense.typing.runtime

Examples of org.cx4a.rsense.typing.runtime.Array


                                    }
                                }
                            }
                        } else if (receiver instanceof Array) {
                            if (args != null && args.length > 0) {
                                Array array = (Array) receiver;
                                Integer n = Vertex.getFixnum(args[0]);
                                if (!array.isModified() && n != null) {
                                    Vertex v = array.getElement(n);
                                    if (v != null) {
                                        ts.addAll(v.getTypeSet());
                                    }
                                }
                            }
View Full Code Here


        SplatVertex second = new SplatVertex(node, createVertex(node.getSecondNode()));
        RuntimeHelper.splatValue(this, second);
        for (IRubyObject a : first.getTypeSet()) {
            List<Vertex> elements = new ArrayList<Vertex>();
            if (a instanceof Array) {
                Array array = (Array) a;
                if (array.getElements() != null) {
                    elements.addAll(Arrays.asList(array.getElements()));
                }
            } else {
                elements.add(createFreeSingleTypeVertex(a));
            }
            for (IRubyObject b : second.getTypeSet()) {
                if (b instanceof Array) {
                    Array array = (Array) b;
                    if (array.getElements() != null) {
                        elements.addAll(Arrays.asList(array.getElements()));
                    }
                } else {
                    elements.add(createFreeSingleTypeVertex(a));
                }
            }
View Full Code Here

TOP

Related Classes of org.cx4a.rsense.typing.runtime.Array

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.