code
stringlengths
10
174k
nl
stringlengths
3
129k
public InputStream openConfig(String name) throws IOException { return openResource(name); }
Opens a config resource by its name. Override this method to customize loading config resources.
public Iterator<E> tailIterator(E from){ return new BinarySearchTreeIterator<E>(this.root,from,null); }
Returns the in-order (ascending) iterator starting from the given node.
public void readScratchData(ScratchBank bank,Callback<ScratchData> callback){ addCallback(BeanMessageID.BT_GET_SCRATCH,callback); Buffer buffer=new Buffer(); buffer.writeByte(intToByte(bank.getRawValue())); sendMessage(BeanMessageID.BT_GET_SCRATCH,buffer); }
Request a scratch bank data value.
private void initLayout(){ setAttribute(Window.MODE_KEY,Window.MODE_EMBEDDED); setBorder("none"); setWidth("100%"); setHeight("100%"); setStyle("position: absolute"); miniTable.setAttribute("zk_component_ID","Lookup_Data_SearchResults"); miniTable.setVflex(true); Rows rows=new Rows(); Row row=new Row(...
Initialize the form structure - Load Bank Info - Load BPartner - Load Document Type - Init Table
public TourStep(Placement placement,Widget... targets){ peer=StepPeer.newInstance(); peer.setPlacement(placement.getValue()); JsArrayString values=JsArrayString.createArray().cast(); for ( Widget el : targets) { values.push(getOrCreateId(el.getElement())); } peer.setTarget(values); }
Creates a new tour step
public void cancel(){ BaseProducerContext.callOnCancellationRequested(cancelNoCallbacks()); }
Cancels the request processing and calls appropriate callbacks.
public UserRoleAssignmentException(){ }
Constructs a new exception with <code>null</code> as its detail message. The cause is not initialized.
public DefaultRequest txTax(Double value){ setDouble(TRANSACTION_TAX,value); return this; }
<div class="ind"> <p> Optional. </p> <p>Specifies the total tax of the transaction.</p> <table border="1"> <tbody> <tr> <th>Parameter</th> <th>Value Type</th> <th>Default Value</th> <th>Max Length</th> <th>Supported Hit Types</th> </tr> <tr> <td><code>tt</code></td> <td>currency</td> <td><code>0</code> </td> <td><span ...
public void resetMoves(){ List<Track> tracks=getTrackList(); for ( Track track : tracks) { track.setMoves(0); } }
Reset the move count for all tracks at this location
public Collection<Range<Token>> tokenRanges(){ return this.tokenRanges; }
The associated cassandra token range
private void doUpdateWithQuery(final HttpServletRequest req,final HttpServletResponse resp) throws IOException { final String baseURI=req.getRequestURL().toString(); final String namespace=getNamespace(req); final String queryStr=req.getParameter(QueryServlet.ATTR_QUERY); final boolean suppressTruthMaintenance=...
Delete all statements materialized by a DESCRIBE or CONSTRUCT query and then insert all statements in the request body. <p> Note: To avoid materializing the statements, this runs the query against the last commit time and uses a pipe to connect the query directly to the process deleting the statements. This is done whi...
public static Object compare(Object obj1,Object obj2,int compOp) throws TypeMismatchException { if (obj1 == null || obj2 == null) { Boolean result=nullCompare(obj1,obj2,compOp); if (result == null) return QueryService.UNDEFINED; return result; } if (obj1 == QueryService.UNDEFINED || obj2 == QueryS...
Compares two objects using the operator
private double CADRG_x_pix_constant(double adrgscale,int zone){ double x_pix=(double)adrgscale * CADRG_ARC_A[zone - 1] / 512.0; x_pix=Math.ceil(x_pix); x_pix*=1.33333; x_pix=Math.round(x_pix); return x_pix * 256.0; }
Figures out the number of pixels around the earth, for 360 degrees. <p>
public void sendStringSync(String text){ if (text == null) { return; } KeyCharacterMap keyCharacterMap=KeyCharacterMap.load(KeyCharacterMap.VIRTUAL_KEYBOARD); KeyEvent[] events=keyCharacterMap.getEvents(text.toCharArray()); if (events != null) { for (int i=0; i < events.length; i++) { sendKeySyn...
Sends the key events corresponding to the text to the app being instrumented.
public static String createWalletInfoFilename(String walletFilename){ if (walletFilename == null) { return INFO_FILE_EXTENSION; } String walletInfoFilename=walletFilename; if (walletFilename.endsWith(BitcoinModel.WALLET_FILE_EXTENSION)) { walletInfoFilename=walletInfoFilename.substring(0,walletFilename....
Create wallet info filename.
public ArrayPadding createArrayPadding(){ ArrayPaddingImpl arrayPadding=new ArrayPaddingImpl(); return arrayPadding; }
<!-- begin-user-doc --> <!-- end-user-doc -->
public GridCacheContext<K,V> cacheContext(int cacheId){ return ctxMap.get(cacheId); }
Gets cache context by cache ID.
@Override public void eUnset(int featureID){ switch (featureID) { case RegularExpressionPackage.GROUP__NON_CAPTURING: setNonCapturing(NON_CAPTURING_EDEFAULT); return; case RegularExpressionPackage.GROUP__PATTERN: setPattern((Pattern)null); return; } super.eUnset(featureID); }
<!-- begin-user-doc --> <!-- end-user-doc -->
@Override public Object eGet(int featureID,boolean resolve,boolean coreType){ switch (featureID) { case UmplePackage.ANONYMOUS_METHOD_BODY_2__POSTCONDITION_1: return getPostcondition_1(); } return super.eGet(featureID,resolve,coreType); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public static KeyStore create(KeyStoreType keyStoreType) throws CryptoException, IOException { if (!keyStoreType.isFileBased()) { throw new CryptoException(MessageFormat.format(res.getString("NoCreateKeyStoreNotFile.exception.message"),keyStoreType.jce())); } KeyStore keyStore=getKeyStoreInstance(keyStoreType...
Create a new, empty KeyStore.
public ConnectionDetachedPacketCollector(){ this(SmackConfiguration.getPacketCollectorSize()); }
Creates a new packet collector. If the packet filter is <tt>null</tt>, then all packets will match this collector.
public void initFromCameraParameters(Camera camera){ Camera.Parameters parameters=camera.getParameters(); previewFormat=parameters.getPreviewFormat(); previewFormatString=parameters.get("preview-format"); Log.d(TAG,"Default preview format: " + previewFormat + '/'+ previewFormatString); WindowManager manager=(...
Reads, one time, values from the camera that are needed by the app.
public IconicsDrawable paddingDp(int iconPadding){ return paddingPx(Utils.convertDpToPx(mContext,iconPadding)); }
Set the padding in dp for the drawable
public byte toOrdinal(){ return this.ordinal; }
Returns the ordinal for this interest type.
public ConcurrentUpdateSolrServer(String solrServerUrl,HttpClient client,int queueSize,int threadCount,ExecutorService es){ this(solrServerUrl,client,queueSize,threadCount,es,false); }
Uses the supplied HttpClient to send documents to the Solr server.
private void refreshParentId(int parentId,int newParentId) throws Exception { FolderTokenDividers divs=null; int i; FolderTokenDivider div=null; divs=getChildren(parentId,true); for (i=0; i < divs.count(); i++) { div=divs.get(i); div.changeParentId(newParentId); } }
Cambia los nodos hijos de un nodo a otro.
public void putNull() throws IOException { write(DerValue.tag_Null); putLength(0); }
Marshals a DER "null" value on the output stream. These are often used to indicate optional values which have been omitted.
public void mousePressed(MouseEvent evt){ if (evt.isPopupTrigger()) { createPopup(evt.getPoint()); } }
Method mousePressed.
private void interpretStr(final ReilInstruction instruction){ final Pair<Boolean,BigInteger> firstValue=loadLongValue(instruction.getFirstOperand()); if (firstValue.first()) { final BigInteger result=firstValue.second(); final String targetRegister=instruction.getThirdOperand().getValue(); final Operand...
Interprets a STR instruction.
public void testClearBitPositiveInside3(){ byte aBytes[]={1,-128,56,100,-2,-76,89,45,91,3,-15,35,26}; int aSign=1; int number=45; byte rBytes[]={1,-128,56,100,-2,-76,89,13,91,3,-15,35,26}; BigInteger aNumber=new BigInteger(aSign,aBytes); BigInteger result=aNumber.clearBit(number); byte resBytes[]=new byte...
clearBit(int n) inside a positive number
public void testRun(){ System.out.println("run"); Date date=new Date(); DateFactory mockDateFactory=createMock(DateFactory.class); expect(mockDateFactory.createDate()).andReturn(date).times(8); ContentDataService mockContentDataService=createMock(ContentDataService.class); WebResourceDataService mockWebReso...
For this test, we use the pages hosted at http://site.tgqa.org/. The sequence is : - get the page "http://site.tgqa.org/." - click on "This page won't be crawled due to the robots.txt restrictrion" link - get the page "http://site.tgqa.org/page-access-forbidden-for-robots.html" - click on "Back" button - get the page...
protected void transmitAtEndOfTask(final Task<Revision> task,final Task<Diff> result) throws TimeoutException { this.processingTimeDiff+=System.currentTimeMillis() - startTime; if (task.getTaskType() == TaskTypes.TASK_FULL || task.getTaskType() == TaskTypes.TASK_PARTIAL_LAST) { diffedSize+=result.byteSize(); ...
Transmits the DiffTask at the end of the RevisionTask processing.
@Override public void createOrAddVolumesToExportMask(URI arrayURI,URI exportGroupURI,URI exportMaskURI,Map<URI,Integer> volumeMap,List<URI> initiatorURIs2,TaskCompleter completer,String stepId){ try { WorkflowStepCompleter.stepExecuting(stepId); StorageSystem array=_dbClient.queryObject(StorageSystem.class,ar...
Create an ExportMask on the VMAX if it does not exist. Otherwise, just add the indicated volumes to the ExportMask.
public void run(ExecutorService executor,Runnable task){ if (executor == null || task == null) { throw new IllegalStateException("Valid executor/task must be provided"); } if (executor.isShutdown()) { throw new IllegalStateException("Stopped"); } OperationContext origContext=OperationContext.getOperat...
Executes the task using provided executor
public static String repeat(String str,int count){ final StringBuilder result=new StringBuilder(str.length() * count); for (int i=0; i < count; i++) { result.append(str); } return result.toString(); }
Repeats the specified substring a number of times.
public final Vec2D minSelf(ReadonlyVec2D v){ x=MathUtils.min(x,v.x()); y=MathUtils.min(y,v.y()); return this; }
Adjusts the vector components to the minimum values of both vectors
public void runTest() throws Throwable { Document doc; NodeList elementList; Element testAddr; Attr addrAttr; String localName; doc=(Document)load("staffNS",false); elementList=doc.getElementsByTagName("emp:address"); testAddr=(Element)elementList.item(0); assertNotNull("empAddrNotNull",testAddr); a...
Runs the test case.
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
@DSSafe(DSCat.SAFE_OTHERS) public AccessibilityNodeInfo focusSearch(int direction){ enforceSealed(); if (!canPerformRequestOverConnection(mSourceNodeId)) { return null; } AccessibilityNodeInfo node=new AccessibilityNodeInfo(DSOnlyType.DONTCARE); node.addTaint(getTaint()); node.addTaint(direction); ret...
Searches for the nearest view in the specified direction that can take the input focus.
public BlobStore openBlobStore(String url,Map<String,String> parameters) throws IOException { Map<String,String> key=new HashMap<String,String>(); if (parameters != null) { key.putAll(parameters); } key.put(URL_KEY,url); synchronized (stores) { Iterator<WeakReference<BlobStore>> iter=stores.values().ite...
Create or retrieve a BlobStore at this location.
public static MouseListener add(MouseListener a,MouseListener b){ return (MouseListener)addInternal(a,b); }
Adds mouse-listener-a with mouse-listener-b and returns the resulting multicast listener.
public ListNode deleteDuplicates(ListNode head){ ListNode cur=head; while (cur != null) { while (cur.next != null && cur.val == cur.next.val) { cur.next=cur.next.next; } cur=cur.next; } return head; }
nested while loop, skip next node
public String toString(){ return time + "\t:" + count; }
Reasonable toString method.
public void testExpandingEntityReferencesOffDoesNotImpactPredefinedEntities() throws Exception { String xml="<foo>abc&amp;def</foo>"; DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance(); factory.setExpandEntityReferences(false); document=factory.newDocumentBuilder().parse(new InputSource(new Str...
Predefined entities should always be expanded. https://code.google.com/p/android/issues/detail?id=225
public static PlatformContext platformContext(Ignite grid){ return platformProcessor(grid).context(); }
Gets interop context for the grid.
protected void onDismiss(){ }
On dismiss
public ActionForward execute(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response) throws Exception { sessionContext.checkPermission(Right.BuildingList); DistanceMetric.Ellipsoid ellipsoid=DistanceMetric.Ellipsoid.valueOf(ApplicationProperty.DistanceEllipsoid.value()); Web...
Method execute
public static int hashCode(byte[] b){ int h=0; for ( byte c : b) h=31 * h + (c & 0xFF); return h; }
compute a hash code that is equal to the hash computation of String()
public static String createRedactedDescription(SamlToken token){ return String.format("%s [subject=%s, groups=%s, delegactionChain=%s, startTime=%s, " + "expirationTime=%s, renewable=%s, delegable=%s, isSolution=%s," + "confirmationType=%s]",token.getClass().getSimpleName(),getTokenSubjectForLog(token),token.getGroup...
Creates a description of the token without any private information
@Override protected void finalize() throws Throwable { mType=null; mSequence=null; super.finalize(); }
dealloc methods
@Override public int eBaseStructuralFeatureID(int derivedFeatureID,Class<?> baseClass){ if (baseClass == MappedElement.class) { switch (derivedFeatureID) { case SexecPackage.EXECUTION_FLOW__SOURCE_ELEMENT: return SexecPackage.MAPPED_ELEMENT__SOURCE_ELEMENT; default : return -1; } } if (baseClass == NamedEle...
<!-- begin-user-doc --> <!-- end-user-doc -->
@Override public String toString(){ StringBuffer buffer=new StringBuffer("CellConstraints"); buffer.append("[x="); buffer.append(gridX); buffer.append("; y="); buffer.append(gridY); buffer.append("; w="); buffer.append(gridWidth); buffer.append("; h="); buffer.append(gridHeight); buffer.append("; hA...
Constructs and returns a string representation of this constraints object.
public ReadStream openRead() throws IOException { if (_isDone) return null; else if (_readStream == null) _readStream=new ReadStream(this); else if (!_isPartDone) { int len; while ((len=read(_dummyBuffer,0,_dummyBuffer.length)) >= 0) { } if (_isDone) return null; } _readStream.init(t...
Opens the next part of the multipart/mime stream for reading. Returns null when the last section is read.
private void addToken(int start,int end,int tokenType){ int so=start + offsetShift; addToken(zzBuffer,start,end,tokenType,so); }
Adds the token specified to the current linked list of tokens.
String formatParameterObject(Object object){ if (object == null) { return "NULL"; } else { if (object instanceof String) { return "'" + escapeString((String)object) + "'"; } else if (object instanceof Date) { return "'" + new SimpleDateFormat(dateFormat).format(object) + "'"; } el...
Format an Object that is being bound to a PreparedStatement parameter, for display. The goal is to reformat the object in a format that can be re-run against the native SQL client of the particular Rdbms being used. This class should be extended to provide formatting instances that format objects correctly for differe...
private void updateProgress(String progressLabel,int progress){ if (myHost != null && ((progress != previousProgress) || (!progressLabel.equals(previousProgressLabel)))) { myHost.updateProgress(progressLabel,progress); } previousProgress=progress; previousProgressLabel=progressLabel; }
Used to communicate a progress update between a plugin tool and the main Whitebox user interface.
public synchronized void ensureCapacity(int minimumCapacity){ if (elementData.length < minimumCapacity) { int next=(capacityIncrement <= 0 ? elementData.length : capacityIncrement) + elementData.length; grow(minimumCapacity > next ? minimumCapacity : next); } }
Ensures that this vector can hold the specified number of elements without growing.
private synchronized boolean shouldGarbageCollectPeer(Peer peer){ Date lastSeen=peer.getLastSeen(); Date now=new Date(); long msSinceSeen=now.getTime() - lastSeen.getTime(); return msSinceSeen > PEER_TIMEOUT; }
Check whether a peer is considered old enough to consider it unlikely to return.
public static void assertNotEquals(boolean notExpected,boolean actual){ try { Verify.assertNotEquals("boolean",notExpected,actual); } catch ( AssertionError e) { Verify.throwMangledException(e); } }
Asserts that two booleans are not equal.
public static SourceArtifactCreator makeSourceArtifactCreator(RepositoryManager repoManager,Iterable<? extends File> sourcePaths,String moduleName,String moduleVersion,boolean verbose,Logger log) throws IOException { return new SourceArtifactCreatorImpl(repoManager,sourcePaths,moduleName,moduleVersion,verbose,log); }...
Create and return a new SourceArchiveCreator.
@Override public boolean isPostOperation(){ return false; }
True if the context is for post-operation.
public CCWavesTiles3D(int wav,float amp,ccGridSize gridSize,float d){ super(gridSize,d); waves=wav; amplitude=amp; amplitudeRate=1.0f; }
initializes the action with a number of waves, the waves amplitude, the grid size and the duration
public static SyntaxScheme loadFromString(String string){ SyntaxScheme scheme=new SyntaxScheme(true); try { if (string != null) { String[] tokens=string.split(",",-1); if (tokens.length == 0 || !VERSION.equals(tokens[0])) { return scheme; } int tokenTypeCount=Token.NUM_TOKEN_TYPE...
Loads a syntax highlighting color scheme from a string created from <code>toCommaSeparatedString</code>. This method is useful for saving and restoring color schemes.
private void modifyLocalVariable(){ int count=0; }
Method to test the local variable's effective final state.
public static DialogOption showYesNoMessage(final String message,final String title,final int msgType){ return MessageService.instance().showYesNoMessage(message,title,msgType); }
Acts as a proxy for the <tt>MessageService</tt> class. Displays a locale-specific message to the user in the form of a yes or no question.
private Sprite buildOutfit(int code,final OutfitColor color){ final int bodycode=(code % 100); code/=100; final int dresscode=(code % 100); code/=100; final int headcode=(code % 100); code/=100; final int haircode=(code % 100); code/=100; final int detailcode=(code % 100); Sprite layer=getBodySprite...
Build an outfit sprite. The outfit is described by an "outfit code". It is an 8-digit integer of the form TTRRHHDDBB where TT is the number of the detail graphics (optional) RR is the number of the hair graphics (optional), HH for the head, DD for the dress, and BB for the body.
public void invokeInterface(final Type owner,final Method method){ invokeInsn(Opcodes.INVOKEINTERFACE,owner,method,true); }
Generates the instruction to invoke an interface method.
protected void flush(){ HibernateTemplate hibernateTemplate=new HibernateTemplate((SessionFactory)applicationContext.getBean("sessionFactory")); hibernateTemplate.flush(); hibernateTemplate.clear(); }
Create a HibernateTemplate from the SessionFactory and call flush() and clear() on it. Designed to be used after "save" methods in tests: http://issues.appfuse.org/browse/APF-178.
public RedisStateMachineContextRepository(RedisConnectionFactory redisConnectionFactory){ redisOperations=createDefaultTemplate(redisConnectionFactory); }
Instantiates a new redis state machine context repository.
public void writeChars(String s) throws IOException { int length=s.length(); for (int i=0; i < length; i++) { int c=s.charAt(i); out.write(c & 0xFF); out.write((c >>> 8) & 0xFF); } written+=length * 2; }
Writes a string to the underlying output stream as a sequence of characters. Each character is written to the data output stream as if by the <code>writeChar</code> method.
public UsageServer(int port,File usageDir,int threads) throws IOException { if (!Charset.isSupported(UTF_8)) { throw new IOException("UTF-8 character encoding not supported"); } System.setProperty("sun.net.httpserver.maxReqTime","30"); System.setProperty("sun.net.httpserver.maxRspTime","30"); mUsageDir=us...
Constructs and obtains lock on usage file for current month.
public void childrenRemoved(BeanContextMembershipEvent bcme){ Iterator it=bcme.iterator(); while (it.hasNext()) { findAndUndo(it.next()); } }
BeanContextMembershipListener method. Called when a new object is removed from the BeanContext of this object. For the Layer, this method doesn't do anything. If your layer does something with the childrenAdded method, or findAndInit, you should take steps in this method to unhook the layer from the object used in thos...
public int recordObject(CollectionId id,Document object,long timestamp) throws InterruptedException { final Struct sourceValue=source.lastOffsetStruct(replicaSetName,id); final Map<String,?> offset=source.lastOffset(replicaSetName); String objId=objectIdLiteralFrom(object); return createRecords(sourceValue,offs...
Generate and record one or more source records to describe the given object.
ProposalSorterHandle(IConfigurationElement element) throws InvalidRegistryObjectException, CoreException { Assert.isLegal(element != null); fElement=element; fId=element.getAttribute(ID); checkNotNull(fId,ID); String name=element.getAttribute(NAME); if (name == null) fName=fId; else fName=name; fClas...
Creates a new descriptor.
private static double[] computeLabels(final double start,final double end,final int approxNumLabels){ if (Math.abs(start - end) < 0.0000001f) { return new double[]{start,start,0}; } double s=start; double e=end; boolean switched=false; if (s > e) { switched=true; double tmp=s; s=e; e=tmp...
Computes a reasonable number of labels for a data range.
public EnumComboBoxCellRenderer(String key){ this.i18nKeyPrefix=key; }
Creates a Enumeration ComboBox cell renderer.
protected String apply(String source){ String result=source; String match=m_matchS; if (m_ignoreCase) { result=result.toLowerCase(); match=match.toLowerCase(); } if (result != null && result.length() > 0) { if (m_regex) { result=m_regexPattern.matcher(result).replaceAll(m_replaceS); } e...
Apply this rule to the supplied string
public ShapeWriter(){ }
Creates a new ShapeWriter with the default (identity) point transformation.
protected void clearCurrentText(){ this.currentText.delete(0,this.currentText.length()); }
Removes all text from the textbuffer at the end of a CDATA section.
public void clear(){ if (arrayTable != null) { arrayTable.clear(); } }
Removes all the mappings from this <code>InputMap</code>.
public Coord4D step(ForgeDirection side){ return translate(side.offsetX,side.offsetY,side.offsetZ); }
Steps this Coord4D in the defined side's offset without creating a new value.
public String optString(int index){ return optString(index,""); }
Get the optional string value associated with an index. It returns an empty string if there is no value at that index. If the value is not a string and is not null, then it is coverted to a string.
public RuleSet[] split(int[] points,RuleSet[] sets){ for (int i=0; i < (points.length > 0 ? points[0] : rules.length); i++) sets[0].addRule((Rule)(rules[i].clone())); if (points.length > 0) { for (int p=1; p < points.length; p++) for (int i=points[p - 1]; i < points[p]; i++) sets[p].addRule((Rule)(rul...
Splits the rule set into n pieces, according to points, which *must* be sorted. The rules in each piece are cloned and added to the equivalent set. Sets must be already allocated. sets.length must be 1+ points.length. Comment: This function appends the split rulesets to the existing rulesets already in <i>sets</i>.
public void updateBlob(String columnLabel,InputStream inputStream) throws SQLException { throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString()); }
Updates the designated column using the given input stream. When a very large ASCII value is input to a <code>LONGVARCHAR</code> parameter, it may be more practical to send it via a <code>java.io.InputStream</code>. Data will be read from the stream as needed until end-of-file is reached. The JDBC driver will do any n...
public double num(){ return toDouble(); }
Cast result object to a number.
public IncompatibleComparatorException(String message,Throwable cause){ super(message,cause); }
Create a new IncompatibleComparatorException.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:55:31.658 -0500",hash_original_method="9FCBFE264C415F40E8FC1E843482D494",hash_generated_method="D1C00D2D9C7C9C5095A0BFA12F667944") public javax.sip.address.Address createAddress(String address) throws java.text.ParseException { if (a...
Creates an Address with the new address string value. The address string is parsed in order to create the new Address instance. Create with a String value of "*" creates a wildcard address. The wildcard can be determined if <code>((SipURI)Address.getURI).getUser() == *;</code>.
void memberEnter(List<? extends JCTree> trees,Env<AttrContext> env){ for (List<? extends JCTree> l=trees; l.nonEmpty(); l=l.tail) memberEnter(l.head,env); }
Enter members from a list of trees.
public void testGetPropertyNames(){ ArbitraryPropertySupport instance=(new UnboundBeanImpl()).aps(); Set<String> expResult=new HashSet<>(6); expResult.add(CLASS); expResult.add(PROPERTY_NAMES); expResult.add(STRING_PROPERTY); expResult.add(INDEXED_PROPERTY); expResult.add(MAPPED_STRING); expResult.add(M...
Test of getPropertyNames method, of class UnboundBean.
public static boolean isStandardLanguage(Locale locale){ if (Locale.ENGLISH.equals(locale) || Locale.GERMAN.equals(locale) || Locale.JAPANESE.equals(locale)) { return true; } return false; }
check if the locale is standard language
public CutSubsessionAction(){ super("Cut"); }
Constucts an action for loading the session in the given '.tet' file into the desktop.
@RequestProcessing(value="/member/{userName}/following/articles",method=HTTPRequestMethod.GET) @Before(adviceClass={StopwatchStartAdvice.class,AnonymousViewCheck.class,UserBlockCheck.class}) @After(adviceClass=StopwatchEndAdvice.class) public void showHomeFollowingArticles(final HTTPRequestContext context,final HttpSer...
Shows user home following articles page.
protected void handlePointsForOuterRing(Geo g1,Geo g2,Geo g3,double dist,OMAreaList ret){ int bend=bends(g1,g2,g3); Geo gret=g3; RibbonIterator leg1=new RibbonIterator(g1,g2,dist); OMPoly poly1=getHalfPoly(leg1,Ribbon.LEFT,false); RibbonIterator leg2=new RibbonIterator(g2,g3,dist); OMPoly poly2=getHalfPoly(...
Takes a corner represented by the three geos, and adds OMGraphics to the OMAreaList depending on which way the corner bends - for right turns, it'll add an OMLine, OMArc and OMLine. The OMLines will go from half the distance of the legs to the rounded corner. The left turn will have a polygon added.
private void updateProgress(int progress){ if (myHost != null && progress != previousProgress) { myHost.updateProgress(progress); } previousProgress=progress; }
Used to communicate a progress update between a plugin tool and the main Whitebox user interface.
@Override public JPopupMenu createMenu(final long offset){ final JPopupMenu menu=new JPopupMenu(); final IDebugger debugger=m_debugger.getCurrentSelectedDebugger(); if (debugger == null) { return null; } menu.add(CActionProxy.proxy(new CSearchAction(m_parent,m_debugger,m_memoryView))); menu.add(CActionP...
Creates the context menu of a memory viewer component.
public void test(String problem,String algorithm1,String algorithm2,AlgorithmFactory factory){ test(problem,algorithm1,algorithm2,false,factory); }
Tests if two algorithms are statistically indifferent.
public synchronized void add(Date x,double y){ super.add(x.getTime(),y); }
Adds a new value to the series.
void mutateField(Local left,String field){ Iterator it=locals.get(left).iterator(); while (it.hasNext()) { PurityNode n=(PurityNode)it.next(); if (!n.isInside()) mutated.put(n,field); } if (doCheck) sanityCheck(); }
Store a primitive type into a non-static field left.field = v
public LayerStatusEvent(Layer source,int status){ super(source); this.status=status; }
Construct a LayerStatusEvent with a status.
public Node close() throws IOException { if (xml) { return close(false); } return close(isSimpleEndTagForHTML()); }
Close the open element.