rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
styleSheet.setBase(u);
getStyleSheet().setBase(u);
public void setBase(URL u) { baseURL = u; styleSheet.setBase(u); }
throws BadLocationException, IOException, NotImplementedException
throws BadLocationException, IOException
public void setInnerHTML(Element elem, String htmlText) throws BadLocationException, IOException, NotImplementedException { if (elem.isLeaf()) throw new IllegalArgumentException("Element is a leaf"); if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not ...
if (parser == null) throw new IllegalStateException("Parser has not been set"); System.out.println("setInnerHTML not implemented");
int start = elem.getStartOffset(); int end = elem.getEndOffset(); HTMLEditorKit.ParserCallback reader = getInsertingReader( end, 0, 0, HTML.Tag.BODY, elem); getParser().parse(new StringReader(htmlText), reader, true); remove(start, end - start);
public void setInnerHTML(Element elem, String htmlText) throws BadLocationException, IOException, NotImplementedException { if (elem.isLeaf()) throw new IllegalArgumentException("Element is a leaf"); if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not ...
public void setOuterHTML(Element elem, String htmlText) throws BadLocationException, IOException, NotImplementedException
public void setOuterHTML(Element elem, String htmlText) throws BadLocationException, IOException
public void setOuterHTML(Element elem, String htmlText) throws BadLocationException, IOException, NotImplementedException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println...
if (parser == null) throw new IllegalStateException("Parser has not been set"); System.out.println("setOuterHTML not implemented");
int start = elem.getStartOffset(); int end = elem.getEndOffset(); remove(start, end-start); HTMLEditorKit.ParserCallback reader = getInsertingReader( start, 0, 0, HTML.Tag.BODY, elem); getParser().parse(new StringReader(htmlText), reader, true);
public void setOuterHTML(Element elem, String htmlText) throws BadLocationException, IOException, NotImplementedException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println...
bad.minor = Minor.Any;
public static NamingContextExt extract(Any a) { try { return ((NamingContextExtHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { BAD_OPERATION bad = new BAD_OPERATION("NamingContextExt expected"); bad.initCause(ex); throw bad; } }
if (member < 1) throw new IllegalArgumentException("member may not be less than 1");
public PageRanges(int member) { super(member); }
noteFrame(this);
Frame(){ this("");}
if (parent != null && parent.isDisplayable()) fireDummyEvent();
addNotify(){ if (menuBar != null) menuBar.addNotify(); if (peer == null) peer = getToolkit ().createFrame (this); super.addNotify();}
getFrames()
public static Frame[] getFrames()
getFrames(){ //Frame[] array = new Frames[frames.size()]; //return frames.toArray(array); String msg = "FIXME: can't be implemented without weak references"; throw new UnsupportedOperationException(msg);}
String msg = "FIXME: can't be implemented without weak references"; throw new UnsupportedOperationException(msg);
int n = 0; synchronized (weakFrames) { Iterator i = weakFrames.iterator(); while (i.hasNext()) { WeakReference wr = (WeakReference) i.next(); if (wr.get() != null) ++n; } if (n == 0) return new Frame[0]; else { Frame[] frames = new Frame[n]; n = 0; i = weakFrames.iterator(); while (i.hasNext()) { WeakReference wr = (We...
getFrames(){ //Frame[] array = new Frames[frames.size()]; //return frames.toArray(array); String msg = "FIXME: can't be implemented without weak references"; throw new UnsupportedOperationException(msg);}
fireDummyEvent();
public void removeNotify(){ if (menuBar != null) menuBar.removeNotify(); super.removeNotify();}
startFrameType();
My5250 () { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch(Exception e) { } loadSessions(); focused = createImageIcon("focused.gif"); unfocused = createImageIcon("unfocused.gif"); tnicon = createImageIcon("tnicon.jpg"); frames ...
if (isSpecified("-MDI",args))
if (isSpecified("-MDI",args)) {
static public void main(String[] args) { if (isSpecified("-MDI",args)) useMDIFrames = true; if (!isSpecified("-nc",args)) { if (!checkBootStrapper(args)) { // if we did not find a running instance and the -d options is // specified start up the bootstrap deamon to a...
}
static public void main(String[] args) { if (isSpecified("-MDI",args)) useMDIFrames = true; if (!isSpecified("-nc",args)) { if (!checkBootStrapper(args)) { // if we did not find a running instance and the -d options is // specified start up the bootstrap deamon to a...
return cause; }
return containedException; }
public Throwable getCause() { return cause; }
return cause; }
return containedException; }
public Throwable getException() { return cause; }
if (this.cause != null)
if (this.containedException != null)
public Throwable initCause(Throwable cause) { if (this.cause != null) { throw new IllegalStateException(); } if (cause == this) { throw new IllegalArgumentException(); } this.cause = cause; return this; }
} this.cause = cause;
} this.containedException = cause;
public Throwable initCause(Throwable cause) { if (this.cause != null) { throw new IllegalStateException(); } if (cause == this) { throw new IllegalArgumentException(); } this.cause = cause; return this; }
System.out.println(" sent heartbeat to " + ses.getSessionName());
log.info(" sent heartbeat to " + ses.getSessionName());
public void actionPerformed(ActionEvent e) { Session ses; for (int x = 0; x < sessions.size(); x++) { try { ses = (Session)sessions.get(x); if (ses.isConnected() && ses.isSendKeepAlive()) { ses.getVT().sendHeartBeat(); System.out.println(" sent hear...
System.out.println(ex.getMessage());
log.warn(ex.getMessage());
public void actionPerformed(ActionEvent e) { Session ses; for (int x = 0; x < sessions.size(); x++) { try { ses = (Session)sessions.get(x); if (ses.isConnected() && ses.isSendKeepAlive()) { ses.getVT().sendHeartBeat(); System.out.println(" sent hear...
synchronized (pool) {
void release() { if (pool != null) { synchronized (pool) { useCount++; Object key = HTTPConnection.getPoolKey(hostname, port, secure); pool.put(key, this); while (pool.size() >= HTTPURLConnection.maxConnections) { // maxC...
Object key = HTTPConnection.getPoolKey(hostname, port, secure); pool.put(key, this); while (pool.size() >= HTTPURLConnection.maxConnections)
pool.put(this); } else
void release() { if (pool != null) { synchronized (pool) { useCount++; Object key = HTTPConnection.getPoolKey(hostname, port, secure); pool.put(key, this); while (pool.size() >= HTTPURLConnection.maxConnections) { // maxC...
Object lru = pool.keySet().iterator().next(); HTTPConnection c = (HTTPConnection)pool.remove(lru);
void release() { if (pool != null) { synchronized (pool) { useCount++; Object key = HTTPConnection.getPoolKey(hostname, port, secure); pool.put(key, this); while (pool.size() >= HTTPURLConnection.maxConnections) { // maxC...
c.closeConnection();
closeConnection();
void release() { if (pool != null) { synchronized (pool) { useCount++; Object key = HTTPConnection.getPoolKey(hostname, port, secure); pool.put(key, this); while (pool.size() >= HTTPURLConnection.maxConnections) { // maxC...
} }
void release() { if (pool != null) { synchronized (pool) { useCount++; Object key = HTTPConnection.getPoolKey(hostname, port, secure); pool.put(key, this); while (pool.size() >= HTTPURLConnection.maxConnections) { // maxC...
void setPool(LinkedHashMap p)
void setPool(Pool p)
void setPool(LinkedHashMap p) { pool = p; }
if (!Utility.isValidEncoding(strEncoding)) {
if (!Utility.isValidIOEncoding(strEncoding)) {
public String setEncoding (String strEncoding) { if (!Utility.isValidEncoding(strEncoding)) { Log.error("not valid encoding. 'set' request ingored. returning null"); return null; } return (String) ((XMLAttribute) attribHash.get("encoding")).setAttribValue(strEncoding); }
{ return null; }
{ if (accessibleContext == null) accessibleContext = new AccessibleJCheckBox(); return accessibleContext; }
public AccessibleContext getAccessibleContext() { return null; }
value [ i ] = input.read_wstring();
value [ i ] = input.read_string();
public void _read(InputStream input) { value = new String[ input.read_long() ]; for (int i = 0; i < value.length; i++) { value [ i ] = input.read_wstring(); } typecode.setLength(value.length); }
output.write_wstring(value [ i ]);
output.write_string(value [ i ]);
public void _write(OutputStream output) { output.write_long(value.length); for (int i = 0; i < value.length; i++) { output.write_wstring(value [ i ]); } }
System.err.println("WARNING: CURRENTLY GAPPLETVIEWER RUNS WITH NO SECURITY MANAGER.\n\n" + "THIS MEANS THAT APPLETS YOU LOAD CAN DO ANYTHING A JAVA APPLICATION\n" + "THAT YOU DOWNLOAD AND RUN CAN DO. BE *VERY* CAREFUL WHICH APPLETS YOU RUN.\n" + "DO NOT USE GAPPLETVIEWER ON YOUR SYSTEM IF YOUR SYSTEM STORES IMPORTANT ...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public FTPFileSystem(FTPFSDevice device) {
public FTPFileSystem(final FTPFSDevice device) {
public FTPFileSystem(FTPFSDevice device) { this.device = device; device.addListener(new DeviceListener() { public void deviceStarted(Device device) { //empty } public void deviceStop(Device device) { try { close(); ...
connect(device.getHost());
setRemoteHost(device.getHost()); setTimeout(300000); AccessController.doPrivileged( new PrivilegedAction(){ public Object run() { try{ connect(); return null; }catch(Exception e){ throw new RuntimeException(e); } } });
public FTPFileSystem(FTPFSDevice device) { this.device = device; device.addListener(new DeviceListener() { public void deviceStarted(Device device) { //empty } public void deviceStop(Device device) { try { close(); ...
FTPFile f = new FTPFile(); f.setName(printWorkingDirectory());
FTPFile f = new FTPFile("/", "/", 0, true, new Date(0));
public FTPFileSystem(FTPFSDevice device) { this.device = device; device.addListener(new DeviceListener() { public void deviceStarted(Device device) { //empty } public void deviceStop(Device device) { try { close(); ...
public void run() {
public Object run() {
public void run() { try{ while(!isClosed()){ try { Thread.sleep(100000); nop(); }catch(InterruptedException x){ //i...
while(!isClosed()){ try { Thread.sleep(100000); nop(); }catch(InterruptedException x){ } } } catch(Exception x){ x.printStackTrace();
connect(); return null; }catch(Exception e){ throw new RuntimeException(e);
public void run() { try{ while(!isClosed()){ try { Thread.sleep(100000); nop(); }catch(InterruptedException x){ //i...
listFiles(root.path());
dir(root.path());
private synchronized void nop() throws Exception{ listFiles(root.path()); }
void addSelectionInterval(int index0, int index1);
void addSelectionInterval(int anchor, int lead);
void addSelectionInterval(int index0, int index1);
boolean isSelectedIndex(int a);
boolean isSelectedIndex(int index);
boolean isSelectedIndex(int a);
void removeSelectionInterval(int index0, int index1);
void removeSelectionInterval(int anchor, int lead);
void removeSelectionInterval(int index0, int index1);
void setSelectionInterval(int index0, int index1);
void setSelectionInterval(int anchor, int lead);
void setSelectionInterval(int index0, int index1);
void setSelectionMode(int a);
void setSelectionMode(int mode);
void setSelectionMode(int a);
protected void resolve() throws PluginException {
protected void resolve(PluginRegistryModel registry) throws PluginException {
protected void resolve() throws PluginException { for (int i = 0; i < libraries.length; i++) { libraries[i].resolve(); } }
libraries[i].resolve();
libraries[i].resolve(registry);
protected void resolve() throws PluginException { for (int i = 0; i < libraries.length; i++) { libraries[i].resolve(); } }
protected void unresolve() throws PluginException {
protected void unresolve(PluginRegistryModel registry) throws PluginException {
protected void unresolve() throws PluginException { for (int i = 0; i < libraries.length; i++) { libraries[i].unresolve(); } }
libraries[i].unresolve();
libraries[i].unresolve(registry);
protected void unresolve() throws PluginException { for (int i = 0; i < libraries.length; i++) { libraries[i].unresolve(); } }
return false;
return all;
private boolean evaluateImpl(Node context, int pos, int len) { Object left = lhs.evaluate(context, pos, len); Object right = rhs.evaluate(context, pos, len); /* * If both objects to be compared are node-sets, then the comparison * will be true if and only if there is a node in the first node-set and...
AxisInterface axis0 = (AxisInterface) CurrentArray.getAxisList().get(0); AxisInterface axis1 = (AxisInterface) CurrentArray.getAxisList().get(1);
public void action () { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) return; // now we...
Log.errorln("Location:["+myLocator.getAxisLocation(axis0)+","+myLocator.getAxisLocation(axis1)+"]");
public void action () { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) return; // now we...
Log.errorln("FOR Start handler not implemented yet.");
for (int i = 0; i < attrs.getLength(); i++) { String name = attrs.getName(i); if (name.equals("axisIdRef") ) { AxisReadOrder.add(AxisObj.get(attrs.getValue(i))); } else Log.warnln("Warning: got weird attribute:"+name+" on for node"); }
public void action (AttributeList attrs) { Log.errorln("FOR Start handler not implemented yet."); }
AxisReadOrder = new ArrayList();
public void action (AttributeList attrs) { // save these for later, when we know what kind of dataIOstyle we got DataIOStyleAttribs = attrs; // clear out the format command object array // (its used by Formatted reads only, but this is reasonable // spot to do this)...
ArrayList axisList = (ArrayList) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1);
Axis lastAxisObject = (Axis) CurrentArray.getAxisList().get(CurrentArray.getAxisList().size()-1);
public void action (AttributeList attrs) { // grab parent node name String gParentNodeName = getGrandParentNodeName(); // create new object appropriately Unit newunit = new Unit(); newunit.setXMLAttributes(attrs); // determine where this goes and then inse...
String delimiter = (String) CurrentValueListParameter.get("delimiter"); String repeatable = (String) CurrentValueListParameter.get("repeatable");
public void action (char buf [], int offset, int len) { String valueListString = new String (buf, offset, len); // get the last axis List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); // split up string int...
CurrentValueListParameter.put("isDelimitedCase", "true");
public void action (char buf [], int offset, int len) { String valueListString = new String (buf, offset, len); // get the last axis List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); // split up string int...
CurrentValueListParameter = new Hashtable();
public void action (AttributeList attrs) { // 1. grab parent node name String parentNodeName = getParentNodeName(); // 2. try to determine values from attributes (e.g. algorithm method) ArrayList values = getValueListNodeValues(attrs); // 3. IT could be that no ...
ArrayList values = getValueListNodeValues(attrs);
for (int i = 0; i < attrs.getLength(); i++) { if (attrs.getValue(i) != null) CurrentValueListParameter.put(attrs.getName(i), attrs.getValue(i)); } CurrentValueListParameter.put("isDelimitedCase", "false");
public void action (AttributeList attrs) { // 1. grab parent node name String parentNodeName = getParentNodeName(); // 2. try to determine values from attributes (e.g. algorithm method) ArrayList values = getValueListNodeValues(attrs); // 3. IT could be that no ...
if(values.size() > 0 ) { ArrayList valueObjList = new ArrayList(); if( parentNodeName.equals(XDFNodeName.AXIS) ) { List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (Strin...
public void action (AttributeList attrs) { // 1. grab parent node name String parentNodeName = getParentNodeName(); // 2. try to determine values from attributes (e.g. algorithm method) ArrayList values = getValueListNodeValues(attrs); // 3. IT could be that no ...
Log.errorln("setData:["+thisString+"]["+dataLocator.getAxisLocation(FastestAxis)+"]");
private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat ) { // Note that we dont treat binary data at all try { Log.erro...
private ArrayList getValueListNodeValues (AttributeList attrs) {
private ArrayList getValueListNodeValues () {
private ArrayList getValueListNodeValues (AttributeList attrs) { ArrayList values = new ArrayList(); // parameters for the algorithm int size = DefaultValueListSize; int start = DefaultValueListStart; int step = DefaultValueListStep; // Capture any overridding Valuelist attribu...
int size = DefaultValueListSize; int start = DefaultValueListStart; int step = DefaultValueListStep; for (int i = 0; i < attrs.getLength(); i++) { String name = attrs.getName(i); if ( name.equals("size") ) { Integer tmp = new Integer (attrs.getValue(i)); size = tmp.intValue(); } else if ( name.equals("step")) { In...
int size = Integer.valueOf((String) CurrentValueListParameter.get("size")).intValue(); int start = Integer.valueOf((String) CurrentValueListParameter.get("start")).intValue(); int step = Integer.valueOf((String) CurrentValueListParameter.get("step")).intValue();
private ArrayList getValueListNodeValues (AttributeList attrs) { ArrayList values = new ArrayList(); // parameters for the algorithm int size = DefaultValueListSize; int start = DefaultValueListStart; int step = DefaultValueListStep; // Capture any overridding Valuelist attribu...
endElementHandlerHashtable.put(XDFNodeName.VALUELIST, new valueListEndElementHandlerFunc());
private void initEndHandlerHashtable () { endElementHandlerHashtable.put(XDFNodeName.DATA, new dataEndElementHandlerFunc()); endElementHandlerHashtable.put(XDFNodeName.FIELDGROUP, new fieldGroupEndElementHandlerFunc()); endElementHandlerHashtable.put(XDFNodeName.NOTES, new notesEndElementHandlerFu...
boolean changed = (x != getX()) || (y != getY()) || (w != getWidth()) || (h != getHeight());
public void reshape(int x, int y, int w, int h) { boolean changed = (x != getX()) || (y != getY()) || (w != getWidth()) || (h != getHeight()); if (w != getWidth() || h != getHeight()) sizeChanged = true; super.reshape(x, y, w, h); if (changed) { damaged = true; ...
if (changed)
if (sizeChanged)
public void reshape(int x, int y, int w, int h) { boolean changed = (x != getX()) || (y != getY()) || (w != getWidth()) || (h != getHeight()); if (w != getWidth() || h != getHeight()) sizeChanged = true; super.reshape(x, y, w, h); if (changed) { damaged = true; ...
if (isShowing()) getView().validate();
public void scrollRectToVisible(Rectangle contentRect) { Point pos = getViewPosition(); Rectangle viewBounds = getView().getBounds(); Rectangle portBounds = getBounds(); // FIXME: should validate the view if it is not valid, however // this may cause excessive validation when the containment //...
if (contentRect.height > portBounds.height || contentRect.width > portBounds.width) { setViewPosition(new Point(contentRect.x, contentRect.y)); return; } if (contentRect.y < -viewBounds.y) setViewPosition(new Point(pos.x, contentRect.y)); else if (contentRect.y + contentRect.height > -viewBounds.y + portBounds.height...
if (contentRect.y + contentRect.height + viewBounds.y > portBounds.height) pos.y = contentRect.y + contentRect.height - viewBounds.height; if (contentRect.y + viewBounds.y < 0) pos.y = contentRect.y; if (contentRect.x + contentRect.width + viewBounds.x > portBounds.width) pos.x = contentRect.x + contentRect.width -...
public void scrollRectToVisible(Rectangle contentRect) { Point pos = getViewPosition(); Rectangle viewBounds = getView().getBounds(); Rectangle portBounds = getBounds(); // FIXME: should validate the view if it is not valid, however // this may cause excessive validation when the containment //...
while (getComponentCount() > 0) {
public void setView(Component v) { while (getComponentCount() > 0) { if (viewListener != null) getView().removeComponentListener(viewListener); //remove(0); } if (v != null) { if (viewListener == null) viewListener = createViewListener(); v.addCompon...
}
public void setView(Component v) { while (getComponentCount() > 0) { if (viewListener != null) getView().removeComponentListener(viewListener); //remove(0); } if (v != null) { if (viewListener == null) viewListener = createViewListener(); v.addCompon...
repaint();
public void setView(Component v) { while (getComponentCount() > 0) { if (viewListener != null) getView().removeComponentListener(viewListener); //remove(0); } if (v != null) { if (viewListener == null) viewListener = createViewListener(); v.addCompon...
super(p, q, g); this.y = y;
this(Registry.RAW_ENCODING_ID, p, q, g, y);
public DSSPublicKey(BigInteger p, BigInteger q, BigInteger g, BigInteger y) { super(p, q, g); this.y = y; }
throw new IllegalArgumentException("format");
throw new IllegalArgumentException("Unsupported encoding format: " + format);
public byte[] getEncoded(int format) { byte[] result; switch (format) { case IKeyPairCodec.RAW_FORMAT: result = new DSSKeyPairRawCodec().encodePublicKey(this); break; default: throw new IllegalArgumentException("format"); } return result; }
IKeyPairCodec codec = new DSSKeyPairRawCodec(); return (DSSPublicKey) codec.decodePublicKey(k);
return (DSSPublicKey) new DSSKeyPairRawCodec().decodePublicKey(k);
public static DSSPublicKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is cheap...
else
catch (IllegalArgumentException ignored)
public static DSSPublicKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is cheap...
throw new IllegalArgumentException("magic");
public static DSSPublicKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is cheap...
return (DSSPublicKey) new DSSKeyPairX509Codec().decodePublicKey(k);
public static DSSPublicKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is cheap...
keys.setKey( 29,new Key(KeyEvent.VK_CONTROL ));
keys.setKey(29, new Key((char) 0, KeyEvent.VK_CONTROL));
protected void initKeys(Keys keys) { Key key; keys.setKey( 1,new Key(KeyEvent.VK_ESCAPE)); keys.setKey( 2,new Key('1' ,KeyEvent.VK_1,'+' ,KeyEvent.VK_ADD ,'' ,KeyEvent.VK_UNDEFINED)); keys.setKey( 3,new Key('2' ,KeyEvent.VK_2,'"' ,KeyEvent.VK_QUOTEDBL ,'@' ,KeyEvent.VK_AT)); keys.setK...
Variable var = (Variable) sources.get(0); return var.simplify();
return first.simplify();
public Operand simplify() { int n = sources.size(); if (n == 1) { Variable var = (Variable) sources.get(0); return var.simplify(); } else { Variable first = (Variable) sources.get(0); // We can't use var.simplify() here because the result might // be a constant, which complicates code generation. // sou...
Variable first = (Variable) sources.get(0);
public Operand simplify() { int n = sources.size(); if (n == 1) { Variable var = (Variable) sources.get(0); return var.simplify(); } else { Variable first = (Variable) sources.get(0); // We can't use var.simplify() here because the result might // be a constant, which complicates code generation. // sou...
assignQuad.setLHS(first);
public Operand simplify() { int n = sources.size(); if (n == 1) { Variable var = (Variable) sources.get(0); return var.simplify(); } else { Variable first = (Variable) sources.get(0); // We can't use var.simplify() here because the result might // be a constant, which complicates code generation. // sou...
IRBasicBlock block = assignQuad.getBasicBlock().getLastPredecessor(); first.setLastUseAddress(block.getEndPC()-1);
if (assignQuad != null) { assignQuad.setLHS(first); IRBasicBlock block = assignQuad.getBasicBlock().getLastPredecessor(); first.setLastUseAddress(block.getEndPC()-1); } else { }
public Operand simplify() { int n = sources.size(); if (n == 1) { Variable var = (Variable) sources.get(0); return var.simplify(); } else { Variable first = (Variable) sources.get(0); // We can't use var.simplify() here because the result might // be a constant, which complicates code generation. // sou...
textComp.addCaretListener(this);
JTextComponent.this.addCaretListener(this); caretDot = getCaretPosition();
public AccessibleJTextComponent() { super(); textComp.addCaretListener(this); }
throws NotImplementedException
public void caretUpdate(CaretEvent e) throws NotImplementedException { // TODO: fire appropriate event. dot = e.getDot(); }
dot = e.getDot();
int dot = e.getDot(); int mark = e.getMark(); if (caretDot != dot) { firePropertyChange(ACCESSIBLE_CARET_PROPERTY, new Integer(caretDot), new Integer(dot)); caretDot = dot; } if (mark != dot) { firePropertyChange(ACCESSIBLE_SELECTION_PROPERTY, null, getSelectedText()); }
public void caretUpdate(CaretEvent e) throws NotImplementedException { // TODO: fire appropriate event. dot = e.getDot(); }
throws NotImplementedException
public void changedUpdate(DocumentEvent e) throws NotImplementedException { // TODO }
firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset()));
public void changedUpdate(DocumentEvent e) throws NotImplementedException { // TODO }
textComp.select(start, end); textComp.cut();
JTextComponent.this.select(start, end); JTextComponent.this.cut();
public void cut(int start, int end) { textComp.select(start, end); textComp.cut(); }
throws NotImplementedException
public boolean doAccessibleAction(int i) throws NotImplementedException { return false; // TODO }
return false;
boolean ret = false; Action[] actions = getActions(); if (i >= 0 && i < actions.length) { ActionEvent ev = new ActionEvent(JTextComponent.this, ActionEvent.ACTION_PERFORMED, null); actions[i].actionPerformed(ev); ret = true; } return ret;
public boolean doAccessibleAction(int i) throws NotImplementedException { return false; // TODO }
throws NotImplementedException
public int getAccessibleActionCount() throws NotImplementedException { return 0; // TODO }
return 0;
return getActions().length;
public int getAccessibleActionCount() throws NotImplementedException { return 0; // TODO }
throws NotImplementedException
public String getAccessibleActionDescription(int i) throws NotImplementedException { // TODO: Not implemented fully return super.getAccessibleDescription(); }
return super.getAccessibleDescription();
String desc = null; Action[] actions = getActions(); if (i >= 0 && i < actions.length) desc = (String) actions[i].getValue(Action.NAME); return desc;
public String getAccessibleActionDescription(int i) throws NotImplementedException { // TODO: Not implemented fully return super.getAccessibleDescription(); }
throws NotImplementedException
public AccessibleStateSet getAccessibleStateSet() throws NotImplementedException { AccessibleStateSet state = super.getAccessibleStateSet(); // TODO: Figure out what state must be added here to the super's state. return state; }
if (isEditable()) state.add(AccessibleState.EDITABLE);
public AccessibleStateSet getAccessibleStateSet() throws NotImplementedException { AccessibleStateSet state = super.getAccessibleStateSet(); // TODO: Figure out what state must be added here to the super's state. return state; }
throws NotImplementedException
public String getAfterIndex(int part, int index) throws NotImplementedException { return null; // TODO }
return null;
return getAtIndexImpl(part, index, 1);
public String getAfterIndex(int part, int index) throws NotImplementedException { return null; // TODO }
throws NotImplementedException
public String getAtIndex(int part, int index) throws NotImplementedException { return null; // TODO }
return null;
return getAtIndexImpl(part, index, 0);
public String getAtIndex(int part, int index) throws NotImplementedException { return null; // TODO }
throws NotImplementedException
public String getBeforeIndex(int part, int index) throws NotImplementedException { return null; // TODO }
return null;
return getAtIndexImpl(part, index, -1);
public String getBeforeIndex(int part, int index) throws NotImplementedException { return null; // TODO }