buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
throws ConverterException, Exception; /* * Copyright (C) The Apache Software Foundation. All rights reserved. * * This software is published under the terms of the Apache Software License * version 1.1, a copy of which has been included with this distribution in * the LICENSE file. */ package org.apache.ant.conv...
throws ConverterException, Exception; /* * Copyright (C) The Apache Software Foundation. All rights reserved. * * This software is published under the terms of the Apache Software License * version 1.1, a copy of which has been included with this distribution in * the LICENSE file. */ package org.apache.ant.conv...
protected void dieOnCircularReference(Stack stk, Project p) throws BuildException { if (isChecked()) { return; } if (isReference()) { super.dieOnCircularReference(stk, p); } else { for (Iterator i = getNested().iterator(); i.hasNext();) { ...
protected void dieOnCircularReference(Stack stk, Project p) throws BuildException { if (isChecked()) { return; } if (isReference()) { super.dieOnCircularReference(stk, p); } else { for (Iterator i = getNested().iterator(); i.hasNext();) { ...
public boolean traverse (int traversal, KeyEvent event) { checkWidget (); if (event == null) error (SWT.ERROR_NULL_ARGUMENT); return traverse (traversal, event.character, event.keyCode, event.keyLocation, event.stateMask, event.doit); } boolean traverse (int traversal, char character, int keyCode, int keyLocation, ...
public boolean traverse (int traversal, KeyEvent event) { checkWidget (); if (event == null) error (SWT.ERROR_NULL_ARGUMENT); return traverse (traversal, event.character, event.keyCode, event.keyLocation, event.stateMask, event.doit); } boolean traverse (int traversal, char character, int keyCode, int keyLocation, ...
public boolean traverse (int traversal, KeyEvent event) { checkWidget (); if (event == null) error (SWT.ERROR_NULL_ARGUMENT); return traverse (traversal, event.character, event.keyCode, event.keyLocation, event.stateMask, event.doit); } boolean traverse (int traversal, char character, int keyCode, int keyLocation, ...
public boolean traverse (int traversal, KeyEvent event) { checkWidget (); if (event == null) error (SWT.ERROR_NULL_ARGUMENT); return traverse (traversal, event.character, event.keyCode, event.keyLocation, event.stateMask, event.doit); } boolean traverse (int traversal, char character, int keyCode, int keyLocation, ...
public boolean traverse (int traversal, KeyEvent event) { checkWidget (); if (event == null) error (SWT.ERROR_NULL_ARGUMENT); return traverse (traversal, event.character, event.keyCode, event.keyLocation, event.stateMask, event.doit); } boolean traverse (int traversal, char character, int keyCode, int keyLocation, i...
public boolean traverse (int traversal, KeyEvent event) { checkWidget (); if (event == null) error (SWT.ERROR_NULL_ARGUMENT); return traverse (traversal, event.character, event.keyCode, event.keyLocation, event.stateMask, event.doit); } boolean traverse (int traversal, char character, int keyCode, int keyLocation, i...
public boolean traverse (int traversal, KeyEvent event) { checkWidget (); if (event == null) error (SWT.ERROR_NULL_ARGUMENT); return traverse (traversal, event.character, event.keyCode, event.keyLocation, event.stateMask, event.doit); } boolean traverse (int traversal, char character, int keyCode, int keyLocation, ...
public boolean traverse (int traversal, KeyEvent event) { checkWidget (); if (event == null) error (SWT.ERROR_NULL_ARGUMENT); return traverse (traversal, event.character, event.keyCode, event.keyLocation, event.stateMask, event.doit); } boolean traverse (int traversal, char character, int keyCode, int keyLocation, ...
public boolean validateDrop(Object target, int operation, TransferData transferType) { if (target != null && target instanceof IRosterItem) { rosterPerformDrop.clear(); boolean result = false; for (Iterator i = rosterDropTargets.iterator(); i.hasNext();) { IRosterViewerDropTarget rdt = (IRosterVie...
public boolean validateDrop(Object target, int operation, TransferData transferType) { if (target instanceof IRosterItem) { rosterPerformDrop.clear(); boolean result = false; for (Iterator i = rosterDropTargets.iterator(); i.hasNext();) { IRosterViewerDropTarget rdt = (IRosterViewerDropTarget) i.n...
public void setUp() { Set needEnhancement = new HashSet(); needEnhancement.add( "testPostUpdateExceptionDuringFlushWithNewInstance"); needEnhancement.add( "testPreUpdateExceptionDuringFlushWithExistingFlushedInstance"); needEnhancement.add( "testPr...
public void setUp() { Set needEnhancement = new HashSet(); needEnhancement.add( "testPostUpdateExceptionDuringFlushWithNewInstance"); needEnhancement.add( "testPreUpdateExceptionDuringFlushWithExistingFlushedInstance"); needEnhancement.add( "testPr...
public void setUp() { super.setUp(CharAbstractEntity.class, CharLeafEntity.class, CharRootEntity.class, IntegerAbstractEntity.class, IntegerLeafEntity.class, IntegerRootEntity.class, StringAbstractEntity.class, StringLeafEntity.class, StringRoo...
public void setUp() { super.setUp(CharAbstractEntity.class, CharLeafEntity.class, CharRootEntity.class, IntegerAbstractEntity.class, IntegerLeafEntity.class, IntegerRootEntity.class, StringAbstractEntity.class, StringLeafEntity.class, StringRoo...
public void setUp() { setUp(HandlerToRelationMapInstance.class, AllFieldTypes.class, CLEAR_TABLES, "openjpa.Log", "SQL=TRACE"); }
public void setUp() { setUp(HandlerToRelationMapInstance.class, AllFieldTypes.class, CLEAR_TABLES); }
protected String getDefaultChoice(final Object selected) { // The <option> tag buffer final StringBuffer buffer = new StringBuffer(); // Is null a valid selection value? if (isNullValid()) { // Null is valid, so look up the value for it final String option = getLocalizer().getString(getId() + ".null"...
protected String getDefaultChoice(final Object selected) { // The <option> tag buffer final StringBuffer buffer = new StringBuffer(); // Is null a valid selection value? if (isNullValid()) { // Null is valid, so look up the value for it final String option = getLocalizer().getString(getId() + ".null"...
protected final void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { // Buffer to hold generated body final StringBuffer buffer = new StringBuffer(); // Iterate through choices final List choices = getChoices(); // Loop through choices for (int index = 0; index < cho...
protected final void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { // Buffer to hold generated body final StringBuffer buffer = new StringBuffer(); // Iterate through choices final List choices = getChoices(); // Loop through choices for (int index = 0; index < cho...
protected final void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { // Buffer to hold generated body final StringBuffer buffer = new StringBuffer(); // Iterate through choices final List choices = getChoices(); // Loop through choices for (int index = 0; index < c...
protected final void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { // Buffer to hold generated body final StringBuffer buffer = new StringBuffer(); // Iterate through choices final List choices = getChoices(); // Loop through choices for (int index = 0; index < c...
public void setEnterExitMacro(boolean enterExitMacro) { this.enterExitMacro = enterExitMacro; } void generateExcludes(Method[] methods) { HashSet excludes = new HashSet(); for (int i = 0; i < methods.length; i++) { Method method = methods[i]; if ((method.getModifiers() & Modifier.NATIVE) == 0) continue; Metho...
public void setEnterExitMacro(boolean enterExitMacro) { this.enterExitMacro = enterExitMacro; } void generateExcludes(Method[] methods) { HashSet excludes = new HashSet(); for (int i = 0; i < methods.length; i++) { Method method = methods[i]; if ((method.getModifiers() & Modifier.NATIVE) == 0) continue; Metho...
protected void handleComponentTag(final ComponentTag tag) { checkTag(tag, "input"); checkAttribute(tag, "type", "checkbox"); super.handleComponentTag(tag); Object value = getModelObject(); if (value != null) { final boolean tagValue; if(value instanceof String) // probably was formatted or straigh...
protected void handleComponentTag(final ComponentTag tag) { checkTag(tag, "input"); checkAttribute(tag, "type", "checkbox"); super.handleComponentTag(tag); Object value = getModelObject(); if (value != null) { final boolean tagValue; if(value instanceof String) // probably was formatted or straigh...
protected void create (DeviceData data) { checkSubclass (); checkDisplay(thread = Thread.currentThread (), false); createDisplay (data); register (); if (Default == null) Default = this; } synchronized void createDisplay (DeviceData data) { if (!OS.g_thread_supported ()) { OS.g_thread_init (0); } OS.gtk_set_...
protected void create (DeviceData data) { checkSubclass (); checkDisplay(thread = Thread.currentThread (), false); createDisplay (data); register (); if (Default == null) Default = this; } synchronized void createDisplay (DeviceData data) { if (!OS.g_thread_supported ()) { OS.g_thread_init (0); } OS.gtk_set_...
public ScrollBar getVerticalBar () { checkWidget (); return verticalBar; } int /*long*/ gtk_scroll_event (int /*long*/ widget, int /*long*/ eventPtr) { int result = super.gtk_scroll_event (widget, eventPtr); /* * Feature in GTK. Scrolled windows do not scroll if the scrollbars * are hidden. This is not a bug...
public ScrollBar getVerticalBar () { checkWidget (); return verticalBar; } int /*long*/ gtk_scroll_event (int /*long*/ widget, int /*long*/ eventPtr) { int /*long*/ result = super.gtk_scroll_event (widget, eventPtr); /* * Feature in GTK. Scrolled windows do not scroll if the scrollbars * are hidden. This is ...
protected int namespaceHashCode() { return uri.hashCode(); }
protected int namespaceHashCode() { return getUsernameAtHost().hashCode(); }
protected void process(CompilationUnitDeclaration unit, int i) { EclipseFactory world = EclipseFactory.forLookupEnvironment(lookupEnvironment); world.showMessage(IMessage.INFO, "compiling " + new String(unit.getFileName()), null, null); super.process(unit, i); world.finishedCompilationUnit(unit); }
protected void process(CompilationUnitDeclaration unit, int i) { EclipseFactory world = EclipseFactory.fromLookupEnvironment(lookupEnvironment); world.showMessage(IMessage.INFO, "compiling " + new String(unit.getFileName()), null, null); super.process(unit, i); world.finishedCompilationUnit(unit); }
public static ISharedObjectContainer makeSharedObjectContainer( SharedObjectContainerDescription desc, String[] argTypes, Object[] args) throws SharedObjectContainerInstantiationException { debug("makeSharedObjectContainer("+desc+","+argTypes+","+args+")"); if (desc == null) ...
public static ISharedObjectContainer makeSharedObjectContainer( SharedObjectContainerDescription desc, String[] argTypes, Object[] args) throws SharedObjectContainerInstantiationException { debug("makeSharedObjectContainer("+desc+","+Trace.convertStringAToString(argTypes)+","+Trace.c...
public Control [] getTabList () { checkWidget (); Control [] tabList = _getTabList (); if (tabList == null) { int count = 0; Control [] list =_getChildren (); for (int i=0; i<list.length; i++) { if (list [i].isTabGroup ()) count++; } tabList = new Control [count]; int index = 0; for (int i=0; i<list...
public Control [] getTabList () { checkWidget (); Control [] tabList = _getTabList (); if (tabList == null) { int count = 0; Control [] list =_getChildren (); for (int i=0; i<list.length; i++) { if (list [i].isTabGroup ()) count++; } tabList = new Control [count]; int index = 0; for (int i=0; i<list...
public int getSelection () { checkWidget(); int value = OS.GetControl32BitValue (handle); if ((style & SWT.VERTICAL) != 0) { int minimum = OS.GetControl32BitMinimum (handle); int maximum = OS.GetControl32BitMaximum (handle); value = maximum - value + minimum; } return value; } int kEventMouseDown (int ne...
public int getSelection () { checkWidget(); int value = OS.GetControl32BitValue (handle); if ((style & SWT.VERTICAL) != 0) { int minimum = OS.GetControl32BitMinimum (handle); int maximum = OS.GetControl32BitMaximum (handle); value = maximum - value + minimum; } return value; } int kEventMouseDown (int ne...
private List parseDefinitions(final ClassLoader loader) { List definitions = new ArrayList(); try { info("register classloader " + getClassLoaderName(loader)); //TODO av underoptimized: we will parse each XML once per CL that see it //TODO av dev mode needed ? TBD -...
private List parseDefinitions(final ClassLoader loader) { List definitions = new ArrayList(); try { info("register classloader " + getClassLoaderName(loader)); //TODO av underoptimized: we will parse each XML once per CL that see it //TODO av dev mode needed ? TBD -...
public GroovyApplication() { // Must be set prior to loading a groovy file, as watching for changes // of the groovy file does already use the value defined. getSettings().setResourcePollFrequency(Duration.ONE_SECOND); getSettings().getPageFactory().setChildFactory(new ...
public GroovyApplication() { // Must be set prior to loading a groovy file, as watching for changes // of the groovy file does already use the value defined. getSettings().setResourcePollFrequency(Duration.ONE_SECOND); getSettings().getDefaultPageFactory().setChildFacto...
public GroovyPageFactory(final IApplication application) { super(application); } /** * Create an object of type 'classname'. First try standard java classes, * than groovy files. Groovy file name must be 'classname'.groovy. * * @param classname The object's class name ...
public GroovyPageFactory(final IApplication application) { super(application); } /** * Create an object of type 'classname'. First try standard java classes, * than groovy files. Groovy file name must be 'classname'.groovy. * * @param classname The object's class name ...
private void resolveAutomaticLink(final Page page, final MarkupStream markupStream, final String componentName, final ComponentTag tag) { // Get any automaticLink component final Matcher matcher = automaticComponentPattern.matcher(componentName); if (matcher.matches()) { ...
private void resolveAutomaticLink(final Page page, final MarkupStream markupStream, final String componentName, final ComponentTag tag) { // Get any automaticLink component final Matcher matcher = automaticComponentPattern.matcher(componentName); if (matcher.matches()) { ...
private Component createComponent(final ComponentWicketTag tag) { String componentName = tag.getNameAttribute(); if (componentName == null) { componentName = "anonymous-" + autoIndex; autoIndex ++; } final String classname = tag.getAttribu...
private Component createComponent(final ComponentWicketTag tag) { String componentName = tag.getNameAttribute(); if (componentName == null) { componentName = "anonymous-" + autoIndex; autoIndex ++; } final String classname = tag.getAttribu...
public final void handleSubmit() { // Sign the user in final String error = signIn(getUsername(), getPassword()); if (error == null) { // Get active request cycle final RequestCycle cycle = getRequestCycle(); ...
public final void handleSubmit() { // Sign the user in final String error = signIn(getUsername(), getPassword()); if (error == null) { // Get active request cycle final RequestCycle cycle = getRequestCycle(); ...
private byte[] serializePage(SessionPageKey key, Page page) { long t1 = System.currentTimeMillis(); byte[] bytes = Objects.objectToByteArray(page); totalSerializationTime += (System.currentTimeMillis() - t1); serialized++; if (log.isDebugEnabled()) { log.debug("serializing page " + key.pageClass + "[" ...
private byte[] serializePage(SessionPageKey key, Page page) { long t1 = System.currentTimeMillis(); byte[] bytes = Objects.objectToByteArray(page); totalSerializationTime += (System.currentTimeMillis() - t1); serialized++; if (log.isDebugEnabled() && bytes != null) { log.debug("serializing page " + key...
public TestEagerResultList(String test) { super(test); }
public TestEagerResultList(String test) { super(test, true); }
public TestLazyForwardResultList(String test) { super(test); }
public TestLazyForwardResultList(String test) { super(test, true); }
public TestListResultList(String test) { super(test); }
public TestListResultList(String test) { super(test, true); }
public AppendingStringBuffer filter(AppendingStringBuffer responseBuffer) { int headIndex = responseBuffer.indexOf("<head>"); int bodyIndex = responseBuffer.indexOf("</body>"); long timeTaken = System.currentTimeMillis() - RequestCycle.get().getStartTime(); if (headIndex != -1 && bodyIndex != -1) { Map m...
public AppendingStringBuffer filter(AppendingStringBuffer responseBuffer) { int headIndex = responseBuffer.indexOf("<head>"); int bodyIndex = responseBuffer.indexOf("</body>"); long timeTaken = System.currentTimeMillis() - RequestCycle.get().getStartTime(); if (headIndex != -1 && bodyIndex != -1) { Map<S...
public interface ICompoundModel<V> extends IModel<V> /* * $Id$ * $Revision$ * $Date$ * * ============================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may ob...
public interface ICompoundModel<V> extends IModel<V> /* * $Id$ * $Revision$ * $Date$ * * ============================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may ob...
public void setTabs(int tabs) { checkWidget(); tabLength = tabs; renderer.setFont(getFont(), tabs); if (caretOffset > 0) { caretOffset = 0; showCaret(); clearSelection(false); } resetCache(0, content.getLineCount()); super.redraw(); }
public void setTabs(int tabs) { checkWidget(); tabLength = tabs; renderer.setFont(null, tabs); if (caretOffset > 0) { caretOffset = 0; showCaret(); clearSelection(false); } resetCache(0, content.getLineCount()); super.redraw(); }
public void run() { if (styledText == null) return; int i; long start = System.currentTimeMillis(); for (i = 0; i < lineCount; i++) { if (lineHeight[i] == -1 || lineWidth[i] == -1) { calculate(i, 1); if (System.currentTimeMillis() - start > IDLE_TIME) break; } } if (i < lineCount) ...
public void run() { if (styledText == null) return; int i; long start = System.currentTimeMillis(); for (i = 0; i < lineCount; i++) { if (lineHeight[i] == -1 || lineWidth[i] == -1) { calculate(i, 1); if (System.currentTimeMillis() - start > IDLE_TIME) break; } } if (i < lineCount) ...
public Rectangle computeTrim (int x, int y, int width, int height) { checkWidget(); Rectangle trim = super.computeTrim (x, y, width, height); /* * Feature in Motif. There is no way to get the single pixel border * surrounding a TopLevelShell or a TransientShell. Attempts to set a * border on either the shell han...
public Rectangle computeTrim (int x, int y, int width, int height) { checkWidget(); Rectangle trim = super.computeTrim (x, y, width, height); /* * Feature in Motif. There is no way to get the single pixel border * surrounding a TopLevelShell or a TransientShell. Attempts to set a * border on either the shell han...
public final void onClick() { IWizardModel wizardModel = getWizardModel(); IWizardStep step = wizardModel.getActiveStep(); // let the step apply any state step.applyState(); // if the step completed after applying the state, notify the wizard if (step.isComplete()) { getWizard().onFinish(); } e...
public final void onClick() { IWizardModel wizardModel = getWizardModel(); IWizardStep step = wizardModel.getActiveStep(); // let the step apply any state step.applyState(); // if the step completed after applying the state, notify the wizard if (step.isComplete()) { getWizardModel().finish(); } ...
public LabelFieldGBC forLabel() { // Labels should only take up as much room as needed. fill = NONE; // Set location to left side. gridx = 0; // Move it over to be as close to field as possible. anchor = EAST; // Don't take up any extra. weightx = 0.0; return this; }
public LabelFieldGBC forLabel() { // Labels should only take up as much room as needed. fill = NONE; // Set location to left side. gridx = 0; // Move it over to be as close to field as possible. anchor = NORTHEAST; // Don't take up any extra. weightx = 0.0; return this; }
protected Node normalizeNode (Node node){ int type = node.getNodeType(); boolean wellformed; switch (type) { case Node.DOCUMENT_TYPE_NODE: { if (DEBUG_ND) { System.out.println("==>normalizeNode:{doctype}"); } //REV...
protected Node normalizeNode (Node node){ int type = node.getNodeType(); boolean wellformed; switch (type) { case Node.DOCUMENT_TYPE_NODE: { if (DEBUG_ND) { System.out.println("==>normalizeNode:{doctype}"); } //REV...
public void dieOnCircularReference(Stack stk, Project p) { if (isChecked()) { return; } if (isReference()) { super.dieOnCircularReference(stk, p); } else { for (Iterator i = v.iterator(); i.hasNext();) { Object o = i.next(); ...
protected void dieOnCircularReference(Stack stk, Project p) { if (isChecked()) { return; } if (isReference()) { super.dieOnCircularReference(stk, p); } else { for (Iterator i = v.iterator(); i.hasNext();) { Object o = i.next(); ...
protected void setUp() throws Exception { super.setUp(); preferencesAdapter = new UserPreferencesStore(); buildOptions = new AjcBuildOptions(preferencesAdapter); }
protected void setUp() throws Exception { super.setUp(); preferencesAdapter = new UserPreferencesStore(false); buildOptions = new AjcBuildOptions(preferencesAdapter); }
public void init(String testProjectPath) { try { UserPreferencesAdapter preferencesAdapter = new UserPreferencesStore(); ProjectPropertiesAdapter browserProjectProperties = new NullIdeProperties(testProjectPath); taskListManager = new NullIdeTaskListManager(); BasicEditor ajdeEditor = new BasicEditor(); ...
public void init(String testProjectPath) { try { UserPreferencesAdapter preferencesAdapter = new UserPreferencesStore(false); ProjectPropertiesAdapter browserProjectProperties = new NullIdeProperties(testProjectPath); taskListManager = new NullIdeTaskListManager(); BasicEditor ajdeEditor = new BasicEdito...
public Component<String> getHeader(MarkupContainer parent, String componentId) { return super.getHeader(parent, componentId).setEscapeModelStrings(true); }
public Component<String> getHeader(MarkupContainer parent, String componentId) { return super.getHeader(parent, componentId).setEscapeModelStrings(false); }
public ISharedObject createInstance( SharedObjectTypeDescription typeDescription, Class[] argTypes, Object[] args) throws SharedObjectInstantiationException { if (args != null && args.length == 3) { // do stuff return new ChannelImpl((ISharedObjectTransactionConfig) args[0], (IChannelListener) args[...
public ISharedObject createInstance( SharedObjectTypeDescription typeDescription, Class[] argTypes, Object[] args) throws SharedObjectInstantiationException { if (args != null && args.length == 3) { // do stuff return new BaseChannel((ISharedObjectTransactionConfig) args[0], (IChannelListener) args[...
public void execute() throws BuildException { if (tarFile == null) { throw new BuildException("tarfile attribute must be set!", location); } if (tarFile.exists() && tarFile.isDirectory()) { throw new BuildException("tarfile is a ...
public void execute() throws BuildException { if (tarFile == null) { throw new BuildException("tarfile attribute must be set!", location); } if (tarFile.exists() && tarFile.isDirectory()) { throw new BuildException("tarfile is a ...
public void modifyTestElement(TestElement params) { if (paramTable.isEditing()) { paramTable.getCellEditor().stopCellEditing(); } UserParameters userParams = ((UserParameters) params); userParams.setNames(new CollectionProperty(UserParameters.NAMES, tableModel.getColumnDa...
public void modifyTestElement(TestElement params) { if (paramTable.isEditing()) { paramTable.getCellEditor().stopCellEditing(); } UserParameters userParams = ((UserParameters) params); userParams.setNames(new CollectionProperty(UserParameters.NAMES, tableModel.getColumnDa...
public static void prepare(TestElement el) { if (!(el instanceof TestBean)) { return; } try { BeanInfo beanInfo = Introspector.getBeanInfo(el.getClass()); PropertyDescriptor[] desc = beanInfo.getPropertyDescriptors(); Object[] param = new Objec...
public static void prepare(TestElement el) { if (!(el instanceof TestBean)) { return; } try { BeanInfo beanInfo = Introspector.getBeanInfo(el.getClass()); PropertyDescriptor[] desc = beanInfo.getPropertyDescriptors(); Object[] param = new Objec...
public String loadStringResource(Class clazz, final String key, final Locale locale, final String style) { if (clazz == null) { return null; } String value = null; while (value == null) { // Get (or load) the properties associated with clazz, locale and // style final Properties props = ...
public String loadStringResource(Class clazz, final String key, final Locale locale, final String style) { if (clazz == null) { return null; } String value = null; while (true) { // Get (or load) the properties associated with clazz, locale and // style final Properties props = getProper...
private static Set<String> _hints = new HashSet<String>(); static { _hints.add("openjpa.FetchPlan.EagerFetchMode"); _hints.add("openjpa.FetchPlan.FetchDirection"); _hints.add("openjpa.FetchPlan.TransactionIsolation"); _hints.add("openjpa.FetchPlan.JoinSyntax"); _hints.add...
private static Set<String> _hints = new HashSet<String>(); static { _hints.add("openjpa.FetchPlan.EagerFetchMode"); _hints.add("openjpa.FetchPlan.FetchDirection"); _hints.add("openjpa.FetchPlan.Isolation"); _hints.add("openjpa.FetchPlan.JoinSyntax"); _hints.add("openjpa.F...
public RuntimeException translate(RuntimeException re) { RuntimeException ex = toPersistenceException(re); if (!(ex instanceof NonUniqueResultException) && !(ex instanceof NoResultException) && !throwing) { try { ...
public RuntimeException translate(RuntimeException re) { RuntimeException ex = toPersistenceException(re); if (!(ex instanceof NonUniqueResultException) && !(ex instanceof NoResultException) && !throwing) { try { ...
public Project() { fileUtils = FileUtils.getFileUtils(); }
public Project() { fileUtils = FileUtils.newFileUtils(); }
public Copy() { fileUtils = FileUtils.getFileUtils(); }
public Copy() { fileUtils = FileUtils.newFileUtils(); }
public Touch() { fileUtils = FileUtils.getFileUtils(); }
public Touch() { fileUtils = FileUtils.newFileUtils(); }
public void removeAttribute (int index) { if (index >= 0 && index < length) { data[index*5] = null; data[index*5+1] = null; data[index*5+2] = null; data[index*5+3] = null; data[index*5+4] = null; if (index < length - 1) { System.arraycopy(data, (index+1)*5, data, index*5, (...
public void removeAttribute (int index) { if (index >= 0 && index < length) { data[index*5] = null; data[index*5+1] = null; data[index*5+2] = null; data[index*5+3] = null; data[index*5+4] = null; if (index < length - 1) { System.arraycopy(data, (index+1)*5, data, index*5, (...
public void onSubmit() { // Form validation successful. Display message showing edited model. info("Saved model " + getRootModelObject()); } }
public void onSubmit() { // Form validation successful. Display message showing edited model. info("Saved model " + getModelObject()); } }
public final void onSubmit() { // Construct a copy of the edited comment final Comment comment = (Comment)getRootModelObject(); final Comment newComment = new Comment(comment); // Set date of comment to add newComment.setDate(new Date()); // Add the component we edited to the list of comments ...
public final void onSubmit() { // Construct a copy of the edited comment final Comment comment = (Comment)getModelObject(); final Comment newComment = new Comment(comment); // Set date of comment to add newComment.setDate(new Date()); // Add the component we edited to the list of comments com...
public final void onSubmit() { final RequestCycle cycle = getRequestCycle(); PageParameters parameters = new PageParameters(); final Book book = (Book)getRootModelObject(); parameters.put("id", new Long(book.getId())); cycle.setResponsePage(getPageFactory().newPage(BookDetails.class, parameters)); ...
public final void onSubmit() { final RequestCycle cycle = getRequestCycle(); PageParameters parameters = new PageParameters(); final Book book = (Book)getModelObject(); parameters.put("id", new Long(book.getId())); cycle.setResponsePage(getPageFactory().newPage(BookDetails.class, parameters)); cyc...
public String read(InputStream is) { byte[] msg = null; int msgLen = 0; try { byte[] lengthBuffer = new byte[lengthPrefixLen]; if (is.read(lengthBuffer, 0, lengthPrefixLen) == lengthPrefixLen) { msgLen = byteArrayToInt(lengthBuffer); ms...
public String read(InputStream is) { byte[] msg = new byte[0]; int msgLen = 0; try { byte[] lengthBuffer = new byte[lengthPrefixLen]; if (is.read(lengthBuffer, 0, lengthPrefixLen) == lengthPrefixLen) { msgLen = byteArrayToInt(lengthBuffer); ...
protected void performDefaults() { super.performDefaults(); getPreferenceStore().setDefault(CONTAINER_TYPE, "ecf.generic.channel"); getPreferenceStore().setDefault(TARGET_SERVER, "ecftcp://localhost:3282/server"); getPreferenceStore().setDefault(CHANNEL_ID, "collab.editor"); try { getPreferenceStore()....
protected void performDefaults() { super.performDefaults(); getPreferenceStore().setDefault(CONTAINER_TYPE, "ecf.generic.client"); getPreferenceStore().setDefault(TARGET_SERVER, "ecftcp://localhost:3282/server"); getPreferenceStore().setDefault(CHANNEL_ID, "collab.editor"); try { getPreferenceStore().s...
public String getBaseURI() { if (needsSyncData()) { synchronizeData(); } if (baseURI == null) { DocumentType doctype; NamedNodeMap entities; EntityImpl entDef; if (null != (doctype = getOwnerDocument().getDoctype()) && ...
public String getBaseURI() { if (needsSyncData()) { synchronizeData(); } if (baseURI == null) { DocumentType doctype; NamedNodeMap entities; EntityImpl entDef; if (null != (doctype = getOwnerDocument().getDoctype()) && ...
public String getBaseURI() { if (needsSyncData()) { synchronizeData(); } if (baseURI != null && baseURI.length() != 0 ) {// attribute value is always empty string try { baseURI = new URI(baseURI).toString(); } catch (org.apache....
public String getBaseURI() { if (needsSyncData()) { synchronizeData(); } if (baseURI != null && baseURI.length() != 0 ) {// attribute value is always empty string try { return new URI(baseURI).toString(); } catch (org.apache.xer...
public IContainerEntry[] getContainerEntries() { INamespaceEntry[] namespaceEntries = idStore.getNamespaceEntries(); List results = new ArrayList(); for (int i = 0; i < namespaceEntries.length; i++) { IIDEntry[] idEntries = namespaceEntries[i].getIDEntries(); for (int j = 0; j < idEntries.length; j++) { ...
public IContainerEntry[] getContainerEntries() { INamespaceEntry[] namespaceEntries = idStore.getNamespaceEntries(); List results = new ArrayList(); for (int i = 0; i < namespaceEntries.length; i++) { IIDEntry[] idEntries = namespaceEntries[i].getIDEntries(); for (int j = 0; j < idEntries.length; j++) { ...
private ClassMetaData getPersistenceCapableOwner(String fieldName, Class owner) { // find the actual ancestor class that declares the field, then // check if the class is persistent, and if the field is managed Field f = Reflection.findField(owner, fieldName, false); if (f ==...
private ClassMetaData getPersistenceCapableOwner(String fieldName, Class owner) { // find the actual ancestor class that declares the field, then // check if the class is persistent, and if the field is managed Field f = Reflection.findField(owner, fieldName, false); if (f ==...
private Object[] extractSelectExecutor(Object result) { if (result instanceof ResultList == false) return new Object[]{null, _loc.get("exclude-not-result", _id)}; Object userObject = ((ResultList<?>)result).getUserObject(); if (userObject == null || !userObject.getClass().isArray...
private Object[] extractSelectExecutor(Object result) { if (result instanceof ResultList == false) return new Object[]{null, _loc.get("exclude-not-result", _id)}; Object userObject = ((ResultList<?>)result).getUserObject(); if (userObject == null || !userObject.getClass().isArray...
protected String currentQuery() { return ctx().parsed == null || root().parser == null ? null : root().parser.jpql; } QueryExpressions getQueryExpressions() { QueryExpressions exps = new QueryExpressions(); exps.setContexts(contexts); evalQueryOperation(exps); ...
protected String currentQuery() { return ctx().parsed == null || root().parser == null ? null : root().parser.jpql; } QueryExpressions getQueryExpressions() { QueryExpressions exps = new QueryExpressions(); exps.setContexts(contexts); evalQueryOperation(exps); ...
public void handleServiceEvent(IRemoteServiceEvent event) { if (event instanceof IRemoteServiceRegisteredEvent) { IRemoteServiceRegisteredEvent e = (IRemoteServiceRegisteredEvent) event; IRemoteServiceReference ref = e.getReference(); remoteService = adapters[1].getRemoteService(ref); assertN...
public void handleServiceEvent(IRemoteServiceEvent event) { if (event instanceof IRemoteServiceRegisteredEvent) { IRemoteServiceRegisteredEvent e = (IRemoteServiceRegisteredEvent) event; IRemoteServiceReference ref = e.getReference(); remoteService = adapters[1].getRemoteService(ref); assertN...
public void execute() throws TaskException { // first off, make sure that we've got a srcdir if( src == null ) { throw new TaskException( "srcdir attribute must be set!" ); } String[] list = src.list(); if( list.length == 0 ) { ...
public void execute() throws TaskException { // first off, make sure that we've got a srcdir if( src == null ) { throw new TaskException( "srcdir attribute must be set!" ); } String[] list = src.list(); if( list.length == 0 ) { ...
public void addSample(MonitorModel model); }
void addSample(MonitorModel model); /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Ver...
private void makeOptionsMenu() { // OPTIONS MENU optionsMenu = new JMenu(JMeterUtils.getResString("option")); // $NON-NLS-1$ JMenuItem functionHelper = new JMenuItem(JMeterUtils.getResString("function_dialog_menu_item"), 'F'); // $NON-NLS-1$ functionHelper.addActionListener(ReportAct...
private void makeOptionsMenu() { // OPTIONS MENU optionsMenu = new JMenu(JMeterUtils.getResString("option")); // $NON-NLS-1$ JMenuItem functionHelper = new JMenuItem(JMeterUtils.getResString("function_dialog_menu_item"), 'F'); // $NON-NLS-1$ functionHelper.addActionListener(ReportAct...
public JPopupMenu createPopupMenu() { JPopupMenu pop = new JPopupMenu(); JMenu addMenu = new JMenu(JMeterUtils.getResString("Add")); // $NON-NLS-1$ addMenu.add(ReportMenuFactory.makeMenu(ReportMenuFactory.CONFIG_ELEMENTS, "Add")); // $NON-NLS-1$ addMenu.add(ReportMenuFactory.makeMenu...
public JPopupMenu createPopupMenu() { JPopupMenu pop = new JPopupMenu(); JMenu addMenu = new JMenu(JMeterUtils.getResString("add")); // $NON-NLS-1$ addMenu.add(ReportMenuFactory.makeMenu(ReportMenuFactory.CONFIG_ELEMENTS, "Add")); // $NON-NLS-1$ addMenu.add(ReportMenuFactory.makeMenu...
public JPopupMenu createPopupMenu() { JPopupMenu pop = new JPopupMenu(); JMenu addMenu = new JMenu(JMeterUtils.getResString("Add")); // $NON-NLS-1$ addMenu.add(ReportMenuFactory.makeMenuItem(new TableGui().getStaticLabel(), TableGui.class.getName(), "Add")); ...
public JPopupMenu createPopupMenu() { JPopupMenu pop = new JPopupMenu(); JMenu addMenu = new JMenu(JMeterUtils.getResString("add")); // $NON-NLS-1$ addMenu.add(ReportMenuFactory.makeMenuItem(new TableGui().getStaticLabel(), TableGui.class.getName(), "Add")); ...
public void doAction(ActionEvent e) { ReportActionRouter.getInstance().doActionNow( new ActionEvent(e.getSource(), e.getID(), ReportCheckDirty.CHECK_DIRTY)); ReportGuiPackage guiPackage = ReportGuiPackage.getInstance(); if (guiPackage.isDirty()) { ...
public void doAction(ActionEvent e) { ReportActionRouter.getInstance().doActionNow( new ActionEvent(e.getSource(), e.getID(), ReportCheckDirty.CHECK_DIRTY)); ReportGuiPackage guiPackage = ReportGuiPackage.getInstance(); if (guiPackage.isDirty()) { ...
public void doAction(ActionEvent e) { ReportActionRouter.getInstance().doActionNow( new ActionEvent(e.getSource(), e.getID(), ReportCheckDirty.CHECK_DIRTY)); if (ReportGuiPackage.getInstance().isDirty()) { int chosenOption = JOptionPane.showConfirm...
public void doAction(ActionEvent e) { ReportActionRouter.getInstance().doActionNow( new ActionEvent(e.getSource(), e.getID(), ReportCheckDirty.CHECK_DIRTY)); if (ReportGuiPackage.getInstance().isDirty()) { int chosenOption = JOptionPane.showConfirm...
protected void startEngine() { /** * this will need to be changed ReportGuiPackage gui = ReportGuiPackage.getInstance(); engine = new StandardJMeterEngine(); HashTree testTree = gui.getTreeModel().getTestPlan(); convertSubTree(testTree); DisabledComponentRemo...
protected void startEngine() { /** * this will need to be changed ReportGuiPackage gui = ReportGuiPackage.getInstance(); engine = new StandardJMeterEngine(); HashTree testTree = gui.getTreeModel().getTestPlan(); convertSubTree(testTree); DisabledComponentRemo...
public Component remove(final IBehavior behavior) { if (behavior == null) { throw new IllegalArgumentException("Argument `behavior` cannot be null"); } if (behaviors == null || !behaviors.contains(behavior) == false) { throw new IllegalStateException( "Tried to remove a behavior that was not adde...
public Component remove(final IBehavior behavior) { if (behavior == null) { throw new IllegalArgumentException("Argument `behavior` cannot be null"); } if (behaviors == null || !behaviors.contains(behavior)) { throw new IllegalStateException( "Tried to remove a behavior that was not added to the ...
package wicket.request.target.component; /* * $Id: IBookmarkablePageRequestTarget.java,v 1.1 2005/12/06 22:17:44 eelco12 * Exp $ $Revision$ $Date$ * * ============================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); you may not * us...
package wicket.request.target.component; /* * $Id: IBookmarkablePageRequestTarget.java,v 1.1 2005/12/06 22:17:44 eelco12 * Exp $ $Revision$ $Date$ * * ============================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); you may not * us...
package wicket.request.target.component; /* * $Id$ * $Revision$ $Date$ * * ============================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of ...
package wicket.request.target.component; /* * $Id$ * $Revision$ $Date$ * * ============================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of ...
package wicket.request.target.component; /* * $Id$ * $Revision$ $Date$ * * ============================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of ...
package wicket.request.target.component; /* * $Id$ * $Revision$ $Date$ * * ============================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of ...
package wicket.request.target.resource; /* * $Id$ * $Revision$ * $Date$ * * ============================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy o...
package wicket.request.target.resource; /* * $Id$ * $Revision$ * $Date$ * * ============================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy o...
protected ArchiveState getResourcesToAdd(ResourceCollection[] rcs, File zipFile, boolean needsUpdate) throws BuildException { // need to handle manifest as a special check if (zipFile.exists()) { ...
protected ArchiveState getResourcesToAdd(ResourceCollection[] rcs, File zipFile, boolean needsUpdate) throws BuildException { // need to handle manifest as a special check if (zipFile.exists()) { ...
public synchronized HTMLElement createCaption() { HTMLElement section; section = getCaption(); if ( section != null ) return section; section = new HTMLTableSectionElementImpl( (HTMLDocumentImpl) getOwnerDocument(), "CAPTION" ); appendChild( sectio...
public synchronized HTMLElement createCaption() { HTMLElement section; section = getCaption(); if ( section != null ) return section; section = new HTMLTableCaptionElementImpl( (HTMLDocumentImpl) getOwnerDocument(), "CAPTION" ); appendChild( sectio...
protected HTTPSampleResult resultProcessing(boolean areFollowingRedirect, int frameDepth, HTTPSampleResult res) { boolean wasRedirected = false; if (!areFollowingRedirect) { if (res.isRedirect()) { log.debug("Location set to - " + res.getRedirectLocation()); ...
protected HTTPSampleResult resultProcessing(boolean areFollowingRedirect, int frameDepth, HTTPSampleResult res) { boolean wasRedirected = false; if (!areFollowingRedirect) { if (res.isRedirect()) { log.debug("Location set to - " + res.getRedirectLocation()); ...
public void testMethodSignatureToArgumentTypes() { checkMethodSignatureArgumentTypes("([Ljava/lang/String;Z)V",new String[]{"java.lang.String[]","boolean"}); checkMethodSignatureArgumentTypes("(Ljava/util/List<java/lang/String>;)V",new String[]{"java.util.List<java/lang/String>"}); }
public void testMethodSignatureToArgumentTypes() { checkMethodSignatureArgumentTypes("([Ljava/lang/String;Z)V",new String[]{"java.lang.String[]","boolean"}); // checkMethodSignatureArgumentTypes("(Ljava/util/List<java/lang/String>;)V",new String[]{"java.util.List<java/lang/String>"}); }
public void verifyAnnotationEnumElement(JavaClass clazz) { Annotation[] anns = clazz.getAnnotations(); assertTrue("should be one annotation but found "+anns.length,anns.length==1); Annotation ann = anns[0]; assertTrue("should be called 'AnnotationEnumElement' but was called "+ann.getTypeName(), ann.getType...
public void verifyAnnotationEnumElement(JavaClass clazz) { Annotation[] anns = clazz.getAnnotations(); assertTrue("should be one annotation but found "+anns.length,anns.length==1); Annotation ann = anns[0]; assertTrue("should be called 'AnnotationEnumElement' but was called "+ann.getTypeName(), ann.getType...
public IResourceStream getResourceStream() { if (resource == null) { // Locate resource this.resource = RequestCycle.get().getApplication().getResourceLocator().locate( absolutePath, style, locale, null); // Check that resource was found if (this.resource == null) { throw new WicketRun...
public IResourceStream getResourceStream() { if (resource == null) { // Locate resource this.resource = RequestCycle.get().getApplication().getResourceStreamLocator().locate( absolutePath, style, locale, null); // Check that resource was found if (this.resource == null) { throw new Wic...
private synchronized ValueMap loadResources(final String style, final Locale locale, final String id) { // Make sure someone else didn't load our resources while we were // waiting for the synchronized lock on the method ValueMap strings = (ValueMap)resourceCache.get(id); if (strings != null) { return...
private synchronized ValueMap loadResources(final String style, final Locale locale, final String id) { // Make sure someone else didn't load our resources while we were // waiting for the synchronized lock on the method ValueMap strings = (ValueMap)resourceCache.get(id); if (strings != null) { return...
private synchronized ValueMap loadResources(final Component component, final String style, final Locale locale, final String id) { // Make sure someone else didn't load our resources while we were // waiting // for the synchronized lock on the method ValueMap strings = (ValueMap)resourceCache.get(id); if...
private synchronized ValueMap loadResources(final Component component, final String style, final Locale locale, final String id) { // Make sure someone else didn't load our resources while we were // waiting // for the synchronized lock on the method ValueMap strings = (ValueMap)resourceCache.get(id); if...
protected CMElementDeclaration getCMElementDeclaration(Node node) { if (_project != null && node.getNodeType() == Node.ELEMENT_NODE && node.getPrefix() != null) { final Element element = (Element) node; final FaceletDocumentFact...
protected CMElementDeclaration getCMElementDeclaration(Node node) { if (_project != null && node.getNodeType() == Node.ELEMENT_NODE && node.getPrefix() != null) { final Element element = (Element) node; final FaceletDocumentFact...
public String toString(final Locale locale) { if (value >= 0) { if (terabytes() >= 1.0) { return unitString(gigabytes(), "T", locale); } if (gigabytes() >= 1.0) { return unitString(gigabytes(), "G", locale); } if (megabytes() >= 1.0) { return unitString(megabytes(), "M", loca...
public String toString(final Locale locale) { if (value >= 0) { if (terabytes() >= 1.0) { return unitString(terabytes(), "T", locale); } if (gigabytes() >= 1.0) { return unitString(gigabytes(), "G", locale); } if (megabytes() >= 1.0) { return unitString(megabytes(), "M", loca...
private static void checkVersion(Class clazz, String expected) { String actual = "*NONE*"; // $NON-NLS-1$ try { actual = (String) clazz.getMethod("getVersion", null).invoke(null, null); actual = extractVersion(actual); } catch (Exception ignored) { // Not needed } if (0 != actual.compareTo(expected...
private static void checkVersion(Class clazz, String expected) { String actual = "*NONE*"; // $NON-NLS-1$ try { actual = (String) clazz.getMethod("getVersion", null).invoke(null, null); actual = extractVersion(actual); } catch (Exception ignored) { // Not needed } if (0 != actual.compareTo(expected...
public StringList getNsConstraintList() { return new StringListImpl(fNamespaceList, fNamespaceList.length); }
public StringList getNsConstraintList() { return new StringListImpl(fNamespaceList, fNamespaceList == null ? 0 : fNamespaceList.length); }
public String getAttributeNS(String namespaceURI, String localName) { for (int i=0; i<attrs.length; i++) { if (attrs[i].getName().equals(localName) && attrs[i].getNamespaceURI().equals(namespaceURI)) { return attrs[i].getValue(); } } return ""; }
public String getAttributeNS(String namespaceURI, String localName) { for (int i=0; i<attrs.length; i++) { if (attrs[i].getLocalName().equals(localName) && attrs[i].getNamespaceURI().equals(namespaceURI)) { return attrs[i].getValue(); } } return ""; ...
public final void testECoreMetaModelInDifferentProject() throws Exception { env.openEmptyWorkspace(); final IPath pPath = env.addProject("test-"+System.currentTimeMillis()); final IPath pPath2 = env.addProject("test-"+System.currentTimeMillis()); env.addExternalJars(pPath, env.getJavaClassLibs()); env.addExt...
public final void testECoreMetaModelInDifferentProject() throws Exception { env.openEmptyWorkspace(); final IPath pPath = env.addProject("test-"+System.currentTimeMillis()); final IPath pPath2 = env.addProject("test2-"+System.currentTimeMillis()); env.addExternalJars(pPath, env.getJavaClassLibs()); env.addEx...
protected void appendOptionHtml(AppendingStringBuffer buffer, Object choice, int index, String selected) { Object objectValue = renderer.getDisplayValue(choice); Class objectClass = objectValue == null ? null : objectValue.getClass(); final String displayValue = getConverter(objectClass).convertToString(obje...
protected void appendOptionHtml(AppendingStringBuffer buffer, Object choice, int index, String selected) { Object objectValue = renderer.getDisplayValue(choice); Class objectClass = objectValue == null ? null : objectValue.getClass(); final String displayValue = getConverter(objectClass).convertToString(obje...
private void getProjections(QueryExpressions exps, List<Selection<?>> selections, List<Value> projections, List<String> aliases, ExpressionFactory factory, CriteriaQueryImpl<?> q, MetamodelImpl model) { for (Selection<?> s : selections) { if (s instanceof NewInstanceSelection<?...
private void getProjections(QueryExpressions exps, List<Selection<?>> selections, List<Value> projections, List<String> aliases, ExpressionFactory factory, CriteriaQueryImpl<?> q, MetamodelImpl model) { for (Selection<?> s : selections) { if (s instanceof NewInstanceSelection<?...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget (); int width = DEFAULT_WIDTH; int height = DEFAULT_HEIGHT; if (wHint != SWT.DEFAULT) width = wHint; if (hHint != SWT.DEFAULT) height = hHint; int border = getBorderWidth (); width += border * 2; height += border * 2; return new Poi...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget (); int width = DEFAULT_WIDTH; int height = DEFAULT_HEIGHT; if (wHint != SWT.DEFAULT) width = wHint; if (hHint != SWT.DEFAULT) height = hHint; int border = getBorderWidth (); width += border * 2; height += border * 2; return new Poi...
private CompositeNode parse(String s) throws Exception { System.out.println(s); ANTLRStringStream stream = new ANTLRStringStream(s); Xpand3NodeLexer lexer = new Xpand3NodeLexer(stream); CommonTokenStream tokenStream = new CommonTokenStream(lexer); Xpand3NodeParser xpand3NodeParser = new Xpand3NodeParser(toke...
private CompositeNode parse(String s) throws Exception { System.out.println(s); ANTLRStringStream stream = new ANTLRStringStream(s); Xpand3NodeLexer lexer = new Xpand3NodeLexer(stream); CommonTokenStream tokenStream = new CommonTokenStream(lexer); Xpand3NodeParser xpand3NodeParser = new Xpand3NodeParser(toke...
private CompositeNode parse(String s) throws Exception { ANTLRStringStream stream = new ANTLRStringStream(s); Xpand3NodeLexer lexer = new Xpand3NodeLexer(stream); CommonTokenStream tokenStream = new CommonTokenStream(lexer); Xpand3NodeParser xpand3NodeParser = new Xpand3NodeParser(tokenStream); Node rootNode...
private CompositeNode parse(String s) throws Exception { ANTLRStringStream stream = new ANTLRStringStream(s); Xpand3NodeLexer lexer = new Xpand3NodeLexer(stream); CommonTokenStream tokenStream = new CommonTokenStream(lexer); Xpand3NodeParser xpand3NodeParser = new Xpand3NodeParser(tokenStream); Node rootNode...
public static void parseWithNodeParser(String s) throws RecognitionException { ANTLRStringStream stream = new ANTLRStringStream(s); Xpand3NodeLexer lexer = new Xpand3NodeLexer(stream); CommonTokenStream tokenStream = new CommonTokenStream(lexer); Xpand3NodeParser xpand3NodeParser = new Xpand3NodeParser(toke...
public static void parseWithNodeParser(String s) throws RecognitionException { ANTLRStringStream stream = new ANTLRStringStream(s); Xpand3NodeLexer lexer = new Xpand3NodeLexer(stream); CommonTokenStream tokenStream = new CommonTokenStream(lexer); Xpand3NodeParser xpand3NodeParser = new Xpand3NodeParser(toke...