Java Code Examples for com.sun.corba.se.spi.orb.OperationFactory

The following examples show how to use com.sun.corba.se.spi.orb.OperationFactory. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: ParserTable.java    License: Apache License 2.0 6 votes vote down vote up
private Operation makeUSLOperation()
{
    Operation[] siop = { OperationFactory.stringAction(),
        OperationFactory.integerAction() } ;
    Operation op2 = OperationFactory.sequenceAction( ":", siop ) ;

    Operation uslop = new Operation() {
        public Object operate( Object value )
        {
            Object[] values = (Object[])value ;
            String type = (String)(values[0]) ;
            Integer port = (Integer)(values[1]) ;
            return new USLPort( type, port.intValue() ) ;
        }
    } ;

    Operation op3 = OperationFactory.compose( op2, uslop ) ;
    Operation listenop = OperationFactory.listAction( ",", op3 ) ;
    return listenop ;
}
 
Example #2
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: ParserTable.java    License: Apache License 2.0 6 votes vote down vote up
private Operation makeFSOperation() {
    Operation fschecker = new Operation() {
        public Object operate( Object value )
        {
            int giopFragmentSize = ((Integer)value).intValue() ;
            if (giopFragmentSize < ORBConstants.GIOP_FRAGMENT_MINIMUM_SIZE){
                throw wrapper.fragmentSizeMinimum( new Integer( giopFragmentSize ),
                    new Integer( ORBConstants.GIOP_FRAGMENT_MINIMUM_SIZE ) ) ;
            }

            if (giopFragmentSize % ORBConstants.GIOP_FRAGMENT_DIVISOR != 0)
                throw wrapper.fragmentSizeDiv( new Integer( giopFragmentSize ),
                        new Integer( ORBConstants.GIOP_FRAGMENT_DIVISOR ) ) ;

            return value ;
        }
    } ;

    Operation result = OperationFactory.compose( OperationFactory.integerAction(),
        fschecker ) ;
    return result ;
}
 
Example #3
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: ParserTable.java    License: Apache License 2.0 6 votes vote down vote up
private Operation makeGVOperation() {
    Operation gvHelper = OperationFactory.listAction( ".",
        OperationFactory.integerAction() ) ;
    Operation gvMain = new Operation() {
        public Object operate( Object value )
        {
            Object[] nums = (Object[])value ;
            int major = ((Integer)(nums[0])).intValue() ;
            int minor = ((Integer)(nums[1])).intValue() ;

            return new GIOPVersion( major, minor ) ;
        }
    } ;

    Operation result = OperationFactory.compose( gvHelper, gvMain );
    return result ;
}
 
Example #4
Source Project: TencentKona-8   Author: Tencent   File: ParserTable.java    License: GNU General Public License v2.0 6 votes vote down vote up
private Operation makeUSLOperation()
{
    Operation[] siop = { OperationFactory.stringAction(),
        OperationFactory.integerAction() } ;
    Operation op2 = OperationFactory.sequenceAction( ":", siop ) ;

    Operation uslop = new Operation() {
        public Object operate( Object value )
        {
            Object[] values = (Object[])value ;
            String type = (String)(values[0]) ;
            Integer port = (Integer)(values[1]) ;
            return new USLPort( type, port.intValue() ) ;
        }
    } ;

    Operation op3 = OperationFactory.compose( op2, uslop ) ;
    Operation listenop = OperationFactory.listAction( ",", op3 ) ;
    return listenop ;
}
 
Example #5
Source Project: TencentKona-8   Author: Tencent   File: ParserTable.java    License: GNU General Public License v2.0 6 votes vote down vote up
private Operation makeFSOperation() {
    Operation fschecker = new Operation() {
        public Object operate( Object value )
        {
            int giopFragmentSize = ((Integer)value).intValue() ;
            if (giopFragmentSize < ORBConstants.GIOP_FRAGMENT_MINIMUM_SIZE){
                throw wrapper.fragmentSizeMinimum( new Integer( giopFragmentSize ),
                    new Integer( ORBConstants.GIOP_FRAGMENT_MINIMUM_SIZE ) ) ;
            }

            if (giopFragmentSize % ORBConstants.GIOP_FRAGMENT_DIVISOR != 0)
                throw wrapper.fragmentSizeDiv( new Integer( giopFragmentSize ),
                        new Integer( ORBConstants.GIOP_FRAGMENT_DIVISOR ) ) ;

            return value ;
        }
    } ;

    Operation result = OperationFactory.compose( OperationFactory.integerAction(),
        fschecker ) ;
    return result ;
}
 
Example #6
Source Project: TencentKona-8   Author: Tencent   File: ParserTable.java    License: GNU General Public License v2.0 6 votes vote down vote up
private Operation makeGVOperation() {
    Operation gvHelper = OperationFactory.listAction( ".",
        OperationFactory.integerAction() ) ;
    Operation gvMain = new Operation() {
        public Object operate( Object value )
        {
            Object[] nums = (Object[])value ;
            int major = ((Integer)(nums[0])).intValue() ;
            int minor = ((Integer)(nums[1])).intValue() ;

            return new GIOPVersion( major, minor ) ;
        }
    } ;

    Operation result = OperationFactory.compose( gvHelper, gvMain );
    return result ;
}
 
Example #7
Source Project: jdk8u60   Author: chenghanpeng   File: ParserTable.java    License: GNU General Public License v2.0 6 votes vote down vote up
private Operation makeUSLOperation()
{
    Operation[] siop = { OperationFactory.stringAction(),
        OperationFactory.integerAction() } ;
    Operation op2 = OperationFactory.sequenceAction( ":", siop ) ;

    Operation uslop = new Operation() {
        public Object operate( Object value )
        {
            Object[] values = (Object[])value ;
            String type = (String)(values[0]) ;
            Integer port = (Integer)(values[1]) ;
            return new USLPort( type, port.intValue() ) ;
        }
    } ;

    Operation op3 = OperationFactory.compose( op2, uslop ) ;
    Operation listenop = OperationFactory.listAction( ",", op3 ) ;
    return listenop ;
}
 
Example #8
Source Project: jdk8u60   Author: chenghanpeng   File: ParserTable.java    License: GNU General Public License v2.0 6 votes vote down vote up
private Operation makeFSOperation() {
    Operation fschecker = new Operation() {
        public Object operate( Object value )
        {
            int giopFragmentSize = ((Integer)value).intValue() ;
            if (giopFragmentSize < ORBConstants.GIOP_FRAGMENT_MINIMUM_SIZE){
                throw wrapper.fragmentSizeMinimum( new Integer( giopFragmentSize ),
                    new Integer( ORBConstants.GIOP_FRAGMENT_MINIMUM_SIZE ) ) ;
            }

            if (giopFragmentSize % ORBConstants.GIOP_FRAGMENT_DIVISOR != 0)
                throw wrapper.fragmentSizeDiv( new Integer( giopFragmentSize ),
                        new Integer( ORBConstants.GIOP_FRAGMENT_DIVISOR ) ) ;

            return value ;
        }
    } ;

    Operation result = OperationFactory.compose( OperationFactory.integerAction(),
        fschecker ) ;
    return result ;
}
 
Example #9
Source Project: jdk8u60   Author: chenghanpeng   File: ParserTable.java    License: GNU General Public License v2.0 6 votes vote down vote up
private Operation makeGVOperation() {
    Operation gvHelper = OperationFactory.listAction( ".",
        OperationFactory.integerAction() ) ;
    Operation gvMain = new Operation() {
        public Object operate( Object value )
        {
            Object[] nums = (Object[])value ;
            int major = ((Integer)(nums[0])).intValue() ;
            int minor = ((Integer)(nums[1])).intValue() ;

            return new GIOPVersion( major, minor ) ;
        }
    } ;

    Operation result = OperationFactory.compose( gvHelper, gvMain );
    return result ;
}
 
Example #10
Source Project: JDKSourceCode1.8   Author: wupeixuan   File: ParserTable.java    License: MIT License 6 votes vote down vote up
private Operation makeUSLOperation()
{
    Operation[] siop = { OperationFactory.stringAction(),
        OperationFactory.integerAction() } ;
    Operation op2 = OperationFactory.sequenceAction( ":", siop ) ;

    Operation uslop = new Operation() {
        public Object operate( Object value )
        {
            Object[] values = (Object[])value ;
            String type = (String)(values[0]) ;
            Integer port = (Integer)(values[1]) ;
            return new USLPort( type, port.intValue() ) ;
        }
    } ;

    Operation op3 = OperationFactory.compose( op2, uslop ) ;
    Operation listenop = OperationFactory.listAction( ",", op3 ) ;
    return listenop ;
}
 
Example #11
Source Project: JDKSourceCode1.8   Author: wupeixuan   File: ParserTable.java    License: MIT License 6 votes vote down vote up
private Operation makeFSOperation() {
    Operation fschecker = new Operation() {
        public Object operate( Object value )
        {
            int giopFragmentSize = ((Integer)value).intValue() ;
            if (giopFragmentSize < ORBConstants.GIOP_FRAGMENT_MINIMUM_SIZE){
                throw wrapper.fragmentSizeMinimum( new Integer( giopFragmentSize ),
                    new Integer( ORBConstants.GIOP_FRAGMENT_MINIMUM_SIZE ) ) ;
            }

            if (giopFragmentSize % ORBConstants.GIOP_FRAGMENT_DIVISOR != 0)
                throw wrapper.fragmentSizeDiv( new Integer( giopFragmentSize ),
                        new Integer( ORBConstants.GIOP_FRAGMENT_DIVISOR ) ) ;

            return value ;
        }
    } ;

    Operation result = OperationFactory.compose( OperationFactory.integerAction(),
        fschecker ) ;
    return result ;
}
 
Example #12
Source Project: JDKSourceCode1.8   Author: wupeixuan   File: ParserTable.java    License: MIT License 6 votes vote down vote up
private Operation makeGVOperation() {
    Operation gvHelper = OperationFactory.listAction( ".",
        OperationFactory.integerAction() ) ;
    Operation gvMain = new Operation() {
        public Object operate( Object value )
        {
            Object[] nums = (Object[])value ;
            int major = ((Integer)(nums[0])).intValue() ;
            int minor = ((Integer)(nums[1])).intValue() ;

            return new GIOPVersion( major, minor ) ;
        }
    } ;

    Operation result = OperationFactory.compose( gvHelper, gvMain );
    return result ;
}
 
Example #13
Source Project: openjdk-jdk8u   Author: AdoptOpenJDK   File: ParserTable.java    License: GNU General Public License v2.0 6 votes vote down vote up
private Operation makeUSLOperation()
{
    Operation[] siop = { OperationFactory.stringAction(),
        OperationFactory.integerAction() } ;
    Operation op2 = OperationFactory.sequenceAction( ":", siop ) ;

    Operation uslop = new Operation() {
        public Object operate( Object value )
        {
            Object[] values = (Object[])value ;
            String type = (String)(values[0]) ;
            Integer port = (Integer)(values[1]) ;
            return new USLPort( type, port.intValue() ) ;
        }
    } ;

    Operation op3 = OperationFactory.compose( op2, uslop ) ;
    Operation listenop = OperationFactory.listAction( ",", op3 ) ;
    return listenop ;
}
 
Example #14
Source Project: openjdk-jdk8u   Author: AdoptOpenJDK   File: ParserTable.java    License: GNU General Public License v2.0 6 votes vote down vote up
private Operation makeFSOperation() {
    Operation fschecker = new Operation() {
        public Object operate( Object value )
        {
            int giopFragmentSize = ((Integer)value).intValue() ;
            if (giopFragmentSize < ORBConstants.GIOP_FRAGMENT_MINIMUM_SIZE){
                throw wrapper.fragmentSizeMinimum( new Integer( giopFragmentSize ),
                    new Integer( ORBConstants.GIOP_FRAGMENT_MINIMUM_SIZE ) ) ;
            }

            if (giopFragmentSize % ORBConstants.GIOP_FRAGMENT_DIVISOR != 0)
                throw wrapper.fragmentSizeDiv( new Integer( giopFragmentSize ),
                        new Integer( ORBConstants.GIOP_FRAGMENT_DIVISOR ) ) ;

            return value ;
        }
    } ;

    Operation result = OperationFactory.compose( OperationFactory.integerAction(),
        fschecker ) ;
    return result ;
}
 
Example #15
Source Project: openjdk-jdk8u   Author: AdoptOpenJDK   File: ParserTable.java    License: GNU General Public License v2.0 6 votes vote down vote up
private Operation makeGVOperation() {
    Operation gvHelper = OperationFactory.listAction( ".",
        OperationFactory.integerAction() ) ;
    Operation gvMain = new Operation() {
        public Object operate( Object value )
        {
            Object[] nums = (Object[])value ;
            int major = ((Integer)(nums[0])).intValue() ;
            int minor = ((Integer)(nums[1])).intValue() ;

            return new GIOPVersion( major, minor ) ;
        }
    } ;

    Operation result = OperationFactory.compose( gvHelper, gvMain );
    return result ;
}
 
Example #16
Source Project: openjdk-jdk8u-backup   Author: AdoptOpenJDK   File: ParserTable.java    License: GNU General Public License v2.0 6 votes vote down vote up
private Operation makeUSLOperation()
{
    Operation[] siop = { OperationFactory.stringAction(),
        OperationFactory.integerAction() } ;
    Operation op2 = OperationFactory.sequenceAction( ":", siop ) ;

    Operation uslop = new Operation() {
        public Object operate( Object value )
        {
            Object[] values = (Object[])value ;
            String type = (String)(values[0]) ;
            Integer port = (Integer)(values[1]) ;
            return new USLPort( type, port.intValue() ) ;
        }
    } ;

    Operation op3 = OperationFactory.compose( op2, uslop ) ;
    Operation listenop = OperationFactory.listAction( ",", op3 ) ;
    return listenop ;
}
 
Example #17
Source Project: openjdk-jdk8u-backup   Author: AdoptOpenJDK   File: ParserTable.java    License: GNU General Public License v2.0 6 votes vote down vote up
private Operation makeFSOperation() {
    Operation fschecker = new Operation() {
        public Object operate( Object value )
        {
            int giopFragmentSize = ((Integer)value).intValue() ;
            if (giopFragmentSize < ORBConstants.GIOP_FRAGMENT_MINIMUM_SIZE){
                throw wrapper.fragmentSizeMinimum( new Integer( giopFragmentSize ),
                    new Integer( ORBConstants.GIOP_FRAGMENT_MINIMUM_SIZE ) ) ;
            }

            if (giopFragmentSize % ORBConstants.GIOP_FRAGMENT_DIVISOR != 0)
                throw wrapper.fragmentSizeDiv( new Integer( giopFragmentSize ),
                        new Integer( ORBConstants.GIOP_FRAGMENT_DIVISOR ) ) ;

            return value ;
        }
    } ;

    Operation result = OperationFactory.compose( OperationFactory.integerAction(),
        fschecker ) ;
    return result ;
}
 
Example #18
Source Project: openjdk-jdk8u-backup   Author: AdoptOpenJDK   File: ParserTable.java    License: GNU General Public License v2.0 6 votes vote down vote up
private Operation makeGVOperation() {
    Operation gvHelper = OperationFactory.listAction( ".",
        OperationFactory.integerAction() ) ;
    Operation gvMain = new Operation() {
        public Object operate( Object value )
        {
            Object[] nums = (Object[])value ;
            int major = ((Integer)(nums[0])).intValue() ;
            int minor = ((Integer)(nums[1])).intValue() ;

            return new GIOPVersion( major, minor ) ;
        }
    } ;

    Operation result = OperationFactory.compose( gvHelper, gvMain );
    return result ;
}
 
Example #19
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: ParserTable.java    License: GNU General Public License v2.0 6 votes vote down vote up
private Operation makeUSLOperation()
{
    Operation[] siop = { OperationFactory.stringAction(),
        OperationFactory.integerAction() } ;
    Operation op2 = OperationFactory.sequenceAction( ":", siop ) ;

    Operation uslop = new Operation() {
        public Object operate( Object value )
        {
            Object[] values = (Object[])value ;
            String type = (String)(values[0]) ;
            Integer port = (Integer)(values[1]) ;
            return new USLPort( type, port.intValue() ) ;
        }
    } ;

    Operation op3 = OperationFactory.compose( op2, uslop ) ;
    Operation listenop = OperationFactory.listAction( ",", op3 ) ;
    return listenop ;
}
 
Example #20
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: ParserTable.java    License: GNU General Public License v2.0 6 votes vote down vote up
private Operation makeFSOperation() {
    Operation fschecker = new Operation() {
        public Object operate( Object value )
        {
            int giopFragmentSize = ((Integer)value).intValue() ;
            if (giopFragmentSize < ORBConstants.GIOP_FRAGMENT_MINIMUM_SIZE){
                throw wrapper.fragmentSizeMinimum( new Integer( giopFragmentSize ),
                    new Integer( ORBConstants.GIOP_FRAGMENT_MINIMUM_SIZE ) ) ;
            }

            if (giopFragmentSize % ORBConstants.GIOP_FRAGMENT_DIVISOR != 0)
                throw wrapper.fragmentSizeDiv( new Integer( giopFragmentSize ),
                        new Integer( ORBConstants.GIOP_FRAGMENT_DIVISOR ) ) ;

            return value ;
        }
    } ;

    Operation result = OperationFactory.compose( OperationFactory.integerAction(),
        fschecker ) ;
    return result ;
}
 
Example #21
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: ParserTable.java    License: GNU General Public License v2.0 6 votes vote down vote up
private Operation makeGVOperation() {
    Operation gvHelper = OperationFactory.listAction( ".",
        OperationFactory.integerAction() ) ;
    Operation gvMain = new Operation() {
        public Object operate( Object value )
        {
            Object[] nums = (Object[])value ;
            int major = ((Integer)(nums[0])).intValue() ;
            int minor = ((Integer)(nums[1])).intValue() ;

            return new GIOPVersion( major, minor ) ;
        }
    } ;

    Operation result = OperationFactory.compose( gvHelper, gvMain );
    return result ;
}
 
Example #22
Source Project: hottub   Author: dsrg-uoft   File: ParserTable.java    License: GNU General Public License v2.0 6 votes vote down vote up
private Operation makeUSLOperation()
{
    Operation[] siop = { OperationFactory.stringAction(),
        OperationFactory.integerAction() } ;
    Operation op2 = OperationFactory.sequenceAction( ":", siop ) ;

    Operation uslop = new Operation() {
        public Object operate( Object value )
        {
            Object[] values = (Object[])value ;
            String type = (String)(values[0]) ;
            Integer port = (Integer)(values[1]) ;
            return new USLPort( type, port.intValue() ) ;
        }
    } ;

    Operation op3 = OperationFactory.compose( op2, uslop ) ;
    Operation listenop = OperationFactory.listAction( ",", op3 ) ;
    return listenop ;
}
 
Example #23
Source Project: hottub   Author: dsrg-uoft   File: ParserTable.java    License: GNU General Public License v2.0 6 votes vote down vote up
private Operation makeFSOperation() {
    Operation fschecker = new Operation() {
        public Object operate( Object value )
        {
            int giopFragmentSize = ((Integer)value).intValue() ;
            if (giopFragmentSize < ORBConstants.GIOP_FRAGMENT_MINIMUM_SIZE){
                throw wrapper.fragmentSizeMinimum( new Integer( giopFragmentSize ),
                    new Integer( ORBConstants.GIOP_FRAGMENT_MINIMUM_SIZE ) ) ;
            }

            if (giopFragmentSize % ORBConstants.GIOP_FRAGMENT_DIVISOR != 0)
                throw wrapper.fragmentSizeDiv( new Integer( giopFragmentSize ),
                        new Integer( ORBConstants.GIOP_FRAGMENT_DIVISOR ) ) ;

            return value ;
        }
    } ;

    Operation result = OperationFactory.compose( OperationFactory.integerAction(),
        fschecker ) ;
    return result ;
}
 
Example #24
Source Project: hottub   Author: dsrg-uoft   File: ParserTable.java    License: GNU General Public License v2.0 6 votes vote down vote up
private Operation makeGVOperation() {
    Operation gvHelper = OperationFactory.listAction( ".",
        OperationFactory.integerAction() ) ;
    Operation gvMain = new Operation() {
        public Object operate( Object value )
        {
            Object[] nums = (Object[])value ;
            int major = ((Integer)(nums[0])).intValue() ;
            int minor = ((Integer)(nums[1])).intValue() ;

            return new GIOPVersion( major, minor ) ;
        }
    } ;

    Operation result = OperationFactory.compose( gvHelper, gvMain );
    return result ;
}
 
Example #25
Source Project: openjdk-8-source   Author: keerath   File: ParserTable.java    License: GNU General Public License v2.0 6 votes vote down vote up
private Operation makeUSLOperation()
{
    Operation[] siop = { OperationFactory.stringAction(),
        OperationFactory.integerAction() } ;
    Operation op2 = OperationFactory.sequenceAction( ":", siop ) ;

    Operation uslop = new Operation() {
        public Object operate( Object value )
        {
            Object[] values = (Object[])value ;
            String type = (String)(values[0]) ;
            Integer port = (Integer)(values[1]) ;
            return new USLPort( type, port.intValue() ) ;
        }
    } ;

    Operation op3 = OperationFactory.compose( op2, uslop ) ;
    Operation listenop = OperationFactory.listAction( ",", op3 ) ;
    return listenop ;
}
 
Example #26
Source Project: openjdk-8-source   Author: keerath   File: ParserTable.java    License: GNU General Public License v2.0 6 votes vote down vote up
private Operation makeFSOperation() {
    Operation fschecker = new Operation() {
        public Object operate( Object value )
        {
            int giopFragmentSize = ((Integer)value).intValue() ;
            if (giopFragmentSize < ORBConstants.GIOP_FRAGMENT_MINIMUM_SIZE){
                throw wrapper.fragmentSizeMinimum( new Integer( giopFragmentSize ),
                    new Integer( ORBConstants.GIOP_FRAGMENT_MINIMUM_SIZE ) ) ;
            }

            if (giopFragmentSize % ORBConstants.GIOP_FRAGMENT_DIVISOR != 0)
                throw wrapper.fragmentSizeDiv( new Integer( giopFragmentSize ),
                        new Integer( ORBConstants.GIOP_FRAGMENT_DIVISOR ) ) ;

            return value ;
        }
    } ;

    Operation result = OperationFactory.compose( OperationFactory.integerAction(),
        fschecker ) ;
    return result ;
}
 
Example #27
Source Project: openjdk-8-source   Author: keerath   File: ParserTable.java    License: GNU General Public License v2.0 6 votes vote down vote up
private Operation makeGVOperation() {
    Operation gvHelper = OperationFactory.listAction( ".",
        OperationFactory.integerAction() ) ;
    Operation gvMain = new Operation() {
        public Object operate( Object value )
        {
            Object[] nums = (Object[])value ;
            int major = ((Integer)(nums[0])).intValue() ;
            int minor = ((Integer)(nums[1])).intValue() ;

            return new GIOPVersion( major, minor ) ;
        }
    } ;

    Operation result = OperationFactory.compose( gvHelper, gvMain );
    return result ;
}
 
Example #28
Source Project: openjdk-8   Author: bpupadhyaya   File: ParserTable.java    License: GNU General Public License v2.0 6 votes vote down vote up
private Operation makeUSLOperation()
{
    Operation[] siop = { OperationFactory.stringAction(),
        OperationFactory.integerAction() } ;
    Operation op2 = OperationFactory.sequenceAction( ":", siop ) ;

    Operation uslop = new Operation() {
        public Object operate( Object value )
        {
            Object[] values = (Object[])value ;
            String type = (String)(values[0]) ;
            Integer port = (Integer)(values[1]) ;
            return new USLPort( type, port.intValue() ) ;
        }
    } ;

    Operation op3 = OperationFactory.compose( op2, uslop ) ;
    Operation listenop = OperationFactory.listAction( ",", op3 ) ;
    return listenop ;
}
 
Example #29
Source Project: openjdk-8   Author: bpupadhyaya   File: ParserTable.java    License: GNU General Public License v2.0 6 votes vote down vote up
private Operation makeFSOperation() {
    Operation fschecker = new Operation() {
        public Object operate( Object value )
        {
            int giopFragmentSize = ((Integer)value).intValue() ;
            if (giopFragmentSize < ORBConstants.GIOP_FRAGMENT_MINIMUM_SIZE){
                throw wrapper.fragmentSizeMinimum( new Integer( giopFragmentSize ),
                    new Integer( ORBConstants.GIOP_FRAGMENT_MINIMUM_SIZE ) ) ;
            }

            if (giopFragmentSize % ORBConstants.GIOP_FRAGMENT_DIVISOR != 0)
                throw wrapper.fragmentSizeDiv( new Integer( giopFragmentSize ),
                        new Integer( ORBConstants.GIOP_FRAGMENT_DIVISOR ) ) ;

            return value ;
        }
    } ;

    Operation result = OperationFactory.compose( OperationFactory.integerAction(),
        fschecker ) ;
    return result ;
}
 
Example #30
Source Project: openjdk-8   Author: bpupadhyaya   File: ParserTable.java    License: GNU General Public License v2.0 6 votes vote down vote up
private Operation makeGVOperation() {
    Operation gvHelper = OperationFactory.listAction( ".",
        OperationFactory.integerAction() ) ;
    Operation gvMain = new Operation() {
        public Object operate( Object value )
        {
            Object[] nums = (Object[])value ;
            int major = ((Integer)(nums[0])).intValue() ;
            int minor = ((Integer)(nums[1])).intValue() ;

            return new GIOPVersion( major, minor ) ;
        }
    } ;

    Operation result = OperationFactory.compose( gvHelper, gvMain );
    return result ;
}