Examples of labelSet()


Examples of ptolemy.data.type.RecordType.labelSet()

        // Handle indexing into a record.
        if ((childTypes.length == 1) && childTypes[0] instanceof RecordType) {
            RecordType type = (RecordType) childTypes[0];

            if (type.labelSet().contains(node.getMethodName())) {
                _setType(node, type.get(node.getMethodName()));
                return;
            }
        }
View Full Code Here

Examples of ptolemy.data.type.RecordType.labelSet()

                .jjtGetChild(0)).getType();

        if ((argCount == 1) && baseTokenType instanceof RecordType) {
            RecordType type = (RecordType) baseTokenType;

            if (type.labelSet().contains(node.getMethodName())) {
                Local originalBaseLocal = (Local) _nodeToLocal.get(node
                        .jjtGetChild(0));
                Local baseLocal = Jimple.v().newLocal("base",
                        RefType.v(PtolemyUtilities.recordTokenClass));
                _body.getLocals().add(baseLocal);
View Full Code Here

Examples of ptolemy.data.type.RecordType.labelSet()

                return BaseType.UNKNOWN;
            }

            RecordType recordType = (RecordType) inputType;
            Map outputMap = new HashMap();
            Set recordLabels = recordType.labelSet();
            Iterator iterator = recordLabels.iterator();

            while (iterator.hasNext()) {
                String label = (String) iterator.next();
                Type type = recordType.get(label);
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.