signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class IfcGridAxisImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ SuppressWarnings ( "unchecked" ) public EList < IfcGrid > getPartOfV ( ) { } }
return ( EList < IfcGrid > ) eGet ( Ifc2x3tc1Package . Literals . IFC_GRID_AXIS__PART_OF_V , true ) ;
public class ExceptionalStream { public < R > R __ ( Try . Function < ? super ExceptionalStream < T , E > , R , ? extends E > transfer ) throws E { } }
checkArgNotNull ( transfer , "transfer" ) ; return transfer . apply ( this ) ;
public class FLAC_MD5 { /** * Add samples to the MD5 hash . * CURRENTLY ONLY MAY WORK FOR : sample sizes which are divisible by 8 . Need * to create some audio to test with . * @ param samples * @ param count * @ param channels */ public void addSamplesToMD5 ( int [ ] samples , int count , int channels , int sampleSize ) { } }
int bytesPerSample = sampleSize / 8 ; if ( sampleSize % 8 != 0 ) bytesPerSample ++ ; if ( _dataMD5 == null || _dataMD5 . length < count * bytesPerSample * channels ) { _dataMD5 = new byte [ count * bytesPerSample * channels ] ; } byte [ ] dataMD5 = _dataMD5 ; splitSamplesToBytes ( samples , count * channels , bytesPerSample , dataMD5 ) ; md . update ( dataMD5 , 0 , count * bytesPerSample * channels ) ;
public class BsWebConfigCB { public WebConfigCB acceptPK ( String id ) { } }
assertObjectNotNull ( "id" , id ) ; BsWebConfigCB cb = this ; cb . query ( ) . docMeta ( ) . setId_Equal ( id ) ; return ( WebConfigCB ) this ;
public class XMLNodeStruct { /** * used only with java 7 , do not set @ Override */ public Object getUserData ( String key ) { } }
// dynamic load to support jre 1.4 and 1.5 try { Method m = node . getClass ( ) . getMethod ( "getUserData" , new Class [ ] { key . getClass ( ) } ) ; return m . invoke ( node , new Object [ ] { key } ) ; } catch ( Exception e ) { throw new PageRuntimeException ( Caster . toPageException ( e ) ) ; }
public class StrBuilder { /** * Appends a char array to the string builder . * Appending null will call { @ link # appendNull ( ) } . * @ param chars the char array to append * @ return this , to enable chaining */ public StrBuilder append ( final char [ ] chars ) { } }
if ( chars == null ) { return appendNull ( ) ; } final int strLen = chars . length ; if ( strLen > 0 ) { final int len = length ( ) ; ensureCapacity ( len + strLen ) ; System . arraycopy ( chars , 0 , buffer , len , strLen ) ; size += strLen ; } return this ;
public class OutputHandler { /** * Style the tag for a particular channel this style * @ param channel The channel to style * @ param style The style to use */ public void styleChannel ( String channel , Style style ) { } }
if ( this . channelStyles == null ) { this . channelStyles = new HashMap < String , Style > ( ) ; } this . channelStyles . put ( channel . toLowerCase ( ) , style ) ;
public class ListerUtils { /** * Parses a usual filter into a regex pattern . * @ param spec the filter to be parsed * @ return a regexp pattern corresponding to the filter * @ throws IllegalArgumentException - If the filter could not be compiled to a pattern */ public static Pattern parseFilter ( final String spec ) { } }
StringBuffer sb = new StringBuffer ( ) ; for ( int j = 0 ; j < spec . length ( ) ; j ++ ) { char c = spec . charAt ( j ) ; switch ( c ) { case '.' : sb . append ( "\\." ) ; break ; case '*' : // test for * * ( all directories ) if ( j < spec . length ( ) - 1 && spec . charAt ( j + 1 ) == '*' ) { sb . append ( ".*" ) ; j ++ ; } else { sb . append ( "[^/]*" ) ; } break ; default : sb . append ( c ) ; break ; } } String s = sb . toString ( ) ; try { return Pattern . compile ( s ) ; } catch ( Exception e ) { throw new IllegalArgumentException ( "Invalid character used in the filter name" , e ) ; }
public class BaseDestinationHandler { /** * MP is stopping . All mediation activity should stop also . */ @ Override public void announceMPStopping ( ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "announceMPStopping" ) ; if ( isPubSub ( ) ) { if ( null != _pubSubRealization ) { // doing a sanity check with checking for not null // signal to _ pubSubRealization to gracefully exit from deleteMsgsWithNoReferences ( ) _pubSubRealization . stopDeletingMsgsWihoutReferencesTask ( true ) ; } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "announceMPStopping" ) ;
public class Cells { /** * Returns the { @ code Byte } value of the { @ link Cell } ( associated to { @ code table } ) whose name iscellName , or null * if this Cells object contains no cell whose name is cellName . * @ param nameSpace the name of the owning table * @ param cellName the name of the Cell we want to retrieve from this Cells object . * @ return the { @ code Byte } value of the { @ link Cell } ( associated to { @ code table } ) whose name is cellName , or null * if this Cells object contains no cell whose name is cellName */ public Byte getByte ( String nameSpace , String cellName ) { } }
return getValue ( nameSpace , cellName , Byte . class ) ;
public class BpmnParse { /** * Parses the signals of the given definitions file . Signals are not contained * within a process element , but they can be referenced from inner process * elements . */ protected void parseSignals ( ) { } }
for ( Element signalElement : rootElement . elements ( "signal" ) ) { String id = signalElement . attribute ( "id" ) ; String signalName = signalElement . attribute ( "name" ) ; for ( SignalDefinition signalDefinition : signals . values ( ) ) { if ( signalDefinition . getName ( ) . equals ( signalName ) ) { addError ( "duplicate signal name '" + signalName + "'." , signalElement ) ; } } if ( id == null ) { addError ( "signal must have an id" , signalElement ) ; } else if ( signalName == null ) { addError ( "signal with id '" + id + "' has no name" , signalElement ) ; } else { Expression signalExpression = expressionManager . createExpression ( signalName ) ; SignalDefinition signal = new SignalDefinition ( ) ; signal . setId ( this . targetNamespace + ":" + id ) ; signal . setExpression ( signalExpression ) ; this . signals . put ( signal . getId ( ) , signal ) ; } }
public class XbasePackageImpl { /** * Complete the initialization of the package and its meta - model . This * method is guarded to have no affect on any invocation but its first . * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public void initializePackageContents ( ) { } }
if ( isInitialized ) return ; isInitialized = true ; // Initialize package setName ( eNAME ) ; setNsPrefix ( eNS_PREFIX ) ; setNsURI ( eNS_URI ) ; // Obtain other dependent packages TypesPackage theTypesPackage = ( TypesPackage ) EPackage . Registry . INSTANCE . getEPackage ( TypesPackage . eNS_URI ) ; // Create type parameters // Set bounds for type parameters // Add supertypes to classes xIfExpressionEClass . getESuperTypes ( ) . add ( this . getXExpression ( ) ) ; xSwitchExpressionEClass . getESuperTypes ( ) . add ( this . getXExpression ( ) ) ; xBlockExpressionEClass . getESuperTypes ( ) . add ( this . getXExpression ( ) ) ; xVariableDeclarationEClass . getESuperTypes ( ) . add ( this . getXExpression ( ) ) ; xVariableDeclarationEClass . getESuperTypes ( ) . add ( theTypesPackage . getJvmIdentifiableElement ( ) ) ; xAbstractFeatureCallEClass . getESuperTypes ( ) . add ( this . getXExpression ( ) ) ; xMemberFeatureCallEClass . getESuperTypes ( ) . add ( this . getXAbstractFeatureCall ( ) ) ; xFeatureCallEClass . getESuperTypes ( ) . add ( this . getXAbstractFeatureCall ( ) ) ; xConstructorCallEClass . getESuperTypes ( ) . add ( this . getXExpression ( ) ) ; xBooleanLiteralEClass . getESuperTypes ( ) . add ( this . getXExpression ( ) ) ; xNullLiteralEClass . getESuperTypes ( ) . add ( this . getXExpression ( ) ) ; xNumberLiteralEClass . getESuperTypes ( ) . add ( this . getXExpression ( ) ) ; xStringLiteralEClass . getESuperTypes ( ) . add ( this . getXExpression ( ) ) ; xCollectionLiteralEClass . getESuperTypes ( ) . add ( this . getXExpression ( ) ) ; xListLiteralEClass . getESuperTypes ( ) . add ( this . getXCollectionLiteral ( ) ) ; xSetLiteralEClass . getESuperTypes ( ) . add ( this . getXCollectionLiteral ( ) ) ; xClosureEClass . getESuperTypes ( ) . add ( this . getXExpression ( ) ) ; xCastedExpressionEClass . getESuperTypes ( ) . add ( this . getXExpression ( ) ) ; xBinaryOperationEClass . getESuperTypes ( ) . add ( this . getXAbstractFeatureCall ( ) ) ; xUnaryOperationEClass . getESuperTypes ( ) . add ( this . getXAbstractFeatureCall ( ) ) ; xPostfixOperationEClass . getESuperTypes ( ) . add ( this . getXAbstractFeatureCall ( ) ) ; xForLoopExpressionEClass . getESuperTypes ( ) . add ( this . getXExpression ( ) ) ; xBasicForLoopExpressionEClass . getESuperTypes ( ) . add ( this . getXExpression ( ) ) ; xAbstractWhileExpressionEClass . getESuperTypes ( ) . add ( this . getXExpression ( ) ) ; xDoWhileExpressionEClass . getESuperTypes ( ) . add ( this . getXAbstractWhileExpression ( ) ) ; xWhileExpressionEClass . getESuperTypes ( ) . add ( this . getXAbstractWhileExpression ( ) ) ; xTypeLiteralEClass . getESuperTypes ( ) . add ( this . getXExpression ( ) ) ; xInstanceOfExpressionEClass . getESuperTypes ( ) . add ( this . getXExpression ( ) ) ; xThrowExpressionEClass . getESuperTypes ( ) . add ( this . getXExpression ( ) ) ; xTryCatchFinallyExpressionEClass . getESuperTypes ( ) . add ( this . getXExpression ( ) ) ; xAssignmentEClass . getESuperTypes ( ) . add ( this . getXAbstractFeatureCall ( ) ) ; xReturnExpressionEClass . getESuperTypes ( ) . add ( this . getXExpression ( ) ) ; xSynchronizedExpressionEClass . getESuperTypes ( ) . add ( this . getXExpression ( ) ) ; // Initialize classes and features ; add operations and parameters initEClass ( xExpressionEClass , XExpression . class , "XExpression" , IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEClass ( xIfExpressionEClass , XIfExpression . class , "XIfExpression" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEReference ( getXIfExpression_If ( ) , this . getXExpression ( ) , null , "if" , null , 0 , 1 , XIfExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXIfExpression_Then ( ) , this . getXExpression ( ) , null , "then" , null , 0 , 1 , XIfExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXIfExpression_Else ( ) , this . getXExpression ( ) , null , "else" , null , 0 , 1 , XIfExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEAttribute ( getXIfExpression_ConditionalExpression ( ) , ecorePackage . getEBoolean ( ) , "conditionalExpression" , null , 0 , 1 , XIfExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEClass ( xSwitchExpressionEClass , XSwitchExpression . class , "XSwitchExpression" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEReference ( getXSwitchExpression_Switch ( ) , this . getXExpression ( ) , null , "switch" , null , 0 , 1 , XSwitchExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXSwitchExpression_Cases ( ) , this . getXCasePart ( ) , null , "cases" , null , 0 , - 1 , XSwitchExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXSwitchExpression_Default ( ) , this . getXExpression ( ) , null , "default" , null , 0 , 1 , XSwitchExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXSwitchExpression_DeclaredParam ( ) , theTypesPackage . getJvmFormalParameter ( ) , null , "declaredParam" , null , 0 , 1 , XSwitchExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEClass ( xCasePartEClass , XCasePart . class , "XCasePart" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEReference ( getXCasePart_Case ( ) , this . getXExpression ( ) , null , "case" , null , 0 , 1 , XCasePart . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXCasePart_Then ( ) , this . getXExpression ( ) , null , "then" , null , 0 , 1 , XCasePart . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXCasePart_TypeGuard ( ) , theTypesPackage . getJvmTypeReference ( ) , null , "typeGuard" , null , 0 , 1 , XCasePart . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEAttribute ( getXCasePart_FallThrough ( ) , ecorePackage . getEBoolean ( ) , "fallThrough" , null , 0 , 1 , XCasePart . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEClass ( xBlockExpressionEClass , XBlockExpression . class , "XBlockExpression" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEReference ( getXBlockExpression_Expressions ( ) , this . getXExpression ( ) , null , "expressions" , null , 0 , - 1 , XBlockExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEClass ( xVariableDeclarationEClass , XVariableDeclaration . class , "XVariableDeclaration" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEReference ( getXVariableDeclaration_Type ( ) , theTypesPackage . getJvmTypeReference ( ) , null , "type" , null , 0 , 1 , XVariableDeclaration . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEAttribute ( getXVariableDeclaration_Name ( ) , ecorePackage . getEString ( ) , "name" , null , 0 , 1 , XVariableDeclaration . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXVariableDeclaration_Right ( ) , this . getXExpression ( ) , null , "right" , null , 0 , 1 , XVariableDeclaration . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEAttribute ( getXVariableDeclaration_Writeable ( ) , ecorePackage . getEBoolean ( ) , "writeable" , null , 0 , 1 , XVariableDeclaration . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEClass ( xAbstractFeatureCallEClass , XAbstractFeatureCall . class , "XAbstractFeatureCall" , IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEReference ( getXAbstractFeatureCall_Feature ( ) , theTypesPackage . getJvmIdentifiableElement ( ) , null , "feature" , null , 0 , 1 , XAbstractFeatureCall . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_COMPOSITE , IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXAbstractFeatureCall_TypeArguments ( ) , theTypesPackage . getJvmTypeReference ( ) , null , "typeArguments" , null , 0 , - 1 , XAbstractFeatureCall . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXAbstractFeatureCall_ImplicitReceiver ( ) , this . getXExpression ( ) , null , "implicitReceiver" , null , 0 , 1 , XAbstractFeatureCall . class , IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , IS_DERIVED , IS_ORDERED ) ; initEAttribute ( getXAbstractFeatureCall_InvalidFeatureIssueCode ( ) , ecorePackage . getEString ( ) , "invalidFeatureIssueCode" , null , 0 , 1 , XAbstractFeatureCall . class , IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEAttribute ( getXAbstractFeatureCall_ValidFeature ( ) , ecorePackage . getEBoolean ( ) , "validFeature" , null , 0 , 1 , XAbstractFeatureCall . class , IS_TRANSIENT , ! IS_VOLATILE , ! IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , IS_UNIQUE , IS_DERIVED , IS_ORDERED ) ; initEReference ( getXAbstractFeatureCall_ImplicitFirstArgument ( ) , this . getXExpression ( ) , null , "implicitFirstArgument" , null , 0 , 1 , XAbstractFeatureCall . class , IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , IS_DERIVED , IS_ORDERED ) ; addEOperation ( xAbstractFeatureCallEClass , ecorePackage . getEString ( ) , "getConcreteSyntaxFeatureName" , 1 , 1 , IS_UNIQUE , IS_ORDERED ) ; addEOperation ( xAbstractFeatureCallEClass , this . getXExpression ( ) , "getExplicitArguments" , 0 , - 1 , IS_UNIQUE , IS_ORDERED ) ; addEOperation ( xAbstractFeatureCallEClass , ecorePackage . getEBoolean ( ) , "isExplicitOperationCallOrBuilderSyntax" , 0 , 1 , IS_UNIQUE , IS_ORDERED ) ; addEOperation ( xAbstractFeatureCallEClass , this . getXExpression ( ) , "getActualReceiver" , 0 , 1 , IS_UNIQUE , IS_ORDERED ) ; addEOperation ( xAbstractFeatureCallEClass , this . getXExpression ( ) , "getActualArguments" , 0 , - 1 , IS_UNIQUE , IS_ORDERED ) ; addEOperation ( xAbstractFeatureCallEClass , ecorePackage . getEBoolean ( ) , "isStatic" , 0 , 1 , IS_UNIQUE , IS_ORDERED ) ; addEOperation ( xAbstractFeatureCallEClass , ecorePackage . getEBoolean ( ) , "isExtension" , 0 , 1 , IS_UNIQUE , IS_ORDERED ) ; addEOperation ( xAbstractFeatureCallEClass , ecorePackage . getEBoolean ( ) , "isPackageFragment" , 0 , 1 , IS_UNIQUE , IS_ORDERED ) ; addEOperation ( xAbstractFeatureCallEClass , ecorePackage . getEBoolean ( ) , "isTypeLiteral" , 0 , 1 , IS_UNIQUE , IS_ORDERED ) ; addEOperation ( xAbstractFeatureCallEClass , ecorePackage . getEBoolean ( ) , "isOperation" , 0 , 1 , IS_UNIQUE , IS_ORDERED ) ; initEClass ( xMemberFeatureCallEClass , XMemberFeatureCall . class , "XMemberFeatureCall" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEReference ( getXMemberFeatureCall_MemberCallTarget ( ) , this . getXExpression ( ) , null , "memberCallTarget" , null , 0 , 1 , XMemberFeatureCall . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXMemberFeatureCall_MemberCallArguments ( ) , this . getXExpression ( ) , null , "memberCallArguments" , null , 0 , - 1 , XMemberFeatureCall . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEAttribute ( getXMemberFeatureCall_ExplicitOperationCall ( ) , ecorePackage . getEBoolean ( ) , "explicitOperationCall" , null , 0 , 1 , XMemberFeatureCall . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEAttribute ( getXMemberFeatureCall_ExplicitStatic ( ) , ecorePackage . getEBoolean ( ) , "explicitStatic" , null , 0 , 1 , XMemberFeatureCall . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEAttribute ( getXMemberFeatureCall_NullSafe ( ) , ecorePackage . getEBoolean ( ) , "nullSafe" , null , 0 , 1 , XMemberFeatureCall . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEAttribute ( getXMemberFeatureCall_TypeLiteral ( ) , ecorePackage . getEBoolean ( ) , "typeLiteral" , null , 0 , 1 , XMemberFeatureCall . class , IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , IS_UNIQUE , IS_DERIVED , IS_ORDERED ) ; initEAttribute ( getXMemberFeatureCall_StaticWithDeclaringType ( ) , ecorePackage . getEBoolean ( ) , "staticWithDeclaringType" , null , 0 , 1 , XMemberFeatureCall . class , IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , IS_UNIQUE , IS_DERIVED , IS_ORDERED ) ; initEAttribute ( getXMemberFeatureCall_PackageFragment ( ) , ecorePackage . getEBoolean ( ) , "packageFragment" , null , 0 , 1 , XMemberFeatureCall . class , IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , IS_UNIQUE , IS_DERIVED , IS_ORDERED ) ; initEClass ( xFeatureCallEClass , XFeatureCall . class , "XFeatureCall" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEReference ( getXFeatureCall_FeatureCallArguments ( ) , this . getXExpression ( ) , null , "featureCallArguments" , null , 0 , - 1 , XFeatureCall . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEAttribute ( getXFeatureCall_ExplicitOperationCall ( ) , ecorePackage . getEBoolean ( ) , "explicitOperationCall" , null , 0 , 1 , XFeatureCall . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEAttribute ( getXFeatureCall_TypeLiteral ( ) , ecorePackage . getEBoolean ( ) , "typeLiteral" , null , 0 , 1 , XFeatureCall . class , IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , IS_UNIQUE , IS_DERIVED , IS_ORDERED ) ; initEAttribute ( getXFeatureCall_PackageFragment ( ) , ecorePackage . getEBoolean ( ) , "packageFragment" , null , 0 , 1 , XFeatureCall . class , IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , IS_UNIQUE , IS_DERIVED , IS_ORDERED ) ; initEClass ( xConstructorCallEClass , XConstructorCall . class , "XConstructorCall" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEReference ( getXConstructorCall_Constructor ( ) , theTypesPackage . getJvmConstructor ( ) , null , "constructor" , null , 0 , 1 , XConstructorCall . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_COMPOSITE , IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXConstructorCall_Arguments ( ) , this . getXExpression ( ) , null , "arguments" , null , 0 , - 1 , XConstructorCall . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXConstructorCall_TypeArguments ( ) , theTypesPackage . getJvmTypeReference ( ) , null , "typeArguments" , null , 0 , - 1 , XConstructorCall . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEAttribute ( getXConstructorCall_InvalidFeatureIssueCode ( ) , ecorePackage . getEString ( ) , "invalidFeatureIssueCode" , null , 0 , 1 , XConstructorCall . class , IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEAttribute ( getXConstructorCall_ValidFeature ( ) , ecorePackage . getEBoolean ( ) , "validFeature" , null , 0 , 1 , XConstructorCall . class , IS_TRANSIENT , ! IS_VOLATILE , ! IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , IS_UNIQUE , IS_DERIVED , IS_ORDERED ) ; initEAttribute ( getXConstructorCall_ExplicitConstructorCall ( ) , ecorePackage . getEBoolean ( ) , "explicitConstructorCall" , null , 0 , 1 , XConstructorCall . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEAttribute ( getXConstructorCall_AnonymousClassConstructorCall ( ) , ecorePackage . getEBoolean ( ) , "anonymousClassConstructorCall" , null , 0 , 1 , XConstructorCall . class , IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEClass ( xBooleanLiteralEClass , XBooleanLiteral . class , "XBooleanLiteral" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEAttribute ( getXBooleanLiteral_IsTrue ( ) , ecorePackage . getEBoolean ( ) , "isTrue" , null , 0 , 1 , XBooleanLiteral . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEClass ( xNullLiteralEClass , XNullLiteral . class , "XNullLiteral" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEClass ( xNumberLiteralEClass , XNumberLiteral . class , "XNumberLiteral" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEAttribute ( getXNumberLiteral_Value ( ) , ecorePackage . getEString ( ) , "value" , null , 0 , 1 , XNumberLiteral . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEClass ( xStringLiteralEClass , XStringLiteral . class , "XStringLiteral" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEAttribute ( getXStringLiteral_Value ( ) , ecorePackage . getEString ( ) , "value" , null , 0 , 1 , XStringLiteral . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEClass ( xCollectionLiteralEClass , XCollectionLiteral . class , "XCollectionLiteral" , IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEReference ( getXCollectionLiteral_Elements ( ) , this . getXExpression ( ) , null , "elements" , null , 0 , - 1 , XCollectionLiteral . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEClass ( xListLiteralEClass , XListLiteral . class , "XListLiteral" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEClass ( xSetLiteralEClass , XSetLiteral . class , "XSetLiteral" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEClass ( xClosureEClass , XClosure . class , "XClosure" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEReference ( getXClosure_DeclaredFormalParameters ( ) , theTypesPackage . getJvmFormalParameter ( ) , null , "declaredFormalParameters" , null , 0 , - 1 , XClosure . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXClosure_Expression ( ) , this . getXExpression ( ) , null , "expression" , null , 0 , 1 , XClosure . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEAttribute ( getXClosure_ExplicitSyntax ( ) , ecorePackage . getEBoolean ( ) , "explicitSyntax" , null , 0 , 1 , XClosure . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXClosure_ImplicitFormalParameters ( ) , theTypesPackage . getJvmFormalParameter ( ) , null , "implicitFormalParameters" , null , 0 , - 1 , XClosure . class , IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , IS_DERIVED , IS_ORDERED ) ; addEOperation ( xClosureEClass , theTypesPackage . getJvmFormalParameter ( ) , "getFormalParameters" , 0 , - 1 , IS_UNIQUE , IS_ORDERED ) ; initEClass ( xCastedExpressionEClass , XCastedExpression . class , "XCastedExpression" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEReference ( getXCastedExpression_Type ( ) , theTypesPackage . getJvmTypeReference ( ) , null , "type" , null , 0 , 1 , XCastedExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXCastedExpression_Target ( ) , this . getXExpression ( ) , null , "target" , null , 0 , 1 , XCastedExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEClass ( xBinaryOperationEClass , XBinaryOperation . class , "XBinaryOperation" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEReference ( getXBinaryOperation_LeftOperand ( ) , this . getXExpression ( ) , null , "leftOperand" , null , 0 , 1 , XBinaryOperation . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXBinaryOperation_RightOperand ( ) , this . getXExpression ( ) , null , "rightOperand" , null , 0 , 1 , XBinaryOperation . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEAttribute ( getXBinaryOperation_ReassignFirstArgument ( ) , ecorePackage . getEBoolean ( ) , "reassignFirstArgument" , null , 0 , 1 , XBinaryOperation . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEClass ( xUnaryOperationEClass , XUnaryOperation . class , "XUnaryOperation" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEReference ( getXUnaryOperation_Operand ( ) , this . getXExpression ( ) , null , "operand" , null , 0 , 1 , XUnaryOperation . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEClass ( xPostfixOperationEClass , XPostfixOperation . class , "XPostfixOperation" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEReference ( getXPostfixOperation_Operand ( ) , this . getXExpression ( ) , null , "operand" , null , 0 , 1 , XPostfixOperation . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEClass ( xForLoopExpressionEClass , XForLoopExpression . class , "XForLoopExpression" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEReference ( getXForLoopExpression_ForExpression ( ) , this . getXExpression ( ) , null , "forExpression" , null , 0 , 1 , XForLoopExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXForLoopExpression_EachExpression ( ) , this . getXExpression ( ) , null , "eachExpression" , null , 0 , 1 , XForLoopExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXForLoopExpression_DeclaredParam ( ) , theTypesPackage . getJvmFormalParameter ( ) , null , "declaredParam" , null , 0 , 1 , XForLoopExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEClass ( xBasicForLoopExpressionEClass , XBasicForLoopExpression . class , "XBasicForLoopExpression" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEReference ( getXBasicForLoopExpression_Expression ( ) , this . getXExpression ( ) , null , "expression" , null , 0 , 1 , XBasicForLoopExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXBasicForLoopExpression_EachExpression ( ) , this . getXExpression ( ) , null , "eachExpression" , null , 0 , 1 , XBasicForLoopExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXBasicForLoopExpression_InitExpressions ( ) , this . getXExpression ( ) , null , "initExpressions" , null , 0 , - 1 , XBasicForLoopExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXBasicForLoopExpression_UpdateExpressions ( ) , this . getXExpression ( ) , null , "updateExpressions" , null , 0 , - 1 , XBasicForLoopExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEClass ( xAbstractWhileExpressionEClass , XAbstractWhileExpression . class , "XAbstractWhileExpression" , IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEReference ( getXAbstractWhileExpression_Predicate ( ) , this . getXExpression ( ) , null , "predicate" , null , 0 , 1 , XAbstractWhileExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXAbstractWhileExpression_Body ( ) , this . getXExpression ( ) , null , "body" , null , 0 , 1 , XAbstractWhileExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEClass ( xDoWhileExpressionEClass , XDoWhileExpression . class , "XDoWhileExpression" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEClass ( xWhileExpressionEClass , XWhileExpression . class , "XWhileExpression" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEClass ( xTypeLiteralEClass , XTypeLiteral . class , "XTypeLiteral" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEReference ( getXTypeLiteral_Type ( ) , theTypesPackage . getJvmType ( ) , null , "type" , null , 1 , 1 , XTypeLiteral . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_COMPOSITE , IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEAttribute ( getXTypeLiteral_ArrayDimensions ( ) , ecorePackage . getEString ( ) , "arrayDimensions" , null , 0 , - 1 , XTypeLiteral . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , ! IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEClass ( xInstanceOfExpressionEClass , XInstanceOfExpression . class , "XInstanceOfExpression" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEReference ( getXInstanceOfExpression_Type ( ) , theTypesPackage . getJvmTypeReference ( ) , null , "type" , null , 1 , 1 , XInstanceOfExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXInstanceOfExpression_Expression ( ) , this . getXExpression ( ) , null , "expression" , null , 1 , 1 , XInstanceOfExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEClass ( xThrowExpressionEClass , XThrowExpression . class , "XThrowExpression" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEReference ( getXThrowExpression_Expression ( ) , this . getXExpression ( ) , null , "expression" , null , 0 , 1 , XThrowExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEClass ( xTryCatchFinallyExpressionEClass , XTryCatchFinallyExpression . class , "XTryCatchFinallyExpression" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEReference ( getXTryCatchFinallyExpression_Expression ( ) , this . getXExpression ( ) , null , "expression" , null , 0 , 1 , XTryCatchFinallyExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXTryCatchFinallyExpression_FinallyExpression ( ) , this . getXExpression ( ) , null , "finallyExpression" , null , 0 , 1 , XTryCatchFinallyExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXTryCatchFinallyExpression_CatchClauses ( ) , this . getXCatchClause ( ) , null , "catchClauses" , null , 0 , - 1 , XTryCatchFinallyExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXTryCatchFinallyExpression_Resources ( ) , this . getXVariableDeclaration ( ) , null , "resources" , null , 0 , - 1 , XTryCatchFinallyExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEClass ( xCatchClauseEClass , XCatchClause . class , "XCatchClause" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEReference ( getXCatchClause_Expression ( ) , this . getXExpression ( ) , null , "expression" , null , 0 , 1 , XCatchClause . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXCatchClause_DeclaredParam ( ) , theTypesPackage . getJvmFormalParameter ( ) , null , "declaredParam" , null , 0 , 1 , XCatchClause . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEClass ( xAssignmentEClass , XAssignment . class , "XAssignment" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEReference ( getXAssignment_Assignable ( ) , this . getXExpression ( ) , null , "assignable" , null , 0 , 1 , XAssignment . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXAssignment_Value ( ) , this . getXExpression ( ) , null , "value" , null , 0 , 1 , XAssignment . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEAttribute ( getXAssignment_ExplicitStatic ( ) , ecorePackage . getEBoolean ( ) , "explicitStatic" , null , 0 , 1 , XAssignment . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEAttribute ( getXAssignment_StaticWithDeclaringType ( ) , ecorePackage . getEBoolean ( ) , "staticWithDeclaringType" , null , 0 , 1 , XAssignment . class , IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , ! IS_UNSETTABLE , ! IS_ID , IS_UNIQUE , IS_DERIVED , IS_ORDERED ) ; initEClass ( xReturnExpressionEClass , XReturnExpression . class , "XReturnExpression" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEReference ( getXReturnExpression_Expression ( ) , this . getXExpression ( ) , null , "expression" , null , 0 , 1 , XReturnExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEClass ( xSynchronizedExpressionEClass , XSynchronizedExpression . class , "XSynchronizedExpression" , ! IS_ABSTRACT , ! IS_INTERFACE , IS_GENERATED_INSTANCE_CLASS ) ; initEReference ( getXSynchronizedExpression_Param ( ) , this . getXExpression ( ) , null , "param" , null , 0 , 1 , XSynchronizedExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; initEReference ( getXSynchronizedExpression_Expression ( ) , this . getXExpression ( ) , null , "expression" , null , 0 , 1 , XSynchronizedExpression . class , ! IS_TRANSIENT , ! IS_VOLATILE , IS_CHANGEABLE , IS_COMPOSITE , ! IS_RESOLVE_PROXIES , ! IS_UNSETTABLE , IS_UNIQUE , ! IS_DERIVED , IS_ORDERED ) ; // Create resource createResource ( eNS_URI ) ;
public class Attachment { /** * Equivalent to { @ link com . tngtech . jgiven . attachment . Attachment # Attachment ( String , MediaType ) } * @ throws java . lang . IllegalArgumentException if mediaType is binary */ public static Attachment fromText ( String content , MediaType mediaType ) { } }
if ( mediaType . isBinary ( ) ) { throw new IllegalArgumentException ( "MediaType must not be binary" ) ; } return new Attachment ( content , mediaType ) ;
public class SignConfig { /** * Creates a keytool request to do a key store generation operation . * @ param keystoreFile the location of the key store file to generate * @ return the keytool request */ public KeyToolGenerateKeyPairRequest createKeyGenRequest ( File keystoreFile ) { } }
KeyToolGenerateKeyPairRequest request = new KeyToolGenerateKeyPairRequest ( ) ; request . setAlias ( getAlias ( ) ) ; request . setDname ( getDname ( ) ) ; request . setKeyalg ( getKeyalg ( ) ) ; request . setKeypass ( getKeypass ( ) ) ; request . setKeysize ( getKeysize ( ) ) ; request . setKeystore ( getKeystore ( ) ) ; request . setSigalg ( getSigalg ( ) ) ; request . setStorepass ( getStorepass ( ) ) ; request . setStoretype ( getStoretype ( ) ) ; request . setValidity ( getValidity ( ) ) ; request . setVerbose ( isVerbose ( ) ) ; request . setWorkingDirectory ( workDirectory ) ; return request ;
public class DistanceToAtomDescriptor { /** * This method calculate the 3D distance between two atoms . * @ param atom The IAtom for which the DescriptorValue is requested * @ param container Parameter is the atom container . * @ return The number of bonds on the shortest path between two atoms */ @ Override public DescriptorValue calculate ( IAtom atom , IAtomContainer container ) { } }
double distanceToAtom ; IAtom focus = container . getAtom ( focusPosition ) ; if ( atom . getPoint3d ( ) == null || focus . getPoint3d ( ) == null ) { return new DescriptorValue ( getSpecification ( ) , getParameterNames ( ) , getParameters ( ) , new DoubleResult ( Double . NaN ) , getDescriptorNames ( ) , new CDKException ( "Target or focus atom must have 3D coordinates." ) ) ; } distanceToAtom = calculateDistanceBetweenTwoAtoms ( atom , focus ) ; return new DescriptorValue ( getSpecification ( ) , getParameterNames ( ) , getParameters ( ) , new DoubleResult ( distanceToAtom ) , getDescriptorNames ( ) ) ;
public class AmazonGuardDutyClient { /** * Lists the IPSets of the GuardDuty service specified by the detector ID . * @ param listIPSetsRequest * @ return Result of the ListIPSets operation returned by the service . * @ throws BadRequestException * 400 response * @ throws InternalServerErrorException * 500 response * @ sample AmazonGuardDuty . ListIPSets * @ see < a href = " http : / / docs . aws . amazon . com / goto / WebAPI / guardduty - 2017-11-28 / ListIPSets " target = " _ top " > AWS API * Documentation < / a > */ @ Override public ListIPSetsResult listIPSets ( ListIPSetsRequest request ) { } }
request = beforeClientExecution ( request ) ; return executeListIPSets ( request ) ;
public class ManagedObject { /** * ( non - Javadoc ) * @ see SimplifiedSerialization . readObject ( java . io . DataInputStream , ObjectManagerState ) */ protected void readObject ( java . io . DataInputStream dataInputStream , ObjectManagerState objectManagerState ) throws ObjectManagerException , java . io . IOException { } }
final String methodName = "readObject" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { dataInputStream , objectManagerState } ) ; try { byte version = dataInputStream . readByte ( ) ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isDebugEnabled ( ) ) trace . debug ( this , cclass , methodName , new Object [ ] { "version:2147" , new Byte ( version ) } ) ; } catch ( java . io . IOException exception ) { // No FFDC Code Needed . ObjectManager . ffdc . processException ( this , cclass , methodName , exception , "1:2151:1.34" ) ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . exit ( this , cclass , methodName , new Object [ ] { exception } ) ; throw new PermanentIOException ( this , exception ) ; } // catch ( java . io . IOException exception ) . state = stateReady ; // Initial state . previousState = - 1 ; // No previous state . if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . exit ( this , cclass , methodName ) ;
public class SecurityActions { /** * Does not perform { @ link PrivilegedAction } unless necessary . * @ param javaClass * @ param fieldName * @ return a field from the class * @ throws NoSuchMethodException */ static Field lookupField ( Class < ? > javaClass , String fieldName ) throws NoSuchFieldException { } }
if ( System . getSecurityManager ( ) != null ) { try { return AccessController . doPrivileged ( new FieldLookupAction ( javaClass , fieldName ) ) ; } catch ( PrivilegedActionException e ) { if ( e . getCause ( ) instanceof NoSuchFieldException ) { throw ( NoSuchFieldException ) e . getCause ( ) ; } throw new WeldException ( e . getCause ( ) ) ; } } else { return FieldLookupAction . lookupField ( javaClass , fieldName ) ; }
public class PutConferencePreferenceRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( PutConferencePreferenceRequest putConferencePreferenceRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( putConferencePreferenceRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( putConferencePreferenceRequest . getConferencePreference ( ) , CONFERENCEPREFERENCE_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; }
public class PrivacyListManager { /** * Returns the name of the effective privacy list . * The effective privacy list is the one that is currently enforced on the connection . It ' s either the active * privacy list , or , if the active privacy list is not set , the default privacy list . * @ return the name of the effective privacy list or null if there is none set . * @ throws NoResponseException * @ throws XMPPErrorException * @ throws NotConnectedException * @ throws InterruptedException * @ since 4.1 */ public String getEffectiveListName ( ) throws NoResponseException , XMPPErrorException , NotConnectedException , InterruptedException { } }
String activeListName = getActiveListName ( ) ; if ( activeListName != null ) { return activeListName ; } return getDefaultListName ( ) ;
public class GaliosFieldTableOps { /** * Adds two polynomials together . output = polyA + polyB * < p > Coefficients for largest powers are first , e . g . 2 * x * * 3 + 8 * x * * 2 + 1 = [ 2,8,0,1 ] < / p > * @ param polyA ( Input ) First polynomial * @ param polyB ( Input ) Second polynomial * @ param output ( Output ) Results of addition */ public void polyAdd ( GrowQueue_I8 polyA , GrowQueue_I8 polyB , GrowQueue_I8 output ) { } }
output . resize ( Math . max ( polyA . size , polyB . size ) ) ; // compute offset that would align the smaller polynomial with the larger polynomial int offsetA = Math . max ( 0 , polyB . size - polyA . size ) ; int offsetB = Math . max ( 0 , polyA . size - polyB . size ) ; int N = output . size ; for ( int i = 0 ; i < offsetB ; i ++ ) { output . data [ i ] = polyA . data [ i ] ; } for ( int i = 0 ; i < offsetA ; i ++ ) { output . data [ i ] = polyB . data [ i ] ; } for ( int i = Math . max ( offsetA , offsetB ) ; i < N ; i ++ ) { output . data [ i ] = ( byte ) ( ( polyA . data [ i - offsetA ] & 0xFF ) ^ ( polyB . data [ i - offsetB ] & 0xFF ) ) ; }
public class MessageBuilder { /** * Creates a FILE _ RECEIVED message . * @ param fullPath the path of the received file . * @ return a protobuf message . */ public static Message buildFileReceived ( String fullPath ) { } }
ZabMessage . FileReceived received = ZabMessage . FileReceived . newBuilder ( ) . setFullPath ( fullPath ) . build ( ) ; return Message . newBuilder ( ) . setType ( MessageType . FILE_RECEIVED ) . setFileReceived ( received ) . build ( ) ;
public class TextOnlyLayout { /** * Ends the content area of a page . */ @ Override public void endContent ( WebPage page , ChainWriter out , WebSiteRequest req , HttpServletResponse resp , int [ ] contentColumnSpans ) throws IOException , SQLException { } }
int totalColumns = 0 ; for ( int c = 0 ; c < contentColumnSpans . length ; c ++ ) { if ( c > 0 ) totalColumns += 1 ; totalColumns += contentColumnSpans [ c ] ; } out . print ( " <tr><td" ) ; if ( totalColumns != 1 ) out . print ( " colspan='" ) . print ( totalColumns ) . print ( '\'' ) ; out . print ( "><hr /></td></tr>\n" ) ; String copyright = page . getCopyright ( req , resp , page ) ; if ( copyright != null && copyright . length ( ) > 0 ) { out . print ( " <tr><td" ) ; if ( totalColumns != 1 ) out . print ( " colspan='" ) . print ( totalColumns ) . print ( '\'' ) ; out . print ( " align='center'><span style='font-size:x-small;'>" ) . print ( copyright ) . print ( "</span></td></tr>\n" ) ; } out . print ( "</table>\n" ) ;
public class RNAUtils { /** * method to check if the MonomerNotationUnitRNA contains modification * @ param monomerNotation * MonomerNotationUnitRNA * @ return true , if the MonomerNotationUnitRNA contains modification , false * otherwise */ private static boolean hasModification ( MonomerNotationUnitRNA monomerNotation ) { } }
if ( monomerNotation . getUnit ( ) . contains ( "[" ) || monomerNotation . getUnit ( ) . contains ( "(X)" ) || monomerNotation . getUnit ( ) . endsWith ( ")" ) ) { return true ; } return false ;
public class ComQuery { /** * Statement . executeBatch ( ) rewritten multiple ( concatenate with " ; " ) according to * max _ allowed _ packet ) * @ param writer outputstream * @ param firstQuery first query * @ param queries queries * @ param currentIndex currentIndex * @ return current index * @ throws IOException if connection error occur */ public static int sendBatchAggregateSemiColon ( final PacketOutputStream writer , String firstQuery , List < String > queries , int currentIndex ) throws IOException { } }
writer . startPacket ( 0 ) ; writer . write ( Packet . COM_QUERY ) ; // index is already set to 1 for first one writer . write ( firstQuery . getBytes ( "UTF-8" ) ) ; int index = currentIndex ; // add query with " ; " while ( index < queries . size ( ) ) { byte [ ] sqlByte = queries . get ( index ) . getBytes ( "UTF-8" ) ; if ( ! writer . checkRemainingSize ( sqlByte . length + 1 ) ) { break ; } writer . write ( ';' ) ; writer . write ( sqlByte ) ; index ++ ; } writer . flush ( ) ; return index ;
public class CoreAsync { /** * Bind the given collection of stages to the target completable , which if cancelled , or failed * will do the corresponding to their collection of stages . * @ param target The completable to cancel , and fail on . * @ param stages The stages to cancel , when { @ code target } is cancelled . */ void bindSignals ( final Stage < ? > target , final Collection < ? extends Stage < ? > > stages ) { } }
target . whenCancelled ( ( ) -> { for ( final Stage < ? > f : stages ) { f . cancel ( ) ; } } ) ;
public class HttpCookie { /** * Parse header string to cookie object . * @ param header header string ; should contain only one NAME = VALUE pair * @ return an HttpCookie being extracted * @ throws IllegalArgumentException if header string violates the cookie * specification */ private static HttpCookie parseInternal ( String header , boolean retainHeader ) { } }
HttpCookie cookie = null ; String namevaluePair = null ; StringTokenizer tokenizer = new StringTokenizer ( header , ";" ) ; // there should always have at least on name - value pair ; // it ' s cookie ' s name try { namevaluePair = tokenizer . nextToken ( ) ; int index = namevaluePair . indexOf ( '=' ) ; if ( index != - 1 ) { String name = namevaluePair . substring ( 0 , index ) . trim ( ) ; String value = namevaluePair . substring ( index + 1 ) . trim ( ) ; if ( retainHeader ) cookie = new HttpCookie ( name , stripOffSurroundingQuote ( value ) , header ) ; else cookie = new HttpCookie ( name , stripOffSurroundingQuote ( value ) ) ; } else { // no " = " in name - value pair ; it ' s an error throw new IllegalArgumentException ( "Invalid cookie name-value pair" ) ; } } catch ( NoSuchElementException ignored ) { throw new IllegalArgumentException ( "Empty cookie header string" ) ; } // remaining name - value pairs are cookie ' s attributes while ( tokenizer . hasMoreTokens ( ) ) { namevaluePair = tokenizer . nextToken ( ) ; int index = namevaluePair . indexOf ( '=' ) ; String name , value ; if ( index != - 1 ) { name = namevaluePair . substring ( 0 , index ) . trim ( ) ; value = namevaluePair . substring ( index + 1 ) . trim ( ) ; } else { name = namevaluePair . trim ( ) ; value = null ; } // assign attribute to cookie assignAttribute ( cookie , name , value ) ; } return cookie ;
public class AmqpTransporter { /** * - - - CONNECT - - - */ @ Override public void connect ( ) { } }
try { // Create client connection disconnect ( ) ; String uri = url ; if ( uri . indexOf ( ':' ) == - 1 ) { uri = uri + ":5672" ; } if ( url . indexOf ( "://" ) == - 1 ) { if ( sslContextFactory != null ) { uri = "amqps://" + uri ; } else { uri = "amqp://" + uri ; } } factory . setHeartbeatExecutor ( scheduler ) ; factory . setSharedExecutor ( executor ) ; factory . setSslContextFactory ( sslContextFactory ) ; factory . setAutomaticRecoveryEnabled ( false ) ; factory . setTopologyRecoveryEnabled ( false ) ; // NioParams params = new NioParams ( ) ; // params . setNioExecutor ( executor ) ; // factory . setNioParams ( params ) ; factory . setUri ( uri ) ; if ( username != null ) { factory . setUsername ( username ) ; } if ( password != null ) { factory . setPassword ( password ) ; } started . set ( true ) ; client = factory . newConnection ( ) ; channel = client . createChannel ( ) ; logger . info ( "AMQP pub-sub connection estabilished." ) ; connected ( ) ; } catch ( Exception cause ) { String msg = cause . getMessage ( ) ; if ( msg == null || msg . isEmpty ( ) ) { msg = "Unable to connect to AMQP server!" ; } else if ( ! msg . endsWith ( "!" ) && ! msg . endsWith ( "." ) ) { msg += "!" ; } logger . warn ( msg ) ; reconnect ( ) ; }
public class MBeanProvider { /** * Deregisters MBeans / MXBeans . */ public static void unpopulateMBeanServer ( ) { } }
if ( ! populated ) return ; synchronized ( lock ) { populated = false ; if ( storageManager != null && storageManager . getPublicName ( ) != null ) { logger . info ( "Unregistering the StorageManager MXBean" ) ; try { storageManager . deregister ( ) ; storageManager . awaitJobTermination ( 2 * 60 ) ; } catch ( Exception ex ) { logger . warn ( "Can't unregister StorageManager MXBean." , ex ) ; } } if ( serverMonitor != null && serverMonitor . getPublicName ( ) != null ) { logger . info ( "Unregistering the ServerMonitor MXBean" ) ; try { serverMonitor . deregister ( ) ; serverMonitor . shutdown ( ) ; } catch ( Exception ex ) { logger . warn ( "Can't unregister ServerMonitor MXBean." , ex ) ; } } storageManager = null ; serverMonitor = null ; }
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Boolean } { @ code > } */ @ XmlElementDecl ( namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/" , name = "includeAllowableActions" , scope = GetChildren . class ) public JAXBElement < Boolean > createGetChildrenIncludeAllowableActions ( Boolean value ) { } }
return new JAXBElement < Boolean > ( _GetObjectOfLatestVersionIncludeAllowableActions_QNAME , Boolean . class , GetChildren . class , value ) ;
public class EventServicesImpl { /** * Returns the activity instances by process name , activity logical ID , and master request ID . * @ param processName * @ param activityLogicalId * @ param masterRequestId * @ return the list of activity instances . If the process definition or the activity * with the given logical ID is not found , null * is returned ; if process definition is found but no process instances are found , * or no such activity instances are found , an empty list is returned . * @ throws ProcessException * @ throws DataAccessException */ public List < ActivityInstance > getActivityInstances ( String masterRequestId , String processName , String activityLogicalId ) throws ProcessException , DataAccessException { } }
TransactionWrapper transaction = null ; EngineDataAccessDB edao = new EngineDataAccessDB ( ) ; try { Process procdef = ProcessCache . getProcess ( processName , 0 ) ; if ( procdef == null ) return null ; Activity actdef = procdef . getActivityByLogicalId ( activityLogicalId ) ; if ( actdef == null ) return null ; transaction = edao . startTransaction ( ) ; List < ActivityInstance > actInstList = new ArrayList < ActivityInstance > ( ) ; List < ProcessInstance > procInstList = edao . getProcessInstancesByMasterRequestId ( masterRequestId , procdef . getId ( ) ) ; if ( procInstList . size ( ) == 0 ) return actInstList ; for ( ProcessInstance pi : procInstList ) { List < ActivityInstance > actInsts = edao . getActivityInstances ( actdef . getId ( ) , pi . getId ( ) , false , false ) ; for ( ActivityInstance ai : actInsts ) { actInstList . add ( ai ) ; } } return actInstList ; } catch ( SQLException e ) { throw new ProcessException ( 0 , "Failed to remove event waits" , e ) ; } finally { edao . stopTransaction ( transaction ) ; }
public class BaseTangramEngine { /** * Parse original data with type { @ link O } into model data with type { @ link BaseCell } * @ param parent the parent group to hold parsed object . * @ param data Original data . * @ return Parsed data . * @ since 3.0.0 */ public BaseCell parseSingleComponent ( @ Nullable Card parent , @ Nullable O data , @ Nullable Map < String , ComponentInfo > componentInfoMap ) { } }
return mDataParser . parseSingleComponent ( data , parent , this , componentInfoMap ) ;
public class CommerceCountryUtil { /** * Returns all the commerce countries where groupId = & # 63 ; and billingAllowed = & # 63 ; and active = & # 63 ; . * @ param groupId the group ID * @ param billingAllowed the billing allowed * @ param active the active * @ return the matching commerce countries */ public static List < CommerceCountry > findByG_B_A ( long groupId , boolean billingAllowed , boolean active ) { } }
return getPersistence ( ) . findByG_B_A ( groupId , billingAllowed , active ) ;
public class SourceHandler { /** * Gets multiple data elements from the underlying { @ link com . merakianalytics . datapipelines . sources . DataSource } , provides them to the appropriate * { @ link com . merakianalytics . datapipelines . SinkHandler } s , converts them and returns them * @ param query * a query specifying the details of what data should fulfill this request * @ param context * information about the context of the request such as what { @ link com . merakianalytics . datapipelines . DataPipeline } called this method * @ param streaming * whether to stream the results . If streaming is enabled , results from the { @ link com . merakianalytics . datapipelines . sources . DataSource } will be * converted and provided to the { @ link com . merakianalytics . datapipelines . sinks . DataSink } s one - by - one as they are requested from the * { @ link com . merakianalytics . datapipelines . iterators . CloseableIterator } instead of converting and storing them all at once . * @ return a { @ link com . merakianalytics . datapipelines . iterators . CloseableIterator } of the request type if the query had a result , or null */ public CloseableIterator < P > getMany ( final Map < String , Object > query , final PipelineContext context , final boolean streaming ) { } }
if ( ! streaming ) { final List < A > collector = new LinkedList < > ( ) ; try ( CloseableIterator < A > result = source . getMany ( acquiredType , query , context ) ) { if ( result == null ) { return null ; } while ( result . hasNext ( ) ) { collector . add ( result . next ( ) ) ; } } catch ( final Exception e ) { LOGGER . error ( "Error closing results iterator!" , e ) ; throw new RuntimeException ( e ) ; } for ( final SinkHandler < A , ? > sink : preTransform ) { sink . putMany ( collector , context ) ; } final List < P > transformed = new LinkedList < > ( ) ; for ( final A item : collector ) { transformed . add ( transform . transform ( item , context ) ) ; } for ( final SinkHandler < P , ? > sink : postTransform ) { sink . putMany ( transformed , context ) ; } return CloseableIterators . from ( transformed ) ; } else { final CloseableIterator < A > result = source . getMany ( acquiredType , query , context ) ; if ( result == null ) { return null ; } return new TransformingIterator ( result , context ) ; }
public class SweepLruEvictionStrategy { /** * Cancel the Scheduled Future object */ public void cancel ( ) { } }
// d583637 , F73234 synchronized ( ivCancelLock ) { // d601399 ivIsCanceled = true ; if ( ivScheduledFuture != null ) ivScheduledFuture . cancel ( false ) ; ivCache = null ; ivElements = null ; }
public class ManagedClustersInner { /** * Reset AAD Profile of a managed cluster . * Update the AAD Profile for a managed cluster . * @ param resourceGroupName The name of the resource group . * @ param resourceName The name of the managed cluster resource . * @ param parameters Parameters supplied to the Reset AAD Profile operation for a Managed Cluster . * @ param serviceCallback the async ServiceCallback to handle successful and failed responses . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ return the { @ link ServiceFuture } object */ public ServiceFuture < Void > beginResetAADProfileAsync ( String resourceGroupName , String resourceName , ManagedClusterAADProfile parameters , final ServiceCallback < Void > serviceCallback ) { } }
return ServiceFuture . fromResponse ( beginResetAADProfileWithServiceResponseAsync ( resourceGroupName , resourceName , parameters ) , serviceCallback ) ;
public class Solo { /** * Waits for a View matching the specified class . Default timeout is 20 seconds . * @ param viewClass the { @ link View } class to wait for * @ return { @ code true } if the { @ link View } is displayed and { @ code false } if it is not displayed before the timeout */ public < T extends View > boolean waitForView ( final Class < T > viewClass ) { } }
if ( config . commandLogging ) { Log . d ( config . commandLoggingTag , "waitForView(" + viewClass + ")" ) ; } return waiter . waitForView ( viewClass , 0 , Timeout . getLargeTimeout ( ) , true ) ;
public class Strman { /** * Inserts ' substr ' into the ' value ' at the ' index ' provided . * @ param value The input String * @ param substr The String to insert * @ param index The index to insert substr * @ return String with substr added */ public static String insert ( final String value , final String substr , final int index ) { } }
validate ( value , NULL_STRING_PREDICATE , NULL_STRING_MSG_SUPPLIER ) ; validate ( substr , NULL_STRING_PREDICATE , NULL_STRING_MSG_SUPPLIER ) ; if ( index > value . length ( ) ) { return value ; } return append ( value . substring ( 0 , index ) , substr , value . substring ( index ) ) ;
public class JDK14LoggerAdapter { /** * Log a message object at level FINEST . * @ param msg * - the message object to be logged */ public void trace ( String msg ) { } }
if ( logger . isLoggable ( Level . FINEST ) ) { log ( SELF , Level . FINEST , msg , null ) ; }
public class AAFCon { /** * Use this API when you have permission to have your call act as the end client ' s ID . * Your calls will get 403 errors if you do not have this permission . it is a special setup , rarely given . * @ param apiVersion * @ param req * @ return * @ throws CadiException */ public Rcli < CLIENT > clientAs ( String apiVersion , ServletRequest req ) throws CadiException { } }
Rcli < CLIENT > cl = client ( apiVersion ) ; return cl . forUser ( transferSS ( ( ( HttpServletRequest ) req ) . getUserPrincipal ( ) ) ) ;
public class AsyncClient { /** * Start the QPS Client . */ public void run ( ) throws Exception { } }
if ( config == null ) { return ; } SimpleRequest req = newRequest ( ) ; List < ManagedChannel > channels = new ArrayList < > ( config . channels ) ; for ( int i = 0 ; i < config . channels ; i ++ ) { channels . add ( config . newChannel ( ) ) ; } // Do a warmup first . It ' s the same as the actual benchmark , except that // we ignore the statistics . warmup ( req , channels ) ; long startTime = System . nanoTime ( ) ; long endTime = startTime + TimeUnit . SECONDS . toNanos ( config . duration ) ; List < Histogram > histograms = doBenchmark ( req , channels , endTime ) ; long elapsedTime = System . nanoTime ( ) - startTime ; Histogram merged = merge ( histograms ) ; printStats ( merged , elapsedTime ) ; if ( config . histogramFile != null ) { saveHistogram ( merged , config . histogramFile ) ; } shutdown ( channels ) ;
public class Match { /** * Creates a state used for actually matching a token . * @ since 2.3 */ public MatchState createState ( Synthesizer synthesizer , AnalyzedTokenReadings token ) { } }
MatchState state = new MatchState ( this , synthesizer ) ; state . setToken ( token ) ; return state ;
public class NormalDistributionTypeImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public void eSet ( int featureID , Object newValue ) { } }
switch ( featureID ) { case BpsimPackage . NORMAL_DISTRIBUTION_TYPE__MEAN : setMean ( ( Double ) newValue ) ; return ; case BpsimPackage . NORMAL_DISTRIBUTION_TYPE__STANDARD_DEVIATION : setStandardDeviation ( ( Double ) newValue ) ; return ; } super . eSet ( featureID , newValue ) ;
public class Allure { /** * Process TestCaseEvent . You can change current testCase context * using this method . * @ param event to process */ public void fire ( TestCaseEvent event ) { } }
TestCaseResult testCase = testCaseStorage . get ( ) ; event . process ( testCase ) ; notifier . fire ( event ) ;
public class MediaApi { /** * Transfer an interaction * Transfer the interaction to the specified agent . * @ param mediatype The media channel . ( required ) * @ param id The ID of the interaction . ( required ) * @ param transferData ( required ) * @ return ApiSuccessResponse * @ throws ApiException If fail to call the API , e . g . server error or cannot deserialize the response body */ public ApiSuccessResponse transferAgent ( String mediatype , String id , TransferData transferData ) throws ApiException { } }
ApiResponse < ApiSuccessResponse > resp = transferAgentWithHttpInfo ( mediatype , id , transferData ) ; return resp . getData ( ) ;
public class BetterRecyclerAdapter { /** * Check if we should show the empty view */ private void checkIfEmpty ( ) { } }
if ( emptyView != null ) { emptyView . setVisibility ( getItemCount ( ) > 0 ? View . GONE : View . VISIBLE ) ; }
public class JsUtils { /** * Use the method in the gquery class . * $ ( elem ) . cur ( prop , force ) ; */ @ Deprecated public static double cur ( Element elem , String prop , boolean force ) { } }
return GQuery . $ ( elem ) . cur ( prop , force ) ;
public class CommerceWarehouseLocalServiceUtil { /** * Deletes the commerce warehouse from the database . Also notifies the appropriate model listeners . * @ param commerceWarehouse the commerce warehouse * @ return the commerce warehouse that was removed */ public static com . liferay . commerce . model . CommerceWarehouse deleteCommerceWarehouse ( com . liferay . commerce . model . CommerceWarehouse commerceWarehouse ) { } }
return getService ( ) . deleteCommerceWarehouse ( commerceWarehouse ) ;
public class AppsImpl { /** * Imports an application to LUIS , the application ' s structure should be included in in the request body . * @ param luisApp A LUIS application structure . * @ param importMethodOptionalParameter the object representing the optional parameters to be set before calling this API * @ throws IllegalArgumentException thrown if parameters fail the validation * @ throws ErrorResponseException thrown if the request is rejected by server * @ throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @ return the UUID object if successful . */ public UUID importMethod ( LuisApp luisApp , ImportMethodAppsOptionalParameter importMethodOptionalParameter ) { } }
return importMethodWithServiceResponseAsync ( luisApp , importMethodOptionalParameter ) . toBlocking ( ) . single ( ) . body ( ) ;
public class IfcSurfaceTextureImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ SuppressWarnings ( "unchecked" ) @ Override public EList < IfcSurfaceStyleWithTextures > getUsedInStyles ( ) { } }
return ( EList < IfcSurfaceStyleWithTextures > ) eGet ( Ifc4Package . Literals . IFC_SURFACE_TEXTURE__USED_IN_STYLES , true ) ;
public class SoyValueConverter { /** * Creates a Soy dictionary from a Java string map . While this is O ( n ) in the map ' s shallow size , * the Java values are converted into Soy values lazily and only once . */ public SoyDict newDictFromMap ( Map < String , ? > javaStringMap ) { } }
// Create a dictionary backed by a map which has eagerly converted each value into a lazy // value provider . Specifically , the map iteration is done eagerly so that the lazy value // provider can cache its value . ImmutableMap . Builder < String , SoyValueProvider > builder = ImmutableMap . builder ( ) ; for ( Map . Entry < String , ? > entry : javaStringMap . entrySet ( ) ) { builder . put ( entry . getKey ( ) , convertLazy ( entry . getValue ( ) ) ) ; } return DictImpl . forProviderMap ( builder . build ( ) , // This Java map could represent a Soy legacy _ object _ map , a Soy map , or a Soy record . // We don ' t know which until one of the SoyMap , SoyLegacyObjectMap , or SoyRecord methods // is invoked on it . RuntimeMapTypeTracker . Type . UNKNOWN ) ;
public class UniverseApi { /** * Get factions Get a list of factions - - - This route expires daily at 11:05 * @ param acceptLanguage * Language to use in the response ( optional , default to en - us ) * @ param datasource * The server name you would like data from ( optional , default to * tranquility ) * @ param ifNoneMatch * ETag from a previous request . A 304 will be returned if this * matches the current ETag ( optional ) * @ param language * Language to use in the response , takes precedence over * Accept - Language ( optional , default to en - us ) * @ return ApiResponse & lt ; List & lt ; FactionsResponse & gt ; & gt ; * @ throws ApiException * If fail to call the API , e . g . server error or cannot * deserialize the response body */ public ApiResponse < List < FactionsResponse > > getUniverseFactionsWithHttpInfo ( String acceptLanguage , String datasource , String ifNoneMatch , String language ) throws ApiException { } }
com . squareup . okhttp . Call call = getUniverseFactionsValidateBeforeCall ( acceptLanguage , datasource , ifNoneMatch , language , null ) ; Type localVarReturnType = new TypeToken < List < FactionsResponse > > ( ) { } . getType ( ) ; return apiClient . execute ( call , localVarReturnType ) ;
public class CmsToolTipHandler { /** * Removes this tool - tip handler completely . This instance will not be reusable . < p > */ public void removeHandler ( ) { } }
clearShowing ( ) ; if ( m_overHandlerRegistration != null ) { m_overHandlerRegistration . removeHandler ( ) ; m_overHandlerRegistration = null ; } m_target = null ;
public class BioVerb { /** * getter for matchedText - gets * @ generated * @ return value of the feature */ public String getMatchedText ( ) { } }
if ( BioVerb_Type . featOkTst && ( ( BioVerb_Type ) jcasType ) . casFeat_matchedText == null ) jcasType . jcas . throwFeatMissing ( "matchedText" , "ch.epfl.bbp.uima.types.BioVerb" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( BioVerb_Type ) jcasType ) . casFeatCode_matchedText ) ;
public class ComponentFactoryDecorator { /** * { @ inheritDoc } */ @ Override public JComboBox createListValueModelComboBox ( ValueModel selectedItemValueModel , ValueModel selectableItemsListHolder , String renderedPropertyPath ) { } }
return this . getDecoratedComponentFactory ( ) . createListValueModelComboBox ( selectedItemValueModel , selectableItemsListHolder , renderedPropertyPath ) ;
public class AddCommunicationToCaseRequest { /** * The email addresses in the CC line of an email to be added to the support case . * @ return The email addresses in the CC line of an email to be added to the support case . */ public java . util . List < String > getCcEmailAddresses ( ) { } }
if ( ccEmailAddresses == null ) { ccEmailAddresses = new com . amazonaws . internal . SdkInternalList < String > ( ) ; } return ccEmailAddresses ;
public class ContainerBase { /** * { @ inheritDoc } * @ see org . jboss . shrinkwrap . api . Archive # shallowCopy ( Filter ) */ @ Override public Archive < T > shallowCopy ( Filter < ArchivePath > filter ) { } }
Validate . notNull ( filter , "Filter must be specified" ) ; // Get the actual class type and make a shallow copy of the the underlying archive , // using the same underlying configuration final Class < T > actualClass = this . getActualClass ( ) ; final Archive < ? > underlyingArchive = this . getArchive ( ) ; final Configuration existingConfig = ( ( Configurable ) underlyingArchive ) . getConfiguration ( ) ; final Domain domain = ShrinkWrap . createDomain ( existingConfig ) ; final ArchiveFactory factory = domain . getArchiveFactory ( ) ; final Archive < T > newArchive = factory . create ( actualClass , this . getName ( ) ) ; final Map < ArchivePath , Node > contents = underlyingArchive . getContent ( ) ; for ( final ArchivePath path : contents . keySet ( ) ) { Asset asset = contents . get ( path ) . getAsset ( ) ; if ( asset != null ) { if ( ! filter . include ( path ) ) { continue ; } newArchive . add ( asset , path ) ; } } return newArchive ;
public class CmsJspStandardContextBean { /** * Returns a lazy initialized Map which allows access to the dynamic function beans using the JSP EL . < p > * When given a key , the returned map will look up the corresponding dynamic function bean in the module configuration . < p > * @ return a lazy initialized Map which allows access to the dynamic function beans using the JSP EL */ public Map < String , CmsDynamicFunctionBeanWrapper > getFunction ( ) { } }
if ( m_function == null ) { Transformer transformer = new Transformer ( ) { @ Override public Object transform ( Object input ) { try { CmsDynamicFunctionBean dynamicFunction = readDynamicFunctionBean ( ( String ) input ) ; CmsDynamicFunctionBeanWrapper wrapper = new CmsDynamicFunctionBeanWrapper ( m_cms , dynamicFunction ) ; return wrapper ; } catch ( CmsException e ) { LOG . debug ( e . getLocalizedMessage ( ) , e ) ; return new CmsDynamicFunctionBeanWrapper ( m_cms , null ) ; } } } ; m_function = CmsCollectionsGenericWrapper . createLazyMap ( transformer ) ; } return m_function ;
public class CmsBeanTableBuilder { /** * Creates a default cell style generator which just returns the value of the styleName attribute in a Column annotation for cells in that column . < p > * @ return the default cell style generator */ public CellStyleGenerator getDefaultCellStyleGenerator ( ) { } }
return new CellStyleGenerator ( ) { private static final long serialVersionUID = 1L ; @ SuppressWarnings ( "synthetic-access" ) public String getStyle ( Table source , Object itemId , Object propertyId ) { for ( ColumnBean colBean : m_columns ) { if ( colBean . getProperty ( ) . getName ( ) . equals ( propertyId ) ) { return colBean . getInfo ( ) . styleName ( ) ; } } return "" ; } } ;
public class TsfileDatabaseMetadata { /** * recommend using getMetadataInJson ( ) instead of toString ( ) */ public String getMetadataInJson ( ) throws SQLException { } }
try { return getMetadataInJsonFunc ( ) ; } catch ( TException e ) { boolean flag = connection . reconnect ( ) ; this . client = connection . client ; if ( flag ) { try { return getMetadataInJsonFunc ( ) ; } catch ( TException e2 ) { throw new SQLException ( "Failed to fetch all metadata in json " + "after reconnecting. Please check the server status." ) ; } } else { throw new SQLException ( "Failed to reconnect to the server " + "when fetching all metadata in json. Please check the server status." ) ; } }
public class Sort { /** * internal method to sort the array with quick sort algorithm * @ param arr an array of Comparable Items * @ param left the left - most index of the subarray * @ param right the right - most index of the subarray */ private static < T extends Comparable < ? super T > > void quicksort ( T [ ] arr , int left , int right ) { } }
if ( left + CUTOFF <= right ) { // find the pivot T pivot = median ( arr , left , right ) ; // start partitioning int i = left , j = right - 1 ; for ( ; ; ) { while ( arr [ ++ i ] . compareTo ( pivot ) < 0 ) ; while ( arr [ -- j ] . compareTo ( pivot ) > 0 ) ; if ( i < j ) { swapReferences ( arr , i , j ) ; } else { break ; } } // swap the pivot reference back to the small collection . swapReferences ( arr , i , right - 1 ) ; quicksort ( arr , left , i - 1 ) ; // sort the small collection . quicksort ( arr , i + 1 , right ) ; // sort the large collection . } else { // if the total number is less than CUTOFF we use insertion sort instead . insertionSort ( arr , left , right ) ; }
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link TINReliefType } { @ code > } * @ param value * Java instance representing xml element ' s value . * @ return * the new instance of { @ link JAXBElement } { @ code < } { @ link TINReliefType } { @ code > } */ @ XmlElementDecl ( namespace = "http://www.opengis.net/citygml/relief/1.0" , name = "TINRelief" , substitutionHeadNamespace = "http://www.opengis.net/citygml/relief/1.0" , substitutionHeadName = "_ReliefComponent" ) public JAXBElement < TINReliefType > createTINRelief ( TINReliefType value ) { } }
return new JAXBElement < TINReliefType > ( _TINRelief_QNAME , TINReliefType . class , null , value ) ;
public class CheckpointCoordinator { /** * Try to complete the given pending checkpoint . * < p > Important : This method should only be called in the checkpoint lock scope . * @ param pendingCheckpoint to complete * @ throws CheckpointException if the completion failed */ private void completePendingCheckpoint ( PendingCheckpoint pendingCheckpoint ) throws CheckpointException { } }
final long checkpointId = pendingCheckpoint . getCheckpointId ( ) ; final CompletedCheckpoint completedCheckpoint ; // As a first step to complete the checkpoint , we register its state with the registry Map < OperatorID , OperatorState > operatorStates = pendingCheckpoint . getOperatorStates ( ) ; sharedStateRegistry . registerAll ( operatorStates . values ( ) ) ; try { try { completedCheckpoint = pendingCheckpoint . finalizeCheckpoint ( ) ; } catch ( Exception e1 ) { // abort the current pending checkpoint if we fails to finalize the pending checkpoint . if ( ! pendingCheckpoint . isDiscarded ( ) ) { pendingCheckpoint . abort ( CheckpointFailureReason . FINALIZE_CHECKPOINT_FAILURE , e1 ) ; } throw new CheckpointException ( "Could not finalize the pending checkpoint " + checkpointId + '.' , CheckpointFailureReason . FINALIZE_CHECKPOINT_FAILURE , e1 ) ; } // the pending checkpoint must be discarded after the finalization Preconditions . checkState ( pendingCheckpoint . isDiscarded ( ) && completedCheckpoint != null ) ; try { completedCheckpointStore . addCheckpoint ( completedCheckpoint ) ; } catch ( Exception exception ) { // we failed to store the completed checkpoint . Let ' s clean up executor . execute ( new Runnable ( ) { @ Override public void run ( ) { try { completedCheckpoint . discardOnFailedStoring ( ) ; } catch ( Throwable t ) { LOG . warn ( "Could not properly discard completed checkpoint {}." , completedCheckpoint . getCheckpointID ( ) , t ) ; } } } ) ; throw new CheckpointException ( "Could not complete the pending checkpoint " + checkpointId + '.' , CheckpointFailureReason . FINALIZE_CHECKPOINT_FAILURE , exception ) ; } } finally { pendingCheckpoints . remove ( checkpointId ) ; triggerQueuedRequests ( ) ; } rememberRecentCheckpointId ( checkpointId ) ; // drop those pending checkpoints that are at prior to the completed one dropSubsumedCheckpoints ( checkpointId ) ; // record the time when this was completed , to calculate // the ' min delay between checkpoints ' lastCheckpointCompletionNanos = System . nanoTime ( ) ; LOG . info ( "Completed checkpoint {} for job {} ({} bytes in {} ms)." , checkpointId , job , completedCheckpoint . getStateSize ( ) , completedCheckpoint . getDuration ( ) ) ; if ( LOG . isDebugEnabled ( ) ) { StringBuilder builder = new StringBuilder ( ) ; builder . append ( "Checkpoint state: " ) ; for ( OperatorState state : completedCheckpoint . getOperatorStates ( ) . values ( ) ) { builder . append ( state ) ; builder . append ( ", " ) ; } // Remove last two chars " , " builder . setLength ( builder . length ( ) - 2 ) ; LOG . debug ( builder . toString ( ) ) ; } // send the " notify complete " call to all vertices final long timestamp = completedCheckpoint . getTimestamp ( ) ; for ( ExecutionVertex ev : tasksToCommitTo ) { Execution ee = ev . getCurrentExecutionAttempt ( ) ; if ( ee != null ) { ee . notifyCheckpointComplete ( checkpointId , timestamp ) ; } }
public class PartialResponseChangesTypeImpl { /** * Returns all < code > update < / code > elements * @ return list of < code > update < / code > */ public List < PartialResponseUpdateType < PartialResponseChangesType < T > > > getAllUpdate ( ) { } }
List < PartialResponseUpdateType < PartialResponseChangesType < T > > > list = new ArrayList < PartialResponseUpdateType < PartialResponseChangesType < T > > > ( ) ; List < Node > nodeList = childNode . get ( "update" ) ; for ( Node node : nodeList ) { PartialResponseUpdateType < PartialResponseChangesType < T > > type = new PartialResponseUpdateTypeImpl < PartialResponseChangesType < T > > ( this , "update" , childNode , node ) ; list . add ( type ) ; } return list ;
public class SolrManager { /** * Create a Solr core from a configuration set directory . By default , the configuration set directory is located * inside the folder server / solr / configsets . * @ param coreName Core name * @ param configSet Configuration set name * @ throws SolrException Exception */ public void createCore ( String coreName , String configSet ) throws SolrException { } }
try { logger . debug ( "Creating core: host={}, core={}, configSet={}" , host , coreName , configSet ) ; CoreAdminRequest . Create request = new CoreAdminRequest . Create ( ) ; request . setCoreName ( coreName ) ; request . setConfigSet ( configSet ) ; request . process ( solrClient ) ; } catch ( Exception e ) { throw new SolrException ( SolrException . ErrorCode . CONFLICT , e ) ; }
public class RabinKarpHash { /** * Take rolling hash of last ' block ' characters . Start from the end of the string . * @ param str * @ return */ private int reverseHash ( String str ) { } }
int hash = 0 ; int len = str . length ( ) ; for ( int i = 0 ; i < _block ; i ++ ) { char c = str . charAt ( len - i - 1 ) ; hash = A * hash + CHAR_HASHES [ c ] ; } return hash ;
public class GenericExtendedSet { /** * { @ inheritDoc } */ @ SuppressWarnings ( "unchecked" ) @ Override public boolean containsAll ( Collection < ? > c ) { } }
if ( isEmpty ( ) || c == null || c . isEmpty ( ) ) return false ; if ( this == c ) return true ; if ( elements instanceof List < ? > && c instanceof GenericExtendedSet < ? > && ( ( GenericExtendedSet < ? > ) c ) . elements instanceof List < ? > ) { Iterator < T > thisItr = elements . iterator ( ) ; Iterator < T > otherItr = ( ( GenericExtendedSet < T > ) c ) . elements . iterator ( ) ; while ( thisItr . hasNext ( ) && otherItr . hasNext ( ) ) { T thisValue = thisItr . next ( ) ; T otherValue = otherItr . next ( ) ; int r ; while ( ( r = otherValue . compareTo ( thisValue ) ) > 0 ) { if ( ! thisItr . hasNext ( ) ) return false ; thisValue = thisItr . next ( ) ; } if ( r < 0 ) return false ; } return ! otherItr . hasNext ( ) ; } return elements . containsAll ( c ) ;
public class NodeGroupClient { /** * Deletes specified nodes from the node group . * < p > Sample code : * < pre > < code > * try ( NodeGroupClient nodeGroupClient = NodeGroupClient . create ( ) ) { * ProjectZoneNodeGroupName nodeGroup = ProjectZoneNodeGroupName . of ( " [ PROJECT ] " , " [ ZONE ] " , " [ NODE _ GROUP ] " ) ; * NodeGroupsDeleteNodesRequest nodeGroupsDeleteNodesRequestResource = NodeGroupsDeleteNodesRequest . newBuilder ( ) . build ( ) ; * Operation response = nodeGroupClient . deleteNodesNodeGroup ( nodeGroup , nodeGroupsDeleteNodesRequestResource ) ; * < / code > < / pre > * @ param nodeGroup Name of the NodeGroup resource to delete . * @ param nodeGroupsDeleteNodesRequestResource * @ throws com . google . api . gax . rpc . ApiException if the remote call fails */ @ BetaApi public final Operation deleteNodesNodeGroup ( ProjectZoneNodeGroupName nodeGroup , NodeGroupsDeleteNodesRequest nodeGroupsDeleteNodesRequestResource ) { } }
DeleteNodesNodeGroupHttpRequest request = DeleteNodesNodeGroupHttpRequest . newBuilder ( ) . setNodeGroup ( nodeGroup == null ? null : nodeGroup . toString ( ) ) . setNodeGroupsDeleteNodesRequestResource ( nodeGroupsDeleteNodesRequestResource ) . build ( ) ; return deleteNodesNodeGroup ( request ) ;
public class UserTaskServicesClientImpl { /** * task basic queries */ @ Override public TaskInstance findTaskByWorkItemId ( Long workItemId ) { } }
if ( config . isRest ( ) ) { Map < String , Object > valuesMap = new HashMap < String , Object > ( ) ; valuesMap . put ( WORK_ITEM_ID , workItemId ) ; return makeHttpGetRequestAndCreateCustomResponse ( build ( loadBalancer . getUrl ( ) , QUERY_URI + "/" + TASK_BY_WORK_ITEM_ID_GET_URI , valuesMap ) , TaskInstance . class ) ; } else { CommandScript script = new CommandScript ( Collections . singletonList ( ( KieServerCommand ) new DescriptorCommand ( "QueryService" , "getTaskByWorkItemId" , new Object [ ] { workItemId } ) ) ) ; ServiceResponse < TaskInstance > response = ( ServiceResponse < TaskInstance > ) executeJmsCommand ( script , DescriptorCommand . class . getName ( ) , "BPM" ) . getResponses ( ) . get ( 0 ) ; throwExceptionOnFailure ( response ) ; if ( shouldReturnWithNullResponse ( response ) ) { return null ; } return response . getResult ( ) ; }
public class CmsCmisTypeManager { /** * Gets the descendants of a type . < p > * @ param typeId the parent type id * @ param depth the depth up to which the descendant types should be collected * @ param includePropertyDefinitions true if the property definitions should be included * @ return the descendants of the type */ public List < TypeDefinitionContainer > getTypeDescendants ( String typeId , BigInteger depth , boolean includePropertyDefinitions ) { } }
refresh ( ) ; List < TypeDefinitionContainer > result = new ArrayList < TypeDefinitionContainer > ( ) ; // check depth int d = ( depth == null ? - 1 : depth . intValue ( ) ) ; if ( d == 0 ) { throw new CmisInvalidArgumentException ( "Depth must not be 0!" ) ; } if ( typeId == null ) { result . add ( getTypeDescendants ( d , m_types . get ( FOLDER_TYPE_ID ) , includePropertyDefinitions ) ) ; result . add ( getTypeDescendants ( d , m_types . get ( DOCUMENT_TYPE_ID ) , includePropertyDefinitions ) ) ; result . add ( getTypeDescendants ( d , m_types . get ( RELATIONSHIP_TYPE_ID ) , includePropertyDefinitions ) ) ; } else { TypeDefinitionContainer tc = m_types . get ( typeId ) ; if ( tc != null ) { result . add ( getTypeDescendants ( d , tc , includePropertyDefinitions ) ) ; } } return result ;
public class A_CmsListItemSelectDialog { /** * Makes sure the item with the given structure id is checked . < p > * @ param structureId the structure id */ protected void ensureChecked ( CmsUUID structureId ) { } }
CmsRadioButton button = ( CmsRadioButton ) m_listPanel . getItem ( String . valueOf ( structureId ) ) . getDecorationWidgets ( ) . get ( 0 ) ; if ( ! button . isChecked ( ) ) { button . setChecked ( true ) ; }
public class EConv { /** * / * rb _ econv _ insert _ output */ public int insertOutput ( byte [ ] str , int strP , int strLen , byte [ ] strEncoding ) { } }
byte [ ] insertEncoding = encodingToInsertOutput ( ) ; byte [ ] insertBuf = null ; started = true ; if ( strLen == 0 ) return 0 ; final byte [ ] insertStr ; final int insertP ; final int insertLen ; if ( caseInsensitiveEquals ( insertEncoding , strEncoding ) ) { insertStr = str ; insertP = 0 ; insertLen = strLen ; } else { Ptr insertLenP = new Ptr ( ) ; insertBuf = new byte [ 4096 ] ; // FIXME : wasteful insertStr = allocateConvertedString ( strEncoding , insertEncoding , str , strP , strLen , insertBuf , insertLenP ) ; insertLen = insertLenP . p ; insertP = insertStr == str ? strP : 0 ; if ( insertStr == null ) return - 1 ; } int need = insertLen ; final int lastTranscodingIndex = numTranscoders - 1 ; final Transcoding transcoding ; Buffer buf ; if ( numTranscoders == 0 ) { transcoding = null ; buf = inBuf ; } else if ( elements [ lastTranscodingIndex ] . transcoding . transcoder . compatibility . isEncoder ( ) ) { transcoding = elements [ lastTranscodingIndex ] . transcoding ; need += transcoding . readAgainLength ; if ( need < insertLen ) return - 1 ; if ( lastTranscodingIndex == 0 ) { buf = inBuf ; } else { buf = elements [ lastTranscodingIndex - 1 ] ; } } else { transcoding = elements [ lastTranscodingIndex ] . transcoding ; buf = elements [ lastTranscodingIndex ] ; } if ( buf == null ) { buf = new Buffer ( ) ; buf . allocate ( need ) ; } else if ( buf . bytes == null ) { buf . allocate ( need ) ; } else if ( ( buf . bufEnd - buf . dataEnd ) < need ) { // try to compact buffer by moving data portion back to bufStart System . arraycopy ( buf . bytes , buf . dataStart , buf . bytes , buf . bufStart , buf . dataEnd - buf . dataStart ) ; buf . dataEnd = buf . bufStart + ( buf . dataEnd - buf . dataStart ) ; buf . dataStart = buf . bufStart ; if ( ( buf . bufEnd - buf . dataEnd ) < need ) { // still not enough room ; use a separate buffer int s = ( buf . dataEnd - buf . bufStart ) + need ; if ( s < need ) return - 1 ; Buffer buf2 = buf = new Buffer ( ) ; buf2 . allocate ( s ) ; System . arraycopy ( buf . bytes , buf . bufStart , buf2 . bytes , 0 , s ) ; buf2 . dataStart = 0 ; buf2 . dataEnd = buf . dataEnd - buf . bufStart ; } } System . arraycopy ( insertStr , insertP , buf . bytes , buf . dataEnd , insertLen ) ; buf . dataEnd += insertLen ; if ( transcoding != null && transcoding . transcoder . compatibility . isEncoder ( ) ) { System . arraycopy ( transcoding . readBuf , transcoding . recognizedLength , buf . bytes , buf . dataEnd , transcoding . readAgainLength ) ; buf . dataEnd += transcoding . readAgainLength ; transcoding . readAgainLength = 0 ; } return 0 ;
public class CmsGallerySearchParameters { /** * Sets the search scope . * @ param cms The current CmsObject object . */ private void setSearchScopeFilter ( CmsObject cms ) { } }
final List < String > searchRoots = CmsSearchUtil . computeScopeFolders ( cms , this ) ; // If the resource types contain the type " function " also // add " / system / modules / " to the search path if ( ( null != getResourceTypes ( ) ) && containsFunctionType ( getResourceTypes ( ) ) ) { searchRoots . add ( "/system/modules/" ) ; } addFoldersToSearchIn ( searchRoots ) ;
public class MathRandom { /** * Returns a random decimal number in the range of [ min , max ] . * @ param min * minimum value for generated number * @ param max * maximum value for generated number */ public double getDouble ( final double min , final double max ) { } }
return min ( min , max ) + getDouble ( abs ( max - min ) ) ;
public class MapLoader { /** * Creates a new instance of the class this map loader is governing and loads it * with values . * @ param args only one argument is expected , a { @ link Map } with attribute names * as keys and object values for those attributes as values */ public T load ( Object ... args ) { } }
try { T item = target . newInstance ( ) ; Map vals = ( Map ) args [ 0 ] ; load ( item , vals ) ; return item ; } catch ( InstantiationException e ) { throw new CacheManagementException ( e ) ; } catch ( IllegalAccessException e ) { throw new CacheManagementException ( e ) ; }
public class DefaultSources { /** * Add resources of name { # link ConfigConstants . CONFIG _ PROPERTIES } to a List of sources using * the classloader ' s loadResources method to locate resources . * @ param classloader * @ param sources */ public static List < ConfigSource > getPropertiesFileConfigSources ( ClassLoader classloader ) { } }
ArrayList < ConfigSource > sources = new ArrayList < > ( ) ; try { Enumeration < URL > propsResources = classloader . getResources ( ConfigConstants . CONFIG_PROPERTIES ) ; if ( propsResources != null ) { while ( propsResources . hasMoreElements ( ) ) { URL prop = propsResources . nextElement ( ) ; ConfigSource source = new PropertiesConfigSource ( prop ) ; sources . add ( source ) ; } } } catch ( IOException e ) { // TODO maybe we should just output a warning and continue ? ? // TODO NLS throw new ConfigException ( "Could not load " + ConfigConstants . CONFIG_PROPERTIES , e ) ; } return sources ;
public class MultipartBuilder { /** * Adds a named attachment . * @ param is an stream to read the attachment * @ param filename the filename to give to the attachment * @ return this builder */ public MultipartBuilder attachment ( InputStream is , String filename ) { } }
return bodyPart ( new StreamDataBodyPart ( ATTACHMENT_NAME , is , filename ) ) ;
public class JpaRepository { /** * Queries the entities in the repository and returns a subset of them . * The collection is created by building a query from the received * { @ code QueryData } and executing it . * @ param query * the query user to acquire the entities * @ return the queried subset of entities */ @ SuppressWarnings ( "unchecked" ) @ Override public final Collection < V > getCollection ( final NamedParameterQueryData query ) { } }
checkNotNull ( query , "Received a null pointer as the query" ) ; // Processes the query return buildQuery ( query ) . getResultList ( ) ;
public class VariantContextToVariantProtoConverter { /** * method to set Varaint Annotation Parameters * @ return variantAnnotation */ private VariantAnnotationProto . VariantAnnotation setVaraintAnnotationParams ( ) { } }
VariantAnnotationProto . VariantAnnotation . Builder variantAnnotation = VariantAnnotationProto . VariantAnnotation . newBuilder ( ) ; /* * set AdditionalAttributes map type parameter */ // additionalAttributesMap . put ( null , null ) ; HashMap < String , VariantAnnotationProto . VariantAnnotation . AdditionalAttribute > map = new HashMap < > ( ) ; variantAnnotation . putAllAdditionalAttributes ( map ) ; /* * set AlternateAllele parameter */ variantAnnotation . setAlternate ( null ) ; /* * set CaddScore list type parameter */ // List < CaddScore > caddScoreList = new ArrayList < > ( ) ; // CaddScore caddScore = new CaddScore ( ) ; /* caddScore . setCScore ( null ) ; caddScore . setRawScore ( null ) ; caddScore . setTranscriptId ( null ) ; */ // caddScoreList . add ( caddScore ) ; // variantAnnotation . setCaddScore ( caddScoreList ) ; /* * set Chromosome parameter */ variantAnnotation . setChromosome ( null ) ; /* * set Clinical map type parameter */ VariantAnnotationProto . VariantTraitAssociation . Builder variantTraitAssociation = VariantAnnotationProto . VariantTraitAssociation . newBuilder ( ) ; variantTraitAssociation . addAllClinvar ( Arrays . asList ( ) ) ; variantTraitAssociation . addAllCosmic ( Arrays . asList ( ) ) ; variantTraitAssociation . addAllGwas ( Arrays . asList ( ) ) ; variantAnnotation . setVariantTraitAssociation ( variantTraitAssociation ) ; /* * set ConsequenceTypes list type parameter */ variantAnnotation . addAllConsequenceTypes ( setConsequenceTypeParams ( ) ) ; /* * set ConservationScores list type parameter */ List < VariantAnnotationProto . Score > conservationScoreList = new ArrayList < > ( ) ; VariantAnnotationProto . Score . Builder score = VariantAnnotationProto . Score . newBuilder ( ) ; /* score . setDescription ( null ) ; score . setScore ( null ) ; score . setSource ( null ) ; */ conservationScoreList . add ( score . build ( ) ) ; variantAnnotation . addAllConservation ( conservationScoreList ) ; variantAnnotation . setEnd ( 0 ) ; /* * set GeneDrugInteraction map of list type parameter */ // Map < String , List < String > > geneDrugInteractionMap = new HashMap < > ( ) ; List < CommonModel . GeneDrugInteraction > geneDrugInteractionList = new ArrayList < > ( ) ; // List < String > geneDrugInteractionList = new ArrayList < > ( ) ; // geneDrugInteractionList . add ( " AAA " ) ; // geneDrugInteractionMap . put ( " 000 " , geneDrugInteractionList ) ; variantAnnotation . addAllGeneDrugInteraction ( geneDrugInteractionList ) ; /* * set Hgvs list type parameter */ List < String > hgvsList = new ArrayList < > ( ) ; // hgvsList . add ( null ) ; variantAnnotation . addAllHgvs ( hgvsList ) ; variantAnnotation . setId ( null ) ; /* * set PopulationFrequencies list type parameter */ variantAnnotation . addAllPopulationFrequencies ( setPopulationFrequencyParams ( ) ) ; variantAnnotation . setReference ( null ) ; variantAnnotation . setStart ( 0 ) ; /* * set Xref list type parameter */ List < VariantAnnotationProto . VariantAnnotation . Xref > xrefsList = new ArrayList < > ( ) ; VariantAnnotationProto . VariantAnnotation . Xref . Builder xref = VariantAnnotationProto . VariantAnnotation . Xref . newBuilder ( ) ; /* xref . setId ( null ) ; xref . setSrc ( null ) ; */ xrefsList . add ( xref . build ( ) ) ; variantAnnotation . addAllXrefs ( xrefsList ) ; /* * return variantAnnotation bean */ return variantAnnotation . build ( ) ;
public class ObjectOffsetImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public Object eGet ( int featureID , boolean resolve , boolean coreType ) { } }
switch ( featureID ) { case AfplibPackage . OBJECT_OFFSET__OBJ_TPE : return getObjTpe ( ) ; case AfplibPackage . OBJECT_OFFSET__OBJ_OSET : return getObjOset ( ) ; case AfplibPackage . OBJECT_OFFSET__OBJ_OST_HI : return getObjOstHi ( ) ; } return super . eGet ( featureID , resolve , coreType ) ;
public class ConnectionData { /** * A convenience method to create a new { @ link URI } out of a protocol , host and port , hiding the * { @ link URISyntaxException } behind a { @ link RuntimeException } . * @ param protocol the protocol such as http * @ param host hostname or IP address * @ param port port number * @ return a new { @ link URI } */ private static URI createUri ( String protocol , String host , int port ) { } }
try { return new URI ( protocol , null , host , port , null , null , null ) ; } catch ( URISyntaxException e ) { throw new RuntimeException ( e ) ; }
public class H2ONode { /** * also ACKACK ' d . */ RPC . RPCCall record_task ( RPC . RPCCall rpc ) { } }
// Task removal ( and roll - up ) suffers from classic race - condition , which we // fix by a classic Dekker ' s algo ; a task # is always in either the _ work // HashMap , or rolled - up in the _ removed _ task _ ids counter , or both ( for // short intervals during the handoff ) . We can never has a cycle where // it ' s in neither or else a late UDP may attempt to " resurrect " the // already completed task . Hence we must always check the " removed ids " // AFTER we insert in the HashMap ( we can check before also , but that ' s a // simple optimization and not sufficient for correctness ) . final RPC . RPCCall x = _work . putIfAbsent ( rpc . _tsknum , rpc ) ; if ( x != null ) return x ; // Return pre - existing work // If this RPC task # is very old , we just return a Golden Completed task . // The task is not just completed , but also we have already received // verification that the client got the answer . So this is just a really // old attempt to restart a long - completed task . if ( rpc . _tsknum > _removed_task_ids . get ( ) ) return null ; // Task is new _work . remove ( rpc . _tsknum ) ; // Bogus insert , need to remove it return _removed_task ; // And return a generic Golden Completed object
public class UIViewParameter { /** * < p class = " changed _ added _ 2_0 " > Because this class has no { @ link * Renderer } , leverage the one from the standard HTML _ BASIC { @ link * RenderKit } with < code > component - family : javax . faces . Input < / code > * and < code > renderer - type : javax . faces . Text < / code > and call its * { @ link Renderer # getConvertedValue } method . < / p > * @ since 2.0 */ @ Override protected Object getConvertedValue ( FacesContext context , Object submittedValue ) throws ConverterException { } }
return getInputTextRenderer ( context ) . getConvertedValue ( context , this , submittedValue ) ;
public class XMLShredder { /** * Create a new StAX reader on a string . * @ param paramString * the XML file as a string to parse * @ return an { @ link XMLEventReader } * @ throws IOException * if I / O operation fails * @ throws XMLStreamException * if any parsing error occurs */ public static synchronized XMLEventReader createStringReader ( final String paramString ) throws IOException , XMLStreamException { } }
final XMLInputFactory factory = XMLInputFactory . newInstance ( ) ; factory . setProperty ( XMLInputFactory . SUPPORT_DTD , false ) ; final InputStream in = new ByteArrayInputStream ( paramString . getBytes ( ) ) ; return factory . createXMLEventReader ( in ) ;
public class PolynomialOps { /** * Returns a real root to the cubic polynomial : 0 = c0 + c1 * x + c2 * x ^ 2 + c3 * c ^ 3 . There can be other * real roots . * WARNING : This technique is much less stable than using one of the RootFinder algorithms * @ param c0 Polynomial coefficient for power 0 * @ param c1 Polynomial coefficient for power 1 * @ param c2 Polynomial coefficient for power 2 * @ param c3 Polynomial coefficient for power 3 * @ return A real root of the polynomial */ public static double cubicRealRoot ( double c0 , double c1 , double c2 , double c3 ) { } }
// convert it into this format : r + q * x + p * x ^ 2 + x ^ 3 = 0 double p = c2 / c3 ; double q = c1 / c3 ; double r = c0 / c3 ; // reduce by substitution x = y - p / 3 which results in y ^ 3 + a * y + b = 0 double a = ( 3 * q - p * p ) / 3.0 ; double b = ( 2 * p * p * p - 9 * p * q + 27 * r ) / 27.0 ; double left = - b / 2.0 ; double right = Math . sqrt ( b * b / 4.0 + a * a * a / 27.0 ) ; double inner1 = left + right ; double inner2 = left - right ; double A , B ; if ( inner1 < 0 ) A = - Math . pow ( - inner1 , 1.0 / 3.0 ) ; else A = Math . pow ( inner1 , 1.0 / 3.0 ) ; if ( inner2 < 0 ) B = - Math . pow ( - inner2 , 1.0 / 3.0 ) ; else B = Math . pow ( inner2 , 1.0 / 3.0 ) ; return ( A + B ) - p / 3.0 ;
public class JZUtils { /** * if url = = null , clear all progress * @ param context context * @ param url if url ! = null clear this url progress */ public static void clearSavedProgress ( Context context , Object url ) { } }
if ( url == null ) { SharedPreferences spn = context . getSharedPreferences ( "JZVD_PROGRESS" , Context . MODE_PRIVATE ) ; spn . edit ( ) . clear ( ) . apply ( ) ; } else { SharedPreferences spn = context . getSharedPreferences ( "JZVD_PROGRESS" , Context . MODE_PRIVATE ) ; spn . edit ( ) . putLong ( "newVersion:" + url . toString ( ) , 0 ) . apply ( ) ; }
public class CSSToken { /** * Considers text as content of URI token , * and models view at this text as an common string , * that is removed { @ code ' url ( ' } from the beginning * and { @ code ' ) ' } from the and . If result of this operation * is STRING , remove even quotation marks * @ param uri Content of URI token * @ return String with trimmed URI syntax sugar and * optionally quotation marks */ public static String extractURI ( String uri ) { } }
String ret = uri . substring ( 4 , uri . length ( ) - 1 ) . trim ( ) ; // trim string if ( ret . length ( ) > 0 && ( ret . charAt ( 0 ) == '\'' || ret . charAt ( 0 ) == '"' ) ) ret = ret . substring ( 1 , ret . length ( ) - 1 ) ; return ret ;
public class SectionLoader { /** * Returns the file offset for the given RVA . Returns absent if file offset * is not within file . * @ param rva * the relative virtual address that shall be converted to a * plain file offset * @ return file offset */ public Optional < Long > maybeGetFileOffset ( long rva ) { } }
Optional < SectionHeader > section = maybeGetSectionHeaderByRVA ( rva ) ; // standard value if rva doesn ' t point into a section long fileOffset = rva ; // rva is located within a section , so calculate offset if ( section . isPresent ( ) ) { long virtualAddress = section . get ( ) . get ( VIRTUAL_ADDRESS ) ; long pointerToRawData = section . get ( ) . get ( POINTER_TO_RAW_DATA ) ; fileOffset = rva - ( virtualAddress - pointerToRawData ) ; } // file offset is not within file - - > return absent if ( fileOffset > file . length ( ) || fileOffset < 0 ) { logger . warn ( "invalid file offset: 0x" + Long . toHexString ( fileOffset ) + " for file: " + file . getName ( ) + " with length 0x" + Long . toHexString ( file . length ( ) ) ) ; return Optional . absent ( ) ; } return Optional . of ( fileOffset ) ;
public class Launcher { /** * Returns a decorated { @ link Launcher } that puts the given set of arguments as a prefix to any commands * that it invokes . * @ param prefix Prefixes to be appended * @ since 1.299 */ @ Nonnull public final Launcher decorateByPrefix ( final String ... prefix ) { } }
final Launcher outer = this ; return new Launcher ( outer ) { @ Override public boolean isUnix ( ) { return outer . isUnix ( ) ; } @ Override public Proc launch ( ProcStarter starter ) throws IOException { starter . commands . addAll ( 0 , Arrays . asList ( prefix ) ) ; boolean [ ] masks = starter . masks ; if ( masks != null ) { starter . masks = prefix ( masks ) ; } return outer . launch ( starter ) ; } @ Override public Channel launchChannel ( String [ ] cmd , OutputStream out , FilePath workDir , Map < String , String > envVars ) throws IOException , InterruptedException { return outer . launchChannel ( prefix ( cmd ) , out , workDir , envVars ) ; } @ Override public void kill ( Map < String , String > modelEnvVars ) throws IOException , InterruptedException { outer . kill ( modelEnvVars ) ; } private String [ ] prefix ( @ Nonnull String [ ] args ) { String [ ] newArgs = new String [ args . length + prefix . length ] ; System . arraycopy ( prefix , 0 , newArgs , 0 , prefix . length ) ; System . arraycopy ( args , 0 , newArgs , prefix . length , args . length ) ; return newArgs ; } private boolean [ ] prefix ( @ Nonnull boolean [ ] args ) { boolean [ ] newArgs = new boolean [ args . length + prefix . length ] ; System . arraycopy ( args , 0 , newArgs , prefix . length , args . length ) ; return newArgs ; } } ;
public class ControlFileHandler { /** * Called when a new blank record is required for the table / query . * If the file is empty , this does an addNew , otherwise , the first record * is read . * @ param bDisplayOption If true , display any changes . */ public void doNewRecord ( boolean bDisplayOption ) { } }
super . doNewRecord ( bDisplayOption ) ; try { if ( this . getOwner ( ) . isOpen ( ) ) // Don ' t do first time ! { boolean bOldEnableState = this . isEnabledListener ( ) ; this . setEnabledListener ( false ) ; // Just in case AddNew decides to call this this . getOwner ( ) . close ( ) ; if ( this . getOwner ( ) . hasNext ( ) ) // records yet ? this . getOwner ( ) . next ( ) ; else this . getOwner ( ) . addNew ( ) ; // Make a new one this . setEnabledListener ( bOldEnableState ) ; } } catch ( DBException ex ) { if ( ex . getErrorCode ( ) == DBConstants . FILE_NOT_FOUND ) if ( ( this . getOwner ( ) . getOpenMode ( ) & DBConstants . OPEN_DONT_CREATE ) == DBConstants . OPEN_DONT_CREATE ) return ; // Special case - they didn ' t want the table created if not found ex . printStackTrace ( ) ; // Never }
public class Probe { /** * Add a URL that specifies where the Responder should send the response . * Provide a label as a hint to the Responder about why this URL was included . * For example : give a " internal " label for a respondToURL that is only * accessible from inside a NATed network . * @ param label - hint about the URL * @ param respondToURL - the URL the responder will POST a payload to * @ throws MalformedURLException if the URL is bad */ public void addRespondToURL ( String label , String respondToURL ) throws MalformedURLException { } }
// Sanity check on the respondToURL // The requirement for the respondToURL is a REST POST call , so that means // only HTTP and HTTPS schemes . // Localhost is allowed as well as a valid response destination String [ ] schemes = { "http" , "https" } ; UrlValidator urlValidator = new UrlValidator ( schemes , UrlValidator . ALLOW_LOCAL_URLS ) ; if ( ! urlValidator . isValid ( respondToURL ) ) throw new MalformedURLException ( "The probe respondTo URL is invalid: " + respondToURL ) ; _probe . addRespondToURL ( label , respondToURL ) ;
public class DebugAuthActivity { /** * Called when the activity is first created . */ @ Override public void onCreate ( Bundle savedInstanceState ) { } }
super . onCreate ( savedInstanceState ) ; String title = this . getIntent ( ) . getStringExtra ( TITLE_EXTRA ) ; if ( title == null ) title = getApplicationName ( this ) ; CredentialView credentialView = new CredentialView ( this , title ) ; DivideDrawer . attach ( this , credentialView ) ; BackendServices . addLoginListener ( new LoginListener ( ) { @ Override public void onNext ( BackendUser backendUser ) { if ( backendUser != null ) { DebugAuthActivity . this . finish ( ) ; } } } ) ; this . closeOptionsMenu ( ) ;
public class SqlgEdge { /** * TODO this needs optimizing , an edge created in the transaction need not go to the db to load itself again */ @ Override protected void load ( ) { } }
// recordId can be null when in batchMode if ( this . recordId != null && this . properties . isEmpty ( ) ) { this . sqlgGraph . tx ( ) . readWrite ( ) ; if ( this . sqlgGraph . getSqlDialect ( ) . supportsBatchMode ( ) && this . sqlgGraph . tx ( ) . getBatchManager ( ) . isStreaming ( ) ) { throw new IllegalStateException ( "streaming is in progress, first flush or commit before querying." ) ; } // Generate the columns to prevent ' ERROR : cached plan must not change result type " error ' // This happens when the schema changes after the statement is prepared . @ SuppressWarnings ( "OptionalGetWithoutIsPresent" ) EdgeLabel edgeLabel = this . sqlgGraph . getTopology ( ) . getSchema ( this . schema ) . orElseThrow ( ( ) -> new IllegalStateException ( String . format ( "Schema %s not found" , this . schema ) ) ) . getEdgeLabel ( this . table ) . orElseThrow ( ( ) -> new IllegalStateException ( String . format ( "EdgeLabel %s not found" , this . table ) ) ) ; StringBuilder sql = new StringBuilder ( "SELECT\n\t" ) ; sql . append ( this . sqlgGraph . getSqlDialect ( ) . maybeWrapInQoutes ( "ID" ) ) ; appendProperties ( edgeLabel , sql ) ; List < VertexLabel > outForeignKeys = new ArrayList < > ( ) ; for ( VertexLabel vertexLabel : edgeLabel . getOutVertexLabels ( ) ) { outForeignKeys . add ( vertexLabel ) ; sql . append ( ", " ) ; if ( vertexLabel . hasIDPrimaryKey ( ) ) { String foreignKey = vertexLabel . getSchema ( ) . getName ( ) + "." + vertexLabel . getName ( ) + Topology . OUT_VERTEX_COLUMN_END ; sql . append ( this . sqlgGraph . getSqlDialect ( ) . maybeWrapInQoutes ( foreignKey ) ) ; } else { int countIdentifier = 1 ; for ( String identifier : vertexLabel . getIdentifiers ( ) ) { PropertyColumn propertyColumn = vertexLabel . getProperty ( identifier ) . orElseThrow ( ( ) -> new IllegalStateException ( String . format ( "identifier %s column must be a property" , identifier ) ) ) ; PropertyType propertyType = propertyColumn . getPropertyType ( ) ; String [ ] propertyTypeToSqlDefinition = this . sqlgGraph . getSqlDialect ( ) . propertyTypeToSqlDefinition ( propertyType ) ; int count = 1 ; for ( String ignored : propertyTypeToSqlDefinition ) { if ( count > 1 ) { sql . append ( sqlgGraph . getSqlDialect ( ) . maybeWrapInQoutes ( vertexLabel . getFullName ( ) + "." + identifier + propertyType . getPostFixes ( ) [ count - 2 ] + Topology . OUT_VERTEX_COLUMN_END ) ) ; } else { // The first column existVertexLabel no postfix sql . append ( sqlgGraph . getSqlDialect ( ) . maybeWrapInQoutes ( vertexLabel . getFullName ( ) + "." + identifier + Topology . OUT_VERTEX_COLUMN_END ) ) ; } if ( count ++ < propertyTypeToSqlDefinition . length ) { sql . append ( ", " ) ; } } if ( countIdentifier ++ < vertexLabel . getIdentifiers ( ) . size ( ) ) { sql . append ( ", " ) ; } } } } List < VertexLabel > inForeignKeys = new ArrayList < > ( ) ; for ( VertexLabel vertexLabel : edgeLabel . getInVertexLabels ( ) ) { sql . append ( ", " ) ; inForeignKeys . add ( vertexLabel ) ; if ( vertexLabel . hasIDPrimaryKey ( ) ) { String foreignKey = vertexLabel . getSchema ( ) . getName ( ) + "." + vertexLabel . getName ( ) + Topology . IN_VERTEX_COLUMN_END ; sql . append ( this . sqlgGraph . getSqlDialect ( ) . maybeWrapInQoutes ( foreignKey ) ) ; } else { int countIdentifier = 1 ; for ( String identifier : vertexLabel . getIdentifiers ( ) ) { PropertyColumn propertyColumn = vertexLabel . getProperty ( identifier ) . orElseThrow ( ( ) -> new IllegalStateException ( String . format ( "identifier %s column must be a property" , identifier ) ) ) ; PropertyType propertyType = propertyColumn . getPropertyType ( ) ; String [ ] propertyTypeToSqlDefinition = this . sqlgGraph . getSqlDialect ( ) . propertyTypeToSqlDefinition ( propertyType ) ; int count = 1 ; for ( String ignored : propertyTypeToSqlDefinition ) { if ( count > 1 ) { sql . append ( sqlgGraph . getSqlDialect ( ) . maybeWrapInQoutes ( vertexLabel . getFullName ( ) + "." + identifier + propertyType . getPostFixes ( ) [ count - 2 ] + Topology . IN_VERTEX_COLUMN_END ) ) ; } else { // The first column existVertexLabel no postfix sql . append ( sqlgGraph . getSqlDialect ( ) . maybeWrapInQoutes ( vertexLabel . getFullName ( ) + "." + identifier + Topology . IN_VERTEX_COLUMN_END ) ) ; } if ( count ++ < propertyTypeToSqlDefinition . length ) { sql . append ( ", " ) ; } } if ( countIdentifier ++ < vertexLabel . getIdentifiers ( ) . size ( ) ) { sql . append ( ", " ) ; } } } } sql . append ( "\nFROM\n\t" ) ; sql . append ( this . sqlgGraph . getSqlDialect ( ) . maybeWrapInQoutes ( this . schema ) ) ; sql . append ( "." ) ; sql . append ( this . sqlgGraph . getSqlDialect ( ) . maybeWrapInQoutes ( EDGE_PREFIX + this . table ) ) ; sql . append ( " WHERE " ) ; // noinspection Duplicates if ( edgeLabel . hasIDPrimaryKey ( ) ) { sql . append ( this . sqlgGraph . getSqlDialect ( ) . maybeWrapInQoutes ( "ID" ) ) ; sql . append ( " = ?" ) ; } else { int count = 1 ; for ( String identifier : edgeLabel . getIdentifiers ( ) ) { sql . append ( this . sqlgGraph . getSqlDialect ( ) . maybeWrapInQoutes ( identifier ) ) ; sql . append ( " = ?" ) ; if ( count ++ < edgeLabel . getIdentifiers ( ) . size ( ) ) { sql . append ( " AND " ) ; } } } if ( this . sqlgGraph . getSqlDialect ( ) . needsSemicolon ( ) ) { sql . append ( ";" ) ; } Connection conn = this . sqlgGraph . tx ( ) . getConnection ( ) ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( sql . toString ( ) ) ; } try ( PreparedStatement preparedStatement = conn . prepareStatement ( sql . toString ( ) ) ) { if ( edgeLabel . hasIDPrimaryKey ( ) ) { preparedStatement . setLong ( 1 , this . recordId . sequenceId ( ) ) ; } else { int count = 1 ; for ( Comparable identifierValue : this . recordId . getIdentifiers ( ) ) { preparedStatement . setObject ( count ++ , identifierValue ) ; } } ResultSet resultSet = preparedStatement . executeQuery ( ) ; if ( resultSet . next ( ) ) { loadResultSet ( resultSet , inForeignKeys , outForeignKeys ) ; } } catch ( SQLException e ) { throw new RuntimeException ( e ) ; } }
public class BackupEnginesInner { /** * The backup management servers registered to a Recovery Services vault . This returns a pageable list of servers . * @ param nextPageLink The NextLink from the previous successful call to List operation . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ return the observable to the PagedList & lt ; BackupEngineBaseResourceInner & gt ; object */ public Observable < ServiceResponse < Page < BackupEngineBaseResourceInner > > > getNextWithServiceResponseAsync ( final String nextPageLink ) { } }
return getNextSinglePageAsync ( nextPageLink ) . concatMap ( new Func1 < ServiceResponse < Page < BackupEngineBaseResourceInner > > , Observable < ServiceResponse < Page < BackupEngineBaseResourceInner > > > > ( ) { @ Override public Observable < ServiceResponse < Page < BackupEngineBaseResourceInner > > > call ( ServiceResponse < Page < BackupEngineBaseResourceInner > > page ) { String nextPageLink = page . body ( ) . nextPageLink ( ) ; if ( nextPageLink == null ) { return Observable . just ( page ) ; } return Observable . just ( page ) . concatWith ( getNextWithServiceResponseAsync ( nextPageLink ) ) ; } } ) ;
public class XMPScanner { /** * Scans the given input for an XML metadata packet . * The scanning process involves reading every byte in the file , while searching for an XMP packet . * This process is very inefficient , compared to reading a known file format . * < em > NOTE : The XMP Specification says this method of reading an XMP packet * should be considered a last resort . < / em > < br / > * This is because files may contain multiple XMP packets , some which may be related to embedded resources , * some which may be obsolete ( or even incomplete ) . * @ param pInput the input to scan . The input may be an { @ link javax . imageio . stream . ImageInputStream } or * any object that can be passed to { @ link ImageIO # createImageInputStream ( Object ) } . * Typically this may be a { @ link File } , { @ link InputStream } or { @ link java . io . RandomAccessFile } . * @ return a character Reader * @ throws java . nio . charset . UnsupportedCharsetException if the encoding specified within the BOM is not supported * by the JRE . * @ throws IOException if an I / O exception occurs reading from { @ code pInput } . * @ see ImageIO # createImageInputStream ( Object ) */ static public Reader scanForXMPPacket ( final Object pInput ) throws IOException { } }
ImageInputStream stream = pInput instanceof ImageInputStream ? ( ImageInputStream ) pInput : ImageIO . createImageInputStream ( pInput ) ; // TODO : Consider if BufferedIIS is a good idea if ( ! ( stream instanceof BufferedImageInputStream ) ) { stream = new BufferedImageInputStream ( stream ) ; } // TODO : Might be more than one XMP block per file ( it ' s possible to re - start for now ) . . long pos ; pos = scanForSequence ( stream , XMP_PACKET_BEGIN ) ; if ( pos >= 0 ) { // Skip ' OR " ( plus possible nulls for 16/32 bit ) byte quote = stream . readByte ( ) ; if ( quote == '\'' || quote == '"' ) { Charset cs = null ; // Read BOM byte [ ] bom = new byte [ 4 ] ; stream . readFully ( bom ) ; // NOTE : Empty string should be treated as UTF - 8 for backwards compatibility if ( bom [ 0 ] == ( byte ) 0xEF && bom [ 1 ] == ( byte ) 0xBB && bom [ 2 ] == ( byte ) 0xBF && bom [ 3 ] == quote || bom [ 0 ] == quote ) { // UTF - 8 cs = Charset . forName ( "UTF-8" ) ; } else if ( bom [ 0 ] == ( byte ) 0xFE && bom [ 1 ] == ( byte ) 0xFF && bom [ 2 ] == 0x00 && bom [ 3 ] == quote ) { // UTF - 16 BIG endian cs = Charset . forName ( "UTF-16BE" ) ; } else if ( bom [ 0 ] == 0x00 && bom [ 1 ] == ( byte ) 0xFF && bom [ 2 ] == ( byte ) 0xFE && bom [ 3 ] == quote ) { stream . skipBytes ( 1 ) ; // Alignment // UTF - 16 little endian cs = Charset . forName ( "UTF-16LE" ) ; } else if ( bom [ 0 ] == 0x00 && bom [ 1 ] == 0x00 && bom [ 2 ] == ( byte ) 0xFE && bom [ 3 ] == ( byte ) 0xFF ) { // NOTE : 32 - bit character set not supported by default // UTF 32 BIG endian cs = Charset . forName ( "UTF-32BE" ) ; } else if ( bom [ 0 ] == 0x00 && bom [ 1 ] == 0x00 && bom [ 2 ] == 0x00 && bom [ 3 ] == ( byte ) 0xFF && stream . read ( ) == 0xFE ) { stream . skipBytes ( 2 ) ; // Alignment // NOTE : 32 - bit character set not supported by default // UTF 32 little endian cs = Charset . forName ( "UTF-32LE" ) ; } if ( cs != null ) { // Read all bytes until < ? xpacket end = up - front or filter stream stream . mark ( ) ; long end = scanForSequence ( stream , XMP_PACKET_END ) ; stream . reset ( ) ; long length = end - stream . getStreamPosition ( ) ; Reader reader = new InputStreamReader ( IIOUtil . createStreamAdapter ( stream , length ) , cs ) ; // Skip until ? > while ( reader . read ( ) != '>' ) { } // Return reader ? // How to decide between w or r ? ! return reader ; } } } return null ;
public class SchemaUsageAnalyzer { /** * Counts each property for which there is a statement in the given item * document , ignoring the property thisPropertyIdValue to avoid properties * counting themselves . * @ param statementDocument * @ param usageRecord * @ param thisPropertyIdValue */ private void countCooccurringProperties ( StatementDocument statementDocument , UsageRecord usageRecord , PropertyIdValue thisPropertyIdValue ) { } }
for ( StatementGroup sg : statementDocument . getStatementGroups ( ) ) { if ( ! sg . getProperty ( ) . equals ( thisPropertyIdValue ) ) { Integer propertyId = getNumId ( sg . getProperty ( ) . getId ( ) , false ) ; if ( ! usageRecord . propertyCoCounts . containsKey ( propertyId ) ) { usageRecord . propertyCoCounts . put ( propertyId , 1 ) ; } else { usageRecord . propertyCoCounts . put ( propertyId , usageRecord . propertyCoCounts . get ( propertyId ) + 1 ) ; } } }
public class AnnotationExtensions { /** * Gets all annotated classes that belongs from the given package path and the given list with * annotation classes . * @ param packagePath * the package path * @ param annotationClasses * the list with the annotation classes * @ return the all classes * @ throws ClassNotFoundException * occurs if a given class cannot be located by the specified class loader * @ throws IOException * Signals that an I / O exception has occurred . * @ throws URISyntaxException * is thrown if a string could not be parsed as a URI reference . */ public static Set < Class < ? > > getAllAnnotatedClassesFromSet ( final String packagePath , final Set < Class < ? extends Annotation > > annotationClasses ) throws ClassNotFoundException , IOException , URISyntaxException { } }
final List < File > directories = ClassExtensions . getDirectoriesFromResources ( packagePath , true ) ; final Set < Class < ? > > classes = new HashSet < > ( ) ; for ( final File directory : directories ) { classes . addAll ( scanForAnnotatedClassesFromSet ( directory , packagePath , annotationClasses ) ) ; } return classes ;
public class BatchUnit { /** * 组件业务执行方法 * @ param msg 具体的消息 */ @ Override public void execute ( UnitRequest msg , Handler < UnitResponse > handler ) { } }
Single < UnitResponse > result ; boolean flush = msg . get ( FLUSH , Boolean . class , false ) ; // 是否马上提交 msg . getArgMap ( ) . remove ( FLUSH ) ; // 判断是否需要批量操作 if ( getBatchSize ( ) >= MIN_BATCH_SIZE ) { recordCacheList . add ( msg . getArgMap ( ) ) ; // 判断是否达到批量执行的数量阈值 , 或者业务需要立即执行 if ( recordCacheList . size ( ) >= getBatchSize ( ) || flush ) { Map < String , Object > params = new HashMap < > ( ) ; synchronized ( recordCacheList ) { params . put ( VALUES , new ArrayList < Map > ( recordCacheList ) ) ; recordCacheList . clear ( ) ; } preBatchExecute ( msg ) ; result = SingleRxXian . call ( getBatchGroupName ( ) , getBatchUnitName ( ) , params ) ; } else { result = doCache ( msg ) ; } } else { // 没有批量需求 , 立即执行 result = SingleRxXian . call ( getBatchGroupName ( ) , getBatchUnitName ( ) , msg . getArgMap ( ) ) ; } result . subscribe ( handler :: handle ) ;
public class ObjectProfiler { /** * Computes the " shallow " size of an array instance . */ private static int sizeofArrayShell ( final int length , final Class componentType ) { } }
// this ignores memory alignment issues by design : final int slotSize = componentType . isPrimitive ( ) ? sizeofPrimitiveType ( componentType ) : OBJREF_SIZE ; return OBJECT_SHELL_SIZE + INT_FIELD_SIZE + OBJREF_SIZE + length * slotSize ;
public class AcroFields { /** * Sets the field value . * @ param name the fully qualified field name or the partial name in the case of XFA forms * @ param value the field value * @ throws IOException on error * @ throws DocumentException on error * @ return < CODE > true < / CODE > if the field was found and changed , * < CODE > false < / CODE > otherwise */ public boolean setField ( String name , String value ) throws IOException , DocumentException { } }
return setField ( name , value , null ) ;