com.sun.corba.se.spi.orb.OperationFactory Java Examples
The following examples show how to use
com.sun.corba.se.spi.orb.OperationFactory.
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 File: ParserTable.java From hottub with GNU General Public License v2.0 | 6 votes |
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 #2
Source File: ParserTable.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
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 File: ParserTable.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
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 #4
Source File: ParserTable.java From JDKSourceCode1.8 with MIT License | 6 votes |
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 #5
Source File: ParserTable.java From JDKSourceCode1.8 with MIT License | 6 votes |
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 #6
Source File: ParserTable.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
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 #7
Source File: ParserTable.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
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 #8
Source File: ParserTable.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
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 #9
Source File: ParserTable.java From hottub with GNU General Public License v2.0 | 6 votes |
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 File: ParserTable.java From JDKSourceCode1.8 with MIT License | 6 votes |
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 File: ParserTable.java From hottub with GNU General Public License v2.0 | 6 votes |
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 #12
Source File: ParserTable.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
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 #13
Source File: ParserTable.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
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 #14
Source File: ParserTable.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
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 #15
Source File: ParserTable.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
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 #16
Source File: ParserTable.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
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 #17
Source File: ParserTable.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
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 #18
Source File: ParserTable.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
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 File: ParserTable.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
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 File: ParserTable.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
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 File: ParserTable.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
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 File: ParserTable.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
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 #23
Source File: ParserTable.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
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 File: ParserTable.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
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 #25
Source File: ParserTable.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
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 File: ParserTable.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
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 File: ParserTable.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
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 File: ParserTable.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
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 File: ParserTable.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
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 File: ParserTable.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
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 ; }