signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class MetricAdjustmentImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public void setVUniformIncrement ( Integer newVUniformIncrement ) { } }
Integer oldVUniformIncrement = vUniformIncrement ; vUniformIncrement = newVUniformIncrement ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . METRIC_ADJUSTMENT__VUNIFORM_INCREMENT , oldVUniformIncrement , vUniformIncrement ) ) ;
public class Ifc2x3tc1FactoryImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public IfcWindowPanelPositionEnum createIfcWindowPanelPositionEnumFromString ( EDataType eDataType , String initialValue ) { } }
IfcWindowPanelPositionEnum result = IfcWindowPanelPositionEnum . get ( initialValue ) ; if ( result == null ) throw new IllegalArgumentException ( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType . getName ( ) + "'" ) ; return result ;
public class WnsService { /** * Pushes a tile to channelUri * @ param channelUri * @ param tile which should be built with { @ link ar . com . fernandospr . wns . model . builders . WnsTileBuilder } * @ return WnsNotificationResponse please see response headers from < a href = " http : / / msdn . microsoft . com ...
return this . pushTile ( channelUri , null , tile ) ;
public class FreeMarkerTag { /** * Processes text as a FreeMarker template . Usually used to process an inner body of a tag . * @ param text text of a template . * @ param params map with parameters for processing . * @ param writer writer to write output to . */ protected void process ( String text , Map params ...
try { Template t = new Template ( "temp" , new StringReader ( text ) , FreeMarkerTL . getEnvironment ( ) . getConfiguration ( ) ) ; t . process ( params , writer ) ; } catch ( Exception e ) { throw new ViewException ( e ) ; }
public class StatsInterface { /** * Get the overall view counts for an account * @ param date * ( Optional ) Stats will be returned for this date . A day according to Flickr Stats starts at midnight GMT for all users , and timestamps will * automatically be rounded down to the start of the day . If no date is pro...
Map < String , Object > parameters = new HashMap < String , Object > ( ) ; parameters . put ( "method" , METHOD_GET_TOTAL_VIEWS ) ; if ( date != null ) { parameters . put ( "date" , String . valueOf ( date . getTime ( ) / 1000L ) ) ; } Response response = transportAPI . get ( transportAPI . getPath ( ) , parameters , a...
public class XMLName { /** * See ECMA357 13.1.2.1 */ static boolean accept ( Object nameObj ) { } }
String name ; try { name = ScriptRuntime . toString ( nameObj ) ; } catch ( EcmaError ee ) { if ( "TypeError" . equals ( ee . getName ( ) ) ) { return false ; } throw ee ; } // See http : / / w3 . org / TR / xml - names11 / # NT - NCName int length = name . length ( ) ; if ( length != 0 ) { if ( isNCNameStartChar ( nam...
public class Mapping { /** * Checks if this is consistent with the specified column family metadata . * @ param metadata A column family metadata . */ public void validate ( CFMetaData metadata ) { } }
for ( Map . Entry < String , ColumnMapper > entry : columnMappers . entrySet ( ) ) { String name = entry . getKey ( ) ; ColumnMapper columnMapper = entry . getValue ( ) ; ByteBuffer columnName = UTF8Type . instance . decompose ( name ) ; ColumnDefinition columnDefinition = metadata . getColumnDefinition ( columnName ) ...
public class ExtensionAuthentication { /** * Gets the popup menu for flagging the " Logged in " pattern . * @ return the popup menu */ private PopupContextMenuItemFactory getPopupFlagLoggedInIndicatorMenu ( ) { } }
if ( this . popupFlagLoggedInIndicatorMenuFactory == null ) { popupFlagLoggedInIndicatorMenuFactory = new PopupContextMenuItemFactory ( "dd - " + Constant . messages . getString ( "context.flag.popup" ) ) { private static final long serialVersionUID = 2453839120088204122L ; @ Override public ExtensionPopupMenuItem getC...
public class SparseVector { /** * get a value * @ param i * @ return return symbolTable [ i ] */ public double get ( int i ) { } }
if ( i < 0 || i >= N ) throw new IllegalArgumentException ( "Illegal index " + i + " should be > 0 and < " + N ) ; if ( symbolTable . contains ( i ) ) return symbolTable . get ( i ) ; else return 0.0 ;
public class Util { /** * If { @ code host } is an IP address , this returns the IP address in canonical form . * < p > Otherwise this performs IDN ToASCII encoding and canonicalize the result to lowercase . For * example this converts { @ code ☃ . net } to { @ code xn - - n3h . net } , and { @ code WwW . GoOgLe . ...
// If the input contains a : , it ’ s an IPv6 address . if ( host . contains ( ":" ) ) { // If the input is encased in square braces " [ . . . ] " , drop ' em . InetAddress inetAddress = host . startsWith ( "[" ) && host . endsWith ( "]" ) ? decodeIpv6 ( host , 1 , host . length ( ) - 1 ) : decodeIpv6 ( host , 0 , host...
public class SocketChannelOutputStream { /** * @ see java . io . OutputStream # write ( byte [ ] , int , int ) */ public void write ( byte [ ] buf , int offset , int length ) throws IOException { } }
if ( length > _buffer . capacity ( ) ) _flush = ByteBuffer . wrap ( buf , offset , length ) ; else { _buffer . clear ( ) ; _buffer . put ( buf , offset , length ) ; _buffer . flip ( ) ; _flush = _buffer ; } flushBuffer ( ) ;
public class EventNotificationUrl { /** * Get Resource Url for GetEvents * @ param filter A set of filter expressions representing the search parameters for a query . This parameter is optional . Refer to [ Sorting and Filtering ] ( . . / . . / . . / . . / Developer / api - guides / sorting - filtering . htm ) for a ...
UrlFormatter formatter = new UrlFormatter ( "/api/event/pull/?startIndex={startIndex}&pageSize={pageSize}&sortBy={sortBy}&filter={filter}&responseFields={responseFields}" ) ; formatter . formatUrl ( "filter" , filter ) ; formatter . formatUrl ( "pageSize" , pageSize ) ; formatter . formatUrl ( "responseFields" , respon...
public class CmsLock { /** * Returns the html code to build the lock request . < p > * @ param hiddenTimeout the maximal number of millis the dialog will be hidden * @ param includeRelated indicates if the report should include related resources * @ return html code */ public String buildLockRequest ( int hiddenT...
StringBuffer html = new StringBuffer ( 512 ) ; html . append ( "<script type='text/javascript'><!--\n" ) ; html . append ( "makeRequest('" ) ; html . append ( getJsp ( ) . link ( "/system/workplace/commons/report-locks.jsp" ) ) ; html . append ( "', '" ) ; html . append ( CmsWorkplace . PARAM_RESOURCELIST ) ; html . ap...
public class ModulesInner { /** * Update the module identified by module name . * @ param resourceGroupName Name of an Azure Resource group . * @ param automationAccountName The name of the automation account . * @ param moduleName The name of module . * @ param parameters The update parameters for module . *...
return updateWithServiceResponseAsync ( resourceGroupName , automationAccountName , moduleName , parameters ) . map ( new Func1 < ServiceResponse < ModuleInner > , ModuleInner > ( ) { @ Override public ModuleInner call ( ServiceResponse < ModuleInner > response ) { return response . body ( ) ; } } ) ;
public class LayerCacheImpl { /** * / * ( non - Javadoc ) * @ see com . ibm . jaggr . service . layer . ILayerCache # setAggregator ( com . ibm . jaggr . service . IAggregator ) */ @ Override public void setAggregator ( IAggregator aggregator ) { } }
if ( this . aggregator != null ) { throw new IllegalStateException ( ) ; } this . aggregator = aggregator ; // See if the max cache entries init - param has changed and int newMaxCapacity = getMaxCapacity ( aggregator ) ; // If the maximum size has changed , then create a new layerBuildMap with the new // max size and ...
public class OnlineAccuracyUpdatedEnsemble { /** * Initiates the current chunk and class distribution variables . */ private void initVariables ( ) { } }
if ( this . currentWindow == null ) { this . currentWindow = new int [ this . windowSize ] ; } if ( this . classDistributions == null ) { this . classDistributions = new long [ this . getModelContext ( ) . classAttribute ( ) . numValues ( ) ] ; }
public class MZMLMultiSpectraParser { /** * Given a scan internal number ( spectrum index ) goes to the index and tries to find a mapping . */ protected int mapRawNumToInternalScanNum ( int spectrumIndex ) throws FileParsingException { } }
MZMLIndexElement byRawNum = index . getByRawNum ( spectrumIndex ) ; if ( byRawNum == null ) { String msg = String . format ( "Could not find a mapping from spectrum index" + " ref to an internal scan number for" + "\n\t file: %s" + "\n\t spectrum index searched for: #%d" + "\n\t spectrum index of the spectrum in which ...
public class WebSiteManagementClientImpl { /** * Check if a resource name is available . * Check if a resource name is available . * @ param name Resource name to verify . * @ param type Resource type used for verification . Possible values include : ' Site ' , ' Slot ' , ' HostingEnvironment ' , ' PublishingUser...
return checkNameAvailabilityWithServiceResponseAsync ( name , type , isFqdn ) . map ( new Func1 < ServiceResponse < ResourceNameAvailabilityInner > , ResourceNameAvailabilityInner > ( ) { @ Override public ResourceNameAvailabilityInner call ( ServiceResponse < ResourceNameAvailabilityInner > response ) { return respons...
public class Result { /** * The projecting result value at the given index as a boolean value * @ param index The select result index . * @ return The boolean value . */ @ Override public boolean getBoolean ( int index ) { } }
check ( index ) ; final FLValue flValue = values . get ( index ) ; return flValue != null && flValue . asBool ( ) ;
public class BarChart { /** * Callback method for drawing the bars in the child classes . * @ param _ Canvas The canvas object of the graph view . */ protected void drawBars ( Canvas _Canvas ) { } }
for ( BarModel model : mData ) { RectF bounds = model . getBarBounds ( ) ; mGraphPaint . setColor ( model . getColor ( ) ) ; _Canvas . drawRect ( bounds . left , bounds . bottom - ( bounds . height ( ) * mRevealValue ) , bounds . right , bounds . bottom , mGraphPaint ) ; if ( mShowValues ) { _Canvas . drawText ( Utils ...
public class PartitionGroupConfig { /** * Adds a MemberGroupConfig . This MemberGroupConfig only has meaning when the group - type is set to * { @ link MemberGroupType # CUSTOM } . See the { @ link PartitionGroupConfig } for more information and examples * of how this mechanism works . * @ param memberGroupConfig...
isNotNull ( memberGroupConfigs , "memberGroupConfigs" ) ; this . memberGroupConfigs . clear ( ) ; this . memberGroupConfigs . addAll ( memberGroupConfigs ) ; return this ;
public class ZScreenField { /** * Create a URL to retrieve the JNLP file . * @ param propApplet * @ param properties * @ return */ public String getJnlpURL ( String strJnlpURL , Map < String , Object > propApplet , Map < String , Object > properties ) { } }
String strBaseURL = ( String ) properties . get ( DBParams . BASE_URL ) ; if ( strBaseURL == null ) strBaseURL = DBConstants . BLANK ; else if ( ( ! strBaseURL . startsWith ( "/" ) ) && ( ! strBaseURL . startsWith ( "http:" ) ) ) strBaseURL = "//" + strBaseURL ; if ( ! strBaseURL . startsWith ( "http:" ) ) strBaseURL =...
public class PoolBase { /** * Check the default transaction isolation of the Connection . * @ param connection a Connection to check * @ throws SQLException rethrown from the driver */ private void checkDefaultIsolation ( final Connection connection ) throws SQLException { } }
try { defaultTransactionIsolation = connection . getTransactionIsolation ( ) ; if ( transactionIsolation == - 1 ) { transactionIsolation = defaultTransactionIsolation ; } } catch ( SQLException e ) { logger . warn ( "{} - Default transaction isolation level detection failed ({})." , poolName , e . getMessage ( ) ) ; if...
public class BindDataSourceSubProcessor { /** * Build classes . * @ param roundEnv * the round env * @ throws Exception * the exception */ protected void generateClassesSecondRound ( RoundEnvironment roundEnv ) throws Exception { } }
for ( SQLiteDatabaseSchema currentSchema : schemas ) { BindDaoBuilder . generateSecondRound ( elementUtils , filer , currentSchema ) ; }
public class Aggregation { /** * Provides a { @ link StreamConsumer } for streaming data to this aggregation . * @ param inputClass class of input records * @ param < T > data records type * @ return consumer for streaming data to aggregation */ @ SuppressWarnings ( "unchecked" ) public < T , C , K extends Compar...
checkArgument ( new HashSet < > ( getKeys ( ) ) . equals ( keyFields . keySet ( ) ) , "Expected keys: %s, actual keyFields: %s" , getKeys ( ) , keyFields ) ; checkArgument ( getMeasureTypes ( ) . keySet ( ) . containsAll ( measureFields . keySet ( ) ) , "Unknown measures: %s" , difference ( measureFields . keySet ( ) ,...
public class TmdbMovies { /** * This method is used to retrieve all of the release and certification data we have for a specific movie . * @ param movieId * @ param language * @ return * @ throws MovieDbException */ public ResultList < ReleaseInfo > getMovieReleaseInfo ( int movieId , String language ) throws M...
TmdbParameters parameters = new TmdbParameters ( ) ; parameters . add ( Param . ID , movieId ) ; parameters . add ( Param . LANGUAGE , language ) ; URL url = new ApiUrl ( apiKey , MethodBase . MOVIE ) . subMethod ( MethodSub . RELEASES ) . buildUrl ( parameters ) ; String webpage = httpTools . getRequest ( url ) ; try ...
public class JCRAPIAspect { /** * Initializes the aspect if needed */ private static void initIfNeeded ( ) { } }
if ( ! INITIALIZED ) { synchronized ( JCRAPIAspect . class ) { if ( ! INITIALIZED ) { ExoContainer container = ExoContainerContext . getTopContainer ( ) ; JCRAPIAspectConfig config = null ; if ( container != null ) { config = ( JCRAPIAspectConfig ) container . getComponentInstanceOfType ( JCRAPIAspectConfig . class ) ;...
public class NameNode { /** * In federation configuration is set for a set of * namenode and secondary namenode / backup / checkpointer , which are * grouped under a logical nameservice ID . The configuration keys specific * to them have suffix set to configured nameserviceId . * This method copies the value fr...
if ( ( serviceKey == null ) || serviceKey . isEmpty ( ) ) { return ; } // adjust meta directory names by service key adjustMetaDirectoryNames ( conf , serviceKey ) ; DFSUtil . setGenericConf ( conf , serviceKey , NAMESERVICE_SPECIFIC_KEYS ) ;
public class Parser { /** * return node ; */ private Node parseFilter ( ) { } }
Token token = expect ( Filter . class ) ; Filter filterToken = ( Filter ) token ; AttributeList attr = ( AttributeList ) accept ( AttributeList . class ) ; lexer . setPipeless ( true ) ; Node tNode = parseTextBlock ( ) ; lexer . setPipeless ( false ) ; FilterNode node = new FilterNode ( ) ; node . setValue ( filterToke...
public class NettySMTPClientSession { /** * Create a { @ link ChannelBuffer } which is terminated with a CRLF . CRLF sequence * @ param data * @ return buffer */ private static ChannelBuffer createDataTerminatingChannelBuffer ( byte [ ] data ) { } }
int length = data . length ; if ( length < 1 ) { return ChannelBuffers . wrappedBuffer ( CRLF_DOT_CRLF ) ; } else { byte [ ] terminating ; byte last = data [ length - 1 ] ; if ( length == 1 ) { if ( last == CR ) { terminating = LF_DOT_CRLF ; } else { terminating = CRLF_DOT_CRLF ; } } else { byte prevLast = data [ lengt...
public class LiveStreamEvent { /** * Sets the adBreakFillType value for this LiveStreamEvent . * @ param adBreakFillType * The type of content that should be used to fill an empty ad * break . This value is optional and * defaults to { @ link AdBreakFillType # SLATE } . */ public void setAdBreakFillType ( com . g...
this . adBreakFillType = adBreakFillType ;
public class Buffer { /** * Read { @ code byteCount } bytes from { @ code in } to this . */ public Buffer readFrom ( InputStream in , long byteCount ) throws IOException { } }
if ( byteCount < 0 ) throw new IllegalArgumentException ( "byteCount < 0: " + byteCount ) ; readFrom ( in , byteCount , false ) ; return this ;
public class SSLEngineImpl { /** * Unwraps a buffer . Does a variety of checks before grabbing * the unwrapLock , which blocks multiple unwraps from occuring . */ public SSLEngineResult unwrap ( ByteBuffer netData , ByteBuffer [ ] appData , int offset , int length ) throws SSLException { } }
EngineArgs ea = new EngineArgs ( netData , appData , offset , length ) ; try { synchronized ( unwrapLock ) { return readNetRecord ( ea ) ; } } catch ( Exception e ) { /* * Don ' t reset position so it looks like we didn ' t * consume anything . We did consume something , and it * got us into this situation , so rep...
public class PointLight { /** * Updates light basing on it ' s distance and rayNum * */ void setEndPoints ( ) { } }
float angleNum = 360f / ( rayNum - 1 ) ; for ( int i = 0 ; i < rayNum ; i ++ ) { final float angle = angleNum * i ; sin [ i ] = MathUtils . sinDeg ( angle ) ; cos [ i ] = MathUtils . cosDeg ( angle ) ; endX [ i ] = distance * cos [ i ] ; endY [ i ] = distance * sin [ i ] ; }
public class Indicator { /** * < editor - fold defaultstate = " collapsed " desc = " Initialization " > */ @ Override public final AbstractGauge init ( int WIDTH , int HEIGHT ) { } }
final int GAUGE_WIDTH = isFrameVisible ( ) ? WIDTH : getGaugeBounds ( ) . width ; final int GAUGE_HEIGHT = isFrameVisible ( ) ? HEIGHT : getGaugeBounds ( ) . height ; if ( GAUGE_WIDTH <= 1 || GAUGE_HEIGHT <= 1 ) { return this ; } if ( ! isFrameVisible ( ) ) { setFramelessOffset ( - getGaugeBounds ( ) . width * 0.084112...
public class StreamLoader { /** * Finishes loader * @ throws Exception an exception raised in finishing loader . */ @ Override public void finish ( ) throws Exception { } }
LOGGER . debug ( "Finish Loading" ) ; flushQueues ( ) ; if ( _is_last_finish_call ) { try { if ( _after != null ) { LOGGER . debug ( "Running Execute After SQL" ) ; _processConn . createStatement ( ) . execute ( _after ) ; } // Loader sucessfully completed . Commit and return . _processConn . createStatement ( ) . exec...
public class CellStyleProxy { /** * 折り返し設定を有効にする */ public void setWrapText ( ) { } }
if ( cell . getCellStyle ( ) . getWrapText ( ) ) { // 既に有効な場合 return ; } cloneStyle ( ) ; cell . getCellStyle ( ) . setShrinkToFit ( false ) ; cell . getCellStyle ( ) . setWrapText ( true ) ;
public class Mork { /** * Helper for compile */ private boolean compileCurrent ( ) throws IOException { } }
Specification spec ; Mapper result ; output . normal ( currentJob . source + ":" ) ; if ( currentJob . listing != null ) { output . openListing ( currentJob . listing ) ; } spec = ( Specification ) mapperMapper . invoke ( currentJob . source ) ; if ( spec == null ) { return false ; } try { result = spec . translate ( c...
public class Shape { /** * Creates the shape information buffer * given the shape , stride * @ param shape the shape for the buffer * @ param stride the stride for the buffer * @ param offset the offset for the buffer * @ param elementWiseStride the element wise stride for the buffer * @ param order the ord...
if ( shape . length != stride . length ) throw new IllegalStateException ( "Shape and stride must be the same length" ) ; int rank = shape . length ; int shapeBuffer [ ] = new int [ rank * 2 + 4 ] ; shapeBuffer [ 0 ] = rank ; int count = 1 ; for ( int e = 0 ; e < shape . length ; e ++ ) shapeBuffer [ count ++ ] = shape...
public class RpcResponse { /** * Marshals this response to a Map that can be serialized */ @ SuppressWarnings ( "unchecked" ) public Map marshal ( ) { } }
HashMap map = new HashMap ( ) ; map . put ( "jsonrpc" , "2.0" ) ; if ( id != null ) map . put ( "id" , id ) ; if ( error != null ) map . put ( "error" , error . toMap ( ) ) ; else map . put ( "result" , result ) ; return map ;
public class AuditUtils { /** * Creates an audit entry for the ' contract broken ' event . * @ param bean the bean * @ param securityContext the security context * @ return the audit entry */ public static AuditEntryBean contractBrokenToApi ( ContractBean bean , ISecurityContext securityContext ) { } }
AuditEntryBean entry = newEntry ( bean . getApi ( ) . getApi ( ) . getOrganization ( ) . getId ( ) , AuditEntityType . Api , securityContext ) ; entry . setWhat ( AuditEntryType . BreakContract ) ; entry . setEntityId ( bean . getApi ( ) . getApi ( ) . getId ( ) ) ; entry . setEntityVersion ( bean . getApi ( ) . getVer...
public class Validator { /** * 验证是否为身份证号码 ( 18位中国 ) < br > * 出生日期只支持到到2999年 * @ param < T > 字符串类型 * @ param value 值 * @ param errorMsg 验证错误的信息 * @ return 验证后的值 * @ throws ValidateException 验证异常 */ public static < T extends CharSequence > T validateCitizenIdNumber ( T value , String errorMsg ) throws Validat...
if ( false == isCitizenId ( value ) ) { throw new ValidateException ( errorMsg ) ; } return value ;
public class AmazonSNSClient { /** * Verifies an endpoint owner ' s intent to receive messages by validating the token sent to the endpoint by an * earlier < code > Subscribe < / code > action . If the token is valid , the action creates a new subscription and returns * its Amazon Resource Name ( ARN ) . This call ...
request = beforeClientExecution ( request ) ; return executeConfirmSubscription ( request ) ;
public class DefaultPlatformManager { /** * Zips up a directory . */ private void zipDirectory ( String zipFile , String dirToZip ) { } }
File directory = new File ( dirToZip ) ; try ( ZipOutputStream stream = new ZipOutputStream ( new FileOutputStream ( zipFile ) ) ) { addDirectoryToZip ( directory , directory , stream ) ; } catch ( Exception e ) { throw new PlatformManagerException ( "Failed to zip module" , e ) ; }
public class AbstractPackageIndexWriter { /** * Adds the doctitle to the documentation tree , if it is specified on the command line . * @ param body the document tree to which the title will be added */ protected void addConfigurationTitle ( Content body ) { } }
if ( configuration . doctitle . length ( ) > 0 ) { Content title = new RawHtml ( configuration . doctitle ) ; Content heading = HtmlTree . HEADING ( HtmlConstants . TITLE_HEADING , HtmlStyle . title , title ) ; Content div = HtmlTree . DIV ( HtmlStyle . header , heading ) ; body . addContent ( div ) ; }
public class IntlPhoneInput { /** * Get number * @ return Phone number in E . 164 format | null on error */ @ SuppressWarnings ( "unused" ) public String getNumber ( ) { } }
Phonenumber . PhoneNumber phoneNumber = getPhoneNumber ( ) ; if ( phoneNumber == null ) { return null ; } return mPhoneUtil . format ( phoneNumber , PhoneNumberUtil . PhoneNumberFormat . E164 ) ;
public class CmsLock { /** * Returns < code > true < / code > if this is an exclusive , temporary exclusive , or * directly inherited lock , and the current user is the owner of this lock , * checking also the project of the lock . < p > * @ param cms the CMS context to check * @ return < code > true < / code >...
return ( isExclusive ( ) || isDirectlyInherited ( ) ) && isOwnedInProjectBy ( cms . getRequestContext ( ) . getCurrentUser ( ) , cms . getRequestContext ( ) . getCurrentProject ( ) ) ;
public class ASrvOrm { /** * < p > Evaluate SQL create table statement . < / p > * @ param pEntityName entity simple name * @ return SQL create table */ public final String evalSqlCreateTable ( final String pEntityName ) { } }
TableSql tableSql = getTablesMap ( ) . get ( pEntityName ) ; StringBuffer result = new StringBuffer ( "create table " + pEntityName . toUpperCase ( ) + " (\n" ) ; boolean isFirstField = true ; for ( Map . Entry < String , FieldSql > entry : tableSql . getFieldsMap ( ) . entrySet ( ) ) { if ( ! ( entry . getValue ( ) . ...
public class JKObjectUtil { /** * Checks if is primitive . * @ param type the type * @ return true , if is primitive */ public static boolean isPrimitive ( Class < ? > type ) { } }
if ( type . isPrimitive ( ) ) { return true ; } // check if wrapper ; if ( PRIMITIVES_TO_WRAPPERS . values ( ) . contains ( type ) ) { return true ; } return false ;
public class ProtobufProxyUtils { /** * to process default value of < code > @ Protobuf < / code > value on field . * @ param fields all field to process * @ param ignoreNoAnnotation the ignore no annotation * @ param isZipZap the is zip zap * @ return list of fields */ public static List < FieldInfo > processD...
if ( fields == null ) { return null ; } List < FieldInfo > ret = new ArrayList < FieldInfo > ( fields . size ( ) ) ; int maxOrder = 0 ; List < FieldInfo > unorderFields = new ArrayList < FieldInfo > ( fields . size ( ) ) ; Set < Integer > orders = new HashSet < Integer > ( ) ; for ( Field field : fields ) { Ignore igno...
public class AgigaDocumentReader { /** * Assumes the position of vn is at a " DOC " tag */ private List < AgigaCoref > parseCorefs ( VTDNav vn ) throws PilotException , NavException { } }
require ( vn . matchElement ( AgigaConstants . DOC ) ) ; List < AgigaCoref > agigaCorefs = new ArrayList < AgigaCoref > ( ) ; if ( ! vn . toElement ( VTDNav . FIRST_CHILD , AgigaConstants . COREFERENCES ) ) { // If there is no coref annotation return the empty list log . finer ( "No corefs found" ) ; return agigaCorefs...
public class TreeScanner { /** * { @ inheritDoc } This implementation scans the children in left to right order . * @ param node { @ inheritDoc } * @ param p { @ inheritDoc } * @ return the result of scanning */ @ Override public R visitUnionType ( UnionTypeTree node , P p ) { } }
return scan ( node . getTypeAlternatives ( ) , p ) ;
public class BccClient { /** * Return a list of instances owned by the authenticated user . * @ param request The request containing all options for listing own ' s bcc Instance . * @ return The response containing a list of instances owned by the authenticated user . */ public ListInstancesResponse listInstances (...
checkNotNull ( request , "request should not be null." ) ; InternalRequest internalRequest = this . createRequest ( request , HttpMethodName . GET , INSTANCE_PREFIX ) ; if ( request . getMarker ( ) != null ) { internalRequest . addParameter ( "marker" , request . getMarker ( ) ) ; } if ( request . getMaxKeys ( ) > 0 ) ...
public class ResponseExceptionHandler { /** * Method for handling exception of type { @ link MultipartException } which is * thrown in case the request body is not well formed and cannot be * deserialized . Called by the Spring - Framework for exception handling . * @ param request * the Http request * @ para...
logRequest ( request , ex ) ; final List < Throwable > throwables = ExceptionUtils . getThrowableList ( ex ) ; final Throwable responseCause = Iterables . getLast ( throwables ) ; if ( responseCause . getMessage ( ) . isEmpty ( ) ) { LOG . warn ( "Request {} lead to MultipartException without root cause message:\n{}" ,...
public class GetPipelineStateResult { /** * A list of the pipeline stage output information , including stage name , state , most recent run details , whether * the stage is disabled , and other data . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setStag...
if ( this . stageStates == null ) { setStageStates ( new java . util . ArrayList < StageState > ( stageStates . length ) ) ; } for ( StageState ele : stageStates ) { this . stageStates . add ( ele ) ; } return this ;
public class JsonPath { /** * Applies this JsonPath to the provided json string * @ param json a json string * @ param < T > expected return type * @ return list of objects matched by the given path */ @ SuppressWarnings ( { } }
"unchecked" } ) public < T > T read ( String json ) { return read ( json , Configuration . defaultConfiguration ( ) ) ;
public class SameDiff { /** * Adds a field name - > variable name mapping for a given function . < br > * This is used for model import where there is an unresolved variable at the time of calling any * { @ link org . nd4j . imports . graphmapper . GraphMapper # importGraph ( File ) } * This data structure is typ...
fieldVariableResolutionMapping . put ( function . getOwnName ( ) , fieldName , varName ) ;
public class CPDefinitionInventoryPersistenceImpl { /** * Clears the cache for all cp definition inventories . * The { @ link EntityCache } and { @ link FinderCache } are both cleared by this method . */ @ Override public void clearCache ( ) { } }
entityCache . clearCache ( CPDefinitionInventoryImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ;
public class SQSMessage { /** * Sets a Java object property value with the specified name into the * message . * Note that this method works only for the boxed primitive object types * ( Integer , Double , Long . . . ) and String objects . * @ param name * The name of the property to set . * @ param value ...
if ( name == null || name . isEmpty ( ) ) { throw new IllegalArgumentException ( "Property name can not be null or empty." ) ; } if ( value == null || "" . equals ( value ) ) { throw new IllegalArgumentException ( "Property value can not be null or empty." ) ; } if ( ! isValidPropertyValueType ( value ) ) { throw new M...
public class SipSessionImpl { /** * ( non - Javadoc ) * @ see org . mobicents . javax . servlet . sip . SipSessionExt # setOutboundInterface ( javax . servlet . sip . SipURI ) */ public void setOutboundInterface ( SipURI outboundInterface ) { } }
if ( ! isValid ( ) ) { throw new IllegalStateException ( "the session has been invalidated" ) ; } if ( outboundInterface == null ) { throw new NullPointerException ( "parameter is null" ) ; } List < SipURI > list = sipFactory . getSipNetworkInterfaceManager ( ) . getOutboundInterfaces ( ) ; SipURI networkInterface = nu...
public class ST_Drape { /** * Drape a linestring to a set of triangles * @ param line * @ param triangles * @ param sTRtree * @ return */ public static Geometry drapeLineString ( LineString line , Geometry triangles , STRtree sTRtree ) { } }
GeometryFactory factory = line . getFactory ( ) ; // Split the triangles in lines to perform all intersections Geometry triangleLines = LinearComponentExtracter . getGeometry ( triangles , true ) ; Geometry diffExt = lineMerge ( line . difference ( triangleLines ) , factory ) ; CoordinateSequenceFilter drapeFilter = ne...
public class XmlFile { /** * Opens a { @ link Reader } that loads XML . * This method uses { @ link # sniffEncoding ( ) the right encoding } , * not just the system default encoding . * @ throws IOException Encoding issues * @ return Reader for the file . should be close externally once read . */ public Reader ...
try { InputStream fileInputStream = Files . newInputStream ( file . toPath ( ) ) ; try { return new InputStreamReader ( fileInputStream , sniffEncoding ( ) ) ; } catch ( IOException ex ) { // Exception may happen if we fail to find encoding or if this encoding is unsupported . // In such case we close the underlying st...
public class CacheStatsModule { /** * updates the global statistics for disk information * @ param objectsOnDisk number of cache entries that are currently on disk * @ param pendingRemoval number of objects that have been invalidated by are yet to be removed from disk * @ param depidsOnDisk number of dependency i...
final String methodName = "updateDiskCacheStatistics()" ; boolean anyStatChangedValue = false ; if ( _csmDisk != null && _csmDisk . _enable ) { if ( _csmDisk . _objectsOnDisk != null ) { if ( ! anyStatChangedValue ) anyStatChangedValue = anyValueChanged ( _csmDisk . _objectsOnDisk , objectsOnDisk ) ; _csmDisk . _object...
public class Transforms { /** * Pow function * @ param ndArray the ndarray to raise hte power of * @ param power the power to raise by * @ return the ndarray raised to this power */ public static INDArray pow ( INDArray ndArray , Number power ) { } }
return pow ( ndArray , power , true ) ;
public class PendingRequestsMap { /** * Decreases the number of remaining instances to request of the given type . * @ param instanceType * the instance type for which the number of remaining instances shall be decreased */ void decreaseNumberOfPendingInstances ( final InstanceType instanceType ) { } }
Integer numberOfRemainingInstances = this . pendingRequests . get ( instanceType ) ; if ( numberOfRemainingInstances == null ) { return ; } numberOfRemainingInstances = Integer . valueOf ( numberOfRemainingInstances . intValue ( ) - 1 ) ; if ( numberOfRemainingInstances . intValue ( ) == 0 ) { this . pendingRequests . ...
public class Text { /** * Returns the name part of the path * @ param path * the path * @ return the name part */ public static String getName ( String path ) { } }
int pos = path . lastIndexOf ( '/' ) ; return pos >= 0 ? path . substring ( pos + 1 ) : "" ;
public class Evaluation { /** * Gets the PermissionSet . * @ param _ instance the instance * @ param _ evaluate the evaluate * @ return the PermissionSet * @ throws EFapsException on error */ public static PermissionSet getPermissionSet ( final Instance _instance , final boolean _evaluate ) throws EFapsExceptio...
Evaluation . LOG . debug ( "Retrieving PermissionSet for {}" , _instance ) ; final Key accessKey = Key . get4Instance ( _instance ) ; final PermissionSet ret ; if ( AccessCache . getPermissionCache ( ) . containsKey ( accessKey ) ) { ret = AccessCache . getPermissionCache ( ) . get ( accessKey ) ; } else if ( _evaluate...
public class Func { /** * Lift a Java Func2 to a Scala Function2 * @ param f the function to lift * @ returns the Scala function */ public static < A , B , Z > Function2 < A , B , Z > lift ( Func2 < A , B , Z > f ) { } }
return bridge . lift ( f ) ;
public class StatsManager { /** * collects and increments counts of status code , route / status code and statuc _ code bucket , eg 2xx 3xx 4xx 5xx * @ param route * @ param statusCode */ public void collectRouteStats ( String route , int statusCode ) { } }
// increments 200 , 301 , 401 , 503 , etc . status counters final String preciseStatusString = String . format ( "status_%d" , statusCode ) ; NamedCountingMonitor preciseStatus = namedStatusMap . get ( preciseStatusString ) ; if ( preciseStatus == null ) { preciseStatus = new NamedCountingMonitor ( preciseStatusString ...
public class ProviderConfigurationSupport { /** * Subclassing hook to allow api helper bean to be configured with attributes from annotation * @ param allAttributes additional attributes that may be used when creating the API helper bean . * @ return a { @ link BeanDefinitionBuilder } for the API Helper */ protecte...
return BeanDefinitionBuilder . genericBeanDefinition ( apiHelperClass ) . addConstructorArgReference ( "usersConnectionRepository" ) . addConstructorArgReference ( "userIdSource" ) ;
public class ChunkedHashStore { /** * Adds the elements returned by an iterator to this store , associating them with specified values . * @ param elements an iterator returning elements . * @ param values an iterator on values parallel to { @ code elements } . */ public void addAll ( final Iterator < ? extends T >...
addAll ( elements , values , false ) ;
public class DeleteVoiceChannelRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( DeleteVoiceChannelRequest deleteVoiceChannelRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( deleteVoiceChannelRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deleteVoiceChannelRequest . getApplicationId ( ) , APPLICATIONID_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall reque...
public class BindDaoFactoryBuilder { /** * Build dao factory interface . * @ param elementUtils the element utils * @ param filer the filer * @ param schema the schema * @ return schema typeName * @ throws Exception the exception */ public String buildDaoFactoryInterface ( Elements elementUtils , Filer filer ...
String schemaName = generateDaoFactoryName ( schema ) ; PackageElement pkg = elementUtils . getPackageOf ( schema . getElement ( ) ) ; String packageName = pkg . isUnnamed ( ) ? "" : pkg . getQualifiedName ( ) . toString ( ) ; AnnotationProcessorUtilis . infoOnGeneratedClasses ( BindDataSource . class , packageName , s...
public class StoreFactoryImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public String convertServiceSimpleTypeToString ( EDataType eDataType , Object instanceValue ) { } }
return instanceValue == null ? null : instanceValue . toString ( ) ;
public class JsMessageVisitor { /** * Defines any special cases that are exceptions to what would otherwise be illegal message * assignments . * < p > These exceptions are generally due to the pass being designed before new syntax was * introduced . */ private static boolean isLegalMessageVarAlias ( Node msgNode ...
if ( msgNode . isGetProp ( ) && msgNode . isQualifiedName ( ) && msgNode . getLastChild ( ) . getString ( ) . equals ( msgKey ) ) { // Case : ` foo . Thing . MSG _ EXAMPLE = bar . OtherThing . MSG _ EXAMPLE ; ` // This kind of construct is created by Es6ToEs3ClassSideInheritance . Just ignore it ; the // message will h...
public class EventServicesImpl { /** * This is for regression tester only . * @ param masterRequestId */ public void sendDelayEventsToWaitActivities ( String masterRequestId ) throws DataAccessException , ProcessException { } }
TransactionWrapper transaction = null ; EngineDataAccessDB edao = new EngineDataAccessDB ( ) ; try { transaction = edao . startTransaction ( ) ; List < ProcessInstance > procInsts = edao . getProcessInstancesByMasterRequestId ( masterRequestId , null ) ; for ( ProcessInstance pi : procInsts ) { List < ActivityInstance ...
public class DroolsStreamUtils { /** * This method reads the contents from the given byte array and returns the object . It is expected that * the contents in the given buffer was not compressed , and the content stream was written by the corresponding * streamOut methods of this class . * @ param bytes * @ par...
return streamIn ( bytes , classLoader , false ) ;
public class CmsModelGroupHelper { /** * Returns the descending instance id ' s to the given element instance . < p > * @ param instanceId the instance id * @ param containersByParent the container page containers by parent instance id * @ return the containers */ private Set < String > collectDescendingInstances...
Set < String > descendingInstances = new HashSet < String > ( ) ; descendingInstances . add ( instanceId ) ; if ( containersByParent . containsKey ( instanceId ) ) { for ( CmsContainerBean container : containersByParent . get ( instanceId ) ) { for ( CmsContainerElementBean element : container . getElements ( ) ) { des...
public class MarshallUtil { /** * Marshall arrays . * This method supports { @ code null } { @ code array } . * @ param array Array to marshall . * @ param out { @ link ObjectOutput } to write . * @ param < E > Array type . * @ throws IOException If any of the usual Input / Output related exceptions occur . *...
final int size = array == null ? NULL_VALUE : array . length ; marshallSize ( out , size ) ; if ( size <= 0 ) { return ; } for ( int i = 0 ; i < size ; ++ i ) { out . writeObject ( array [ i ] ) ; }
public class Util { /** * Check lat lon are withing allowable range as per 1371-4 . pdf . Note that * values of long = 181 , lat = 91 have special meaning . * @ param lat * @ param lon */ public static void checkLatLong ( double lat , double lon ) { } }
checkArgument ( lon <= 181.0 , "longitude out of range " + lon ) ; checkArgument ( lon > - 180.0 , "longitude out of range " + lon ) ; checkArgument ( lat <= 91.0 , "latitude out of range " + lat ) ; checkArgument ( lat > - 90.0 , "latitude out of range " + lat ) ;
public class DatabaseDAODefaultImpl { public String getAliasFromDevice ( Database database , String deviceName ) throws DevFailed { } }
DeviceData argIn = new DeviceData ( ) ; argIn . insert ( deviceName ) ; DeviceData argOut = command_inout ( database , "DbGetDeviceAlias" , argIn ) ; return argOut . extractString ( ) ;
public class ConsumerDispatcher { /** * Detach a consumer point from this CD . * @ param consumerKey The ConsumerKey object of the consumer point * being detached */ @ Override public void detachConsumerPoint ( ConsumerKey consumerKey ) throws SIResourceException , SINotPossibleInCurrentConfigurationException { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "detachConsumerPoint" , consumerKey ) ; // if p2p then we must remove the CP from the matchspace also if ( ! _isPubSub ) { // Remove the CP from the MatchSpace _baseDestHandler . removeConsumerPointMatchTarget ( ( Dispatchab...
public class BeanUtils { /** * Creates a { @ link Map } from all bean data get methods except the ones * specified to exclude . Note that " getClass " is always excluded . * @ param bean The bean with data to extract . * @ param excludes The method names to exclude . * @ return The map of bean data . */ public ...
excludes . add ( "getClass" ) ; final Object [ ] emptyParams = new Object [ 0 ] ; final Method [ ] methods = bean . getClass ( ) . getMethods ( ) ; final Map < String , String > fields = new HashMap < String , String > ( ) ; for ( final Method method : methods ) { if ( method . getParameterTypes ( ) . length > 0 ) { co...
public class DelegatingRestrictor { /** * Actual check which delegate to one or more restrictor services if available . * @ param pCheck a function object for performing the actual check * @ param args arguments passed through to the check * @ return true if all checks return true */ private boolean checkRestrict...
try { ServiceReference [ ] serviceRefs = bundleContext . getServiceReferences ( Restrictor . class . getName ( ) , null ) ; if ( serviceRefs != null ) { boolean ret = true ; boolean found = false ; for ( ServiceReference serviceRef : serviceRefs ) { Restrictor restrictor = ( Restrictor ) bundleContext . getService ( se...
public class AutoRegistration { /** * Validate the given application name . * @ param name The application name * @ param typeDescription The detailed information about name */ protected void validateName ( String name , String typeDescription ) { } }
if ( ! APPLICATION_NAME_PATTERN . matcher ( name ) . matches ( ) ) { throw new DiscoveryException ( typeDescription + " [" + name + "] must start with a letter, end with a letter or digit and contain only letters, digits or hyphens. Example: foo-bar" ) ; }
public class PAbstractObject { /** * Get a property as a boolean or default value . * @ param key the property name * @ param defaultValue the default */ @ Override public final Boolean optBool ( final String key , final Boolean defaultValue ) { } }
Boolean result = optBool ( key ) ; return result == null ? defaultValue : result ;
public class GrowQueue_F64 { /** * Creates a queue with the specified length as its size filled with all zeros */ public static GrowQueue_F64 zeros ( int length ) { } }
GrowQueue_F64 out = new GrowQueue_F64 ( length ) ; out . size = length ; return out ;
public class SimulationApplicationSummaryMarshaller { /** * Marshall the given parameter object . */ public void marshall ( SimulationApplicationSummary simulationApplicationSummary , ProtocolMarshaller protocolMarshaller ) { } }
if ( simulationApplicationSummary == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( simulationApplicationSummary . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( simulationApplicationSummary . getArn ( ) , ARN_BINDING ) ; pr...
public class AbstractGuacamoleTunnelService { /** * Returns a guacamole configuration which joins the active connection * having the given ID , using the provided sharing profile to restrict the * access provided to the user accessing the shared connection . If tokens * are used in the connection parameter values...
// Generate configuration from available data GuacamoleConfiguration config = new GuacamoleConfiguration ( ) ; config . setConnectionID ( connectionID ) ; // Set parameters from associated data Collection < SharingProfileParameterModel > parameters = sharingProfileParameterMapper . select ( sharingProfile . getIdentifi...
public class DatanodeDescriptor { /** * Remove block from the list and insert * into the head of the list of blocks * related to the specified DatanodeDescriptor . * If the head is null then form a new list . * @ return current block as the new head of the list . */ protected BlockInfo listMoveToHead ( BlockInf...
assert head != null : "Head can not be null" ; if ( head == block ) { return head ; } BlockInfo next = block . getSetNext ( indexes . currentIndex , head ) ; BlockInfo prev = block . getSetPrevious ( indexes . currentIndex , null ) ; head . setPrevious ( indexes . headIndex , block ) ; indexes . headIndex = indexes . c...
public class DefaultNameContextGenerator { /** * Returns a list of the features for < code > toks [ i ] < / code > that can * be safely cached . In other words , return a list of all * features that do not depend on previous outcome or decision * features . This method is called by < code > search < / code > . ...
List feats = new ArrayList ( ) ; feats . add ( "def" ) ; // current word String w = toks [ i ] . toString ( ) . toLowerCase ( ) ; feats . add ( "w=" + w ) ; String wf = wordFeature ( toks [ i ] . toString ( ) ) ; feats . add ( "wf=" + wf ) ; feats . add ( "w&wf=" + w + "," + wf ) ; String pt = ( String ) prevTags . get...
public class Sensor { /** * Validate that this sensor doesn ' t end up referencing itself */ private void checkForest ( Set < Sensor > sensors ) { } }
if ( ! sensors . add ( this ) ) throw new IllegalArgumentException ( "Circular dependency in sensors: " + name ( ) + " is its own parent." ) ; for ( int i = 0 ; i < parents . length ; i ++ ) parents [ i ] . checkForest ( sensors ) ;
public class GlobalDebug { /** * Set the debug mode for the common Java components : * < ul > * < li > JAXP < / li > * < li > Javax Activation < / li > * < li > Javax Mail < / li > * < / ul > * @ param bDebugMode * < code > true < / code > to enable debug mode , < code > false < / code > to * disable it...
// Set JAXP debugging ! // Note : this property is read - only on Ubuntu , defined by the following // policy file : / etc / tomcat6 / policy . d / 04webapps . policy SystemProperties . setPropertyValue ( SYSTEM_PROPERTY_JAXP_DEBUG , bDebugMode ) ; // Set javax . activation debugging SystemProperties . setPropertyValue...
public class CmsSearchResultView { /** * Generates a html form ( named form & lt ; n & gt ; ) with parameters found in * the given GET request string ( appended params with " ? value = param & value2 = param2 ) . * & gt ; n & lt ; is the number of forms that already have been generated . * This is a content - exp...
StringBuffer result ; String formname = "" ; if ( ! m_formCache . containsKey ( getRequestUri ) ) { result = new StringBuffer ( ) ; int index = getRequestUri . indexOf ( '?' ) ; String query = "" ; String path = "" ; if ( index > 0 ) { query = getRequestUri . substring ( index + 1 ) ; path = getRequestUri . substring (...
public class PickerUtilities { /** * isSameLocalDate , This compares two date variables to see if their values are equal . Returns * true if the values are equal , otherwise returns false . * More specifically : This returns true if both values are null ( an empty date ) . Or , this * returns true if both of the ...
// If both values are null , return true . if ( first == null && second == null ) { return true ; } // At least one value contains a date . If the other value is null , then return false . if ( first == null || second == null ) { return false ; } // Both values contain dates . Return true if the dates are equal , other...
public class AllocatedEvaluatorImpl { /** * Submit Context and Service with configuration strings . * This method should be called from bridge and the configuration strings are * serialized at . Net side . * @ param evaluatorConfiguration * @ param contextConfiguration * @ param serviceConfiguration */ public...
launchWithConfigurationString ( evaluatorConfiguration , contextConfiguration , Optional . of ( serviceConfiguration ) , Optional . < String > empty ( ) ) ;
public class EmailApi { /** * Accept the email interaction * Accept the interaction specified in the id path parameter * @ param id id of interaction to accept ( required ) * @ param acceptData Request parameters . ( optional ) * @ return ApiSuccessResponse * @ throws ApiException If fail to call the API , e ...
ApiResponse < ApiSuccessResponse > resp = acceptEmailWithHttpInfo ( id , acceptData ) ; return resp . getData ( ) ;
public class PathChildrenCache { /** * Return the current data . There are no guarantees of accuracy . This is * merely the most recent view of the data . The data is returned in sorted order . * @ return list of children and data */ public List < ChildData > getCurrentData ( ) { } }
return ImmutableList . copyOf ( Sets . < ChildData > newTreeSet ( currentData . values ( ) ) ) ;
public class Context { /** * Find map containing parameter from this context and upwards * @ param name * @ return */ public Map < String , Object > getMap ( String name ) { } }
if ( variables . containsKey ( name ) ) return variables ; else if ( parent != null ) return parent . getMap ( name ) ; return null ;
public class SimpleAntlrSwitch { /** * Calls < code > caseXXX < / code > for each class of the model until one returns a non null result ; it yields that result . * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ return the first non - null result returned by a < code > caseXXX < / code > ca...
switch ( classifierID ) { case SimpleAntlrPackage . ANTLR_GRAMMAR : { AntlrGrammar antlrGrammar = ( AntlrGrammar ) theEObject ; T result = caseAntlrGrammar ( antlrGrammar ) ; if ( result == null ) result = defaultCase ( theEObject ) ; return result ; } case SimpleAntlrPackage . OPTIONS : { Options options = ( Options )...