Package net.percederberg.mibble.type

Examples of net.percederberg.mibble.type.SequenceType


     */
    private void printType(MibType type, String indent, int smiVersion) {
        MibType         refType;
        Constraint      refCons;
        Constraint      typeCons;
        SequenceType    seqType;
        SequenceOfType  seqOfType;

        if (type.getReferenceSymbol() != null) {
            os.print(type.getReferenceSymbol().getName());
            refType = type.getReferenceSymbol().getType();
            refCons = getConstraint(refType);
            typeCons = getConstraint(type);
            if (typeCons != null && typeCons != refCons) {
                printConstraint(type, indent);
            }
        } else if (type instanceof SequenceType) {           
            seqType = (SequenceType) type;
            os.println("SEQUENCE {");
            printTypeElements(seqType.getAllElements(),
                              indent + "    ",
                              smiVersion);
            os.println();
            os.print(indent);
            os.print("}");
View Full Code Here


     * @return the node to add to the parse tree
     */
    protected Node exitSequenceType(Production node) {
        ArrayList  elements = getChildValues(node);

        node.addValue(new SequenceType(elements));
        return node;
    }
View Full Code Here

TOP

Related Classes of net.percederberg.mibble.type.SequenceType

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.