code
stringlengths
10
174k
nl
stringlengths
3
129k
@Override public Object eGet(int featureID,boolean resolve,boolean coreType){ switch (featureID) { case SGraphPackage.ENTRY__KIND: return getKind(); } return super.eGet(featureID,resolve,coreType); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public static <T>List<T> synchronizedList(List<T> list){ if (list == null) { throw new NullPointerException(); } if (list instanceof RandomAccess) { return new SynchronizedRandomAccessList<T>(list); } return new SynchronizedList<T>(list); }
Returns a wrapper on the specified List which synchronizes all access to the List.
@Override public boolean supportsFullOuterJoins(){ debugCodeCall("supportsFullOuterJoins"); return false; }
Returns whether full outer joins are supported.
private static boolean isPollingPageFar(GraalHotSpotVMConfig config){ final long pollingPageAddress=config.safepointPollingAddress; return config.forceUnreachable || !isInt(pollingPageAddress - config.codeCacheLowBound) || !isInt(pollingPageAddress - config.codeCacheHighBound); }
Tests if the polling page address can be reached from the code cache with 32-bit displacements.
int error_bound(boolean[] enough,double endl,double endr,double[] ritz,double[] bnd,int step,double tol){ int mid, neig; int i; double gapl, gap; mid=svd_idamax(step + 1,bnd,0,1); for (i=((step + 1) + (step - 1)) / 2; i >= mid + 1; i-=1) if (fabs(ritz[i - 1] - ritz[i]) < eps34 * fabs(ritz[i])) if (bnd[i] ...
Description ----------- Function massages error bounds for very close ritz values by placing a gap between them. The error bounds are then refined to reflect this. Arguments --------- (input) endl left end of interval containing unwanted eigenvalues endr right end of interval containing unwanted eigenvalues...
public void validationWarning(int line,int charPositionInLine,String msg){ parseIssues.add(new ParseIssue(line,charPositionInLine,msg,currentFileName,ParseIssueType.VALIDATION_WARNING)); try { setAtLeastOneWarning(true); if (currentFileName == null) log.warn("line " + line + ":"+ charPositionInLine+ " "...
Validation warning occurred. Add the warning to the list of parse issues.
public EObject basicGetAstElement(){ return astElement; }
<!-- begin-user-doc --> <!-- end-user-doc -->
static void testMissingStuff(){ Mutant mutant=new Mutant(); try { int x=mutant.disappearingField; } catch ( NoSuchFieldError nsfe) { System.out.println("Got expected NoSuchFieldError"); if (VERBOSE) System.out.println("--- " + nsfe); } try { int y=Mutant.disappearingStaticField; } cat...
Test stuff that disappears.
@Override public Map<String,Object> handle(ResultSet rs) throws SQLException { return rs.next() ? this.convert.toMap(rs) : null; }
Converts the first row in the <code>ResultSet</code> into a <code>Map</code>.
private boolean verifyChar(char c,int constraint){ if (((constraint & FormatConstraint.TYPE_ANY) != 0) || (((constraint & FormatConstraint.TYPE_NUMERIC) != 0) && (c >= '0') && (c <= '9')) || (((constraint & FormatConstraint.TYPE_UPPERCASE) != 0) && (c >= 'A') && (c <= 'Z'))|| (((constraint & FormatConstraint.TYPE_LOW...
Verifies the given character. THis method is used by verifyString on each char
public static void createTable(SQLiteDatabase db,boolean ifNotExists){ String constraint=ifNotExists ? "IF NOT EXISTS " : ""; db.execSQL("CREATE TABLE " + constraint + "\"CHALLENGE\" ("+ "\"_id\" INTEGER PRIMARY KEY ,"+ "\"CHALLENGE_TYPE\" INTEGER NOT NULL ,"+ "\"QUESTION\" TEXT NOT NULL ,"+ "\"CATEGORY_ID\" INTEGE...
Creates the underlying database table.
public void testTempQueue(String prod_broker_url,String cons_broker_url) throws Exception { int num_msg; Connection conn; Session sess; Destination cons_dest; num_msg=5; LOG.info("TESTING TEMP QUEUES " + prod_broker_url + " -> "+ cons_broker_url+ " ("+ num_msg+ " messages)"); conn=createConnection(cons_br...
TEST TEMPORARY QUEUES
private CDatabaseCreator(){ }
You are not supposed to instantiate this class.
public void addListener(final IDebuggerTemplateManagerListener listener){ m_listeners.addListener(listener); }
Adds an object that is notified about changes in the debugger template manager.
protected ConditionRHS_Impl(){ super(); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public int loadInt(Offset offset){ if (VM.VerifyAssertions) VM._assert(VM.NOT_REACHED); return 0; }
Loads an int from the memory location pointed to by the current instance.
private void showFeedback(String message){ if (myHost != null) { myHost.showFeedback(message); } else { System.out.println(message); } }
Used to communicate feedback pop-up messages between a plugin tool and the main Whitebox user-interface.
public void testMeanIndegree(){ int indegree=RandomUtil.getInstance().nextInt(8) + 2; int mlag=RandomUtil.getInstance().nextInt(9) + 1; double percentHousekeeping=RandomUtil.getInstance().nextDouble() * 20.0; SimpleRandomizer simpleRandomizer=new SimpleRandomizer(indegree,SimpleRandomizer.MEAN,mlag,percentHouse...
Tests whether the randomizer can randomly make a graph where the mean ofindegree across factors is the given number.
private void readNextBlob(InterceptedStream<InputStream> stream){ try { byte[] blob=new byte[6048]; int length=stream.getStream().read(blob); if (length == -1) { if (closeInterceptedStream(stream)) sendEnd(stream.getIndex()); return; } sendBlob(stream.getIndex(),Arrays.copyOf(blo...
Reads the next chunk of data from the InputStream associated with an intercepted stream, sending that data as a "blob" instruction over the GuacamoleTunnel associated with this filter. If the end of the InputStream is reached, an "end" instruction will automatically be sent.
public boolean save(File file,boolean async){ this.file=file; return save(async); }
Save configuration into provided file. Internal file object will be set to new file.
public StylesheetHandler(TransformerFactoryImpl processor) throws TransformerConfigurationException { Class func=org.apache.xalan.templates.FuncDocument.class; m_funcTable.installFunction("document",func); func=org.apache.xalan.templates.FuncFormatNumb.class; m_funcTable.installFunction("format-number",func); ...
Create a StylesheetHandler object, creating a root stylesheet as the target.
public static GridData fillTextDefaults(){ GridData data=new GridData(); data.grabExcessHorizontalSpace=true; data.grabExcessVerticalSpace=false; data.horizontalAlignment=SWT.FILL; data.verticalAlignment=SWT.CENTER; return data; }
Default GridData for text widgets
@Override public void create(){ Gdx.app.log(TAG,"create() called"); deltaScreen=new DeltaScreen(); textScreen=new FPSScreen(); setScreen(deltaScreen); Gdx.input.setInputProcessor(new ScreenSwitcher(this,deltaScreen,textScreen)); }
So let's see this in action. Here we've declared two screens. One of which displays the number of frames displayed per second, and the other displays the number of seconds between the current frame and the last one. To set the active screen, we just need to call setScreen() on our Game. Let's check out the DeltaScreen.
public void remove(@Nonnull final String username,@Nonnull final Collection<Long> ids){ Objects.requireNonNull(username); Preconditions.checkArgument(!username.isEmpty(),"username cannot be empty"); Objects.requireNonNull(ids); if (ids.isEmpty()) { return; } final Location location=new Location(NAMESPAC...
Asynchronously remove individual notifications for a given user
public MapBuilder<K,V> withValueSerializer(OffHeapSerializer<V> serializer){ this.valueSerializer=serializer; return this; }
An value serializer to optimize the serialization. Must specified.
private Node nextNode(){ final List<Node> nodes=path.getNodeList(); int nextPos=pathPosition + 1; Node next=null; if (nextPos < nodes.size()) { next=nodes.get(nextPos); } else if (path.isLoop()) { next=nodes.get(0); } return next; }
Get the next node on the path.
@NoInline @Interruptible public static TIB newTIB(int numVirtualMethods,int alignCode){ int elements=TIB.computeSize(numVirtualMethods); if (!VM.runningVM) { return TIB.allocate(elements,alignCode); } if (alignCode == AlignmentEncoding.ALIGN_CODE_NONE) { return (TIB)newRuntimeTable(elements,RVMType.TIBT...
Allocates a new type information block (TIB).
public static long parseLong(String string) throws NumberFormatException { return parseLong(string,10); }
Parses the specified string as a signed decimal long value. The ASCII character \u002d ('-') is recognized as the minus sign.
public boolean update(boolean isPowered,int plugType,int batteryLevel){ synchronized (mLock) { final boolean wasPoweredWirelessly=mPoweredWirelessly; if (isPowered && plugType == BatteryManager.BATTERY_PLUGGED_WIRELESS) { mPoweredWirelessly=true; mMustUpdateRestPosition=true; startDetectionLoc...
Updates the charging state and returns true if docking was detected.
public static Object findString(String str,Object[] list,boolean ignoreCase){ if (str == null) { return (null); } if (ignoreCase) { for (int i=0; i < list.length; ++i) { if (str.equalsIgnoreCase(list[i].toString())) { return (list[i]); } } } else { for (int i=0; i < list.len...
Find a string in an array of strings.
public T copy(){ T copy=Instantiator.of(type).instantiate(); return copyInto(copy); }
Creates a copy of the wrapped object. Note: it does a "shallow" copy. Reference fields are not copied recursively.
private void registerTableHotkeys(){ }
Registers the table hotkeys.
public double[] reflectionCoefficients(){ double[] k=new double[order]; double[] b=new double[order + 1]; b[0]=1.0; for (int i=0; i < order; i++) b[i + 1]=a[i + 1] / a[0]; double[] c=new double[order]; for (int i=order; i > 0; i--) { k[i - 1]=b[i]; double scale=1.0 - k[i - 1] * k[i - 1]; Array...
Computes reflection coefficients for this polynomial.
Node[] genTrees(int depth,int ntrees){ Node[] trees=new Node[ntrees]; for (int i=0; i < ntrees; i++) { trees[i]=new Node(null,depth); } return trees; }
Generate object trees.
private void calculateLineHeight(){ lineHeight=maxAscent=0; for (int i=0; i < syntaxScheme.styles.length; i++) { Style ss=syntaxScheme.styles[i]; if (ss != null && ss.font != null) { FontMetrics fm=getFontMetrics(ss.font); int height=fm.getHeight(); if (height > lineHeight) lineHeigh...
Recalculates the height of a line in this text area and the maximum ascent of all fonts displayed.
public IterationStopWatch(){ this.iterations=new LinkedHashMap<Integer,Map<String,Long>>(); this.identifiers=new LinkedList<String>(); this.operations=new LinkedList<String>(); this.currentIterationValues=null; this.children=new LinkedHashMap<Integer,Map<String,List<String>>>(); }
Creates a new IterationStopWatch.
public void calculate_scores(){ score=0; if (contents.length == 0) { API api=API.v(); Set<InfoKind> source=api.getSourceInfoKinds(method); Set<InfoKind> sink=api.getSinkInfoKinds(method); if (is_system(method)) { if (api.isSafeMethod(method)) score=0; else if (api.isSpecMethod(met...
Calculate the score for each entry in the call chain
public boolean isStatusBarTintEnabled(){ return mStatusBarTintEnabled; }
Is tinting enabled for the system status bar?
public static void remove(String label,String units){ factory.remove(label,units); }
Remove/delete the specified monitor
public static boolean isVeryDangerous(double d){ return Double.isInfinite(d) || Double.isNaN(d); }
Returns true if the argument is a "very dangerous" double to have around, namely one that is infinite or NaN.
@Override public double mean(){ return ((double)(((long)_min) + (long)_max)) / 2.0; }
since the values are scrambled (hopefully uniformly), the mean is simply the middle of the range.
public void commit() throws IOException { if (hasErrors) { completeEdit(this,false); removeByDiskKey(entry.diskKey); } else { completeEdit(this,true); } committed=true; }
Commits this edit so it is visible to readers. This releases the edit lock so another edit may be started on the same key.
static void checkInternalName(final String name,final int start,final int end,final String msg){ int max=end == -1 ? name.length() : end; try { int begin=start; int slash; do { slash=name.indexOf('/',begin + 1); if (slash == -1 || slash > max) { slash=max; } checkIdentifi...
Checks that the given substring is a valid internal class name.
private void checkPairedSensorsNumber(String nameString){ EndToEndTestUtils.SOLO.clickOnText(trackListActivity.getString(R.string.settings_sensor_bluetooth_sensor)); instrumentation.waitForIdleSync(); ArrayList<ListView> allListViews=EndToEndTestUtils.SOLO.getCurrentViews(ListView.class); int number=allListView...
Checks the number of paired sensors.
public Tunnel(){ super(); }
Needed by CGLib
private void tryScrollBackToTopWhileLoading(){ tryScrollBackToTop(); }
just make easier to understand
private void adjustReports(Vector<Report> reports){ for ( Report nr : reports) { nr.indent(); } if (reports.size() > 0) { reports.get(reports.size() - 1).newlines++; } }
Indents all reports in the collection, and adds a new line to the last one. This is used to make nested reports line-up and look nicer.
public Complex(double real,double imag){ this.real=real; this.imag=imag; }
Instantiates a new complex number object.
public static void run(){ Set<String> allPackages=new LinkedHashSet<String>(); for ( SootClass clz : Scene.v().getClasses()) { allPackages.add(clz.getPackageName()); } Set<String> pkgsToIgnore=new HashSet<String>(); for ( String pkg : PKGS_TO_IGNORE) { if (!allPackages.contains(pkg)) { logger....
Aggressively add source taint to methods of the android api that seems interesting and the method returns a primitive (or string).
protected void clearCrPerr(){ cr=cr & ~CR_PERR_MASK; }
Clear CR Parity/Underrun error flag
private static boolean hasConditions(Request request){ return request.header("If-Modified-Since") != null || request.header("If-None-Match") != null; }
Returns true if the request contains conditions that save the server from sending a response that the client has locally. When a request is enqueued with its own conditions, the built-in response cache won't be used.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:55:43.464 -0500",hash_original_method="C661D43CA4BEB0154AFD6A7B8492896F",hash_generated_method="8964EBEF8322BD4922C3A52D42F0D038") public RequestLine parseSIPRequestLine(String requestLine) throws ParseException { requestLine+="\n"; ...
Parse the SIP Request Line
public String convertTagDefinitionToString(EDataType eDataType,Object instanceValue){ return super.convertToString(eDataType,instanceValue); }
<!-- begin-user-doc --> <!-- end-user-doc -->
private void write(final int val) throws EncodingException { if (val < 0 || val > 255) { throw ErrorFactory.createEncodingException(ErrorKeys.DIFFTOOL_ENCODING_VALUE_OUT_OF_RANGE,"byte value out of range: " + val); } this.stream.write(val); }
Writes a byte to the buffer.
private boolean resolveTransitively(File ivyXmlFile){ boolean success=true; ResolveOptions options=new ResolveOptions(); options.setDownload(false); options.setTransitive(true); options.setUseCacheOnly(false); options.setOutputReport(false); options.setLog(LogOptions.LOG_QUIET); options.setConfs(new Str...
Transitively resolves all dependencies in the given ivy.xml file, looking for indirect dependencies with versions that conflict with those of direct dependencies. Dependency conflict when a direct dependency's version is older than that of an indirect dependency with the same /org/name. Returns true if no version conf...
public static TextWithMnemonic parseText(final String textWithMnemonic){ if (textWithMnemonic == null) { throw new IllegalArgumentException("textWithMnemonic cannot be null"); } int index=-1; final StringBuffer plainText=new StringBuffer(); for (int i=0; i < textWithMnemonic.length(); i++) { char ch=t...
Parses text that might contain mnemonic and returns structure which contains plain text and index of mnemonic char (if any)
private void updateProgress(int progress){ if (myHost != null) { myHost.updateProgress(progress); } else { System.out.println("Progress: " + progress + "%"); } }
Used to communicate a progress update between a plugin tool and the main Whitebox user interface.
public LabelFieldEditor(String name,String labelText,Composite parent){ init(name,labelText); this.labelText=labelText; createControl(parent); }
Creates a label button field editor in the given style.
public void runTest() throws Throwable { Document doc; DocumentType docType; NamedNodeMap entityList; doc=(Document)load("staff",false); docType=doc.getDoctype(); assertNotNull("docTypeNotNull",docType); entityList=docType.getEntities(); assertNotNull("entitiesNotNull",entityList); if (("image/svg+xml...
Runs the test case.
@Override public void run(){ amIActive=true; String inputHeader=null; String pointerHeader=null; String outputHeader=null; int row, col; double x, y; int i; int progress=0; WhiteboxRaster.DataType dataType=WhiteboxRaster.DataType.FLOAT; String whatToAssign=null; if (args.length <= 0) { showFee...
Used to execute this plugin tool.
public IgfsPath path(){ return path; }
Gets file path.
public void makeDirty(){ if (!dirty) { this.dirty=true; if (getProcess().getDebugMode() == DebugMode.COLLECT_METADATA_AFTER_EXECUTION) { clear(Port.CLEAR_REAL_METADATA); } dirtynessWasPropagated=false; fireUpdate(); } }
This method will flag this operator's results as dirty. Currently unused feature.
public void reset(){ this.dirty=false; }
resets the dirtyFlag
private void updateProgress(int progress){ if (myHost != null) { myHost.updateProgress(progress); } else { System.out.println("Progress: " + progress + "%"); } }
Used to communicate a progress update between a plugin tool and the main Whitebox user interface.
public static WhereBuilder b(String columnName,String op,Object value){ WhereBuilder result=new WhereBuilder(); result.appendCondition(null,columnName,op,value); return result; }
create new instance
@Snippet public static Object instanceofExact(Object object,KlassPointer exactHub,Object trueValue,Object falseValue){ if (probability(NOT_FREQUENT_PROBABILITY,object == null)) { isNull.inc(); return falseValue; } GuardingNode anchorNode=SnippetAnchorNode.anchor(); KlassPointer objectHub=loadHubIntrinsi...
A test against a final type.
@Override public void actionPerformed(ActionEvent e){ if (e.getSource() == m_ConfigureBut) { selectProperty(); } else if (e.getSource() == m_StatusBox) { for (int i=0; i < m_Listeners.size(); i++) { ActionListener temp=(m_Listeners.get(i)); temp.actionPerformed(new ActionEvent(this,ActionEven...
Handles the various button clicking type activities.
public boolean isRequiredDRP(){ Object oo=get_Value(COLUMNNAME_IsRequiredDRP); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; }
Get Is DRP Required.
public static ObjectId createFromLegacyFormat(final int time,final int machine,final int inc){ return new ObjectId(time,machine,inc); }
<p>Creates an ObjectId using time, machine and inc values. The Java driver used to create all ObjectIds this way, but it does not match the <a href="http://docs.mongodb.org/manual/reference/object-id/">ObjectId specification</a>, which requires four values, not three. This major release of the Java driver conforms to ...
private void sendPollRequests(){ heartbeatTimer=context.getThreadContext().schedule(context.getElectionTimeout(),null); final AtomicBoolean complete=new AtomicBoolean(); final Set<ServerMember> votingMembers=new HashSet<>(context.getClusterState().getActiveMemberStates().stream().map(null).collect(Collectors.toLi...
Polls all members of the cluster to determine whether this member should transition to the CANDIDATE state.
public void lookupTable(String[] values) throws IOException { print("lookupTable",null); for (int i=0; i < values.length; i++) { printer.print(indent + " "); writePaddedString(Integer.toString(i) + ":",5); printer.println("\"" + values[i] + "\""); } }
Description of the Method
protected Drawing createDrawing(){ return svgPanel.createDrawing(); }
Creates a new Drawing for this View.
public static long through(int i){ return ((1 << (i + 1)) - 1); }
A set of all elements with index up to and including the given index.
private void drawSquare(Canvas canvas,Paint paint,float x,float y){ canvas.drawRect(x - size,y - size,x + size,y + size,paint); }
The graphical representation of a square point shape.
public T take(Object key){ return remove(key); }
This is used to exclusively take the value mapped to the specified key from the cache. Invoking this is effectively removing the value from the cache.
public boolean hasGmlPoint(){ return hasExtension(GmlPoint.class); }
Returns whether it has the geolocation as a gml:point.
protected void restoreState(){ logL=storedLogL; super.restoreState(); }
Restore the additional stored state
public void addInput(Source source){ source.init(this); inputs.add(source); }
Adds input for the Preprocessor. Inputs are processed in the order in which they are added.
public static void findCallTargets(JsonElement jsonElement,String jdtMethodName,String[] jdtParamTypeStrings,String jdtClassName,String srcClassName,int srcLine,Map<String,JsonElement> callTargetsMap){ JsonArray childrenArray=Utils.getChildrenArray(jsonElement); if (childrenArray != null) { for (int i=0; i < ch...
Given a Json object representing a sub-tree in the project callee hierarchy, searches the tree for method calls that matches the given parameter values. Updates the callTargetsMap with call targets for each found method call.
public Matrix mtimes(Matrix m2){ if (m2 instanceof DenseDoubleMatrix2D) { final DenseDoubleMatrix2D result=new BlockDenseDoubleMatrix2D((int)getRowCount(),(int)m2.getColumnCount(),layout.blockStripe,BlockOrder.ROWMAJOR); Mtimes.DENSEDOUBLEMATRIX2D.calc(this,(DenseDoubleMatrix2D)m2,result); return result; ...
Shortcut to create a BlockMatrix for target
public void testMergeInBothWithNodeMergeStrategyWithCommaInPattern() throws Exception { WebXml srcWebXml=getWebXml("param","value1"); WebXml mergeWebXml=getWebXml("param","value2"); WebXmlMerger merger=new WebXmlMerger(srcWebXml); Element format=getContextParamElement("$left:param-name","$left:param-value,$righ...
Tests NodeMerge merge strategy. In this test target pattern contains comma as a delimiter.
public static boolean isPalindrome(int number){ return number == reverse(number) ? true : false; }
Method isPalindrome returns true if number is a palindrome
public String toString(String pattern){ if (pattern == null) { return toString(); } return DateTimeFormat.forPattern(pattern).print(this); }
Output the date using the specified format pattern.
@Bean public MappingJackson2HttpMessageConverter jackson2Converter(){ MappingJackson2HttpMessageConverter converter=new MappingJackson2HttpMessageConverter(); converter.setObjectMapper(myObjectMapper()); return converter; }
just to set the pretty-print feature on.
private boolean isHub(ServerBartender server){ int upCount=0; for ( ServerHeartbeat rackServer : _rack.getServers()) { if (rackServer == null || !rackServer.isUp()) { continue; } if (rackServer == server && upCount < _hubCount) { return true; } upCount++; if (_hubCount <= upCoun...
Test if the server is a hub server for its rack. The hub are the first few active servers, where the servers are sorted by IP address and port. The default hub count is 3.
public static double lnGamma(double x){ double p, q, w, z; double A[]={8.11614167470508450300E-4,-5.95061904284301438324E-4,7.93650340457716943945E-4,-2.77777777730099687205E-3,8.33333333333331927722E-2}; double B[]={-1.37825152569120859100E3,-3.88016315134637840924E4,-3.31612992738871184744E5,-1.1623709749276230...
Returns natural logarithm of gamma function.
public void testUsingProxy() throws Exception { MockServer server=new MockServer("server"); MockServer proxy=new MockServer("proxy"); URL url=new URL("http://localhost:" + server.port()); HttpURLConnection connection=(HttpURLConnection)url.openConnection(new Proxy(Proxy.Type.HTTP,new InetSocketAddress("localhos...
Test checks if the proxy specified in openConnection method will be used for connection to the server
private static synchronized String chooseAddresses(String host){ long currentTime=System.currentTimeMillis(); boolean notAllFailed=false; HostInfo hostInfo=_hostToHostInfo.get(host); if (hostInfo == null) { int firstPeriod=host.indexOf('.'); if (firstPeriod > 0) hostInfo=_hostToHostInfo.get(host.sub...
Spreads the load between the content-servers of host (using their weights). Unhealthy content-servers are skiped for 2 minutes.
public void multiplyByScalar(float scalar){ this.dirty=true; multiplyByScalar(scalar); }
Multiplies this Quaternion with a scalar
public static String escape(CharSequence content,char escapedChar,char[] ignoredIfFollowedBy){ StringBuilder builder=new StringBuilder(); char last=0; for (int i=0; i < content.length(); ++i) { char current=content.charAt(i); if (current == escapedChar && last != '\\') { if (i == content.length() - ...
Escaped occurrences of escapedChar. If the found character is already escaped then it is not escaped again.
@Override public String toString(){ if (eIsProxy()) return super.toString(); StringBuffer result=new StringBuffer(super.toString()); result.append(" (declaredModifiers: "); result.append(declaredModifiers); result.append(')'); return result.toString(); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public void pasteSubsession(List sessionElements,Point upperLeft){ List<SessionNode> sessionNodes=new ArrayList<>(); List<SessionNodeWrapper> sessionNodeWrappers=new ArrayList<>(); List<Edge> sessionEdges=new ArrayList<>(); Point oldUpperLeft=EditorUtils.getTopLeftPoint(sessionElements); int deltaX=upperLeft....
Pastes a list of session elements (SessionNodeWrappers and SessionEdges) into the workbench.
@Override public Object clone() throws CloneNotSupportedException { return super.clone(); }
Returns an independent copy of the renderer.
public boolean hasSourceLanguage(){ return hasExtension(SourceLanguage.class); }
Returns whether it has the source language.
public NetworkBuilder<N,E> expectedEdgeCount(int expectedEdgeCount){ checkArgument(expectedEdgeCount >= 0,"The expected number of edges can't be negative: %s",expectedEdgeCount); this.expectedEdgeCount=Optional.of(expectedEdgeCount); return this; }
Specifies the expected number of edges in the graph.
public BaseRecentRequestBuilder(final String requestUrl,final IOneDriveClient client,final List<Option> options){ super(requestUrl,client,options); }
The request builder for this Recent
public int compareToIgnoreCase(XMLString xstr){ int len1=m_length; int len2=xstr.length(); int n=Math.min(len1,len2); FastStringBuffer fsb=fsb(); int i=m_start; int j=0; while (n-- != 0) { char c1=Character.toLowerCase(fsb.charAt(i)); char c2=Character.toLowerCase(xstr.charAt(j)); if (c1 != c2...
Compares two strings lexicographically, ignoring case considerations. This method returns an integer whose sign is that of <code>this.toUpperCase().toLowerCase().compareTo( str.toUpperCase().toLowerCase())</code>. <p> Note that this method does <em>not</em> take locale into account, and will result in an unsatisfactory...
public static void logDeadlocks(){ long[] deadlockIDs=ManagementFactory.getThreadMXBean().findDeadlockedThreads(); if (deadlockIDs == null) return; ThreadInfo[] infos=ManagementFactory.getThreadMXBean().getThreadInfo(deadlockIDs,true,true); for ( ThreadInfo ti : infos) { ConcurrentLog.warn("DEADLOCKREPOR...
write deadlocked threads as to the log as warning
public void print(File file) throws IOException { checkExec(); SecurityManager sm=System.getSecurityManager(); if (sm != null) { sm.checkPrintJobAccess(); } checkActionSupport(Action.PRINT); checkFileValidation(file); peer.print(file); }
Prints a file with the native desktop printing facility, using the associated application's print command.
public static <T>T field(Class<?> cls,String fieldName) throws IgniteCheckedException { assert cls != null; assert fieldName != null; try { for (Class c=cls; cls != Object.class; cls=cls.getSuperclass()) { for ( Field field : c.getDeclaredFields()) { if (field.getName().equals(fieldName)) {...
Gets field value.