Package net.percederberg.mibble.type

Examples of net.percederberg.mibble.type.Constraint


     * @param indent         the indentation to use on new lines
     * @param smiVersion     the SMI version to use
     */
    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());
View Full Code Here


     * @param initialBytes   the initial number of bytes used
     *
     * @return the number of bytes required
     */
    protected int getByteSize(MibType type, int initialBytes) {
        Constraint  c = null;
        int         res = -1;

        if (type instanceof StringType) {
            c = ((StringType) type).getConstraint();
        }
View Full Code Here

     */
    protected Node exitSequenceOfType(Production node)
        throws ParseException {

        MibType     type;
        Constraint  c = null;
        Node        child;

        child = getChildAt(node, node.getChildCount() - 1);
        type = (MibType) getValue(child, 0);
        if (node.getChildCount() == 4) {
View Full Code Here

     * @param node           the node being exited
     *
     * @return the node to add to the parse tree
     */
    protected Node exitConstraintList(Production node) {
        Constraint  result = null;
        ArrayList   values;
        Constraint  c;

        values = getChildValues(node);
        for (int i = values.size() - 1; i >= 0; i--) {
            c = (Constraint) values.get(i);
            if (result == null) {
View Full Code Here

     * @throws ParseException if the node analysis discovered errors
     */
    protected Node exitSizeConstraint(Production node)
        throws ParseException {

        Constraint  c;

        c = (Constraint) getValue(getChildAt(node, 1), 0);
        node.addValue(new SizeConstraint(getLocation(node), c));
        return node;
    }
View Full Code Here

TOP

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

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.