signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class SqlTransientExceptionDetector { /** * Determines if the SQL exception is a rollback exception
* @ param se the exception
* @ return true if it is a code 40nnn , otherwise false */
public static boolean isSqlStateRollbackException ( SQLException se ) { } } | String sqlState = se . getSQLState ( ) ; return sqlState != null && sqlState . startsWith ( "40" ) ; |
public class CodecCollector { /** * Creates the positions .
* @ param statsPositionList
* the stats position list
* @ param positionsData
* the positions data
* @ param docSet
* the doc set
* @ throws IOException
* Signals that an I / O exception has occurred . */
private static void createPositions ( L... | if ( statsPositionList != null ) { for ( ComponentPosition position : statsPositionList ) { position . dataCollector . initNewList ( 1 ) ; Integer tmpValue ; long [ ] values = new long [ docSet . size ( ) ] ; int value ; int number = 0 ; for ( int docId : docSet ) { tmpValue = positionsData . get ( docId ) ; value = tm... |
public class AbstractActivator { /** * This method should be used to register services . Services registered with
* this method auto deregistered during bundle stop .
* @ param iface
* is the interface of the service to be used for later retrieval .
* @ param instance
* is an instance of the object to be regi... | Hashtable < String , String > properties = new Hashtable < String , String > ( ) ; return registerService ( iface , instance , properties ) ; |
public class DatabaseUtils { /** * Reads a Double out of a column in a Cursor and writes it to a ContentValues .
* Adds nothing to the ContentValues if the column isn ' t present or if its value is null .
* @ param cursor The cursor to read from
* @ param column The column to read
* @ param values The { @ link ... | final int index = cursor . getColumnIndex ( column ) ; if ( index != - 1 && ! cursor . isNull ( index ) ) { values . put ( column , cursor . getDouble ( index ) ) ; } |
public class SetReplicationCommand { /** * Changes the replication level of directory or file with the path specified in args .
* @ param path The { @ link AlluxioURI } path as the input of the command
* @ param replicationMax the max replicas , null if not to set
* @ param replicationMin the min replicas , null ... | SetAttributePOptions . Builder optionsBuilder = SetAttributePOptions . newBuilder ( ) . setRecursive ( recursive ) ; String message = "Changed the replication level of " + path + "\n" ; if ( replicationMax != null ) { optionsBuilder . setReplicationMax ( replicationMax ) ; message += "replicationMax was set to " + repl... |
public class Consumers { /** * Yields the last element .
* @ param < E > the iterable element type
* @ param iterable the iterable that will be consumed @ throw
* IllegalArgumentException if no element is found
* @ return the last element */
public static < E > E last ( Iterable < E > iterable ) { } } | dbc . precondition ( iterable != null , "cannot call last with a null iterable" ) ; return new LastElement < E > ( ) . apply ( iterable . iterator ( ) ) ; |
public class ALTaskTextViewerPanel { /** * Parses a PreviewCollection and return the resulting
* ParsedPreview object . If the PreviewCollection contains
* PreviewCollections again , it recursively adds their results . If it
* contains simple Previews , it adds their properties to the result .
* @ param pc Prev... | ParsedPreview pp = new ParsedPreview ( ) ; List < Preview > sps = pc . getPreviews ( ) ; if ( sps . size ( ) > 0 && sps . get ( 0 ) instanceof PreviewCollection ) { // members are PreviewCollections again
// NOTE : this assumes that all elements in sps are of the same type
for ( Preview sp : sps ) { @ SuppressWarnings ... |
public class Ifc4FactoryImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public IfcEventTriggerTypeEnum createIfcEventTriggerTypeEnumFromString ( EDataType eDataType , String initialValue ) { } } | IfcEventTriggerTypeEnum result = IfcEventTriggerTypeEnum . get ( initialValue ) ; if ( result == null ) throw new IllegalArgumentException ( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType . getName ( ) + "'" ) ; return result ; |
public class AbstractBulkSplit { /** * Computes and returns the best split point .
* @ param numEntries the number of entries to be split
* @ param minEntries the number of minimum entries in the node to be split
* @ param maxEntries number of maximum entries in the node to be split
* @ return the best split po... | if ( numEntries < minEntries ) { throw new IllegalArgumentException ( "numEntries < minEntries!" ) ; } if ( numEntries <= maxEntries ) { return numEntries ; } else if ( numEntries < maxEntries + minEntries ) { return ( numEntries - minEntries ) ; } else { return maxEntries ; } |
public class Strings { /** * JavaScript - escapes all the elements in the target set .
* @ param target the list of Strings to be escaped .
* If non - String objects , toString ( ) will be called .
* @ return a Set with the result of each
* each element of the target .
* @ since 2.0.11 */
public Set < String ... | if ( target == null ) { return null ; } final Set < String > result = new LinkedHashSet < String > ( target . size ( ) + 2 ) ; for ( final Object element : target ) { result . add ( escapeJavaScript ( element ) ) ; } return result ; |
public class Slot { /** * syntactic sugar */
public Slot addServiceType ( CodeableConcept t ) { } } | if ( t == null ) return this ; if ( this . serviceType == null ) this . serviceType = new ArrayList < CodeableConcept > ( ) ; this . serviceType . add ( t ) ; return this ; |
public class Spliterators { /** * Creates a { @ code Spliterator . OfLong } using a given
* { @ code LongStream . LongIterator } as the source of elements , and with a
* given initially reported size .
* < p > The spliterator is not
* < em > < a href = " Spliterator . html # binding " > late - binding < / a > <... | return new LongIteratorSpliterator ( Objects . requireNonNull ( iterator ) , size , characteristics ) ; |
public class AmazonSimpleDBUtil { /** * Encodes date value into string format that can be compared lexicographically
* @ param date
* date value to be encoded
* @ return string representation of the date value */
public static String encodeDate ( Date date ) { } } | SimpleDateFormat dateFormatter = new SimpleDateFormat ( dateFormat ) ; dateFormatter . setTimeZone ( TimeZone . getTimeZone ( UTC_TZ_ID ) ) ; /* Java doesn ' t handle ISO8601 nicely : need to add ' : ' manually */
String result = dateFormatter . format ( date ) ; return result . substring ( 0 , result . length ( ) - EN... |
public class CmsAttributeHandler { /** * Adds a new attribute value below the reference view . < p >
* @ param reference the reference value view */
public void addNewAttributeValue ( CmsAttributeValueView reference ) { } } | // make sure not to add more values than allowed
int maxOccurrence = getEntityType ( ) . getAttributeMaxOccurrence ( m_attributeName ) ; CmsEntityAttribute attribute = m_entity . getAttribute ( m_attributeName ) ; boolean mayHaveMore = ( ( attribute == null ) || ( attribute . getValueCount ( ) < maxOccurrence ) ) ; if ... |
public class WebSocketConnection { /** * Sends text to the client .
* @ param data
* string data
* @ throws UnsupportedEncodingException */
public void send ( String data ) throws UnsupportedEncodingException { } } | log . trace ( "send message: {}" , data ) ; // process the incoming string
if ( StringUtils . isNotBlank ( data ) ) { send ( Packet . build ( data . getBytes ( "UTF8" ) , MessageType . TEXT ) ) ; } else { throw new UnsupportedEncodingException ( "Cannot send a null string" ) ; } |
public class SessionManagerMBeanImpl { /** * Send attribute change notification */
private void publishToRepository ( String attributeName , String attributeType , Object oldValue , Object newValue ) { } } | super . sendNotification ( new AttributeChangeNotification ( this , sequenceNum . incrementAndGet ( ) , System . currentTimeMillis ( ) , "" , attributeName , attributeType , oldValue , newValue ) ) ; |
public class DocPretty { /** * Print string , replacing all non - ascii character with unicode escapes . */
protected void print ( Object s ) throws IOException { } } | out . write ( Convert . escapeUnicode ( s . toString ( ) ) ) ; |
public class FileUtils { /** * Borra este directorio y todo lo que haya dentro .
* Si esto no es un directorio sale .
* @ param dir
* @ return */
public static boolean deleteDirRecursively ( File dir ) { } } | if ( ! dir . exists ( ) || ! dir . isDirectory ( ) ) { // No hay ficheros que borrar a si que OK
log . warn ( "El directorio:'" + dir . getAbsolutePath ( ) + "' no existe o no es un directorio" ) ; return false ; } // el fichero es un directorio
boolean succed = true ; File listFile [ ] = dir . listFiles ( ) ; for ( Fi... |
public class Interceptors { /** * Add the global service interceptor to intercept all the method enhanced by aop Enhancer . */
public Interceptors addGlobalServiceInterceptor ( Interceptor globalServiceInterceptor ) { } } | if ( globalServiceInterceptor == null ) { throw new IllegalArgumentException ( "globalServiceInterceptor can not be null." ) ; } InterceptorManager . me ( ) . addGlobalServiceInterceptor ( globalServiceInterceptor ) ; return this ; |
public class PostgreSqlEngine { /** * Converts a String value into a PG JSON value ready to be assigned to bind variables in Prepared Statements .
* @ param val The String representation of the JSON value .
* @ return The correspondent JSON value
* @ throws DatabaseEngineException if there is an error creating th... | try { PGobject dataObject = new PGobject ( ) ; dataObject . setType ( "jsonb" ) ; dataObject . setValue ( val ) ; return dataObject ; } catch ( final SQLException ex ) { throw new DatabaseEngineException ( "Error while mapping variables to database, value = " + val , ex ) ; } |
public class Shape { /** * Calculate the radius of a circle that can completely enclose this shape . */
protected void calculateRadius ( ) { } } | boundingCircleRadius = 0 ; for ( int i = 0 ; i < points . length ; i += 2 ) { float temp = ( ( points [ i ] - center [ 0 ] ) * ( points [ i ] - center [ 0 ] ) ) + ( ( points [ i + 1 ] - center [ 1 ] ) * ( points [ i + 1 ] - center [ 1 ] ) ) ; boundingCircleRadius = ( boundingCircleRadius > temp ) ? boundingCircleRadius... |
public class PairSampler { /** * Sample with replacement unordered pairs of integers .
* @ param minI The minimum value for i ( inclusive ) .
* @ param maxI The maximum value for i ( exclusive ) .
* @ param minJ The minimum value for j ( inclusive ) .
* @ param maxJ The maximum value for j ( exclusive ) .
* @... | int numI = maxI - minI ; int numJ = maxJ - minJ ; // Count the max number possible :
long maxPairs = PairSampler . countUnorderedPairs ( minI , maxI , minJ , maxJ ) ; Collection < UnorderedPair > samples ; if ( maxPairs < 400000000 || prop > 0.1 ) { samples = new ArrayList < UnorderedPair > ( ) ; int min = Math . min (... |
public class HoneycombBitmapFactory { /** * Creates a bitmap of the specified width and height .
* @ param width the width of the bitmap
* @ param height the height of the bitmap
* @ param bitmapConfig the { @ link android . graphics . Bitmap . Config }
* used to create the decoded Bitmap
* @ return a referen... | if ( mImmutableBitmapFallback ) { return createFallbackBitmap ( width , height , bitmapConfig ) ; } CloseableReference < PooledByteBuffer > jpgRef = mJpegGenerator . generate ( ( short ) width , ( short ) height ) ; try { EncodedImage encodedImage = new EncodedImage ( jpgRef ) ; encodedImage . setImageFormat ( DefaultI... |
public class StringGroovyMethods { /** * Appends a String to the string representation of this number .
* @ param value a Number
* @ param right a String
* @ return a String
* @ since 1.0 */
public static String plus ( Number value , String right ) { } } | return DefaultGroovyMethods . toString ( value ) + right ; |
public class SmbFile { /** * @ return
* @ throws CIFSException */
synchronized SmbTreeHandleImpl ensureTreeConnected ( ) throws CIFSException { } } | if ( this . treeHandle == null || ! this . treeHandle . isConnected ( ) ) { if ( this . treeHandle != null && this . transportContext . getConfig ( ) . isStrictResourceLifecycle ( ) ) { this . treeHandle . release ( ) ; } this . treeHandle = this . treeConnection . connectWrapException ( this . fileLocator ) ; this . t... |
public class PlainTimestamp { /** * / * [ deutsch ]
* < p > Existiert dieser Zeitstempel in der angegebenen Zeitzone ? < / p >
* @ param tzid timezone id ( optional )
* @ return { @ code true } if this timestamp is valid in given timezone
* @ throws IllegalArgumentException if given timezone cannot be loaded */... | if ( tzid == null ) { return false ; } return ! Timezone . of ( tzid ) . isInvalid ( this . date , this . time ) ; |
public class CrystalGeometryTools { /** * Creates Cartesian coordinates for all Atoms in the Crystal . */
public static void fractionalToCartesian ( ICrystal crystal ) { } } | Iterator < IAtom > atoms = crystal . atoms ( ) . iterator ( ) ; Vector3d aAxis = crystal . getA ( ) ; Vector3d bAxis = crystal . getB ( ) ; Vector3d cAxis = crystal . getC ( ) ; while ( atoms . hasNext ( ) ) { IAtom atom = atoms . next ( ) ; Point3d fracPoint = atom . getFractionalPoint3d ( ) ; if ( fracPoint != null )... |
public class StateMachineDefinition { /** * Get the ID of the state that has been defined first .
* @ returnID of the first state */
public Integer getFirstStateId ( ) { } } | Set < Integer > ids = states . inverse ( ) . keySet ( ) ; if ( ids . size ( ) < 1 ) { throw new IllegalStateException ( "There is no state defined." ) ; } Integer [ ] idsArray = new Integer [ ids . size ( ) ] ; Arrays . sort ( ids . toArray ( idsArray ) ) ; return idsArray [ 0 ] ; |
public class IfcRelDefinesByTypeImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ SuppressWarnings ( "unchecked" ) @ Override public EList < IfcObject > getRelatedObjects ( ) { } } | return ( EList < IfcObject > ) eGet ( Ifc4Package . Literals . IFC_REL_DEFINES_BY_TYPE__RELATED_OBJECTS , true ) ; |
public class WSJdbcCallableStatement { /** * Construct and track a new result set wrapper .
* @ param rsetImpl result set to wrap .
* @ return wrapper */
protected WSJdbcResultSet createWrapper ( ResultSet rsetImpl ) { } } | // If the childWrapper is null , and the childWrappers is null or
// empty , set the result set to childWrapper ;
// Otherwise , add the result set to childWrappers
WSJdbcResultSet rsetWrapper ; if ( childWrapper == null && ( childWrappers == null || childWrappers . isEmpty ( ) ) ) { childWrapper = rsetWrapper = mcf . ... |
public class HttpComponentsRequestFactory { /** * Create a Commons HttpMethodBase object for the given HTTP method and URI specification .
* @ param method the HTTP method
* @ param uri the URI
* @ return the Commons HttpMethodBase object */
private static HttpUriRequest createHttpUriRequest ( String method , URI... | switch ( method ) { case "GET" : return new HttpGet ( uri ) ; case "HEAD" : return new HttpHead ( uri ) ; case "POST" : return new HttpPost ( uri ) ; case "PUT" : return new HttpPut ( uri ) ; case "PATCH" : return new HttpPatch ( uri ) ; case "DELETE" : return new HttpDelete ( uri ) ; case "OPTIONS" : return new HttpOp... |
public class UDPBroadcastReceiver { /** * - - - DISCONNECT - - - */
@ Override protected void disconnect ( ) { } } | // Stop thread
super . disconnect ( ) ; // Stop broadcast receiver
if ( broadcastReceiver != null ) { try { broadcastReceiver . close ( ) ; } catch ( Exception ignored ) { } broadcastReceiver = null ; logger . info ( "Broadcast discovery service stopped on udp://" + udpAddress + ':' + udpPort + '.' ) ; } |
public class FileStorage { /** * Returns only the name of the file , whereas
* { @ link # filePath ( int ) } returns the path ( inside the torrent file ) with
* the filename appended .
* @ param index the file index
* @ return the file name */
public String fileName ( int index ) { } } | byte_vector v = fs . file_name ( index ) . to_bytes ( ) ; return Vectors . byte_vector2utf8 ( v ) ; |
public class RuleFactory { /** * Determine if specified string is a known operator .
* @ param symbol string
* @ return true if string is a known operator */
public boolean isRule ( final String symbol ) { } } | return ( ( symbol != null ) && ( RULES . contains ( symbol . toLowerCase ( Locale . ENGLISH ) ) ) ) ; |
public class ObjectsUtils { /** * Checks that the specified object reference is not null .
* @ param object the object reference to check for nullity
* @ param errorMessage detail message to be used in the event that a NullPointerException is
* thrown
* @ param < T > the type of the reference
* @ return objec... | if ( object == null ) { throw new NullPointerException ( errorMessage ) ; } else { return object ; } |
public class VarConfig { /** * Gets the state ( in this config ) for a given variable . */
public int getState ( Var var ) { } } | Integer state = config . get ( var ) ; if ( state == null ) { throw new RuntimeException ( "VarConfig does not contain var: " + var ) ; } return state ; |
public class MessageProcessorMatching { /** * Method removeConsumerDispatcherMatchTarget
* Used to remove a ConsumerDispatcher from the MatchSpace .
* @ param consumerDispatcher The consumer dispatcher to remove */
public void removeConsumerDispatcherMatchTarget ( ConsumerDispatcher consumerDispatcher , SelectionCr... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeConsumerDispatcherMatchTarget" , new Object [ ] { consumerDispatcher , selectionCriteria } ) ; // Remove the consumer point from the matchspace
// Set the CD and selection criteria into a wrapper that extends MatchTar... |
public class AmazonWorkMailClient { /** * Removes a member from the resource ' s set of delegates .
* @ param disassociateDelegateFromResourceRequest
* @ return Result of the DisassociateDelegateFromResource operation returned by the service .
* @ throws EntityNotFoundException
* The identifier supplied for the... | request = beforeClientExecution ( request ) ; return executeDisassociateDelegateFromResource ( request ) ; |
public class MendeleyConverter { /** * Converts the given Mendeley document to CSL item data
* @ param documentId the Mendeley document ' s ID . Will be used as citation
* key if the document does not contain its own
* @ param document the Mendeley document
* @ return the CSL item data */
public static CSLItemD... | // convert citation id
String id = ( String ) document . get ( FIELD_CITATION_KEY ) ; if ( id == null ) { id = documentId ; } // convert type
String mtype = strOrNull ( document . get ( FIELD_TYPE ) ) ; CSLType type = toType ( mtype ) ; CSLItemDataBuilder builder = new CSLItemDataBuilder ( ) . id ( id ) . type ( type )... |
public class FieldDescriptorConstraints { /** * Checks that native primarykey fields have readonly access , and warns if not .
* @ param fieldDef The field descriptor
* @ param checkLevel The current check level ( this constraint is checked in basic and strict ) */
private void checkReadonlyAccessForNativePKs ( Fie... | if ( CHECKLEVEL_NONE . equals ( checkLevel ) ) { return ; } String access = fieldDef . getProperty ( PropertyHelper . OJB_PROPERTY_ACCESS ) ; String autoInc = fieldDef . getProperty ( PropertyHelper . OJB_PROPERTY_AUTOINCREMENT ) ; if ( "database" . equals ( autoInc ) && ! "readonly" . equals ( access ) ) { LogHelper .... |
public class DelimitedOutputFormat { @ Override public void close ( ) throws IOException { } } | if ( this . stream != null ) { this . stream . write ( this . buffer , 0 , this . pos ) ; } // close file stream
super . close ( ) ; |
public class JcCollection { /** * < div color = ' red ' style = " font - size : 24px ; color : red " > < b > < i > < u > JCYPHER < / u > < / i > < / b > < / div >
* < div color = ' red ' style = " font - size : 18px ; color : red " > < i > return the last element of a collection < / i > < / div >
* < br / > */
@ Su... | T ret ; if ( JcRelation . class . equals ( type ) ) { ret = ( T ) new JcRelation ( null , this , new FunctionInstance ( FUNCTION . Collection . LAST , 1 ) ) ; } else if ( JcNode . class . equals ( type ) ) { ret = ( T ) new JcNode ( null , this , new FunctionInstance ( FUNCTION . Collection . LAST , 1 ) ) ; } else { re... |
public class ReactionSchemeManipulator { /** * Get all ID of this IReactionSet .
* @ param scheme The IReactionScheme to analyze
* @ return A List with all ID */
public static List < String > getAllIDs ( IReactionScheme scheme ) { } } | List < String > IDlist = new ArrayList < String > ( ) ; if ( scheme . getID ( ) != null ) IDlist . add ( scheme . getID ( ) ) ; for ( IReaction reaction : scheme . reactions ( ) ) { IDlist . addAll ( ReactionManipulator . getAllIDs ( reaction ) ) ; } if ( scheme . getReactionSchemeCount ( ) != 0 ) for ( IReactionScheme... |
public class SubtitleChatOverlay { /** * Create a subtitle , but don ' t do anything funny with it . */
protected ChatGlyph createSubtitle ( ChatMessage message , int type , Graphics2D layoutGfx , boolean expires ) { } } | // we might need to modify the textual part with translations , but we can ' t do that to the
// message object , since other chatdisplays also get it .
String text = message . message ; Tuple < String , Boolean > finfo = _logic . decodeFormat ( type , message . getFormat ( ) ) ; String format = finfo . left ; boolean ... |
public class Strands { /** * This utility method prints a stack - trace into a { @ link java . io . PrintWriter }
* @ param trace a stack trace ( such as returned from { @ link Strand # getStackTrace ( ) } .
* @ param out the { @ link java . io . PrintWriter } into which the stack trace will be printed . */
public ... | Strand . printStackTrace ( trace , out ) ; |
public class HibernateSessionService { /** * closeSession
* @ throws org . hibernate . HibernateException if any . */
public void closeSession ( ) throws HibernateException { } } | Session s = threadSession . get ( ) ; threadSession . set ( null ) ; if ( s != null ) { s . close ( ) ; } Transaction tx = threadTransaction . get ( ) ; if ( tx != null ) { threadTransaction . set ( null ) ; // log warning todo
} |
public class BoundedBuffer { /** * @ awisniew - ADDED
* ( non - Javadoc )
* @ see java . util . concurrent . BlockingQueue # drainTo ( java . util . Collection , int ) */
@ Override public int drainTo ( Collection < ? super T > c , int maxElements ) { } } | // TODO - The elements aren ' t added to the given collection . . .
if ( c == null ) throw new NullPointerException ( ) ; if ( c == this ) throw new IllegalArgumentException ( ) ; int n = Math . min ( maxElements , size ( ) ) ; int numRemaining = n ; synchronized ( this ) { synchronized ( lock ) { // Retrieve and remov... |
public class FSNamesystem { /** * Get a listing of all files at ' src ' . The Object [ ] array
* exists so we can return file attributes ( soon to be implemented ) */
public HdfsFileStatus [ ] getHdfsListing ( String src ) throws IOException { } } | getListingCheck ( src ) ; HdfsFileStatus [ ] stats = dir . getHdfsListing ( src ) ; if ( auditLog . isInfoEnabled ( ) ) { logAuditEvent ( getCurrentUGI ( ) , Server . getRemoteIp ( ) , "listStatus" , src , null , null ) ; } return stats ; |
public class AnnotatorPlugin { private JPanel getPnl_mainPanel ( ) { } } | if ( pnl_mainPanel == null ) { pnl_mainPanel = new JPanel ( ) ; GridBagLayout gbl_pathsPanel = new GridBagLayout ( ) ; gbl_pathsPanel . columnWeights = new double [ ] { 0.0 , 1.0 , 1.0 } ; gbl_pathsPanel . rowWeights = new double [ ] { 0.05 , 0.05 , 0.0 , 0.0 } ; pnl_mainPanel . setLayout ( gbl_pathsPanel ) ; GridBagCo... |
public class JvmExecutableImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EList < JvmTypeReference > getExceptions ( ) { } } | if ( exceptions == null ) { exceptions = new EObjectContainmentEList < JvmTypeReference > ( JvmTypeReference . class , this , TypesPackage . JVM_EXECUTABLE__EXCEPTIONS ) ; } return exceptions ; |
public class ProducerSequenceFactory { /** * Returns a sequence that can be used for a request for an encoded image from either network or
* local files .
* @ param imageRequest the request that will be submitted
* @ return the sequence that should be used to process the request */
public Producer < CloseableRefe... | try { if ( FrescoSystrace . isTracing ( ) ) { FrescoSystrace . beginSection ( "ProducerSequenceFactory#getEncodedImageProducerSequence" ) ; } validateEncodedImageRequest ( imageRequest ) ; final Uri uri = imageRequest . getSourceUri ( ) ; switch ( imageRequest . getSourceUriType ( ) ) { case SOURCE_TYPE_NETWORK : retur... |
public class Commands { /** * Runs a script from the specified file .
* @ param line Command line
* @ param callback Callback for command status */
public void run ( String line , DispatchCallback callback ) { } } | String filename ; if ( line . length ( ) == "run" . length ( ) || ( filename = sqlLine . dequote ( line . substring ( "run" . length ( ) + 1 ) ) ) == null ) { sqlLine . error ( "Usage: run <file name>" ) ; callback . setToFailure ( ) ; return ; } List < String > cmds = new LinkedList < > ( ) ; try { final Parser parser... |
public class M3UAManagementImpl { /** * Create new { @ link AspFactoryImpl } without passing optional aspid
* @ param aspName
* @ param associationName
* @ return
* @ throws Exception */
public AspFactory createAspFactory ( String aspName , String associationName , boolean isHeartBeatEnabled ) throws Exception ... | long aspid = 0L ; boolean regenerateFlag = true ; while ( regenerateFlag ) { aspid = AspFactoryImpl . generateId ( ) ; if ( aspfactories . size ( ) == 0 ) { // Special case where this is first Asp added
break ; } for ( FastList . Node < AspFactory > n = aspfactories . head ( ) , end = aspfactories . tail ( ) ; ( n = n ... |
public class TagletWriterImpl { /** * { @ inheritDoc } */
protected Content literalTagOutput ( Tag tag ) { } } | Content result = new StringContent ( utils . normalizeNewlines ( tag . text ( ) ) ) ; return result ; |
public class SendObjectMessageImpl { /** * / * ( non - Javadoc )
* @ see com . tvd12 . ezyfox . core . command . BaseCommand # execute ( ) */
@ SuppressWarnings ( "unchecked" ) @ Override public Boolean execute ( ) { } } | User sfsSender = CommandUtil . getSfsUser ( sender , api ) ; api . sendObjectMessage ( getSfsRoom ( ) , sfsSender , getMessage ( ) , getSFSRecipients ( ) ) ; return Boolean . TRUE ; |
public class ComputeKNNOutlierScores { /** * Write a single output line .
* @ param out Output stream
* @ param ids DBIDs
* @ param result Outlier result
* @ param scaling Scaling function
* @ param label Identification label */
void writeResult ( PrintStream out , DBIDs ids , OutlierResult result , ScalingFu... | if ( scaling instanceof OutlierScaling ) { ( ( OutlierScaling ) scaling ) . prepare ( result ) ; } out . append ( label ) ; DoubleRelation scores = result . getScores ( ) ; for ( DBIDIter iter = ids . iter ( ) ; iter . valid ( ) ; iter . advance ( ) ) { double value = scores . doubleValue ( iter ) ; value = scaling != ... |
public class NavigationHandler { /** * < p class = " changed _ added _ 2_2 " > Overloaded variant of { @ link # handleNavigation ( javax . faces . context . FacesContext , java . lang . String , java . lang . String ) }
* that allows the caller to provide the defining document id for a flow
* to be entered by this ... | this . handleNavigation ( context , fromAction , outcome ) ; |
public class DescribeParametersRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DescribeParametersRequest describeParametersRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( describeParametersRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( describeParametersRequest . getFilters ( ) , FILTERS_BINDING ) ; protocolMarshaller . marshall ( describeParametersRequest . getParameterFilters ( ) , PARAMETE... |
public class SocketCache { /** * Empty the cache , and close all sockets . */
public void clear ( ) { } } | List < Socket > socketsToClear = new LinkedList < Socket > ( ) ; synchronized ( multimap ) { for ( Socket sock : multimap . values ( ) ) { socketsToClear . add ( sock ) ; } multimap . clear ( ) ; } for ( Socket sock : socketsToClear ) { IOUtils . closeSocket ( sock ) ; } |
public class Client { /** * Enroll a user with a given authentication factor .
* @ param userId
* The id of the user .
* @ param factorId
* The identifier of the factor to enroll the user with .
* @ param displayName
* A name for the users device .
* @ param number
* The phone number of the user in E . ... | cleanError ( ) ; prepareToken ( ) ; URIBuilder url = new URIBuilder ( settings . getURL ( Constants . ENROLL_FACTOR_URL , userId ) ) ; OneloginURLConnectionClient httpClient = new OneloginURLConnectionClient ( ) ; OAuthClient oAuthClient = new OAuthClient ( httpClient ) ; OAuthClientRequest bearerRequest = new OAuthBea... |
public class RedisDLock { /** * { @ inheritDoc } */
@ Override public RedisDLock init ( ) { } } | /* * Parse custom property : redis - host - and - port */
String hostAndPort = getLockProperty ( LOCK_PROP_REDIS_HOST_AND_PORT ) ; if ( ! StringUtils . isBlank ( hostAndPort ) ) { this . redisHostAndPort = hostAndPort ; } super . init ( ) ; return this ; |
public class DraggableViewCallback { /** * Override method used to apply different scale and alpha effects while the view is being
* dragged .
* @ param left position .
* @ param top position .
* @ param dx change in X position from the last call .
* @ param dy change in Y position from the last call . */
@ O... | if ( draggableView . isDragViewAtBottom ( ) ) { draggableView . changeDragViewViewAlpha ( ) ; } else { draggableView . restoreAlpha ( ) ; draggableView . changeDragViewScale ( ) ; draggableView . changeDragViewPosition ( ) ; draggableView . changeSecondViewAlpha ( ) ; draggableView . changeSecondViewPosition ( ) ; drag... |
public class JDefaultBase { /** * Fetches a random Object from the dictionary based on a key
* @ param key of the object to find
* @ return the Object that represents the key */
protected static Object fetch ( String key ) { } } | List valuesArray = ( List ) fetchObject ( key ) ; return valuesArray . get ( RandomUtils . nextInt ( valuesArray . size ( ) ) ) ; |
public class vpnglobal_auditsyslogpolicy_binding { /** * Use this API to fetch filtered set of vpnglobal _ auditsyslogpolicy _ binding resources .
* filter string should be in JSON format . eg : " port : 80 , servicetype : HTTP " . */
public static vpnglobal_auditsyslogpolicy_binding [ ] get_filtered ( nitro_service ... | vpnglobal_auditsyslogpolicy_binding obj = new vpnglobal_auditsyslogpolicy_binding ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; vpnglobal_auditsyslogpolicy_binding [ ] response = ( vpnglobal_auditsyslogpolicy_binding [ ] ) obj . getfiltered ( service , option ) ; return response ; |
public class WidgetFactory { /** * Create a { @ link Widget } of the specified { @ code widgetClass } to wrap the
* root { @ link GVRSceneObject } of the scene graph loaded from a file .
* @ param gvrContext
* The { @ link GVRContext } to load the model into .
* @ param modelFile
* The asset file to load the ... | GVRSceneObject rootNode = loadModel ( gvrContext , modelFile ) ; return createWidget ( rootNode , widgetClass ) ; |
public class SimpleSynchronousNotificationExecutor { /** * Fire notification of a new entry added to the registry .
* @ param putKey key identifying the entry in the registry .
* @ param putValue value of the entry in the registry . */
public void firePutNotification ( Iterator < RegistryListener < K , V > > listen... | while ( listeners . hasNext ( ) ) { listeners . next ( ) . onPutEntry ( putKey , putValue ) ; } |
public class CmsDateBox { /** * Sets the value of the date box . < p > */
private void updateFromPicker ( ) { } } | checkTime ( ) ; Date date = m_picker . getValue ( ) ; if ( ! m_dateOnly ) { String timeAsString = getTimeText ( ) ; date = CmsDateConverter . getDateWithTime ( date , timeAsString ) ; } setValue ( date ) ; setErrorMessage ( null ) ; fireChange ( date , false ) ; |
public class LocalisationManager { /** * Method addXmitQueuePoint
* @ param meUuid
* @ param ptoPMessageItemStream */
public void addXmitQueuePoint ( SIBUuid8 meUuid , PtoPMessageItemStream ptoPMessageItemStream ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "addXmitQueuePoint" , meUuid ) ; if ( _xmitQueuePoints != null ) { synchronized ( _xmitQueuePoints ) { _xmitQueuePoints . put ( meUuid , ptoPMessageItemStream ) ; } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isE... |
public class RunResultRecorder { /** * Adds the html reports actions to the left side menu .
* @ param build */
private void publishLrReports ( @ Nonnull Run < ? , ? > build ) throws IOException { } } | File reportDirectory = new File ( build . getRootDir ( ) , PERFORMANCE_REPORT_FOLDER ) ; if ( reportDirectory . exists ( ) ) { File htmlIndexFile = new File ( reportDirectory , INDEX_HTML_NAME ) ; if ( htmlIndexFile . exists ( ) ) { build . replaceAction ( new PerformanceReportAction ( build ) ) ; } } File summaryDirec... |
public class ZooKeeperClient { /** * Creates a node , with initial values .
* Note : nodes are created recursively ( parent nodes are created if needed ) .
* @ param path
* @ param value
* @ return
* @ throws ZooKeeperException */
public boolean createNode ( String path , String value ) throws ZooKeeperExcept... | return _create ( path , value != null ? value . getBytes ( UTF8 ) : null , CreateMode . PERSISTENT ) ; |
public class MongoDBBasicOperations { /** * Return the object as defined by this primary key .
* @ param primaryID
* the primary key for record
* @ return the record if available , < code > null < / code > otherwise */
@ Override public T get ( X primaryID ) { } } | if ( primaryID == null ) { return null ; } T dbObject = this . mongoTemplate . findById ( primaryID , this . entityClass ) ; return dbObject ; |
public class PropertiesMapping { /** * getDeclaredFields ( ) 能访问类中所有的字段 , 与public , private , protect无关 , 不能访问从其它类继承来的方法
* @ param ps */
public final void loadAll ( Properties ps ) { } } | // 表示如果Field是static的 , 则obj即便给它传值 , JVM也会忽略的 。 还说明了 , 此入参在这种情况下可以为null
for ( Field f : getClass ( ) . getDeclaredFields ( ) ) { try { setFiled ( f , ps . getProperty ( f . getName ( ) ) ) ; } catch ( Exception e ) { log . error ( e . getMessage ( ) , e ) ; } } |
public class ObjectParameter { /** * Parse primitive serialized object .
* @ param objectType the type of the object parsed
* @ param serializedObject the serialized string to parse
* @ return a new fresh instance of the object */
private Object parsePrimitive ( Class < ? > objectType , final String serializedObj... | Object res = null ; if ( Boolean . class . isAssignableFrom ( objectType ) ) { res = Boolean . valueOf ( serializedObject ) ; } else if ( String . class . isAssignableFrom ( objectType ) ) { res = serializedObject ; } else if ( Character . class . isAssignableFrom ( objectType ) ) { res = Character . valueOf ( serializ... |
public class TransferEncodingValues { /** * Find the enumerated object matching the input name . If this name has
* never been seen prior , then a new object is created by this call .
* @ param name
* @ param offset
* - starting point in that input name
* @ param length
* - length to use from that offset
... | TransferEncodingValues key = ( TransferEncodingValues ) myMatcher . match ( name , offset , length ) ; if ( null == key ) { synchronized ( TransferEncodingValues . class ) { // protect against 2 threads getting here on the new value by
// testing again inside a sync block
key = ( TransferEncodingValues ) myMatcher . ma... |
public class MultipleAlignmentScorer { /** * Calculates the average TMScore of all the possible pairwise structure
* comparisons of the given alignment .
* Complexity : T ( n , l ) = O ( l * n ^ 2 ) , if n = number of structures and l = alignment
* length .
* @ param alignment
* @ return double Average TMscor... | List < Atom [ ] > trans = MultipleAlignmentTools . transformAtoms ( alignment ) ; List < Integer > lengths = new ArrayList < Integer > ( alignment . size ( ) ) ; for ( Atom [ ] atoms : alignment . getAtomArrays ( ) ) { lengths . add ( atoms . length ) ; } return getAvgTMScore ( trans , lengths ) ; |
public class XmlParser { /** * Read a name or ( when parsing an enumeration ) name token .
* < pre >
* [ 5 ] Name : : = ( Letter | ' _ ' | ' : ' ) ( NameChar ) *
* [ 7 ] Nmtoken : : = ( NameChar ) +
* < / pre > */
private String readNmtoken ( boolean isName ) throws SAXException , IOException { } } | char c ; nameBufferPos = 0 ; // Read the first character .
while ( true ) { c = readCh ( ) ; switch ( c ) { case '%' : case '<' : case '>' : case '&' : case ',' : case '|' : case '*' : case '+' : case '?' : case ')' : case '=' : case '\'' : case '"' : case '[' : case ' ' : case '\t' : case '\n' : case '\r' : case ';' :... |
public class MicroMetaDao { /** * 锟斤拷荼锟斤拷锟缴撅拷锟 � */
public int delObjByCondition ( String tableName , String condition , Object [ ] paramArray , int [ ] typeArray ) { } } | // JdbcTemplate jdbcTemplate = ( JdbcTemplate ) MicroDbHolder . getDbSource ( dbName ) ;
// String tableName = changeTableNameCase ( otableName ) ;
JdbcTemplate jdbcTemplate = getMicroJdbcTemplate ( ) ; String sql = "delete from " + tableName + " where " + condition ; logger . debug ( sql ) ; logger . debug ( Arrays . ... |
public class DefaultExpander { /** * Expand LHS for a construction
* @ param lhs
* @ param lineOffset
* @ return */
private String expandLHS ( final String lhs , int lineOffset ) { } } | substitutions = new ArrayList < Map < String , String > > ( ) ; // logger . info ( " * * * LHS > " + lhs + " < " ) ;
final StringBuilder buf = new StringBuilder ( ) ; final String [ ] lines = lhs . split ( ( lhs . indexOf ( "\r\n" ) >= 0 ? "\r\n" : "\n" ) , - 1 ) ; // since we assembled the string , we know line breaks... |
public class RowIndexSearcher { /** * Returns the { @ link Search } contained in the specified list of { @ link IndexExpression } s .
* @ param clause A list of { @ link IndexExpression } s .
* @ return The { @ link Search } contained in the specified list of { @ link IndexExpression } s . */
private Search search ... | IndexExpression indexedExpression = indexedExpression ( clause ) ; String json = UTF8Type . instance . compose ( indexedExpression . value ) ; return Search . fromJson ( json ) ; |
public class CloudSnippets { /** * Example of running a query with named query parameters . */
public void runQueryWithNamedParameters ( ) throws InterruptedException { } } | // [ START bigquery _ query _ params _ named ]
// BigQuery bigquery = BigQueryOptions . getDefaultInstance ( ) . getService ( ) ;
String corpus = "romeoandjuliet" ; long minWordCount = 250 ; String query = "SELECT word, word_count\n" + "FROM `bigquery-public-data.samples.shakespeare`\n" + "WHERE corpus = @corpus\n" + "... |
public class SQLDroidPreparedStatement { /** * Set the parameter from the contents of a binary stream .
* @ param parameterIndex the index of the parameter to set
* @ param inputStream the input stream from which a byte array will be read and set as the value . If inputStream is null
* this method will throw a SQ... | if ( length <= 0 ) { throw new SQLException ( "Invalid length " + length ) ; } if ( inputStream == null ) { throw new SQLException ( "Input Stream cannot be null" ) ; } final int bufferSize = 8192 ; byte [ ] buffer = new byte [ bufferSize ] ; ByteArrayOutputStream outputStream = null ; try { outputStream = new ByteArra... |
public class CmsImportVersion7 { /** * Imports a resource from the current xml data . < p >
* @ see # addResourceAttributesRules ( Digester , String )
* @ see # addResourcePropertyRules ( Digester , String ) */
public void importResource ( ) { } } | boolean resourceIdWasNull = false ; try { if ( m_throwable != null ) { getReport ( ) . println ( m_throwable ) ; getReport ( ) . addError ( m_throwable ) ; CmsMessageContainer message = Messages . get ( ) . container ( Messages . ERR_IMPORTEXPORT_ERROR_IMPORTING_RESOURCES_0 ) ; if ( LOG . isDebugEnabled ( ) ) { LOG . d... |
public class ViewSet { /** * Creates a deployment view .
* @ param key the key for the deployment view ( must be unique )
* @ param description a description of the view
* @ return a DeploymentView object
* @ throws IllegalArgumentException if the key is not unique */
public DeploymentView createDeploymentView ... | assertThatTheViewKeyIsSpecifiedAndUnique ( key ) ; DeploymentView view = new DeploymentView ( model , key , description ) ; view . setViewSet ( this ) ; deploymentViews . add ( view ) ; return view ; |
public class JmsMessageImpl { /** * If the message properties are read - only , throw a MessageNotWriteableException . */
protected void checkPropertiesWriteable ( String callingMethodName ) throws JMSException { } } | if ( propertiesReadOnly ) { throw ( javax . jms . MessageNotWriteableException ) JmsErrorUtils . newThrowable ( javax . jms . MessageNotWriteableException . class , "READ_ONLY_MESSAGE_PROPERTY_CWSIA0108" , new Object [ ] { callingMethodName } , tc ) ; } |
public class HFactory { /** * Use createKeyspaceDefinition to add a new Keyspace to cluster . Example :
* String testKeyspace = " testKeyspace " ; KeyspaceDefinition newKeyspace =
* HFactory . createKeyspaceDefinition ( testKeyspace ) ;
* cluster . addKeyspace ( newKeyspace ) ;
* @ param keyspaceName
* @ para... | return new ThriftKsDef ( keyspaceName , strategyClass , replicationFactor , cfDefs ) ; |
public class OldDataMonitor { /** * Inform monitor that some data in a deprecated format has been loaded , during
* XStream unmarshalling when the Saveable containing this object is not available .
* @ param context XStream unmarshalling context
* @ param version Hudson release when the data structure changed . *... | RobustReflectionConverter . addErrorInContext ( context , new ReportException ( version ) ) ; |
public class DataJdbcSource { /** * 直接本地执行SQL语句进行查询 , 远程模式不可用 < br >
* 通常用于复杂的关联查询 < br >
* @ param < V > 泛型
* @ param sql SQL语句
* @ param handler 回调函数
* @ return 结果 */
@ Local @ Override public < V > V directQuery ( String sql , Function < ResultSet , V > handler ) { } } | final Connection conn = readPool . poll ( ) ; try { if ( logger . isLoggable ( Level . FINEST ) ) logger . finest ( "direct query sql=" + sql ) ; conn . setReadOnly ( true ) ; final Statement statement = conn . createStatement ( ) ; // final PreparedStatement statement = conn . prepareStatement ( sql , ResultSet . TYPE... |
public class Matrix { /** * Creates a new Matrix that stores the result of < i > A - c < / i >
* @ param c the scalar constant to subtract from < i > this < / i >
* @ param threadPool the source of threads to do computation in parallel
* @ return a new matrix equal to < i > A - B < / i > */
public Matrix subtract... | Matrix toReturn = getThisSideMatrix ( null ) ; toReturn . mutableSubtract ( c , threadPool ) ; return toReturn ; |
public class MiscService { /** * Returns the Docker version information
* @ return a { @ link DockerVersionInfo } instance describing this docker installation . */
public DockerVersionInfo getVersionInfo ( ) { } } | String json = getServiceEndPoint ( ) . path ( "/version" ) . request ( MediaType . APPLICATION_JSON_TYPE ) . get ( String . class ) ; return toObject ( json , DockerVersionInfo . class ) ; |
public class BaseField { /** * This is a utility method to simplify setting a single field to the field ' s property .
* @ return The error code on set . */
public int setSFieldToProperty ( ) { } } | int iErrorCode = DBConstants . NORMAL_RETURN ; m_bJustChanged = false ; for ( int iComponent = 0 ; ; iComponent ++ ) { ScreenComponent sField = this . getComponent ( iComponent ) ; if ( sField == null ) break ; iErrorCode = sField . setSFieldToProperty ( null , DBConstants . DISPLAY , DBConstants . READ_MOVE ) ; } if (... |
public class AlertPolicyChannelService { /** * Deletes the given alert channel from the alert policy with the given id .
* @ param policyId The id of the alert policy from which to delete the channel
* @ param channelId The id of the alert channel to delete
* @ return This object */
public AlertPolicyChannelServi... | QueryParameterList queryParams = new QueryParameterList ( ) ; queryParams . add ( "policy_id" , policyId ) ; queryParams . add ( "channel_id" , channelId ) ; HTTP . DELETE ( "/v2/alerts_policy_channels.json" , null , queryParams ) ; return this ; |
public class ErrorMessage { /** * < p > parseErrors . < / p >
* @ param exception a { @ link java . lang . Throwable } object .
* @ param status a int .
* @ return a { @ link java . util . List } object . */
public static List < Result . Error > parseErrors ( Throwable exception , int status ) { } } | List < Result . Error > errors = Lists . newArrayList ( ) ; if ( status == 500 || status == 400 ) { Throwable cause = exception ; while ( cause != null ) { StackTraceElement [ ] stackTraceElements = cause . getStackTrace ( ) ; if ( stackTraceElements != null && stackTraceElements . length > 0 ) { Result . Error error =... |
public class BellaDatiServiceImpl { /** * Appends a locale language parameter to the URI builder . Won ' t do anything
* if the locale is < tt > null < / tt > .
* @ param builder the builder to append to
* @ param locale the locale to append
* @ return the same builder , for chaining */
public URIBuilder append... | if ( locale != null ) { builder . addParameter ( "lang" , locale . getLanguage ( ) ) ; } return builder ; |
public class BellaDatiServiceImpl { /** * Appends a filter parameter from the given filters to the URI builder .
* Won ' t do anything if the filter collection is empty .
* @ param builder the builder to append to
* @ param filters filters to append
* @ return the same builder , for chaining */
public URIBuilde... | if ( filters . size ( ) > 0 ) { ObjectNode filterNode = new ObjectMapper ( ) . createObjectNode ( ) ; for ( Filter < ? > filter : filters ) { filterNode . setAll ( filter . toJson ( ) ) ; } ObjectNode drilldownNode = new ObjectMapper ( ) . createObjectNode ( ) ; drilldownNode . put ( "drilldown" , filterNode ) ; builde... |
public class FlowScopeBeanHolder { /** * See description on ViewScopeBeanHolder for details about how this works */
@ PreDestroy public void destroyBeansOnPreDestroy ( ) { } } | Map < String , ContextualStorage > oldWindowContextStorages = forceNewStorage ( ) ; if ( ! oldWindowContextStorages . isEmpty ( ) ) { FacesContext facesContext = FacesContext . getCurrentInstance ( ) ; ServletContext servletContext = null ; if ( facesContext == null ) { try { servletContext = applicationContextBean . g... |
public class KamComparison { /** * Returns the average KAM node degree .
* Zero is returned if the average is undefined ( in case
* the number of KAM nodes is zero ) . */
public double getAverageKamNodeDegree ( String kamName ) { } } | final int nodes = getKamNodeCount ( kamName ) ; return ( nodes != 0 ? ( ( double ) 2 * getKamEdgeCount ( kamName ) ) / nodes : 0.0 ) ; |
public class SnapshotDaemon { /** * Invoked when this snapshot daemon has been elected as leader */
private void electedTruncationLeader ( ) throws Exception { } } | loggingLog . info ( "This node was selected as the leader for snapshot truncation" ) ; m_truncationSnapshotScanTask = m_es . scheduleWithFixedDelay ( new Runnable ( ) { @ Override public void run ( ) { try { scanTruncationSnapshots ( ) ; } catch ( Exception e ) { loggingLog . error ( "Error during scan and group of tru... |
public class WeakFastHashMap { /** * Return < code > true < / code > if this map contains one or more keys mapping
* to the specified value .
* @ param value the value to be searched for
* @ return true if the map contains the value */
@ Override public boolean containsValue ( Object value ) { } } | if ( fast ) { return ( map . containsValue ( value ) ) ; } else { synchronized ( map ) { return ( map . containsValue ( value ) ) ; } } |
public class StylesheetHandler { /** * Push a base identifier onto the base URI stack .
* @ param baseID The current base identifier for this position in the
* stylesheet , which may be a fragment identifier , or which may be null .
* @ see < a href = " http : / / www . w3 . org / TR / xslt # base - uri " >
* S... | if ( null != baseID ) { int posOfHash = baseID . indexOf ( '#' ) ; if ( posOfHash > - 1 ) { m_fragmentIDString = baseID . substring ( posOfHash + 1 ) ; m_shouldProcess = false ; } else m_shouldProcess = true ; } else m_shouldProcess = true ; m_baseIdentifiers . push ( baseID ) ; |
public class InternalSARLParser { /** * $ ANTLR start synpred22 _ InternalSARL */
public final void synpred22_InternalSARL_fragment ( ) throws RecognitionException { } } | // InternalSARL . g : 10289:6 : ( ( ( ) ( ( ( ruleJvmFormalParameter ) ) ( ' , ' ( ( ruleJvmFormalParameter ) ) ) * ) ? ( ( ' | ' ) ) ) )
// InternalSARL . g : 10289:7 : ( ( ) ( ( ( ruleJvmFormalParameter ) ) ( ' , ' ( ( ruleJvmFormalParameter ) ) ) * ) ? ( ( ' | ' ) ) )
{ // InternalSARL . g : 10289:7 : ( ( ) ( ( ( ru... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.