diff options
Diffstat (limited to 'core/org.eclipse.cdt.core/src/org')
59 files changed, 0 insertions, 20704 deletions
diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/AbstractCExtension.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/AbstractCExtension.java deleted file mode 100644 index 1c386db8d83..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/AbstractCExtension.java +++ /dev/null @@ -1,30 +0,0 @@ -/********************************************************************** - * Copyright (c) 2002,2003 QNX Software Systems Ltd. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v0.5 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v05.html - * - * Contributors: - * QNX Software Systems - Initial API and implementation -***********************************************************************/ -package org.eclipse.cdt.core; - -import org.eclipse.cdt.internal.core.InternalCExtension; -import org.eclipse.core.resources.IProject; - -public abstract class AbstractCExtension extends InternalCExtension implements ICExtension { - - /** - * Returns the project for which this extrension is defined. - * - * @return the project - */ - public final IProject getProject() { - return super.getProject(); - } - - public final ICExtensionReference getExtensionReference() { - return super.getExtensionReference(); - } -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/BuildInfoFactory.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/BuildInfoFactory.java deleted file mode 100644 index 76310bd998f..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/BuildInfoFactory.java +++ /dev/null @@ -1,293 +0,0 @@ -package org.eclipse.cdt.core; - -/* - * (c) Copyright QNX Software Systems Ltd. 2002. - * All Rights Reserved. - */ - - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.ListIterator; -import java.util.Map; - -import org.eclipse.cdt.core.parser.IScannerInfo; -import org.eclipse.cdt.core.resources.IStandardBuildInfo; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IConfigurationElement; -import org.eclipse.core.runtime.IExtension; -import org.eclipse.core.runtime.IExtensionPoint; -import org.eclipse.core.runtime.Plugin; -import org.eclipse.core.runtime.Preferences; -import org.eclipse.core.runtime.QualifiedName; -import org.w3c.dom.Document; -import org.w3c.dom.Element; -import org.w3c.dom.Node; - -public class BuildInfoFactory { - public static final String LOCATION = "buildLocation"; - public static final String FULL_ARGUMENTS = "buildFullArguments"; - public static final String INCREMENTAL_ARGUMENTS = "buildIncrementalArguments"; - public static final String STOP_ON_ERROR = "stopOnError"; -// public static final String CLEAR_CONSOLE = "clearConsole"; - public static final String DEFAULT_BUILD_CMD = "useDefaultBuildCmd"; - public static final String PROJECT_NAME = "projectName"; - public static final String INCLUDE_PATH = "includePath"; - public static final String PATH = "path"; - public static final String DEFINED_SYMBOL = "definedSymbol"; - public static final String SYMBOL = "symbol"; - - public static abstract class Store implements IStandardBuildInfo, IScannerInfo { - // List of include paths - protected List pathList; - protected List symbolList; - - public String getBuildLocation() { - if ( isDefaultBuildCmd() ) { - Plugin plugin = CCorePlugin.getDefault(); - if (plugin != null) { - IExtensionPoint extension = plugin.getDescriptor().getExtensionPoint("CBuildCommand"); - if (extension != null) { - IExtension[] extensions = extension.getExtensions(); - for(int i = 0; i < extensions.length; i++){ - IConfigurationElement [] configElements = extensions[i].getConfigurationElements(); - for(int j = 0; j < configElements.length; j++){ - String command = configElements[j].getAttribute("command"); //$NON-NLS-1$ - if (command != null) - return command; - } - } - } - } - return "make"; - } - return getString(LOCATION); - } - - /* (non-Javadoc) - * @see org.eclipse.cdt.core.build.managed.IScannerInfo#getIncludePaths() - */ - public Map getDefinedSymbols() { - // Return the defined symbols for the default configuration - HashMap symbols = new HashMap(); - String[] symbolList = getPreprocessorSymbols(); - for (int i = 0; i < symbolList.length; ++i) { - String symbol = symbolList[i]; - if (symbol.length() == 0) { - continue; - } - String key = new String(); - String value = new String(); - int index = symbol.indexOf("="); - if (index != -1) { - key = symbol.substring(0, index).trim(); - value = symbol.substring(index + 1).trim(); - } else { - key = symbol.trim(); - } - symbols.put(key, value); - } - return symbols; - } - - public String getFullBuildArguments() { - return getString(FULL_ARGUMENTS); - } - - /* (non-Javadoc) - * @see org.eclipse.cdt.core.build.managed.IScannerInfo#getIncludePaths() - */ - public String[] getIncludePaths() { - return (String[]) getPathList().toArray(new String[getPathList().size()]); - } - - public String getIncrementalBuildArguments() { - return getString(INCREMENTAL_ARGUMENTS); - } - - public boolean isStopOnError() { - return getBoolean(STOP_ON_ERROR); - } - - public void setBuildLocation(String location) { - putValue(LOCATION, location); - } - - public void setPreprocessorSymbols(String[] symbols) { - // Clear out any existing symbols and add the new stuff - getSymbolList().clear(); - getSymbolList().addAll(Arrays.asList(symbols)); - } - - public void setFullBuildArguments(String arguments) { - putValue(FULL_ARGUMENTS, arguments); - } - - public void setIncludePaths(String[] paths) { - // Clear the existing list and add the paths - getPathList().clear(); - getPathList().addAll(Arrays.asList(paths)); - } - - public void setIncrementalBuildArguments(String arguments) { - putValue(INCREMENTAL_ARGUMENTS, arguments); - } - - public void setStopOnError(boolean on) { - putValue(STOP_ON_ERROR, new Boolean(on).toString()); - } - - public boolean isDefaultBuildCmd() { - if ( getString(DEFAULT_BUILD_CMD) == null ) { // if no property then default to true - return true; - } - return getBoolean(DEFAULT_BUILD_CMD); - } - - public void setUseDefaultBuildCmd(boolean on) { - putValue(DEFAULT_BUILD_CMD, new Boolean(on).toString()); - } - -// public boolean isClearBuildConsole() { -// return getBoolean(CLEAR_CONSOLE); -// } - - public boolean getBoolean(String property) { - return Boolean.valueOf(getString(property)).booleanValue(); - } - - public void putValue(String name, String value) { - } - - /* (non-Javadoc) - * @see org.eclipse.cdt.core.resources.IBuildInfo#serialize(org.w3c.dom.Document, org.w3c.dom.Element) - */ - public void serialize(Document doc, Element rootElement) { - // Serialize the include paths - ListIterator iter = getPathList().listIterator(); - while (iter.hasNext()){ - Element pathElement = doc.createElement(INCLUDE_PATH); - pathElement.setAttribute(PATH, (String)iter.next()); - rootElement.appendChild(pathElement); - } - // Now do the same for the symbols - iter = getSymbolList().listIterator(); - while (iter.hasNext()) { - Element symbolElement = doc.createElement(DEFINED_SYMBOL); - symbolElement.setAttribute(SYMBOL, (String)iter.next()); - rootElement.appendChild(symbolElement); - } - } - - protected List getPathList() { - if (pathList == null) { - pathList = new ArrayList(); - } - return pathList; - } - - public String getString(String property) { - return null; - } - - public String[] getPreprocessorSymbols() { - return (String[]) getSymbolList().toArray(new String[getSymbolList().size()]); - } - - protected List getSymbolList() { - if (symbolList == null) { - symbolList = new ArrayList(); - } - return symbolList; - } - - } - - public static class Preference extends Store { - Preferences prefs; - - public Preference() { - prefs = CCorePlugin.getDefault().getPluginPreferences(); - } - - public void putValue(String name, String value) { - prefs.setValue(name, value); - } - - public String getString(String property) { - return prefs.getString(property); - } - - public void setDefault(String name, String def) { - prefs.setDefault(name, def); - } - } - - public static class Property extends Store { - private IResource resource; - - public Property(IResource resource) { - this.resource = resource; - } - - public void putValue(String name, String value) { - QualifiedName qName = new QualifiedName(CCorePlugin.PLUGIN_ID, name); - try { - resource.setPersistentProperty(qName, value); - } catch (CoreException e) { - } - } - - public String getString(String property) { - QualifiedName qName = new QualifiedName(CCorePlugin.PLUGIN_ID, property); - try { - return resource.getPersistentProperty(qName); - } catch (CoreException e) { - } - return null; - } - - public void setDefault(String name, String def) { - } - - -// public boolean isClearBuildConsole() { -// return (new Preference()).isClearBuildConsole(); -// } - } - - public static IStandardBuildInfo create() { - return new BuildInfoFactory.Preference(); - } - - public static IStandardBuildInfo create(IProject project) { - return new BuildInfoFactory.Property(project); - } - - /** - * @param project - * @param element - * @return - */ - public static IStandardBuildInfo create(IProject project, Element element) { - // Create a new info property object - Property buildProperties = new Property(project); - Node child = element.getFirstChild(); - while (child != null) { - if (child.getNodeName().equals(INCLUDE_PATH)) { - // Add the path to the property list - buildProperties.getPathList().add(((Element)child).getAttribute(PATH)); - } else if (child.getNodeName().equals(DEFINED_SYMBOL)) { - // Add the symbol to the symbol list - buildProperties.getSymbolList().add(((Element)child).getAttribute(SYMBOL)); - } - child = child.getNextSibling(); - } - return (IStandardBuildInfo)buildProperties; - } -} - diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CCProjectNature.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CCProjectNature.java deleted file mode 100644 index b8d73394a01..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CCProjectNature.java +++ /dev/null @@ -1,43 +0,0 @@ -package org.eclipse.cdt.core; - -/* - * (c) Copyright IBM Corp. 2000, 2001. - * All Rights Reserved. - */ - -import org.eclipse.core.resources.IProject; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Status; - - - -public class CCProjectNature extends CProjectNature { - - public static final String CC_NATURE_ID= CCorePlugin.PLUGIN_ID + ".ccnature"; - - public static void addCCNature(IProject project, IProgressMonitor mon) throws CoreException { - addNature(project, CC_NATURE_ID, mon); - } - - public static void removeCCNature(IProject project, IProgressMonitor mon) throws CoreException { - removeNature(project, CC_NATURE_ID, mon); - } - - /** - * Checks to ensure that a cnature already exists, - * if not throw a CoreException. Does NOT add a default builder - * @see IProjectNature#configure - */ - public void configure() throws CoreException { - if (!getProject().hasNature(CProjectNature.C_NATURE_ID)){ - IStatus status = new Status(IStatus.ERROR, - CCorePlugin.PLUGIN_ID, - CCorePlugin.CDT_PROJECT_NATURE_ID_MISMATCH, - "project must have a cnature", null); // $NON_NLS - throw new CoreException(status); - } - } - -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CConventions.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CConventions.java deleted file mode 100644 index 2a849770541..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CConventions.java +++ /dev/null @@ -1,137 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001 Rational Software Corp. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v0.5 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v05.html - * - * Contributors: - * Rational Software - initial implementation - ******************************************************************************/ -package org.eclipse.cdt.core; - -import java.util.StringTokenizer; - -import org.eclipse.cdt.internal.core.CharOperation; -import org.eclipse.cdt.internal.core.Util; -import org.eclipse.cdt.internal.core.model.CModelStatus; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.IWorkspace; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Status; -/** - * @author hamer - * - * To change the template for this generated type comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ - -public class CConventions { - private final static String scopeResolutionOperator= "::"; - private final static char fgDot= '.'; - private final static char fgColon= ':'; - - /** - * Validate the given CPP class name, either simple or qualified. - * For example, <code>"A::B::C"</code>, or <code>"C"</code>. - * <p> - * - * @param name the name of a class - * @return a status object with code <code>IStatus.OK</code> if - * the given name is valid as a CPP class name, - * a status with code <code>IStatus.WARNING</code> - * indicating why the given name is discouraged, - * otherwise a status object indicating what is wrong with - * the name - */ - public static IStatus validateClassName(String name) { - if (name == null) { - return new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, Util.bind("convention.class.nullName"), null); //$NON-NLS-1$ - } - String trimmed = name.trim(); - if ((!name.equals(trimmed)) || (name.indexOf(" ") != -1) ){ - return new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, Util.bind("convention.class.nameWithBlanks"), null); //$NON-NLS-1$ - } - int index = name.lastIndexOf(scopeResolutionOperator); - char[] scannedID; - if (index == -1) { - // simple name - scannedID = name.toCharArray(); - } else { - // qualified name - String pkg = name.substring(0, index).trim(); - IStatus status = validateScopeName(pkg); - if (!status.isOK()) { - return status; - } - String type = name.substring(index + 1).trim(); - scannedID = type.toCharArray(); - } - - if (scannedID != null) { - IStatus status = ResourcesPlugin.getWorkspace().validateName(new String(scannedID), IResource.FILE); - if (!status.isOK()) { - return status; - } - if (CharOperation.contains('$', scannedID)) { - return new Status(IStatus.WARNING, CCorePlugin.PLUGIN_ID, -1, Util.bind("convention.class.dollarName"), null); //$NON-NLS-1$ - } - if ((scannedID.length > 0 && Character.isLowerCase(scannedID[0]))) { - return new Status(IStatus.WARNING, CCorePlugin.PLUGIN_ID, -1, Util.bind("convention.class.lowercaseName"), null); //$NON-NLS-1$ - } - return CModelStatus.VERIFIED_OK; - } else { - return new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, Util.bind("convention.class.invalidName", name), null); //$NON-NLS-1$ - } - } - /** - * Validate the given scope name. - * <p> - * @return a status object with code <code>IStatus.OK</code> if - * the given name is valid as a class name, otherwise a status - * object indicating what is wrong with the name - */ - public static IStatus validateScopeName(String name) { - - if (name == null) { - return new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, Util.bind("convention.scope.nullName"), null); //$NON-NLS-1$ - } - int length; - if ((length = name.length()) == 0) { - return new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, Util.bind("convention.scope.emptyName"), null); //$NON-NLS-1$ - } - if (name.charAt(0) == fgDot || name.charAt(length-1) == fgDot) { - return new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, Util.bind("convention.scope.dotName"), null); //$NON-NLS-1$ - } - if (CharOperation.isWhitespace(name.charAt(0)) || CharOperation.isWhitespace(name.charAt(name.length() - 1))) { - return new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, Util.bind("convention.scope.nameWithBlanks"), null); //$NON-NLS-1$ - } -// int dot = 0; -// while (dot != -1 && dot < length-1) { -// if ((dot = name.indexOf(fgDot, dot+1)) != -1 && dot < length-1 && name.charAt(dot+1) == fgDot) { -// return new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, Util.bind("convention.package.consecutiveDotsName"), null); //$NON-NLS-1$ -// } -// } - IWorkspace workspace = ResourcesPlugin.getWorkspace(); - StringTokenizer st = new StringTokenizer(name, scopeResolutionOperator); - boolean firstToken = true; - while (st.hasMoreTokens()) { - String typeName = st.nextToken(); - typeName = typeName.trim(); // grammar allows spaces - char[] scannedID = typeName.toCharArray(); - if (scannedID == null) { - return new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, Util.bind("convention.illegalIdentifier", typeName), null); //$NON-NLS-1$ - } - IStatus status = workspace.validateName(new String(scannedID), IResource.FOLDER); - if (!status.isOK()) { - return status; - } - if (firstToken && scannedID.length > 0 && Character.isLowerCase(scannedID[0])) { - return new Status(IStatus.WARNING, CCorePlugin.PLUGIN_ID, -1, Util.bind("convention.scope.lowercaseName"), null); //$NON-NLS-1$ - } - firstToken = false; - } - return CModelStatus.VERIFIED_OK; - } -}
\ No newline at end of file diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CCorePlugin.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CCorePlugin.java deleted file mode 100644 index e418c03f1b3..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CCorePlugin.java +++ /dev/null @@ -1,829 +0,0 @@ -package org.eclipse.cdt.core; - -/* - * (c) Copyright IBM Corp. 2000, 2001. - * All Rights Reserved. - */ - -import java.text.MessageFormat; -import java.util.Collection; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.Map; -import java.util.MissingResourceException; -import java.util.ResourceBundle; - -import org.eclipse.cdt.core.index.IndexModel; -import org.eclipse.cdt.core.model.CoreModel; -import org.eclipse.cdt.core.parser.IScannerInfoProvider; -import org.eclipse.cdt.core.resources.IConsole; -import org.eclipse.cdt.core.search.SearchEngine; -import org.eclipse.cdt.internal.core.CDescriptorManager; -import org.eclipse.cdt.internal.core.CPathEntry; -import org.eclipse.cdt.internal.core.model.BufferManager; -import org.eclipse.cdt.internal.core.model.CModelManager; -import org.eclipse.cdt.internal.core.model.IBufferFactory; -import org.eclipse.cdt.internal.core.model.IWorkingCopy; -import org.eclipse.cdt.internal.core.model.Util; -import org.eclipse.cdt.internal.core.search.indexing.IndexManager; -import org.eclipse.cdt.internal.core.search.indexing.SourceIndexer; -import org.eclipse.cdt.internal.core.search.matching.MatchLocator; -import org.eclipse.cdt.internal.core.sourcedependency.DependencyManager; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IProjectDescription; -import org.eclipse.core.resources.IWorkspace; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IConfigurationElement; -import org.eclipse.core.runtime.IExtension; -import org.eclipse.core.runtime.IExtensionPoint; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IPluginDescriptor; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.NullProgressMonitor; -import org.eclipse.core.runtime.OperationCanceledException; -import org.eclipse.core.runtime.Platform; -import org.eclipse.core.runtime.Plugin; -import org.eclipse.core.runtime.Preferences; -import org.eclipse.core.runtime.Status; -import org.eclipse.core.runtime.SubProgressMonitor; - -public class CCorePlugin extends Plugin { - - public static final int STATUS_CDTPROJECT_EXISTS = 1; - public static final int STATUS_CDTPROJECT_MISMATCH = 2; - public static final int CDT_PROJECT_NATURE_ID_MISMATCH = 3; - - public static final String PLUGIN_ID = "org.eclipse.cdt.core"; - - public static final String BUILDER_MODEL_ID = PLUGIN_ID + ".CBuildModel"; - public static final String BINARY_PARSER_SIMPLE_ID = "BinaryParser"; - public final static String BINARY_PARSER_UNIQ_ID = PLUGIN_ID + "." + BINARY_PARSER_SIMPLE_ID; - public final static String PREF_BINARY_PARSER = "binaryparser"; - public final static String DEFAULT_BINARY_PARSER_SIMPLE_ID = "ELF"; - public final static String DEFAULT_BINARY_PARSER_UNIQ_ID = PLUGIN_ID + "." + DEFAULT_BINARY_PARSER_SIMPLE_ID; - public final static String PREF_USE_NEW_PARSER = "useNewParser"; - - // Build Model Interface Discovery - public final static String BUILD_SCANNER_INFO_SIMPLE_ID = "ScannerInfoProvider"; - public final static String BUILD_SCANNER_INFO_UNIQ_ID = PLUGIN_ID + "." + BUILD_SCANNER_INFO_SIMPLE_ID; - - - /** - * Possible configurable option ID. - * @see #getDefaultOptions - */ - public static final String TRANSLATION_TASK_PRIORITIES = PLUGIN_ID + ".translation.taskPriorities"; //$NON-NLS-1$ - /** - * Possible configurable option value for TRANSLATION_TASK_PRIORITIES. - * @see #getDefaultOptions - */ - public static final String TRANSLATION_TASK_PRIORITY_HIGH = "HIGH"; //$NON-NLS-1$ - /** - * Possible configurable option value for TRANSLATION_TASK_PRIORITIES. - * @see #getDefaultOptions - */ - public static final String TRANSLATION_TASK_PRIORITY_LOW = "LOW"; //$NON-NLS-1$ - /** - * Possible configurable option value for TRANSLATION_TASK_PRIORITIES. - * @see #getDefaultOptions - */ - public static final String TRANSLATION_TASK_PRIORITY_NORMAL = "NORMAL"; //$NON-NLS-1$ - /** - * Possible configurable option ID. - * @see #getDefaultOptions - */ - public static final String TRANSLATION_TASK_TAGS = PLUGIN_ID + ".translation.taskTags"; //$NON-NLS-1$ - - /** - * Default task tag - */ - public static final String DEFAULT_TASK_TAG = "TODO"; //$NON-NLS-1$ - /** - * Default task priority - */ - public static final String DEFAULT_TASK_PRIORITY = TRANSLATION_TASK_PRIORITY_NORMAL; - /** - * Possible configurable option ID. - * @see #getDefaultOptions - */ - public static final String CORE_ENCODING = PLUGIN_ID + ".encoding"; //$NON-NLS-1$ - - - private static CCorePlugin fgCPlugin; - private static ResourceBundle fgResourceBundle; - - private CDescriptorManager fDescriptorManager; - private CoreModel fCoreModel; - private IndexModel fIndexModel; - - // -------- static methods -------- - - static { - try { - fgResourceBundle = ResourceBundle.getBundle("org.eclipse.cdt.internal.core.CCorePluginResources"); - } catch (MissingResourceException x) { - fgResourceBundle = null; - } - } - - /** - * Answers the shared working copies currently registered for this buffer factory. - * Working copies can be shared by several clients using the same buffer factory,see - * <code>IWorkingCopy.getSharedWorkingCopy</code>. - * - * @param factory the given buffer factory - * @return the list of shared working copies for a given buffer factory - * @see IWorkingCopy - */ - public static IWorkingCopy[] getSharedWorkingCopies(IBufferFactory factory){ - - // if factory is null, default factory must be used - if (factory == null) factory = BufferManager.getDefaultBufferManager().getDefaultBufferFactory(); - Map sharedWorkingCopies = CModelManager.getDefault().sharedWorkingCopies; - - Map perFactoryWorkingCopies = (Map) sharedWorkingCopies.get(factory); - if (perFactoryWorkingCopies == null) return CModelManager.NoWorkingCopy; - Collection copies = perFactoryWorkingCopies.values(); - IWorkingCopy[] result = new IWorkingCopy[copies.size()]; - copies.toArray(result); - return result; - } - - public static String getResourceString(String key) { - try { - return fgResourceBundle.getString(key); - } catch (MissingResourceException e) { - return "!" + key + "!"; - } catch (NullPointerException e) { - return "#" + key + "#"; - } - } - - public static IWorkspace getWorkspace() { - return ResourcesPlugin.getWorkspace(); - } - - public static String getFormattedString(String key, String arg) { - return MessageFormat.format(getResourceString(key), new String[] { arg }); - } - - public static String getFormattedString(String key, String[] args) { - return MessageFormat.format(getResourceString(key), args); - } - - public static ResourceBundle getResourceBundle() { - return fgResourceBundle; - } - - public static CCorePlugin getDefault() { - return fgCPlugin; - } - - public static void log(Throwable e) { - log(new Status(IStatus.ERROR, PLUGIN_ID, IStatus.ERROR, "Error", e)); - } - - public static void log(IStatus status) { - ((Plugin) getDefault()).getLog().log(status); - } - - // ------ CPlugin - - public CCorePlugin(IPluginDescriptor descriptor) { - super(descriptor); - fgCPlugin = this; - } - - /** - * @see Plugin#shutdown - */ - public void shutdown() throws CoreException { - super.shutdown(); - if (fDescriptorManager != null) { - fDescriptorManager.shutdown(); - } - if (fIndexModel != null) { - fIndexModel.shutdown(); - } - if (fCoreModel != null) { - fCoreModel.shutdown(); - } - } - - /** - * @see Plugin#startup - */ - public void startup() throws CoreException { - super.startup(); - - //Set debug tracing options - CCorePlugin.getDefault().configurePluginDebugOptions(); - - // Fired up the model. - fCoreModel = CoreModel.getDefault(); - fCoreModel.startup(); - - // Fired up the indexer. It should delay itself for 10 seconds - fIndexModel = IndexModel.getDefault(); - fIndexModel.startup(); - - //Fired up the new indexer - fCoreModel.startIndexing(); - - //Fire up dependency manager - fCoreModel.startDependencyService(); - - fDescriptorManager = new CDescriptorManager(); - fDescriptorManager.startup(); - - // Set the default for using the new parser - getPluginPreferences().setDefault(PREF_USE_NEW_PARSER, true); - } - - - /** - * TODO: Add all options here - * Returns a table of all known configurable options with their default values. - * These options allow to configure the behaviour of the underlying components. - * The client may safely use the result as a template that they can modify and - * then pass to <code>setOptions</code>. - * - * Helper constants have been defined on CCorePlugin for each of the option ID and - * their possible constant values. - * - * Note: more options might be added in further releases. - * <pre> - * RECOGNIZED OPTIONS: - * TRANSLATION / Define the Automatic Task Tags - * When the tag list is not empty, translation will issue a task marker whenever it encounters - * one of the corresponding tags inside any comment in C/C++ source code. - * Generated task messages will include the tag, and range until the next line separator or comment ending. - * Note that tasks messages are trimmed. If a tag is starting with a letter or digit, then it cannot be leaded by - * another letter or digit to be recognized ("fooToDo" will not be recognized as a task for tag "ToDo", but "foo#ToDo" - * will be detected for either tag "ToDo" or "#ToDo"). Respectively, a tag ending with a letter or digit cannot be followed - * by a letter or digit to be recognized ("ToDofoo" will not be recognized as a task for tag "ToDo", but "ToDo:foo" will - * be detected either for tag "ToDo" or "ToDo:"). - * - option id: "org.eclipse.cdt.core.translation.taskTags" - * - possible values: { "<tag>[,<tag>]*" } where <tag> is a String without any wild-card or leading/trailing spaces - * - default: "" - * - * TRANSLATION / Define the Automatic Task Priorities - * In parallel with the Automatic Task Tags, this list defines the priorities (high, normal or low) - * of the task markers issued by the translation. - * If the default is specified, the priority of each task marker is "NORMAL". - * - option id: "org.eclipse.cdt.core.transltaion.taskPriorities" - * - possible values: { "<priority>[,<priority>]*" } where <priority> is one of "HIGH", "NORMAL" or "LOW" - * - default: "" - * - * CORE / Specify Default Source Encoding Format - * Get the encoding format for translated sources. This setting is read-only, it is equivalent - * to 'ResourcesPlugin.getEncoding()'. - * - option id: "org.eclipse.cdt.core.encoding" - * - possible values: { any of the supported encoding names}. - * - default: <platform default> - * </pre> - * - * @return a mutable map containing the default settings of all known options - * (key type: <code>String</code>; value type: <code>String</code>) - * @see #setOptions - */ - - public static HashMap getDefaultOptions() - { - HashMap defaultOptions = new HashMap(10); - - // see #initializeDefaultPluginPreferences() for changing default settings - Preferences preferences = getDefault().getPluginPreferences(); - HashSet optionNames = CModelManager.OptionNames; - - // get preferences set to their default - String[] defaultPropertyNames = preferences.defaultPropertyNames(); - for (int i = 0; i < defaultPropertyNames.length; i++){ - String propertyName = defaultPropertyNames[i]; - if (optionNames.contains(propertyName)) { - defaultOptions.put(propertyName, preferences.getDefaultString(propertyName)); - } - } - // get preferences not set to their default - String[] propertyNames = preferences.propertyNames(); - for (int i = 0; i < propertyNames.length; i++){ - String propertyName = propertyNames[i]; - if (optionNames.contains(propertyName)) { - defaultOptions.put(propertyName, preferences.getDefaultString(propertyName)); - } - } - // get encoding through resource plugin - defaultOptions.put(CORE_ENCODING, ResourcesPlugin.getEncoding()); - - return defaultOptions; - } - - - /** - * Initializes the default preferences settings for this plug-in. - * TODO: Add all options here - */ - protected void initializeDefaultPluginPreferences() - { - Preferences preferences = getPluginPreferences(); - HashSet optionNames = CModelManager.OptionNames; - - // Compiler settings - preferences.setDefault(TRANSLATION_TASK_TAGS, DEFAULT_TASK_TAG); - optionNames.add(TRANSLATION_TASK_TAGS); - - preferences.setDefault(TRANSLATION_TASK_PRIORITIES, DEFAULT_TASK_PRIORITY); - optionNames.add(TRANSLATION_TASK_PRIORITIES); - } - - /** - * Helper method for returning one option value only. Equivalent to <code>(String)CCorePlugin.getOptions().get(optionName)</code> - * Note that it may answer <code>null</code> if this option does not exist. - * <p> - * For a complete description of the configurable options, see <code>getDefaultOptions</code>. - * </p> - * - * @param optionName the name of an option - * @return the String value of a given option - * @see CCorePlugin#getDefaultOptions - */ - public static String getOption(String optionName) { - - if (CORE_ENCODING.equals(optionName)){ - return ResourcesPlugin.getEncoding(); - } - if (CModelManager.OptionNames.contains(optionName)){ - Preferences preferences = getDefault().getPluginPreferences(); - return preferences.getString(optionName).trim(); - } - return null; - } - - /** - * Returns the table of the current options. Initially, all options have their default values, - * and this method returns a table that includes all known options. - * <p> - * For a complete description of the configurable options, see <code>getDefaultOptions</code>. - * </p> - * - * @return table of current settings of all options - * (key type: <code>String</code>; value type: <code>String</code>) - * @see CCorePlugin#getDefaultOptions - */ - public static HashMap getOptions() { - - HashMap options = new HashMap(10); - - // see #initializeDefaultPluginPreferences() for changing default settings - Plugin plugin = getDefault(); - if (plugin != null) { - Preferences preferences = plugin.getPluginPreferences(); - HashSet optionNames = CModelManager.OptionNames; - - // get preferences set to their default - String[] defaultPropertyNames = preferences.defaultPropertyNames(); - for (int i = 0; i < defaultPropertyNames.length; i++){ - String propertyName = defaultPropertyNames[i]; - if (optionNames.contains(propertyName)){ - options.put(propertyName, preferences.getDefaultString(propertyName)); - } - } - // get preferences not set to their default - String[] propertyNames = preferences.propertyNames(); - for (int i = 0; i < propertyNames.length; i++){ - String propertyName = propertyNames[i]; - if (optionNames.contains(propertyName)){ - options.put(propertyName, preferences.getString(propertyName).trim()); - } - } - // get encoding through resource plugin - options.put(CORE_ENCODING, ResourcesPlugin.getEncoding()); - } - return options; - } - - /** - * Sets the current table of options. All and only the options explicitly included in the given table - * are remembered; all previous option settings are forgotten, including ones not explicitly - * mentioned. - * <p> - * For a complete description of the configurable options, see <code>getDefaultOptions</code>. - * </p> - * - * @param newOptions the new options (key type: <code>String</code>; value type: <code>String</code>), - * or <code>null</code> to reset all options to their default values - * @see CCorePlugin#getDefaultOptions - */ - public static void setOptions(HashMap newOptions) { - - // see #initializeDefaultPluginPreferences() for changing default settings - Preferences preferences = getDefault().getPluginPreferences(); - - if (newOptions == null){ - newOptions = getDefaultOptions(); - } - Iterator keys = newOptions.keySet().iterator(); - while (keys.hasNext()){ - String key = (String)keys.next(); - if (!CModelManager.OptionNames.contains(key)) continue; // unrecognized option - if (key.equals(CORE_ENCODING)) continue; // skipped, contributed by resource prefs - String value = (String)newOptions.get(key); - preferences.setValue(key, value); - } - - // persist options - getDefault().savePluginPreferences(); - } - - - public IConsole getConsole(String id) { - try { - IExtensionPoint extension = getDescriptor().getExtensionPoint("CBuildConsole"); - if (extension != null) { - IExtension[] extensions = extension.getExtensions(); - for (int i = 0; i < extensions.length; i++) { - IConfigurationElement[] configElements = extensions[i].getConfigurationElements(); - for (int j = 0; j < configElements.length; j++) { - String builderID = configElements[j].getAttribute("builderID"); - if ((id == null && builderID == null) || (id != null && builderID.equals(id))) { - return (IConsole) configElements[j].createExecutableExtension("class"); - } - } - } - } - } catch (CoreException e) { - } - return new IConsole() { - public void clear() { - } - public void start(IProject project) { - } - public ConsoleOutputStream getOutputStream() { - return new ConsoleOutputStream(); - } - }; - } - - public IConsole getConsole() throws CoreException { - return getConsole(null); - } - - public IBinaryParser getBinaryParser(IProject project) throws CoreException { - IBinaryParser parser = null; - if (project != null) { - try { - ICDescriptor cdesc = (ICDescriptor) getCProjectDescription(project); - ICExtensionReference[] cextensions = cdesc.get(BINARY_PARSER_UNIQ_ID); - if (cextensions.length > 0) - parser = (IBinaryParser) cextensions[0].createExtension(); - } catch (CoreException e) { - } - } - if (parser == null) { - parser = getDefaultBinaryParser(); - } - return parser; - } - - public IBinaryParser getDefaultBinaryParser() throws CoreException { - IBinaryParser parser = null; - String id = getPluginPreferences().getDefaultString(PREF_BINARY_PARSER); - if (id == null || id.length() == 0) { - id = DEFAULT_BINARY_PARSER_UNIQ_ID; - } - IExtensionPoint extensionPoint = getDescriptor().getExtensionPoint(BINARY_PARSER_SIMPLE_ID); - IExtension extension = extensionPoint.getExtension(id); - if (extension != null) { - IConfigurationElement element[] = extension.getConfigurationElements(); - for (int i = 0; i < element.length; i++) { - if (element[i].getName().equalsIgnoreCase("cextension")) { - parser = (IBinaryParser) element[i].createExecutableExtension("run"); - break; - } - } - } else { - IStatus s = new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, "No Binary Format", null); - throw new CoreException(s); - } - return parser; - } - - public CoreModel getCoreModel() { - return fCoreModel; - } - - public IndexModel getIndexModel() { - return fIndexModel; - } - - public ICDescriptor getCProjectDescription(IProject project) throws CoreException { - return fDescriptorManager.getDescriptor(project); - } - - public void mapCProjectOwner(IProject project, String id, boolean override) throws CoreException { - if (!override) { - fDescriptorManager.configure(project, id); - } else { - fDescriptorManager.convert(project, id); - } - } - - /** - * Creates a C project resource given the project handle and description. - * - * @param description the project description to create a project resource for - * @param projectHandle the project handle to create a project resource for - * @param monitor the progress monitor to show visual progress with - * @param projectID required for mapping the project to an owner - * - * @exception CoreException if the operation fails - * @exception OperationCanceledException if the operation is canceled - */ - public IProject createCProject( - IProjectDescription description, - IProject projectHandle, - IProgressMonitor monitor, - String projectID) - throws CoreException, OperationCanceledException { - try { - if (monitor == null) { - monitor = new NullProgressMonitor(); - } - monitor.beginTask("Creating C Project", 3); //$NON-NLS-1$ - if (!projectHandle.exists()) { - projectHandle.create(description, monitor); - } - - if (monitor.isCanceled()) { - throw new OperationCanceledException(); - } - - // Open first. - projectHandle.open(monitor); - - // Add C Nature ... does not add duplicates - mapCProjectOwner(projectHandle, projectID, false); - CProjectNature.addCNature(projectHandle, new SubProgressMonitor(monitor, 1)); - } finally { - //monitor.done(); - } - return projectHandle; - } - - /** - * Method convertProjectFromCtoCC converts - * a C Project to a C++ Project - * The newProject MUST, not be null, already have a C Nature - * && must NOT already have a C++ Nature - * - * @param projectHandle - * @param monitor - * @throws CoreException - */ - - public void convertProjectFromCtoCC(IProject projectHandle, IProgressMonitor monitor) throws CoreException { - if ((projectHandle != null) - && projectHandle.hasNature(CCProjectNature.C_NATURE_ID) - && !projectHandle.hasNature(CCProjectNature.CC_NATURE_ID)) { - // Add C++ Nature ... does not add duplicates - CCProjectNature.addCCNature(projectHandle, monitor); - } - } - - /** - * Method addDefaultCBuilder adds the default C make builder - * @param projectHandle - * @param monitor - * @exception CoreException - */ - public void addDefaultCBuilder(IProject projectHandle, IProgressMonitor monitor) throws CoreException { - // Set the Default C Builder. - CProjectNature.addCBuildSpec(projectHandle, monitor); - } - - /** - * Method to convert a project to a C nature - * & default make builder (Will always add a default builder) - * All checks should have been done externally - * (as in the Conversion Wizards). - * This method blindly does the conversion. - * - * @param project - * @param String targetNature - * @param monitor - * @param projectID - * @exception CoreException - */ - - public void convertProjectToC(IProject projectHandle, IProgressMonitor monitor, String projectID) throws CoreException { - this.convertProjectToC(projectHandle, monitor, projectID, true); - - } - /** - * Method to convert a project to a C nature - * & default make builder (if indicated) - * All checks should have been done externally - * (as in the Conversion Wizards). - * This method blindly does the conversion. - * - * @param project - * @param String targetNature - * @param monitor - * @param projectID - * @param addMakeBuilder - * @exception CoreException - */ - - public void convertProjectToC(IProject projectHandle, IProgressMonitor monitor, String projectID, boolean addMakeBuilder) - throws CoreException { - if ((projectHandle == null) || (monitor == null) || (projectID == null)) { - return; - } - IWorkspace workspace = ResourcesPlugin.getWorkspace(); - IProjectDescription description = workspace.newProjectDescription(projectHandle.getName()); - description.setLocation(projectHandle.getFullPath()); - createCProject(description, projectHandle, monitor, projectID); - if (addMakeBuilder) { - addDefaultCBuilder(projectHandle, monitor); - } - } - /** - * Method to convert a project to a C++ nature - * & default make builder(if indicated), if it does not have one already - * - * @param project - * @param String targetNature - * @param monitor - * @param projectID - * @param addMakeBuilder - * @exception CoreException - */ - - public void convertProjectToCC(IProject projectHandle, IProgressMonitor monitor, String projectID, boolean addMakeBuilder) - throws CoreException { - if ((projectHandle == null) || (monitor == null) || (projectID == null)) { - return; - } - createCProject(projectHandle.getDescription(), projectHandle, monitor, projectID); - // now add C++ nature - convertProjectFromCtoCC(projectHandle, monitor); - if (addMakeBuilder) { - addDefaultCBuilder(projectHandle, monitor); - } - } - /** - * Method to convert a project to a C++ nature - * & default make builder, - * Note: Always adds the default Make builder - * - * @param project - * @param String targetNature - * @param monitor - * @param projectID - * @exception CoreException - */ - - public void convertProjectToCC(IProject projectHandle, IProgressMonitor monitor, String projectID) throws CoreException { - this.convertProjectToCC(projectHandle, monitor, projectID, true); - } - - // Extract the builder from the .cdtproject. - // public ICBuilder[] getBuilders(IProject project) throws CoreException { - // ICExtension extensions[] = fDescriptorManager.createExtensions(BUILDER_MODEL_ID, project); - // ICBuilder builders[] = new ICBuilder[extensions.length]; - // System.arraycopy(extensions, 0, builders, 0, extensions.length); - // return builders; - // } - - public IProcessList getProcessList() { - IExtensionPoint extension = getDescriptor().getExtensionPoint("ProcessList"); - if (extension != null) { - IExtension[] extensions = extension.getExtensions(); - IConfigurationElement[] configElements = extensions[0].getConfigurationElements(); - if (configElements.length != 0) { - try { - return (IProcessList) configElements[0].createExecutableExtension("class"); - } catch (CoreException e) { - } - } - } - return null; - } - - - public IScannerInfoProvider getScannerInfoProvider(IProject project) { - IScannerInfoProvider provider = null; - if (project != null) { - try { - ICDescriptor desc = (ICDescriptor) getCProjectDescription(project); - ICExtensionReference[] extensions = desc.get(BUILD_SCANNER_INFO_UNIQ_ID); - if (extensions.length > 0) - provider = (IScannerInfoProvider) extensions[0].createExtension(); - } catch (CoreException e) { - } - } - return provider; - } - - // Preference to turn on/off the new parser - public void setUseNewParser(boolean useNewParser) { - getPluginPreferences().setValue(PREF_USE_NEW_PARSER, useNewParser); - savePluginPreferences(); - } - - public boolean useNewParser() { - return getPluginPreferences().getBoolean(PREF_USE_NEW_PARSER); - } - - /** - * @param path - * @return - */ - public static ICPathEntry newProjectEntry(IPath path) { - return new CPathEntry(ICPathEntry.CDT_PROJECT, path, CPathEntry.NO_EXCLUSION_PATTERNS, null, null, null); - } - - /** - * @param path - * @param sourceAttachmentPath - * @param sourceAttachmentRootPath - * @return - */ - public static ICPathEntry newLibraryEntry(IPath path, IPath sourceAttachmentPath, IPath sourceAttachmentRootPath, IPath sourceAttachmentRootPrefixMapping) { - return new CPathEntry( - ICPathEntry.CDT_LIBRARY, - path, - CPathEntry.NO_EXCLUSION_PATTERNS, - sourceAttachmentPath, - sourceAttachmentRootPath, - sourceAttachmentRootPrefixMapping); - } - - /** - * @param path - * @param exclusionPatterns - * @param outputLocation - * @return - */ - public static ICPathEntry newSourceEntry(IPath path, IPath[] exclusionPatterns) { - return new CPathEntry(ICPathEntry.CDT_SOURCE, path, exclusionPatterns, null, null, null); - } - - /** - * @param path - * @param sourceAttachmentPath - * @param sourceAttachmentRootPath - * @return - */ - public static ICPathEntry newVariableEntry(IPath path, IPath sourceAttachmentPath, IPath sourceAttachmentRootPath) { - return new CPathEntry(ICPathEntry.CDT_VARIABLE, path, null, sourceAttachmentPath, sourceAttachmentRootPath, null); - } - - /** - * @param path - * @param exclusionPatterns - * @return - */ - public static ICPathEntry newIncludeEntry(IPath path, IPath[] exclusionPatterns) { - return new CPathEntry(ICPathEntry.CDT_INCLUDE, path, exclusionPatterns, null, null, null); - } - - private static final String MODEL = CCorePlugin.PLUGIN_ID + "/debug/model" ; //$NON-NLS-1$ - private static final String INDEXER = CCorePlugin.PLUGIN_ID + "/debug/indexer"; - private static final String INDEX_MANAGER = CCorePlugin.PLUGIN_ID + "/debug/indexmanager"; - private static final String SEARCH = CCorePlugin.PLUGIN_ID + "/debug/search" ; //$NON-NLS-1$ - private static final String MATCH_LOCATOR = CCorePlugin.PLUGIN_ID + "/debug/matchlocator" ; //$NON-NLS-1$ - private static final String PARSER = CCorePlugin.PLUGIN_ID + "/debug/parser" ; //$NON-NLS-1$ - private static final String DEPENDENCY = CCorePlugin.PLUGIN_ID + "/debug/dependency" ; //$NON-NLS-1$ - /** - * Configure the plugin with respect to option settings defined in ".options" file - */ - public void configurePluginDebugOptions(){ - if(CCorePlugin.getDefault().isDebugging()){ - String option = Platform.getDebugOption(PARSER); - if(option != null) Util.VERBOSE_PARSER = option.equalsIgnoreCase("true") ; //$NON-NLS-1$ - - option = Platform.getDebugOption(MODEL); - if(option != null) Util.VERBOSE_MODEL = option.equalsIgnoreCase("true") ; //$NON-NLS-1$ - - option = Platform.getDebugOption(DEPENDENCY); - if(option != null) DependencyManager.VERBOSE = option.equalsIgnoreCase("true") ; //$NON-NLS-1$ - - option = Platform.getDebugOption(INDEX_MANAGER); - if(option != null) IndexManager.VERBOSE = option.equalsIgnoreCase("true") ; //$NON-NLS-1$ - - option = Platform.getDebugOption(INDEXER); - if(option != null) SourceIndexer.VERBOSE = option.equalsIgnoreCase("true") ; //$NON-NLS-1$ - - option = Platform.getDebugOption(SEARCH); - if(option != null) SearchEngine.VERBOSE = option.equalsIgnoreCase("true") ; //$NON-NLS-1$ - - option = Platform.getDebugOption(MATCH_LOCATOR); - if(option != null) MatchLocator.VERBOSE = option.equalsIgnoreCase("true") ; //$NON-NLS-1$ - - } - } -}
\ No newline at end of file diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CProjectNature.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CProjectNature.java deleted file mode 100644 index b969b4346ec..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CProjectNature.java +++ /dev/null @@ -1,306 +0,0 @@ -package org.eclipse.cdt.core; - -/* - * (c) Copyright IBM Corp. 2000, 2001. - * All Rights Reserved. - */ - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -import org.eclipse.cdt.core.build.standard.StandardBuildManager; -import org.eclipse.cdt.core.resources.IStandardBuildInfo; -import org.eclipse.core.resources.ICommand; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IProjectDescription; -import org.eclipse.core.resources.IProjectNature; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IPluginDescriptor; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.Path; -import org.eclipse.core.runtime.Plugin; - - - -public class CProjectNature implements IProjectNature { - - public static final String BUILDER_NAME= "cbuilder"; - public static final String BUILDER_ID= CCorePlugin.PLUGIN_ID + "." + BUILDER_NAME; - public static final String C_NATURE_ID= CCorePlugin.PLUGIN_ID + ".cnature"; - - private IProject fProject; - private IStandardBuildInfo fBuildInfo; - - public CProjectNature() { - } - - public CProjectNature(IProject project) { - setProject(project); - } - - public static void addCNature(IProject project, IProgressMonitor mon) throws CoreException { - addNature(project, C_NATURE_ID, mon); - } - - public static void removeCNature(IProject project, IProgressMonitor mon) throws CoreException { - removeNature(project, C_NATURE_ID, mon); - } - - /** - * Utility method for adding a nature to a project. - * - * @param proj the project to add the nature - * @param natureId the id of the nature to assign to the project - * @param monitor a progress monitor to indicate the duration of the operation, or - * <code>null</code> if progress reporting is not required. - * - */ - public static void addNature(IProject project, String natureId, IProgressMonitor monitor) throws CoreException { - IProjectDescription description = project.getDescription(); - String[] prevNatures= description.getNatureIds(); - for (int i= 0; i < prevNatures.length; i++) { - if (natureId.equals(prevNatures[i])) - return; - } - String[] newNatures= new String[prevNatures.length + 1]; - System.arraycopy(prevNatures, 0, newNatures, 0, prevNatures.length); - newNatures[prevNatures.length]= natureId; - description.setNatureIds(newNatures); - project.setDescription(description, monitor); - } - - /** - * Utility method for removing a project nature from a project. - * - * @param proj the project to remove the nature from - * @param natureId the nature id to remove - * @param monitor a progress monitor to indicate the duration of the operation, or - * <code>null</code> if progress reporting is not required. - */ - public static void removeNature(IProject project, String natureId, IProgressMonitor monitor) throws CoreException { - IProjectDescription description = project.getDescription(); - String[] prevNatures= description.getNatureIds(); - List newNatures = new ArrayList(Arrays.asList(prevNatures)); - newNatures.remove(natureId); - description.setNatureIds((String[])newNatures.toArray(new String[newNatures.size()])); - project.setDescription(description, monitor); - } - - /** - * Sets the path of the build command executable. - */ - public void setBuildCommand(IPath locationPath, IProgressMonitor monitor) throws CoreException { - String newLocation= locationPath.toString(); - String oldLocation= fBuildInfo.getBuildLocation(); - if (!newLocation.equals(oldLocation)) { - fBuildInfo.setBuildLocation(newLocation); - } - } - - /** - * Gets the path of the build command executable. - */ - public IPath getBuildCommand() throws CoreException { - String buildLocation= fBuildInfo.getBuildLocation(); - return new Path(buildLocation); - } - - /** - * Sets the arguments for the full build. - */ - public void setFullBuildArguments(String arguments, IProgressMonitor monitor) throws CoreException { - String oldArguments= fBuildInfo.getFullBuildArguments(); - if (!arguments.equals(oldArguments)) { - fBuildInfo.setFullBuildArguments(arguments); - } - } - - /** - * Gets the arguments for the full build - */ - public String getFullBuildArguments() throws CoreException { - String buildArguments= fBuildInfo.getFullBuildArguments(); - if (buildArguments == null) { - buildArguments= ""; - } - return buildArguments; - } - - /** - * Sets the arguments for the incremental build. - */ - public void setIncrBuildArguments(String arguments, IProgressMonitor monitor) throws CoreException { - String oldArguments= fBuildInfo.getIncrementalBuildArguments(); - if (!arguments.equals(oldArguments)) { - fBuildInfo.setIncrementalBuildArguments(arguments); - } - } - - /** - * Gets the arguments for the incremental build - */ - public String getIncrBuildArguments() throws CoreException { - String buildArguments= fBuildInfo.getIncrementalBuildArguments(); - if (buildArguments == null) { - buildArguments= ""; - } - return buildArguments; - } - - /** - * Sets Stop on Error - */ - public void setStopOnError(boolean on) throws CoreException { - boolean oldArgument= fBuildInfo.isStopOnError(); - if (on != oldArgument) { - fBuildInfo.setStopOnError(on); - } - } - - public void setBuildCommandOverride(boolean on) throws CoreException { - boolean oldArgument= fBuildInfo.isDefaultBuildCmd(); - if (on != oldArgument) { - fBuildInfo.setUseDefaultBuildCmd(on); - } - } - - /** - * Gets Stop on Error - */ - public boolean isStopOnError() throws CoreException { - return fBuildInfo.isStopOnError(); - } - - public boolean isDefaultBuildCmd() throws CoreException { - return fBuildInfo.isDefaultBuildCmd(); - } - - public static boolean hasCBuildSpec(IProject project) { - boolean found= false; - try { - IProjectDescription description = project.getDescription(); - ICommand[] commands= description.getBuildSpec(); - for (int i= 0; i < commands.length; ++i) { - if (commands[i].getBuilderName().equals(BUILDER_ID)) { - found= true; - break; - } - } - } catch (CoreException e) { - } - return found; - } - - public void addCBuildSpec(IProgressMonitor mon) throws CoreException { - addToBuildSpec(getBuilderID(), mon); - } - - public static void addCBuildSpec(IProject project, IProgressMonitor mon) throws CoreException { - addToBuildSpec(project, getBuilderID(), mon); - } - - public void addToBuildSpec(String builderID, IProgressMonitor mon) throws CoreException { - addToBuildSpec(getProject(), builderID, mon); - } - - /** - * Adds a builder to the build spec for the given project. - */ - public static void addToBuildSpec(IProject project, String builderID, IProgressMonitor mon) throws CoreException { - IProjectDescription description= project.getDescription(); - ICommand[] commands= description.getBuildSpec(); - boolean found= false; - for (int i= 0; i < commands.length; ++i) { - if (commands[i].getBuilderName().equals(builderID)) { - found= true; - break; - } - } - if (!found) { - ICommand command= description.newCommand(); - command.setBuilderName(builderID); - ICommand[] newCommands= new ICommand[commands.length + 1]; - // Add it before other builders. See 1FWJK7I: ITPJCORE:WIN2000 - System.arraycopy(commands, 0, newCommands, 1, commands.length); - newCommands[0]= command; - description.setBuildSpec(newCommands); - project.setDescription(description, mon); - } - } - - public void removeCBuildSpec(IProgressMonitor mon) throws CoreException { - removeFromBuildSpec(getBuilderID(), mon); - } - - /** - * Removes the given builder from the build spec for the given project. - */ - public void removeFromBuildSpec(String builderID, IProgressMonitor mon) throws CoreException { - IProjectDescription description= getProject().getDescription(); - ICommand[] commands= description.getBuildSpec(); - for (int i= 0; i < commands.length; ++i) { - if (commands[i].getBuilderName().equals(builderID)) { - ICommand[] newCommands= new ICommand[commands.length - 1]; - System.arraycopy(commands, 0, newCommands, 0, i); - System.arraycopy(commands, i + 1, newCommands, i, commands.length - i - 1); - description.setBuildSpec(newCommands); - break; - } - } - getProject().setDescription(description, mon); - } - - /** - * Get the correct builderID - */ - public static String getBuilderID() { - Plugin plugin = (Plugin)CCorePlugin.getDefault(); - IPluginDescriptor descriptor = plugin.getDescriptor(); - if (descriptor.getExtension(BUILDER_NAME) != null) { - return descriptor.getUniqueIdentifier() + "." + BUILDER_NAME; - } - return BUILDER_ID; - } - - /** - * @see IProjectNature#configure - */ - public void configure() throws CoreException { - addToBuildSpec(getBuilderID(), null); - IStandardBuildInfo info = BuildInfoFactory.create(); - fBuildInfo.setBuildLocation(info.getBuildLocation()); - fBuildInfo.setFullBuildArguments(""); - fBuildInfo.setIncrementalBuildArguments(""); - } - - /** - * @see IProjectNature#deconfigure - */ - public void deconfigure() throws CoreException { - removeFromBuildSpec(getBuilderID(), null); - fBuildInfo.setBuildLocation(null); - fBuildInfo.setFullBuildArguments(null); - fBuildInfo.setIncrementalBuildArguments(null); - } - - /** - * @see IProjectNature#getProject - */ - public IProject getProject() { - return fProject; - } - - /** - * @see IProjectNature#setProject - */ - public void setProject(IProject project) { - try { - fProject= project; - fBuildInfo = StandardBuildManager.getBuildInfo(fProject, true); - } catch (CoreException e) { - } - } - -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CTaskTagsReconciler.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CTaskTagsReconciler.java deleted file mode 100644 index 9b10c61a52c..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CTaskTagsReconciler.java +++ /dev/null @@ -1,132 +0,0 @@ -package org.eclipse.cdt.core; - -/********************************************************************** - * Copyright (c) 2002,2003 Rational Software Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v0.5 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v05.html - * - * Contributors: - * IBM Rational Software - Initial API and implementation -***********************************************************************/ - -import java.util.HashSet; -import java.util.Iterator; - -import org.eclipse.cdt.core.CCorePlugin; -import org.eclipse.cdt.core.model.ICModelMarker; -import org.eclipse.cdt.core.model.ITranslationUnit; -import org.eclipse.cdt.core.parser.ITranslationResult; -import org.eclipse.cdt.core.parser.IProblem; - -import org.eclipse.core.resources.IMarker; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.runtime.CoreException; - - -public class CTaskTagsReconciler { - - private static CTaskTagsReconciler instance = null; - - private CTaskTagsReconciler() { - } - - public static CTaskTagsReconciler getInstance() { - if (instance == null) { - instance = new CTaskTagsReconciler(); - } - return instance; - } - - - public void acceptResult(ITranslationUnit translationUnit, ITranslationResult result) { - try { - updateTasksFor(translationUnit, result); // record tasks - } catch (CoreException e) { - System.out.println("Exception while accepting parse results"); - e.printStackTrace(); - } - } - - protected void updateTasksFor(ITranslationUnit sourceFile, ITranslationResult result) throws CoreException { - IProblem[] tasks = result.getTasks(); - - storeTasksFor(sourceFile, tasks); - } - - protected void storeTasksFor(ITranslationUnit sourceFile, IProblem[] tasks) throws CoreException { - if (sourceFile == null) return; - - if (tasks == null) tasks = new IProblem[0]; - - IResource resource = sourceFile.getResource(); - IMarker[] existingTaskMarkers = resource.findMarkers(ICModelMarker.TASK_MARKER, false, IResource.DEPTH_ONE); - HashSet taskSet = new HashSet(); - - if (existingTaskMarkers != null) - for (int i=0; i<existingTaskMarkers.length; i++) - taskSet.add(existingTaskMarkers[i]); - - taskLoop: - for (int i = 0, l = tasks.length; i < l; i++) { - IProblem task = tasks[i]; - if (task.getID() == IProblem.Task) { - - int priority = IMarker.PRIORITY_NORMAL; - String compilerPriority = task.getArguments()[2]; - if (CCorePlugin.TRANSLATION_TASK_PRIORITY_HIGH.equals(compilerPriority)) - priority = IMarker.PRIORITY_HIGH; - else if (CCorePlugin.TRANSLATION_TASK_PRIORITY_LOW.equals(compilerPriority)) - priority = IMarker.PRIORITY_LOW; - - /* - * Try to find matching markers and don't put in duplicates - */ - if ((existingTaskMarkers != null) && (existingTaskMarkers.length > 0)) { - for (int j = 0; j < existingTaskMarkers.length; j++) { - if ( - (((Integer) existingTaskMarkers[j].getAttribute(IMarker.LINE_NUMBER)).intValue() == task.getSourceLineNumber()) - && (((Integer) existingTaskMarkers[j].getAttribute(IMarker.PRIORITY)).intValue() == priority) - && (((Integer) existingTaskMarkers[j].getAttribute(IMarker.CHAR_START)).intValue() == task.getSourceStart()) - && (((Integer) existingTaskMarkers[j].getAttribute(IMarker.CHAR_END)).intValue() == task.getSourceEnd()+1) - && (((String) existingTaskMarkers[j].getAttribute(IMarker.MESSAGE)).equals(task.getMessage())) - ) { - taskSet.remove(existingTaskMarkers[j]); - continue taskLoop; - } - } - } - - IMarker marker = resource.createMarker(ICModelMarker.TASK_MARKER); - - marker.setAttributes( - new String[] { - IMarker.MESSAGE, - IMarker.PRIORITY, - IMarker.DONE, - IMarker.CHAR_START, - IMarker.CHAR_END, - IMarker.LINE_NUMBER, - IMarker.USER_EDITABLE, - }, - new Object[] { - task.getMessage(), - new Integer(priority), - new Boolean(false), - new Integer(task.getSourceStart()), - new Integer(task.getSourceEnd() + 1), - new Integer(task.getSourceLineNumber()), - new Boolean(false), - }); - } - } - - // Remove all obsolete markers - Iterator setI = taskSet.iterator(); - while (setI.hasNext()) { - IMarker marker = (IMarker)setI.next(); - marker.delete(); - } - } -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CommandLauncher.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CommandLauncher.java deleted file mode 100644 index 7971cc39329..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CommandLauncher.java +++ /dev/null @@ -1,226 +0,0 @@ -package org.eclipse.cdt.core; - -/* - * (c) Copyright IBM Corp. 2000, 2001. - * All Rights Reserved. - */ - -import java.io.IOException; -import java.io.OutputStream; -import java.io.PipedInputStream; -import java.io.PipedOutputStream; -import java.util.Properties; - -import org.eclipse.cdt.internal.core.ProcessClosure; -import org.eclipse.cdt.utils.spawner.EnvironmentReader; -import org.eclipse.cdt.utils.spawner.ProcessFactory; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; - - -public class CommandLauncher { - - public final static int COMMAND_CANCELED= 1; - public final static int ILLEGAL_COMMAND= -1; - public final static int OK= 0; - - protected Process fProcess; - protected boolean fShowCommand; - protected String[] fCommandArgs; - - protected String fErrorMessage = ""; - - private String lineSeparator; - - /** - * The number of milliseconds to pause - * between polling. - */ - protected static final long DELAY = 50L; - - /** - * Creates a new launcher - * Fills in stderr and stdout output to the given streams. - * Streams can be set to <code>null</code>, if output not required - */ - public CommandLauncher() { - fProcess= null; - fShowCommand= false; - lineSeparator = System.getProperty("line.separator", "\n"); - } - - /** - * Sets if the command should be printed out first before executing - */ - public void showCommand(boolean show) { - fShowCommand= show; - } - - public String getErrorMessage() { - return fErrorMessage; - } - - public void setErrorMessage(String error) { - fErrorMessage = error; - } - - public String[] getCommandArgs() { - return fCommandArgs; - } - - public Properties getEnvironment() { - return EnvironmentReader.getEnvVars(); - } - - /** - * Constructs a command array that will be passed to the process - */ - protected String[] constructCommandArray(String command, String[] commandArgs) { - String[] args = new String[1 + commandArgs.length]; - args[0] = command; - System.arraycopy(commandArgs, 0, args, 1, commandArgs.length); - return args; - } - - /** - * Execute a command - */ - public Process execute(IPath commandPath, String[] args, String[] env, IPath changeToDirectory) { - try { - // add platform specific arguments (shell invocation) - fCommandArgs= constructCommandArray(commandPath.toOSString(), args); - fProcess= ProcessFactory.getFactory().exec(fCommandArgs, env, changeToDirectory.toFile()); - fErrorMessage= ""; - } catch (IOException e) { - setErrorMessage(e.getMessage()); - fProcess= null; - } - return fProcess; - } - - /** - * Reads output form the process to the streams. - */ - public int waitAndRead(OutputStream out, OutputStream err) { - if (fShowCommand) { - printCommandLine(fCommandArgs, out); - } - - if (fProcess == null) { - return ILLEGAL_COMMAND; - } - - ProcessClosure closure= new ProcessClosure(fProcess, out, err); - closure.runBlocking(); // a blocking call - return OK; - } - - /** - * Reads output form the process to the streams. A progress monitor is polled to - * test if the cancel button has been pressed. - * Destroys the process if the monitor becomes canceled - * override to implement a different way to read the process inputs - */ - public int waitAndRead(OutputStream output, OutputStream err, IProgressMonitor monitor) { - if (fShowCommand) { - printCommandLine(fCommandArgs, output); - } - - if (fProcess == null) { - return ILLEGAL_COMMAND; - } - - PipedOutputStream errOutPipe = new PipedOutputStream(); - PipedOutputStream outputPipe = new PipedOutputStream(); - PipedInputStream errInPipe, inputPipe; - try { - errInPipe = new PipedInputStream(errOutPipe); - inputPipe = new PipedInputStream(outputPipe); - } catch( IOException e ) { - setErrorMessage("Command canceled"); - return COMMAND_CANCELED; - } - - ProcessClosure closure= new ProcessClosure(fProcess, outputPipe, errOutPipe); - closure.runNonBlocking(); - byte buffer[] = new byte[1024]; - int nbytes; - while (!monitor.isCanceled() && closure.isAlive()) { - nbytes = 0; - try { - if ( errInPipe.available() > 0 ) { - nbytes = errInPipe.read(buffer); - err.write(buffer, 0, nbytes); - err.flush(); - } - if ( inputPipe.available() > 0 ) { - nbytes = inputPipe.read(buffer); - output.write(buffer, 0, nbytes); - output.flush(); - } - } catch( IOException e) { - } - monitor.worked(0); - if (nbytes == 0) { - try { - Thread.sleep(DELAY); - } catch (InterruptedException ie) { - } - } - } - - int state = OK; - - // Operation canceled by the user, terminate abnormally. - if (monitor.isCanceled()) { - closure.terminate(); - state = COMMAND_CANCELED; - setErrorMessage("Command canceled"); - } - - try { - fProcess.waitFor(); - } catch (InterruptedException e) { - //System.err.println("Closure exception " +e); - //e.printStackTrace(); - } - - // Drain the pipes. - try { - while (errInPipe.available() > 0 || inputPipe.available() > 0) { - if ( errInPipe.available() > 0 ) { - nbytes = errInPipe.read(buffer); - err.write(buffer, 0, nbytes); - err.flush(); - } - if ( inputPipe.available() > 0 ) { - nbytes = inputPipe.read(buffer); - output.write(buffer, 0, nbytes); - output.flush(); - } - } - errInPipe.close(); - inputPipe.close(); - } catch (IOException e) { - } - - return state; - } - - protected void printCommandLine(String[] commandArgs, OutputStream os) { - if (os != null) { - StringBuffer buf= new StringBuffer(); - for (int i= 0; i < commandArgs.length; i++) { - buf.append(commandArgs[i]); - buf.append(' '); - } - buf.append(lineSeparator); - try { - os.write(buf.toString().getBytes()); - os.flush(); - } catch (IOException e) { - // ignore; - } - } - } -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ConsoleOutputStream.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ConsoleOutputStream.java deleted file mode 100644 index 89521202ef0..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ConsoleOutputStream.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.eclipse.cdt.core; - -/* - * (c) Copyright IBM Corp. 2000, 2001. - * All Rights Reserved. - */ - -import java.io.IOException; -import java.io.OutputStream; - - -/** - * Output stream which storing the console output - */ -public class ConsoleOutputStream extends OutputStream { - - protected StringBuffer fBuffer; - - public ConsoleOutputStream() { - fBuffer= new StringBuffer(); - } - - - public synchronized String readBuffer() { - String buf = fBuffer.toString(); - fBuffer.setLength(0); - return buf; - } - - public void clear() { - fBuffer.setLength (0); - } - - /** - * Implements buffered output at the lowest level - * @see OutputStream#write - */ - public synchronized void write(int c) throws IOException { - fBuffer.append((char) c); - } -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ErrorParserManager.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ErrorParserManager.java deleted file mode 100644 index 388aa4d526c..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ErrorParserManager.java +++ /dev/null @@ -1,443 +0,0 @@ -package org.eclipse.cdt.core; - -/* - * (c) Copyright IBM Corp. 2000, 2001. - * All Rights Reserved. - */ - -import java.io.File; -import java.io.IOException; -import java.io.OutputStream; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.StringTokenizer; -import java.util.Vector; - -import org.eclipse.cdt.core.resources.ACBuilder; -import org.eclipse.cdt.internal.errorparsers.GASErrorParser; -import org.eclipse.cdt.internal.errorparsers.GCCErrorParser; -import org.eclipse.cdt.internal.errorparsers.GLDErrorParser; -import org.eclipse.cdt.internal.errorparsers.MakeErrorParser; -import org.eclipse.cdt.internal.errorparsers.VCErrorParser; -import org.eclipse.core.resources.IContainer; -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.Path; - -public class ErrorParserManager extends OutputStream { - private int nOpens; - - private static String PREF_ERROR_PARSER = "errorOutputParser"; - - private IProject fProject; - private IMarkerGenerator fMarkerGenerator; - private Map fFilesInProject; - private List fNameConflicts; - - private ArrayList fErrorParsers; - private ArrayList fErrors; - - private Vector fDirectoryStack; - private IPath fBaseDirectory; - - private String previousLine; - private OutputStream outputStream; - private StringBuffer currentLine = new StringBuffer(); - - private StringBuffer scratchBuffer = new StringBuffer(); - - public ErrorParserManager(ACBuilder builder) { - this(builder.getProject(), builder); - } - - public ErrorParserManager(IProject project, IMarkerGenerator markerGenerator) { - fProject = project; - fErrorParsers = new ArrayList(); - fMarkerGenerator = markerGenerator; - readPreferences(); - initParser(); - } - - private void initParser() { - fFilesInProject = new HashMap(); - fNameConflicts = new ArrayList(); - fDirectoryStack = new Vector(); - fErrors = new ArrayList(); - - // prepare file lists - fFilesInProject.clear(); - fNameConflicts.clear(); - - List collectedFiles = new ArrayList(); - fBaseDirectory = fProject.getLocation(); - collectFiles(fProject, collectedFiles); - - for (int i = 0; i < collectedFiles.size(); i++) { - IFile curr = (IFile) collectedFiles.get(i); - Object existing = fFilesInProject.put(curr.getName(), curr); - if (existing != null) { - fNameConflicts.add(curr.getName()); - } - } - } - - public IPath getWorkingDirectory() { - if (fDirectoryStack.size() != 0) { - return (IPath) fDirectoryStack.lastElement(); - } - // Fallback to the Project Location - // FIXME: if the build did not start in the Project ? - return fBaseDirectory; - } - - public void pushDirectory(IPath dir) { - if (dir != null) { - IPath pwd = null; - if (fBaseDirectory.isPrefixOf(dir)) { - int segments = fBaseDirectory.matchingFirstSegments(dir); - pwd = dir.removeFirstSegments(segments); - } else { - pwd = dir; - } - fDirectoryStack.addElement(pwd); - } - } - - public IPath popDirectory() { - int i = fDirectoryStack.size(); - if (i != 0) { - IPath dir = (IPath) fDirectoryStack.lastElement(); - fDirectoryStack.removeElementAt(i - 1); - return dir; - } - return new Path(""); - } - - public int getDirectoryLevel() { - return fDirectoryStack.size(); - } - - protected void addParser(IErrorParser parser) { - fErrorParsers.add(parser); - } - - private void readPreferences() { - fErrorParsers.clear(); - String parserNames = CCorePlugin.getDefault().getPluginPreferences().getString(PREF_ERROR_PARSER); - if (parserNames != null && parserNames.length() > 0) { - StringTokenizer tok = new StringTokenizer(parserNames, ";"); - while (tok.hasMoreElements()) { - String clName = tok.nextToken(); - try { - IErrorParser parser = (IErrorParser) Class.forName(clName).newInstance(); - fErrorParsers.add(parser); - } - catch (ClassNotFoundException e) { - // not found - CCorePlugin.log(e); - } - catch (InstantiationException e) { - CCorePlugin.log(e); - } - catch (IllegalAccessException e) { - CCorePlugin.log(e); - } - catch (ClassCastException e) { - CCorePlugin.log(e); - } - } - } - if (fErrorParsers.size() == 0) { - initErrorParsersArray(fErrorParsers); - } - savePreferences(); - } - - private void initErrorParsersArray(List errorParsers) { - errorParsers.add(new VCErrorParser()); - errorParsers.add(new GCCErrorParser()); - errorParsers.add(new GLDErrorParser()); - errorParsers.add(new GASErrorParser()); - errorParsers.add(new MakeErrorParser()); - } - - private void savePreferences() { - StringBuffer buf = new StringBuffer(); - for (int i = 0; i < fErrorParsers.size(); i++) { - buf.append(fErrorParsers.get(i).getClass().getName()); - buf.append(';'); - } - CCorePlugin.getDefault().getPluginPreferences().setValue(PREF_ERROR_PARSER, buf.toString()); - } - - protected void collectFiles(IContainer parent, List result) { - try { - IResource[] resources = parent.members(); - for (int i = 0; i < resources.length; i++) { - IResource resource = resources[i]; - if (resource instanceof IFile) { - result.add(resource); - } - else if (resource instanceof IContainer) { - collectFiles((IContainer) resource, result); - } - } - } - catch (CoreException e) { - CCorePlugin.log(e.getStatus()); - } - } - - /** - * Parses the input and try to generate error or warning markers - */ - private void processLine(String line) { - int top = fErrorParsers.size() - 1; - int i = top; - do { - IErrorParser curr = (IErrorParser) fErrorParsers.get(i); - if (curr.processLine(line, this)) { - if (i != top) { - // move to top - Object used = fErrorParsers.remove(i); - fErrorParsers.add(used); - savePreferences(); - } - return; - } - i--; - } - while (i >= 0); - } - - /** - * Called by the error parsers. - */ - public IFile findFileName(String fileName) { - IPath path = new Path(fileName); - return (IFile) fFilesInProject.get(path.lastSegment()); - } - - /** - * Called by the error parsers. - */ - public boolean isConflictingName(String fileName) { - IPath path = new Path(fileName); - return fNameConflicts.contains(path.lastSegment()); - } - - /** - * Called by the error parsers. - */ - public IFile findFilePath(String filePath) { - IPath path = null; - IPath fp = new Path(filePath); - if (fp.isAbsolute()) { - if (fBaseDirectory.isPrefixOf(fp)) { - int segments = fBaseDirectory.matchingFirstSegments(fp); - path = fp.removeFirstSegments(segments); - } - else { - path = fp; - } - } else { - path = (IPath) getWorkingDirectory().append(filePath); - } - - IFile file = null; - // The workspace may throw an IllegalArgumentException - // Catch it and the parser will fallback to scan the entire project. - try { - file = (path.isAbsolute()) ? fProject.getWorkspace().getRoot().getFileForLocation(path) : fProject.getFile(path); - } catch (Exception e) { - } - - // We have to do another try, on Windows for cases like "TEST.C" vs "test.c" - // We use the java.io.File canonical path. - if (file == null || !file.exists()) { - File f = path.toFile(); - try { - String canon = f.getCanonicalPath(); - path = new Path(canon); - file = (path.isAbsolute()) ? fProject.getWorkspace().getRoot().getFileForLocation(path) : fProject.getFile(path); - } catch (IOException e1) { - } - } else { - return file; - } - return (file != null && file.exists()) ? file : null; - } - - protected class Problem { - protected IResource file; - protected int lineNumber; - protected String description; - protected int severity; - protected String variableName; - - public Problem(IResource file, int lineNumber, String desciption, int severity, String variableName) { - this.file = file; - this.lineNumber = lineNumber; - this.description = desciption; - this.severity = severity; - this.variableName = variableName; - } - } - - /** - * Called by the error parsers. - */ - public void generateMarker(IResource file, int lineNumber, String desc, int severity, String varName) { - Problem problem = new Problem(file, lineNumber, desc, severity, varName); - fErrors.add(problem); - } - - /** - * Called by the error parsers. Return the previous line, save in the working buffer. - */ - public String getPreviousLine() { - return new String((previousLine) == null ? "" : previousLine); - } - - /** - * Method setOutputStream. - * @param cos - */ - public void setOutputStream(OutputStream os) { - outputStream = os; - } - - /** - * Method getOutputStream. It has a reference count - * the stream must be close the same number of time this method was call. - * @return OutputStream - */ - public OutputStream getOutputStream() { - nOpens++; - return this; - } - - /** - * @see java.io.OutputStream#close() - */ - public void close() throws IOException { - if (nOpens > 0 && --nOpens == 0) { - fDirectoryStack.removeAllElements(); - fBaseDirectory = null; - if (outputStream != null) - outputStream.close(); - checkLine(true); - } - } - - /** - * @see java.io.OutputStream#flush() - */ - public void flush() throws IOException { - if (outputStream != null) - outputStream.flush(); - } - - /** - * @see java.io.OutputStream#write(int) - */ - public synchronized void write(int b) throws IOException { - currentLine.append((char) b); - checkLine(false); - if (outputStream != null) - outputStream.write(b); - } - - public synchronized void write(byte[] b, int off, int len) throws IOException { - if (b == null) { - throw new NullPointerException(); - } - else if (off != 0 || (len < 0) || (len > b.length)) { - throw new IndexOutOfBoundsException(); - } - else if (len == 0) { - return; - } - currentLine.append(new String(b, 0, len)); - checkLine(false); - if (outputStream != null) - outputStream.write(b, off, len); - } - - private void checkLine(boolean flush) { - String buffer = currentLine.toString(); - int i = 0; - while ((i = buffer.indexOf('\n')) != -1) { - String line = buffer.substring(0, i).trim(); // get rid of any trailing \r - processLine(line); - previousLine = line; - buffer = buffer.substring(i + 1); // skip the \n and advance - } - currentLine.setLength(0); - if (flush) { - if (buffer.length() > 0) { - processLine(buffer); - previousLine = buffer; - } - } else { - currentLine.append(buffer); - } - } - - public boolean reportProblems() { - boolean reset = false; - if (nOpens == 0) { - Iterator iter = fErrors.iterator(); - while (iter.hasNext()) { - Problem problem = (Problem) iter.next(); - if (problem.severity == IMarkerGenerator.SEVERITY_ERROR_BUILD) { - reset = true; - } - if (problem.file == null) { - fMarkerGenerator.addMarker( - fProject, - problem.lineNumber, - problem.description, - problem.severity, - problem.variableName); - } else { - fMarkerGenerator.addMarker( - problem.file, - problem.lineNumber, - problem.description, - problem.severity, - problem.variableName); - } - } - fErrors.clear(); - } - return reset; - } - - /** - * - */ - public String getScratchBuffer() { - return scratchBuffer.toString(); - } - - /** - * @param line - */ - public void appendToScratchBuffer(String line) { - scratchBuffer.append(line); - } - - /** - * - */ - public void clearScratchBuffer() { - scratchBuffer.setLength(0); - } -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/IBinaryParser.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/IBinaryParser.java deleted file mode 100644 index 04abf78a16f..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/IBinaryParser.java +++ /dev/null @@ -1,92 +0,0 @@ -package org.eclipse.cdt.core; - -/* - * (c) Copyright IBM Corp. 2000, 2001. - * All Rights Reserved. - */ - -import java.io.IOException; -import java.io.InputStream; - -import org.eclipse.core.runtime.IAdaptable; -import org.eclipse.core.runtime.IPath; - -/** - */ -public interface IBinaryParser { - - /** - * Represents a binary file for example an ELF executable. - */ - interface IBinaryFile extends IAdaptable { - static final int OBJECT = 0x1; - static final int EXECUTABLE = 0x02; - static final int SHARED = 0x04; - static final int ARCHIVE = 0x08; - static final int CORE = 0x10; - - IPath getPath(); - int getType(); - InputStream getContents(); - } - - /** - * Represents an archive. - */ - interface IBinaryArchive extends IBinaryFile { - IBinaryObject[] getObjects(); - } - - /** - * Represents a binary, for example an ELF excutable. - */ - interface IBinaryObject extends IBinaryFile { - - boolean hasDebug(); - - String getCPU(); - - long getText(); - - long getData(); - - long getBSS(); - - boolean isLittleEndian(); - - ISymbol[] getSymbols(); - - String getName(); - - } - - /** - * An executable. - */ - interface IBinaryExecutable extends IBinaryObject { - String[] getNeededSharedLibs(); - } - - /** - * A DLL. - */ - interface IBinaryShared extends IBinaryExecutable { - String getSoName(); - } - - interface ISymbol { - static final int FUNCTION = 0x01; - static final int VARIABLE = 0x02; - - String getName(); - long getAddress(); - int getStartLine(); - int getEndLine(); - String getFilename(); - int getType(); - } - - IBinaryFile getBinary(IPath path) throws IOException; - - String getFormat(); -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICDescriptor.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICDescriptor.java deleted file mode 100644 index b1e0b21aea0..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICDescriptor.java +++ /dev/null @@ -1,34 +0,0 @@ -/********************************************************************** - * Copyright (c) 2002,2003 QNX Software Systems Ltd. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v0.5 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v05.html - * - * Contributors: - * QNX Software Systems - Initial API and implementation -***********************************************************************/ -package org.eclipse.cdt.core; - -import org.eclipse.core.resources.IProject; -import org.eclipse.core.runtime.CoreException; -import org.w3c.dom.Element; - -public interface ICDescriptor { - public ICOwnerInfo getProjectOwner(); - public String getPlatform(); - public IProject getProject(); - - public ICExtensionReference[] get(String extensionPoint); - public ICExtensionReference[] get(String extensionPoint, boolean update) throws CoreException; - public ICExtensionReference create(String extensionPoint, String id) throws CoreException; - - public void remove(ICExtensionReference extension) throws CoreException; - public void remove(String extensionPoint) throws CoreException; - - public void setPathEntries(ICPathEntry[] entries) throws CoreException; - public ICPathEntry[] getPathEntries(); - - public Element getProjectData(String id) throws CoreException; - public void saveProjectData() throws CoreException; -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICExtension.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICExtension.java deleted file mode 100644 index 26255b1f51d..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICExtension.java +++ /dev/null @@ -1,18 +0,0 @@ -/********************************************************************** - * Copyright (c) 2002,2003 QNX Software Systems Ltd. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v0.5 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v05.html - * - * Contributors: - * QNX Software Systems - Initial API and implementation -***********************************************************************/ -package org.eclipse.cdt.core; - -import org.eclipse.core.resources.IProject; - -public interface ICExtension { - public IProject getProject(); - public ICExtensionReference getExtensionReference(); -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICExtensionReference.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICExtensionReference.java deleted file mode 100644 index 57bf1ede8ab..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICExtensionReference.java +++ /dev/null @@ -1,43 +0,0 @@ -/********************************************************************** - * Copyright (c) 2002,2003 QNX Software Systems Ltd. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v0.5 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v05.html - * - * Contributors: - * QNX Software Systems - Initial API and implementation -***********************************************************************/ -package org.eclipse.cdt.core; - -import org.eclipse.core.runtime.CoreException; - -public interface ICExtensionReference { - - /** - * Return the extension point of this reference. - * @return String - */ - public String getExtension(); - - /** - * Return the extension ID of this reference. - * @return String - */ - public String getID(); - - /** - * Sets a name/value data pair on this reference in the .cdtproject file - */ - public void setExtensionData(String key, String value); - - /** - * Gets a value of the key from the .cdtproject file set by setExtensionData() - */ - public String getExtensionData(String key); - - /** - * Creates the executable extension for the reference. - */ - public ICExtension createExtension() throws CoreException; -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICOwner.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICOwner.java deleted file mode 100644 index 12a45d55026..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICOwner.java +++ /dev/null @@ -1,18 +0,0 @@ -/********************************************************************** -* Copyright (c) 2002,2003 QNX Software Systems Ltd. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v0.5 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v05.html - * - * Contributors: - * QNX Software Systems - Initial API and implementation -***********************************************************************/ -package org.eclipse.cdt.core; - -import org.eclipse.core.runtime.CoreException; - -public interface ICOwner { - public void configure(ICDescriptor cproject) throws CoreException; - public void update(ICDescriptor cproject, String extensionID) throws CoreException; -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICOwnerInfo.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICOwnerInfo.java deleted file mode 100644 index 95bde3a58f4..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICOwnerInfo.java +++ /dev/null @@ -1,17 +0,0 @@ -/********************************************************************** - * Copyright (c) 2002,2003 QNX Software Systems Ltd. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v0.5 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v05.html - * - * Contributors: - * QNX Software Systems - Initial API and implementation -***********************************************************************/ -package org.eclipse.cdt.core; - -public interface ICOwnerInfo { - public String getID(); - public String getName(); - public String getPlatform(); -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICPathEntry.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICPathEntry.java deleted file mode 100644 index 72f12157baf..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICPathEntry.java +++ /dev/null @@ -1,205 +0,0 @@ -/********************************************************************** - * Created on Mar 25, 2003 - * - * Copyright (c) 2002,2003 QNX Software Systems Ltd. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v0.5 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v05.html - * - * Contributors: - * QNX Software Systems - Initial API and implementation -***********************************************************************/ -package org.eclipse.cdt.core; - -import org.eclipse.core.runtime.IPath; - -public interface ICPathEntry { - - /** - * Entry kind constant describing a path entry identifying a - * library. A library is an archive containing - * consisting of pre-compiled binaries. - */ - int CDT_LIBRARY = 1; - - /** - * Entry kind constant describing a path entry identifying a - * required project. - */ - int CDT_PROJECT = 2; - - /** - * Entry kind constant describing a path entry identifying a - * folder containing source code to be compiled. - */ - int CDT_SOURCE = 3; - - /** - * Entry kind constant describing a path entry defined using - * a path that begins with a variable reference. - */ - int CDT_VARIABLE = 4; - - /** - * Entry kind constant describing a path entry identifying a - * include path. - */ - int CDT_INCLUDE = 5; - - /** - * Returns the kind of this path entry. - * - * @return one of: - * <ul> - * <li><code>CDT_SOURCE</code> - this entry describes a source root in - its project - * <li><code>CDT_LIBRARY</code> - this entry describes a library - * <li><code>CDT_PROJECT</code> - this entry describes another project - * <li><code>CDT_VARIABLE</code> - this entry describes a project or library - * indirectly via a variable in the first segment of the path - * <li><code>CDT_INCLUDE</code> - this entry describes a include path - */ - int getEntryKind(); - - /** - * Returns the set of patterns used to exclude resources associated with - * this source entry. - * <p> - * Exclusion patterns allow specified portions of the resource tree rooted - * at this source entry's path to be filtered out. If no exclusion patterns - * are specified, this source entry includes all relevent files. Each path - * specified must be a relative path, and will be interpreted relative - * to this source entry's path. File patterns are case-sensitive. A file - * matched by one or more of these patterns is excluded from the - * corresponding ICContainer. - * </p> - * <p> - * The pattern mechanism is similar to Ant's. Each pattern is represented as - * a relative path. The path segments can be regular file or folder names or simple patterns - * involving standard wildcard characters. - * </p> - * <p> - * '*' matches 0 or more characters within a segment. So - * <code>*.c</code> matches <code>.c</code>, <code>a.c</code> - * and <code>Foo.c</code>, but not <code>Foo.properties</code> - * (does not end with <code>.c</code>). - * </p> - * <p> - * '?' matches 1 character within a segment. So <code>?.c</code> - * matches <code>a.c</code>, <code>A.c</code>, - * but not <code>.c</code> or <code>xyz.c</code> (neither have - * just one character before <code>.c</code>). - * </p> - * <p> - * Combinations of *'s and ?'s are allowed. - * </p> - * <p> - * The special pattern '**' matches zero or more segments. A path - * like <code>tests/</code> that ends in a trailing separator is interpreted - * as <code>tests/**</code>, and would match all files under the - * the folder named <code>tests</code>. - * </p> - * <p> - * Examples: - * <ul> - * <li> - * <code>tests/**</code> (or simply <code>tests/</code>) - * matches all files under a root folder - * named <code>tests</code>. This includes <code>tests/Foo.c</code> - * and <code>tests/example/Foo.c</code>, but not - * <code>com/example/tests/Foo.c</code> (not under a root folder named - * <code>tests</code>). - * </li> - * <li> - * <code>tests/*</code> matches all files directly below a root - * folder named <code>tests</code>. This includes <code>tests/Foo.c</code> - * and <code>tests/FooHelp.c</code> - * but not <code>tests/example/Foo.c</code> (not directly under - * a folder named <code>tests</code>) or - * <code>example/Foo.c</code> (not under a folder named <code>tests</code>). - * </li> - * <li> - * <code>**/tests/**</code> matches all files under any - * folder named <code>tests</code>. This includes <code>tests/Foo.c</code>, - * <code>examples/tests/Foo.c</code>, and - * <code>examples/tests/unit/Foo.c</code>, but not - * <code>example/Foo.c</code> (not under a folder named - * <code>tests</code>). - * </li> - * </ul> - * </p> - * - * @return the possibly empty list of resource exclusion patterns - * associated with this source entry, and <code>null</code> for other - * kinds of classpath entries - * @since 2.1 - */ - IPath[] getExclusionPatterns(); - - /** - * Returns the path of this CPathEntry entry. - * - * The meaning of the path of a classpath entry depends on its entry kind:<ul> - * <li>Source code in the current project (<code>CDT_SOURCE</code>) - - * The path associated with this entry is the absolute path to the root folder. </li> - * <li>A binary library in the current project (<code>CDT_LIBRARY</code>) - the path - * associated with this entry is the absolute path to the library, and - * in case it refers to an external lib, then there is no associated resource in - * the workbench. - * <li>A required project (<code>CPE_PROJECT</code>) - the path of the entry denotes the - * path to the corresponding project resource.</li> - * <li>A variable entry (<code>CPE_VARIABLE</code>) - the first segment of the path - * is the name of a CPath variable. If this CPath variable - * is bound to the path <it>P</it>, the path of the corresponding classpath entry - * is computed by appending to <it>P</it> the segments of the returned - * path without the variable.</li> - * <li>Include path in the current project (<code>CDT_INCLUDE</code>) - - * The path associated with this entry is the absolute path to the include folder. </li> - * </ul> - * - * @return the path of this classpath entry - */ - IPath getPath(); - - /** - * Returns the path to the source archive or folder associated with this - * C path entry, or <code>null</code> if this C path entry has no - * source attachment. - * <p> - * Only library and variable C path entries may have source attachments. - * For library C path entries, the result path (if present) locates a source - * archive or folder. This archive or folder can be located in a project of the - * workspace or outside thr workspace. For variable c path entries, the - * result path (if present) has an analogous form and meaning as the - * variable path, namely the first segment is the name of a c path variable. - * </p> - * - * @return the path to the source archive or folder, or <code>null</code> if none - */ - IPath getSourceAttachmentPath(); - - /** - * Returns the path within the source archive or folder where source - * are located. An empty path indicates that packages are located at - * the root of the source archive or folder. Returns a non-<code>null</code> value - * if and only if <code>getSourceAttachmentPath</code> returns - * a non-<code>null</code> value. - * - * @return the path within the source archive or folder, or <code>null</code> if - * not applicable - */ - IPath getSourceAttachmentRootPath(); - - /** - * Returns the path to map the source paths with to the source achive or folder - * An empty path indicates that the is a one-to-one mapping of source paths to the - * source achive or folder path. Returns a non-<code>null</code> value - * if and only if <code>getSourceAttachmentPath</code> returns - * a non-<code>null</code> value. - * - * @return the path mapping within the source archive or folder, or <code>null</code> if - * not applicable - */ - IPath getSourceAttachmentPrefixMapping(); -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/IErrorParser.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/IErrorParser.java deleted file mode 100644 index b88a2cb174f..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/IErrorParser.java +++ /dev/null @@ -1,15 +0,0 @@ -package org.eclipse.cdt.core; - -/* - * (c) Copyright IBM Corp. 2000, 2001. - * All Rights Reserved. - */ - -public interface IErrorParser { - /** - * Finds error or warnings on the given line - */ - boolean processLine(String line, ErrorParserManager eoParser); - -} - diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/IMarkerGenerator.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/IMarkerGenerator.java deleted file mode 100644 index 6d9adf25841..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/IMarkerGenerator.java +++ /dev/null @@ -1,15 +0,0 @@ -package org.eclipse.cdt.core; - -import org.eclipse.core.resources.IResource; - -/** - * @author sam.robb - */ -public interface IMarkerGenerator { - int SEVERITY_INFO = 0; - int SEVERITY_WARNING = 1; - int SEVERITY_ERROR_RESOURCE = 2; - int SEVERITY_ERROR_BUILD = 3; - - void addMarker(IResource file, int lineNumber, String errorDesc, int severity, String errorVar); -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/IProcessInfo.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/IProcessInfo.java deleted file mode 100644 index d4714770dd9..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/IProcessInfo.java +++ /dev/null @@ -1,10 +0,0 @@ -/* - * (c) Copyright QNX Software System Ltd. 2002. - * All Rights Reserved. - */ -package org.eclipse.cdt.core; - -public interface IProcessInfo { - public int getPid(); - public String getName(); -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/IProcessList.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/IProcessList.java deleted file mode 100644 index e9d1a02d32d..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/IProcessList.java +++ /dev/null @@ -1,9 +0,0 @@ -/* - * (c) Copyright QNX Software System Ltd. 2002. - * All Rights Reserved. - */ -package org.eclipse.cdt.core; - -public interface IProcessList { - public IProcessInfo[] getProcessList(); -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ManagedCProjectNature.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ManagedCProjectNature.java deleted file mode 100644 index cf77ba2800d..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ManagedCProjectNature.java +++ /dev/null @@ -1,182 +0,0 @@ -package org.eclipse.cdt.core; - -/********************************************************************** - * Copyright (c) 2002,2003 Rational Software Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v0.5 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v05.html - * - * Contributors: - * IBM Rational Software - Initial API and implementation -***********************************************************************/ - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.Vector; - -import org.eclipse.core.resources.ICommand; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IProjectDescription; -import org.eclipse.core.resources.IProjectNature; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPluginDescriptor; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.Plugin; - -public class ManagedCProjectNature implements IProjectNature { - public static final String BUILDER_NAME= "genmakebuilder"; - public static final String BUILDER_ID= CCorePlugin.PLUGIN_ID + "." + BUILDER_NAME; - private static final String MNG_NATURE_ID = CCorePlugin.PLUGIN_ID + ".managedBuildNature"; - private IProject project; - - /** - * Utility method for adding a managed nature to a project. - * - * @param proj the project to add the managed nature to. - * @param monitor a progress monitor to indicate the duration of the operation, or - * <code>null</code> if progress reporting is not required. - */ - public static void addManagedNature(IProject project, IProgressMonitor monitor) throws CoreException { - addNature(project, MNG_NATURE_ID, monitor); - } - - public static void addManagedBuilder(IProject project, IProgressMonitor monitor) throws CoreException { - // Add the builder to the project - IProjectDescription description = project.getDescription(); - ICommand[] commands = description.getBuildSpec(); - - // TODO Remove this when the new StandardBuild nature adds the cbuilder - for (int i = 0; i < commands.length; i++) { - ICommand command = commands[i]; - if (command.getBuilderName().equals("org.eclipse.cdt.core.cbuilder")) { - // Remove the command - Vector vec = new Vector(Arrays.asList(commands)); - vec.removeElementAt(i); - vec.trimToSize(); - ICommand[] tempCommands = (ICommand[]) vec.toArray(new ICommand[commands.length-1]); - description.setBuildSpec(tempCommands); - break; - } - } - - commands = description.getBuildSpec(); - boolean found = false; - // See if the builder is already there - for (int i = 0; i < commands.length; ++i) { - if (commands[i].getBuilderName().equals(getBuilderID())) { - found = true; - break; - } - } - if (!found) { - //add builder to project - ICommand command = description.newCommand(); - command.setBuilderName(getBuilderID()); - ICommand[] newCommands = new ICommand[commands.length + 1]; - // Add it before other builders. - System.arraycopy(commands, 0, newCommands, 1, commands.length); - newCommands[0] = command; - description.setBuildSpec(newCommands); - project.setDescription(description, null); - } - } - - /** - * Utility method for adding a nature to a project. - * - * @param proj the project to add the nature to. - * @param natureId the id of the nature to assign to the project - * @param monitor a progress monitor to indicate the duration of the operation, or - * <code>null</code> if progress reporting is not required. - */ - public static void addNature(IProject project, String natureId, IProgressMonitor monitor) throws CoreException { - IProjectDescription description = project.getDescription(); - String[] prevNatures = description.getNatureIds(); - for (int i = 0; i < prevNatures.length; i++) { - if (natureId.equals(prevNatures[i])) - return; - } - String[] newNatures = new String[prevNatures.length + 1]; - System.arraycopy(prevNatures, 0, newNatures, 0, prevNatures.length); - newNatures[prevNatures.length] = natureId; - description.setNatureIds(newNatures); - project.setDescription(description, monitor); - } - - /** - * Get the correct builderID - */ - public static String getBuilderID() { - Plugin plugin = (Plugin)CCorePlugin.getDefault(); - IPluginDescriptor descriptor = plugin.getDescriptor(); - if (descriptor.getExtension(BUILDER_NAME) != null) { - return descriptor.getUniqueIdentifier() + "." + BUILDER_NAME; - } - return BUILDER_ID; - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.IProjectNature#configure() - */ - public void configure() throws CoreException { - // TODO Auto-generated method stub - - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.IProjectNature#deconfigure() - */ - public void deconfigure() throws CoreException { - // TODO Auto-generated method stub - - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.IProjectNature#getProject() - */ - public IProject getProject() { - // Just return the project associated with the nature - return project; - } - - - /** - * Utility method to remove the managed nature from a project. - * - * @param project to remove the managed nature from - * @param mon progress monitor to indicate the duration of the operation, or - * <code>null</code> if progress reporting is not required. - * @throws CoreException - */ - public static void removeManagedNature(IProject project, IProgressMonitor mon) throws CoreException { - removeNature(project, MNG_NATURE_ID, mon); - } - - /** - * Utility method for removing a project nature from a project. - * - * @param proj the project to remove the nature from - * @param natureId the nature id to remove - * @param monitor a progress monitor to indicate the duration of the operation, or - * <code>null</code> if progress reporting is not required. - */ - public static void removeNature(IProject project, String natureId, IProgressMonitor monitor) throws CoreException { - IProjectDescription description = project.getDescription(); - String[] prevNatures = description.getNatureIds(); - List newNatures = new ArrayList(Arrays.asList(prevNatures)); - newNatures.remove(natureId); - description.setNatureIds((String[])newNatures.toArray(new String[newNatures.size()])); - project.setDescription(description, monitor); - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.IProjectNature#setProject(org.eclipse.core.resources.IProject) - */ - public void setProject(IProject project) { - // Set the project for the nature - this.project = project; - } - -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/resources/ACBuilder.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/resources/ACBuilder.java deleted file mode 100644 index e3aef0d7afd..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/resources/ACBuilder.java +++ /dev/null @@ -1,76 +0,0 @@ -package org.eclipse.cdt.core.resources; - -/* - * (c) Copyright QNX Software Systems Ltd. 2002. - * All Rights Reserved. - */ - -import org.eclipse.cdt.core.CCorePlugin; -import org.eclipse.cdt.core.IMarkerGenerator; -import org.eclipse.cdt.core.model.ICModelMarker; -import org.eclipse.core.resources.IMarker; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.IncrementalProjectBuilder; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; - -public abstract class ACBuilder extends IncrementalProjectBuilder implements IMarkerGenerator { - - /** - * Constructor for ACBuilder - */ - public ACBuilder() { - super(); - } - - /* - * callback from Output Parser - */ - //public void addMarker(IFile file, int lineNumber, String errorDesc, int severity) { - public void addMarker(IResource file, int lineNumber, String errorDesc, int severity, String errorVar) { - - try { - IMarker[] cur = file.findMarkers(ICModelMarker.C_MODEL_PROBLEM_MARKER, false, IResource.DEPTH_ONE); - /* - * Try to find matching markers and don't put in duplicates - */ - if ((cur != null) && (cur.length > 0)) { - for (int i = 0; i < cur.length; i++) { - if ((((Integer) cur[i].getAttribute(IMarker.LOCATION)).intValue() == lineNumber) - && (((Integer) cur[i].getAttribute(IMarker.SEVERITY)).intValue() == severity) - && (((String) cur[i].getAttribute(IMarker.MESSAGE)).equals(errorDesc))) { - return; - } - } - } - - IMarker marker = file.createMarker(ICModelMarker.C_MODEL_PROBLEM_MARKER); - marker.setAttribute(IMarker.LOCATION, lineNumber); - marker.setAttribute(IMarker.MESSAGE, errorDesc); - marker.setAttribute(IMarker.SEVERITY, mapMarkerSeverity(severity)); - marker.setAttribute(IMarker.LINE_NUMBER, lineNumber); - marker.setAttribute(IMarker.CHAR_START, -1); - marker.setAttribute(IMarker.CHAR_END, -1); - if (errorVar != null) { - marker.setAttribute(ICModelMarker.C_MODEL_MARKER_VARIABLE, errorVar); - } - } - catch (CoreException e) { - CCorePlugin.log(e.getStatus()); - } - - } - - int mapMarkerSeverity(int severity) { - switch (severity) { - case SEVERITY_ERROR_BUILD : - case SEVERITY_ERROR_RESOURCE : - return IMarker.SEVERITY_ERROR; - case SEVERITY_INFO : - return IMarker.SEVERITY_INFO; - case SEVERITY_WARNING : - return IMarker.SEVERITY_WARNING; - } - return IMarker.SEVERITY_ERROR; - } -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/resources/FileStorage.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/resources/FileStorage.java deleted file mode 100644 index 7858b1b309d..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/resources/FileStorage.java +++ /dev/null @@ -1,78 +0,0 @@ -package org.eclipse.cdt.core.resources; - -/* - * (c) Copyright QNX Software Systems Ltd. 2002. - * All Rights Reserved. - */ - -import java.io.InputStream; -import java.io.FileInputStream; -import java.io.FileNotFoundException; - -import org.eclipse.core.resources.IStorage; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.PlatformObject; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.Status; -import org.eclipse.core.runtime.IStatus; - -import org.eclipse.cdt.core.CCorePlugin; - -/** - * - * @see IStorage - */ -public class FileStorage extends PlatformObject implements IStorage { - IPath path; - InputStream in = null; - - public InputStream getContents() throws CoreException { - if (in == null) { - try { - return new FileInputStream(path.toFile()); - } catch (FileNotFoundException e) { - throw new CoreException(new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, - IStatus.ERROR, e.toString(), e)); - } - } else { - return in; - } - } - - /** - * @see IStorage#getFullPath - */ - public IPath getFullPath() { - return this.path; - } - - /** - * @see IStorage#getName - */ - public String getName() { - return this.path.lastSegment(); - } - - /** - * @see IStorage#isReadOnly() - */ - public boolean isReadOnly() { - return true; - } - - public FileStorage(IPath path){ - this.path = path; - } - - public FileStorage(InputStream in, IPath path){ - this.path = path; - this.in = in; - } - - /** - * @see IStorage#isReadOnly() - */ - public String toString() { - return path.toOSString(); - } -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/resources/IConsole.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/resources/IConsole.java deleted file mode 100644 index 6d13ddb050a..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/resources/IConsole.java +++ /dev/null @@ -1,17 +0,0 @@ -package org.eclipse.cdt.core.resources; - -/* - * (c) Copyright QNX Software Systems Ltd. 2002. - * All Rights Reserved. - */ - -import org.eclipse.cdt.core.ConsoleOutputStream; -import org.eclipse.core.resources.IProject; - - -public interface IConsole { - ConsoleOutputStream getOutputStream(); - void start(IProject project); - void clear(); -} - diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/resources/IStandardBuildInfo.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/resources/IStandardBuildInfo.java deleted file mode 100644 index 80e3aa5309f..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/resources/IStandardBuildInfo.java +++ /dev/null @@ -1,38 +0,0 @@ -package org.eclipse.cdt.core.resources; - -import org.w3c.dom.Document; -import org.w3c.dom.Element; - - -/* - * (c) Copyright QNX Software Systems Ltd. 2002. - * All Rights Reserved. - */ - -public interface IStandardBuildInfo { - String getBuildLocation(); - public String[] getPreprocessorSymbols(); - String getFullBuildArguments(); - public String[] getIncludePaths(); - String getIncrementalBuildArguments(); - boolean isStopOnError(); - - void setBuildLocation(String location); - public void setPreprocessorSymbols(String[] symbols); - void setFullBuildArguments(String arguments); - public void setIncludePaths(String[] paths); - void setIncrementalBuildArguments(String arguments); - void setStopOnError(boolean on); - -// boolean isClearBuildConsole(); - - boolean isDefaultBuildCmd(); - void setUseDefaultBuildCmd(boolean on); - - /** - * @param doc - * @param rootElement - */ - void serialize(Document doc, Element rootElement); -} - diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/resources/MakeUtil.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/resources/MakeUtil.java deleted file mode 100644 index 5be690cbc7f..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/resources/MakeUtil.java +++ /dev/null @@ -1,177 +0,0 @@ -package org.eclipse.cdt.core.resources; - -/* - * (c) Copyright IBM Corp. 2000, 2001. - * All Rights Reserved. - */ - -import java.io.BufferedReader; -import java.io.IOException; -import java.io.StringReader; -import java.util.ArrayList; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.QualifiedName; - -public class MakeUtil { - - final static String MAKE_GOALS = "goals"; - final static String MAKE_DIR = "buildir"; - final static String TARGET_ID = "org.eclipse.cdt.make"; - - public static String[] decodeTargets(String property) { - BufferedReader reader = new BufferedReader(new StringReader(property)); - ArrayList l = new ArrayList(5); - try { - String line = reader.readLine(); - while (line != null && !"".equals(line)) { - l.add(line); - line = reader.readLine(); - } - } catch (IOException e) { - // this should not happen, we're reading from a string. - } - String[] result = new String[l.size()]; - return (String[]) l.toArray(result); - } - - public static String encodeTargets(String[] targets) { - StringBuffer buf = new StringBuffer(); - for (int i = 0; i < targets.length; i++) { - if (targets[i] != null) { - buf.append(targets[i]); - buf.append("\n"); - } - } - return (buf.length() == 0) ? null : buf.toString(); - } - - public static QualifiedName getQualifiedNameTarget() { - return new QualifiedName(TARGET_ID, MAKE_GOALS); - } - - public static QualifiedName getQualifiedNameDir() { - return new QualifiedName(TARGET_ID, MAKE_DIR); - } - - public static String getSessionTarget(IResource resource) { - try { - String property = (String) resource.getSessionProperty(getQualifiedNameTarget()); - if (property != null) - return property; - } catch (CoreException e) { - } - return new String(); - } - - public static void setSessionTarget(IResource resource, String target) { - try { - resource.setSessionProperty(getQualifiedNameTarget(), target); - } catch (CoreException e) { - } - } - - public static void removeSessionTarget(IResource resource) { - setSessionTarget(resource, null); - } - - public static String getSessionBuildDir(IResource resource) { - try { - String dir = (String) resource.getSessionProperty(getQualifiedNameDir()); - if (dir != null) - return dir; - } catch (CoreException e) { - } - return new String(); - } - - public static void setSessionBuildDir(IResource resource, String dir) { - try { - resource.setSessionProperty(getQualifiedNameDir(), dir); - } catch (CoreException e) { - } - } - - public static void removeSessionBuildDir(IResource resource) { - setSessionBuildDir(resource, null); - } - - public static String[] getPersistentTargets(IResource resource) { - try { - String property = resource.getPersistentProperty(getQualifiedNameTarget()); - if (property != null) - return decodeTargets(property); - } catch (CoreException e) { - } - return new String[0]; - } - - public static void setPersistentTargets(IResource resource, String[] targets) { - String property = null; - if (targets != null) - property = encodeTargets(targets); - //System.out.println ("PROPERTY " + property); - try { - resource.setPersistentProperty(getQualifiedNameTarget(), property); - } catch (CoreException e) { - } - } - - public static void addPersistentTarget(IResource resource, String target) { - String[] targets = MakeUtil.getPersistentTargets(resource); - for (int i = 0; i < targets.length; i++) { - if (targets[i].equals(target)) { - return; - } - } - String[] newTargets = new String[targets.length + 1]; - System.arraycopy(targets, 0, newTargets, 0, targets.length); - newTargets[targets.length] = target; - MakeUtil.setPersistentTargets(resource, newTargets); - } - - public static void removePersistentTarget(IResource resource, String target) { - String[] targets = MakeUtil.getPersistentTargets(resource); - String[] newTargets = new String[targets.length]; - for (int i = 0; i < targets.length; i++) { - if (!targets[i].equals(target)) { - newTargets[i] = targets[i]; - } - } - MakeUtil.setPersistentTargets(resource, newTargets); - } - - /** - * Replace a tag on a resource. Functionally equivalent to - * removePersistantTag(resource, oldtarget) - * addPersistantTag(resource, newtarget) - * If the oldtarget doesn't exist, the newtarget is added. - * If the newtarget is null, the oldtarget is removed. - * @param resource The resource the tag applies to - * @param oldtarget The oldtarget tag - * @param newtarget The newtarget tag to replace the old target tag or null. If - * newtarget is null then this call is the same as removePersistantTarget(resource, oldtarget) - */ - public static void replacePersistentTarget(IResource resource, String oldtarget, String newtarget) { - if (newtarget == null) { - removePersistentTarget(resource, oldtarget); - return; - } - - String[] targets = getPersistentTargets(resource); - for (int i = 0; i < targets.length; i++) { - if (targets[i].equals(oldtarget)) { - targets[i] = newtarget; - setPersistentTargets(resource, targets); - return; - } - } - - //The target wasn't found, create a new one - addPersistentTarget(resource, newtarget); - } - - private MakeUtil() { - } - -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CBuilder.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CBuilder.java deleted file mode 100644 index 41d86caf6d5..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CBuilder.java +++ /dev/null @@ -1,288 +0,0 @@ -package org.eclipse.cdt.internal.core; - -/* - * (c) Copyright IBM Corp. 2000, 2001. - * All Rights Reserved. - */ - -import java.io.IOException; -import java.io.OutputStream; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Enumeration; -import java.util.Map; -import java.util.Properties; - -import org.eclipse.cdt.core.CCorePlugin; -import org.eclipse.cdt.core.CProjectNature; -import org.eclipse.cdt.core.CommandLauncher; -import org.eclipse.cdt.core.ConsoleOutputStream; -import org.eclipse.cdt.core.ErrorParserManager; -import org.eclipse.cdt.core.model.ICModelMarker; -import org.eclipse.cdt.core.resources.ACBuilder; -import org.eclipse.cdt.core.resources.IConsole; -import org.eclipse.cdt.core.resources.MakeUtil; -import org.eclipse.core.resources.IMarker; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.IResourceDelta; -import org.eclipse.core.resources.IResourceDeltaVisitor; -import org.eclipse.core.resources.IWorkspace; -import org.eclipse.core.resources.IncrementalProjectBuilder; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.NullProgressMonitor; -import org.eclipse.core.runtime.OperationCanceledException; -import org.eclipse.core.runtime.Path; -import org.eclipse.core.runtime.SubProgressMonitor; - -public class CBuilder extends ACBuilder { - - private static final String BUILD_ERROR = "CBuilder.build_error"; - - public CBuilder() { - } - - public IPath getWorkingDirectory() { - IProject currProject = getProject(); - IPath workingDirectory = new Path(MakeUtil.getSessionBuildDir((IResource) currProject)); - if (workingDirectory.isEmpty()) - workingDirectory = currProject.getLocation(); - return workingDirectory; - } - - public class MyResourceDeltaVisitor implements IResourceDeltaVisitor { - boolean bContinue; - - public boolean visit(IResourceDelta delta) throws CoreException { - IResource resource = delta.getResource(); - if (resource != null && resource.getProject() == getProject()) { - bContinue = true; - return false; - } - return true; - } - public boolean shouldBuild() { - return bContinue; - } - } - /** - * @see IncrementalProjectBuilder#build - */ - protected IProject[] build(int kind, Map args, IProgressMonitor monitor) throws CoreException { - boolean bPerformBuild = true; - if (kind == IncrementalProjectBuilder.AUTO_BUILD) { - MyResourceDeltaVisitor vis = new MyResourceDeltaVisitor(); - IResourceDelta delta = getDelta(getProject()); - if (delta != null ) { - delta.accept(vis); - bPerformBuild = vis.shouldBuild(); - } else - bPerformBuild = false; - } - if ( bPerformBuild ) { - boolean isClean = invokeMake((kind == IncrementalProjectBuilder.FULL_BUILD), monitor); - if (isClean) { - forgetLastBuiltState(); - } - } - checkCancel(monitor); - return getProject().getReferencedProjects(); - } - - private boolean invokeMake(boolean fullBuild, IProgressMonitor monitor) { - boolean isClean = false; - boolean isCanceled = false; - IProject currProject = getProject(); - SubProgressMonitor subMonitor = null; - - if (monitor == null) { - monitor = new NullProgressMonitor(); - } - monitor.beginTask("Invoking the C Builder: " + currProject.getName(), IProgressMonitor.UNKNOWN); - - try { - CProjectNature nature = (CProjectNature) currProject.getNature(CProjectNature.C_NATURE_ID); - IPath makepath = nature.getBuildCommand(); - if (!makepath.isEmpty()) { - IConsole console = CCorePlugin.getDefault().getConsole(); - console.start(currProject); - - ConsoleOutputStream cos = console.getOutputStream(); - - // remove all markers for this project - removeAllMarkers(currProject); - - IPath workingDirectory = getWorkingDirectory(); - String[] userArgs = parseArguments(fullBuild, nature.getIncrBuildArguments()); - if (userArgs.length != 0 && userArgs[userArgs.length - 1].equals("clean")) - isClean = true; - // Before launching give visual cues via the monitor - subMonitor = new SubProgressMonitor(monitor, IProgressMonitor.UNKNOWN); - subMonitor.subTask("Invoking Command: " + makepath.toString()); - - String errMsg = null; - CommandLauncher launcher = new CommandLauncher(); - // Print the command for visual interaction. - launcher.showCommand(true); - - // Set the environmennt, some scripts may need the CWD var to be set. - Properties props = launcher.getEnvironment(); - props.put("CWD", workingDirectory.toOSString()); - props.put("PWD", workingDirectory.toOSString()); - String[] env = null; - ArrayList envList = new ArrayList(); - Enumeration names = props.propertyNames(); - if (names != null) { - while (names.hasMoreElements()) { - String key = (String) names.nextElement(); - envList.add(key + "=" + props.getProperty(key)); - } - env = (String[]) envList.toArray(new String[envList.size()]); - } - ErrorParserManager epm = new ErrorParserManager(this); - epm.setOutputStream(cos); - OutputStream stdout = epm.getOutputStream(); - OutputStream stderr = epm.getOutputStream(); - - Process p = launcher.execute(makepath, userArgs, env, workingDirectory); - if (p != null) { - try { - // Close the input of the Process explicitely. - // We will never write to it. - p.getOutputStream().close(); - } catch (IOException e) { - } - if (launcher.waitAndRead(stdout, stderr, subMonitor) != CommandLauncher.OK) - errMsg = launcher.getErrorMessage(); - - isCanceled = monitor.isCanceled(); - monitor.setCanceled(false); - subMonitor = new SubProgressMonitor(monitor, IProgressMonitor.UNKNOWN); - subMonitor.subTask("Refresh From Local"); - - try { - currProject.refreshLocal(IResource.DEPTH_INFINITE, subMonitor); - } catch (CoreException e) { - } - - subMonitor = new SubProgressMonitor(monitor, IProgressMonitor.UNKNOWN); - subMonitor.subTask("Parsing"); - } else { - errMsg = launcher.getErrorMessage(); - } - - if (errMsg != null) { - String errorDesc = CCorePlugin.getFormattedString(BUILD_ERROR, makepath.toString()); - StringBuffer buf = new StringBuffer(errorDesc); - buf.append(System.getProperty("line.separator", "\n")); - buf.append("(").append(errMsg).append(")"); - cos.write(buf.toString().getBytes()); - cos.flush(); - } - - stdout.close(); - stderr.close(); - - epm.reportProblems(); - - subMonitor.done(); - monitor.setCanceled(isCanceled); - } - } catch (Exception e) { - CCorePlugin.log(e); - } - monitor.done(); - return (isClean); - } - - /** - * Check whether the build has been canceled. - */ - public void checkCancel(IProgressMonitor monitor) { - if (monitor != null && monitor.isCanceled()) - throw new OperationCanceledException(); - } - - private String[] parseArguments(boolean fullBuild, String override_args) { - ArrayList list = new ArrayList(); - IProject currProject = getProject(); - try { - CProjectNature nature = (CProjectNature) currProject.getNature(CProjectNature.C_NATURE_ID); - if (nature.isDefaultBuildCmd()) { - if (!nature.isStopOnError()) { - list.add("-k"); - } - } - else { - String[] ovrd_args = makeArray(nature.getFullBuildArguments()); - list.addAll(Arrays.asList(ovrd_args)); - } - } - catch (CoreException e) { - } - - String sessionTarget = MakeUtil.getSessionTarget((IResource) currProject); - String[] targets = makeArray(sessionTarget); - for (int i = 0; i < targets.length; i++) { - list.add(targets[i]); - } - - // Lets try this: if FULL_BUILD; we run "clean all" - if (fullBuild && targets.length == 0) { - list.add("clean"); - list.add("all"); - } - - return (String[]) list.toArray(new String[list.size()]); - } - - // Turn the string into an array. - String[] makeArray(String string) { - string.trim(); - char[] array = string.toCharArray(); - ArrayList aList = new ArrayList(); - StringBuffer buffer = new StringBuffer(); - boolean inComment = false; - for (int i = 0; i < array.length; i++) { - char c = array[i]; - if (array[i] == '"' || array[i] == '\'') { - if (i > 0 && array[i - 1] == '\\') { - inComment = false; - } - else { - inComment = !inComment; - } - } - if (c == ' ' && !inComment) { - aList.add(buffer.toString()); - buffer = new StringBuffer(); - } - else { - buffer.append(c); - } - } - if (buffer.length() > 0) - aList.add(buffer.toString()); - return (String[]) aList.toArray(new String[aList.size()]); - } - - //private void clearConsole(final IDocument doc) { - // Display.getDefault().syncExec(new Runnable() { - // public void run() { - // doc.set(""); - // } - // }); - //} - - private void removeAllMarkers(IProject currProject) throws CoreException { - IWorkspace workspace = currProject.getWorkspace(); - - // remove all markers - IMarker[] markers = currProject.findMarkers(ICModelMarker.C_MODEL_PROBLEM_MARKER, true, IResource.DEPTH_INFINITE); - if (markers != null) { - workspace.deleteMarkers(markers); - } - } -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CCorePluginResources.properties b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CCorePluginResources.properties deleted file mode 100644 index f5654696747..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CCorePluginResources.properties +++ /dev/null @@ -1,21 +0,0 @@ -################################################ -# -# (c) Copyright QNX Software Systems Ltd. 2002. -# All Rights Reserved. -# -################################################ -CBuilder.build_error= Build Error - -# Generated makefile builder messages -MakeBuilder.message.starting = Starting the build for project {0} -MakeBuilder.message.rebuild = Regenerating makefiles for project {0} -MakeBuilder.message.incremental = Updating makefiles for project {0} -MakeBuilder.message.make = Calling {0} for project {1} -MakeBuilder.message.error = Build error -MakeBuilder.message.finished = Build complete for project {0} -MakeBuilder.comment.module.list = # Every subdirectory with source files must be described here -MakeBuilder.comment.source.list = # Each subdirectory must contribute its source files here -MakeBuilder.comment.build.rule = # Each subdirectory must supply rules for building sources it contributes -MakeBuilder.comment.module.make.includes = # Include the makefiles for each source subdirectory -MakeBuilder.comment.module.dep.includes = # Include automatically-generated dependency list: -MakeBuilder.comment.autodeps = # Automatically-generated dependency list: diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CDescriptor.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CDescriptor.java deleted file mode 100644 index 2055c0a02ba..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CDescriptor.java +++ /dev/null @@ -1,607 +0,0 @@ -/********************************************************************** - * Copyright (c) 2002,2003 QNX Software Systems Ltd. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v0.5 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v05.html - * - * Contributors: - * QNX Software Systems - Initial API and implementation -***********************************************************************/ -package org.eclipse.cdt.internal.core; - -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.FileInputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStreamWriter; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.Iterator; -import java.util.Map.Entry; - -import javax.xml.parsers.DocumentBuilder; -import javax.xml.parsers.DocumentBuilderFactory; -import javax.xml.parsers.ParserConfigurationException; - -import org.apache.xerces.dom.DocumentImpl; -import org.apache.xml.serialize.Method; -import org.apache.xml.serialize.OutputFormat; -import org.apache.xml.serialize.Serializer; -import org.apache.xml.serialize.SerializerFactory; -import org.eclipse.cdt.core.CCorePlugin; -import org.eclipse.cdt.core.ICDescriptor; -import org.eclipse.cdt.core.ICExtension; -import org.eclipse.cdt.core.ICExtensionReference; -import org.eclipse.cdt.core.ICOwnerInfo; -import org.eclipse.cdt.core.ICPathEntry; -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IConfigurationElement; -import org.eclipse.core.runtime.IExtension; -import org.eclipse.core.runtime.IExtensionPoint; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IPluginRegistry; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Path; -import org.eclipse.core.runtime.Platform; -import org.eclipse.core.runtime.Status; -import org.w3c.dom.Document; -import org.w3c.dom.Element; -import org.w3c.dom.NamedNodeMap; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; - -public class CDescriptor implements ICDescriptor { - private ICPathEntry[] fPathEntries = new ICPathEntry[0]; - private COwner fOwner; - private IProject fProject; - private HashMap extMap = new HashMap(4); - private HashMap extInfoMap = new HashMap(4); - private Document dataDoc; - - static final String DESCRIPTION_FILE_NAME = ".cdtproject"; - private static final char[][] NO_CHAR_CHAR = new char[0][]; - private static final String PROJECT_DESCRIPTION = "cdtproject"; - private static final String PROJECT_EXTENSION = "extension"; - private static final String PROJECT_EXTENSION_ATTRIBUTE = "attribute"; - private static final String PATH_ENTRY = "cpathentry"; - private static final String PROJECT_DATA = "data"; - private static final String PROJECT_DATA_ITEM = "item"; - private static final String PROJECT_DATA_ID = "id"; - - private boolean fDirty; - private boolean autoSave; - - protected CDescriptor(IProject project, String id) throws CoreException { - fProject = project; - IPath projectLocation = project.getDescription().getLocation(); - - final boolean isDefaultLocation = projectLocation == null; - if (isDefaultLocation) { - projectLocation = getProjectDefaultLocation(project); - } - IPath descriptionPath = projectLocation.append(DESCRIPTION_FILE_NAME); - - if (descriptionPath.toFile().exists()) { - IStatus status; - String ownerID = readCDTProject(descriptionPath); - if (ownerID.equals(id)) { - fOwner = new COwner(ownerID); - status = - new Status( - IStatus.WARNING, - CCorePlugin.PLUGIN_ID, - CCorePlugin.STATUS_CDTPROJECT_EXISTS, - "CDTProject already exisits", - (Throwable) null); - } else { - status = - new Status( - IStatus.ERROR, - CCorePlugin.PLUGIN_ID, - CCorePlugin.STATUS_CDTPROJECT_MISMATCH, - "CDTProject already exisits but does not match owner ID of creator", - (Throwable) null); - } - throw new CoreException(status); - } - fOwner = new COwner(id); - } - - protected CDescriptor(IProject project) throws CoreException { - fProject = project; - IPath projectLocation = project.getDescription().getLocation(); - - final boolean isDefaultLocation = projectLocation == null; - if (isDefaultLocation) { - projectLocation = getProjectDefaultLocation(project); - } - IPath descriptionPath = projectLocation.append(DESCRIPTION_FILE_NAME); - - if (!descriptionPath.toFile().exists()) { - IStatus status = new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, "CDTProject file not found", (Throwable) null); - throw new CoreException(status); - } - fOwner = new COwner(readCDTProject(descriptionPath)); - } - - protected CDescriptor(IProject project, COwner owner) throws CoreException { - fProject = project; - IPath projectLocation = project.getDescription().getLocation(); - - final boolean isDefaultLocation = projectLocation == null; - if (isDefaultLocation) { - projectLocation = getProjectDefaultLocation(project); - } - IPath descriptionPath = projectLocation.append(DESCRIPTION_FILE_NAME); - - if (!descriptionPath.toFile().exists()) { - IStatus status = new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, "CDTProject file not found", (Throwable) null); - throw new CoreException(status); - } - readCDTProject(descriptionPath); - fOwner = owner; - setDirty(); - } - - protected COwner getOwner() { - return fOwner; - } - - private String readCDTProject(IPath descriptionPath) throws CoreException { - FileInputStream file = null; - try { - file = new FileInputStream(descriptionPath.toFile()); - DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder(); - Document document = parser.parse(file); - Node node = document.getFirstChild(); - if (node.getNodeName().equals(PROJECT_DESCRIPTION)) { - return readProjectDescription(node); - } - IStatus status = new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, "Missing cdtproject element", null); - throw new CoreException(status); - } catch (Exception e) { - IStatus status = new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, e.getLocalizedMessage(), e); - throw new CoreException(status); - } finally { - if (file != null) { - try { - file.close(); - } catch (IOException e) { - } - } - } - } - - private IPath getProjectDefaultLocation(IProject project) { - return Platform.getLocation().append(project.getFullPath()); - } - - public ICOwnerInfo getProjectOwner() { - return fOwner; - } - - public String getPlatform() { - return fOwner.getPlatform(); - } - - public IProject getProject() { - return fProject; - } - - public ICExtensionReference[] get(String extensionID) { - CExtensionReference[] refs = (CExtensionReference[]) extMap.get(extensionID); - if (refs == null) - return new ICExtensionReference[0]; - return refs; - } - - public ICExtensionReference[] get(String extensionID, boolean update) { - ICExtensionReference[] ext = get(extensionID); - if (ext.length == 0 && update) { - try { - fOwner.update(fProject, this, extensionID); - saveInfo(); - ext = get(extensionID); - } catch (CoreException e) { - } - } - return ext; - } - - public ICExtensionReference create(String extensionPoint, String extensionID) throws CoreException { - CExtensionReference extensions[] = (CExtensionReference[]) extMap.get(extensionPoint); - if (extensions == null) { - extensions = new CExtensionReference[1]; - extMap.put(extensionPoint, extensions); - } else { - CExtensionReference[] newExtensions = new CExtensionReference[extensions.length + 1]; - System.arraycopy(extensions, 0, newExtensions, 0, extensions.length); - extensions = newExtensions; - extMap.put(extensionPoint, extensions); - } - extensions[extensions.length - 1] = new CExtensionReference(this, extensionPoint, extensionID); - setDirty(); - return extensions[extensions.length - 1]; - } - - public void remove(ICExtensionReference ext) throws CoreException { - CExtensionReference extensions[] = (CExtensionReference[]) extMap.get(ext.getExtension()); - for (int i = 0; i < extensions.length; i++) { - if (extensions[i] == ext) { - System.arraycopy(extensions, i, extensions, i + 1, extensions.length - 1 - i); - CExtensionReference[] newExtensions = new CExtensionReference[extensions.length - 1]; - System.arraycopy(extensions, 0, newExtensions, 0, extensions.length); - extensions = newExtensions; - if (extensions.length == 0) { - extMap.put(ext.getExtension(), null); - } else { - extMap.put(ext.getExtension(), extensions); - } - setDirty(); - } - } - } - - public void remove(String extensionPoint) throws CoreException { - CExtensionReference extensions[] = (CExtensionReference[]) extMap.get(extensionPoint); - if (extensions != null) { - extMap.remove(extensionPoint); - setDirty(); - } - } - - public CExtensionInfo getInfo(CExtensionReference cProjectExtension) { - CExtensionInfo info = (CExtensionInfo) extInfoMap.get(cProjectExtension); - if (info == null) { - info = new CExtensionInfo(); - extInfoMap.put(cProjectExtension, info); - } - return info; - } - - protected void saveInfo() throws CoreException { - String xml; - if (!isDirty()) { - return; - } - try { - xml = getAsXML(); - } catch (IOException e) { - IStatus s = new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, e.getMessage(), e); - throw new CoreException(s); - } - - IFile rscFile = getProject().getFile(DESCRIPTION_FILE_NAME); - InputStream inputStream = new ByteArrayInputStream(xml.getBytes()); - // update the resource content - if (rscFile.exists()) { - rscFile.setContents(inputStream, IResource.FORCE, null); - } else { - rscFile.create(inputStream, IResource.FORCE, null); - } - fDirty = false; - } - - public boolean isAutoSave() { - return autoSave; - } - - public void setAutoSave(boolean autoSave) { - this.autoSave = autoSave; - } - - protected void setDirty() throws CoreException { - fDirty = true; - if (isAutoSave()) - saveInfo(); - } - - protected boolean isDirty() { - return fDirty; - } - - protected String serializeDocument(Document doc) throws IOException { - ByteArrayOutputStream s = new ByteArrayOutputStream(); - OutputFormat format = new OutputFormat(); - format.setIndenting(true); - format.setLineSeparator(System.getProperty("line.separator")); //$NON-NLS-1$ - Serializer serializer = - SerializerFactory.getSerializerFactory(Method.XML).makeSerializer(new OutputStreamWriter(s, "UTF8"), format); - serializer.asDOMSerializer().serialize(doc); - return s.toString("UTF8"); //$NON-NLS-1$ - } - - private String readProjectDescription(Node node) throws CoreException { - Node childNode; - ArrayList pathEntries = new ArrayList(); - String ownerID = node.getAttributes().getNamedItem("id").getNodeValue(); - NodeList list = node.getChildNodes(); - for (int i = 0; i < list.getLength(); i++) { - childNode = list.item(i); - if ( childNode.getNodeType() == Node.ELEMENT_NODE ) { - if (childNode.getNodeName().equals(PROJECT_EXTENSION)) { - //decodeProjectExtension((Element)node); - decodeProjectExtension((Element)childNode); - } else if (childNode.getNodeName().equals(PATH_ENTRY)) { - //ICPathEntry entry = decodePathEntry((Element)node); - ICPathEntry entry = decodePathEntry((Element)childNode); - if (entry != null) { - pathEntries.add(entry); - } - } else if (childNode.getNodeName().equals(PROJECT_DATA)) { - decodeProjectData((Element)childNode); - } - } - } - fPathEntries = (ICPathEntry[]) pathEntries.toArray(new ICPathEntry[0]); - return ownerID; - } - - private void decodeProjectExtension(Element element) throws CoreException { - ICExtensionReference ext = create(element.getAttribute("point"), element.getAttribute("id")); - NodeList extAttrib = element.getChildNodes(); - for (int j = 0; j < extAttrib.getLength(); j++) { - if (extAttrib.item(j).getNodeName().equals(PROJECT_EXTENSION_ATTRIBUTE)) { - NamedNodeMap attrib = extAttrib.item(j).getAttributes(); - ext.setExtensionData(attrib.getNamedItem("key").getNodeValue(), attrib.getNamedItem("value").getNodeValue()); - } - } - } - - private ICPathEntry decodePathEntry(Element element) throws CoreException { - IPath projectPath = fProject.getProject().getFullPath(); - String kindAttr = element.getAttribute("kind"); //$NON-NLS-1$ - String pathAttr = element.getAttribute("path"); //$NON-NLS-1$ - - // ensure path is absolute - IPath path = new Path(pathAttr); - int kind = CPathEntry.kindFromString(kindAttr); - if (kind != ICPathEntry.CDT_VARIABLE && !path.isAbsolute()) { - path = projectPath.append(path); - } - // source attachment info (optional) - IPath sourceAttachmentPath = element.hasAttribute("sourcepath") ? new Path(element.getAttribute("sourcepath")) : null; - IPath sourceAttachmentRootPath = element.hasAttribute("rootpath") ? new Path(element.getAttribute("rootpath")) : null; - IPath sourceAttachmentPrefixMapping = - element.hasAttribute("prefixmapping") ? new Path(element.getAttribute("prefixmapping")) : null; - - // exclusion patterns (optional) - String exclusion = element.getAttribute("excluding"); //$NON-NLS-1$ - IPath[] exclusionPatterns = CPathEntry.NO_EXCLUSION_PATTERNS; - if (!exclusion.equals("")) { //$NON-NLS-1$ - char[][] patterns = splitOn('|', exclusion.toCharArray()); - int patternCount; - if ((patternCount = patterns.length) > 0) { - exclusionPatterns = new IPath[patternCount]; - for (int j = 0; j < patterns.length; j++) { - exclusionPatterns[j] = new Path(new String(patterns[j])); - } - } - } - - // recreate the CP entry - switch (kind) { - - case ICPathEntry.CDT_PROJECT : - return CCorePlugin.newProjectEntry(path); - - case ICPathEntry.CDT_LIBRARY : - return CCorePlugin.newLibraryEntry( - path, - sourceAttachmentPath, - sourceAttachmentRootPath, - sourceAttachmentPrefixMapping); - - case ICPathEntry.CDT_SOURCE : - // must be an entry in this project or specify another project - String projSegment = path.segment(0); - if (projSegment != null && projSegment.equals(fProject.getName())) { // this project - return CCorePlugin.newSourceEntry(path, exclusionPatterns); - } else { // another project - return CCorePlugin.newProjectEntry(path); - } - - case ICPathEntry.CDT_VARIABLE : - return CCorePlugin.newVariableEntry(path, sourceAttachmentPath, sourceAttachmentRootPath); - - case ICPathEntry.CDT_INCLUDE : - return CCorePlugin.newIncludeEntry(path, exclusionPatterns); - - default : - { - IStatus status = - new Status( - IStatus.ERROR, - CCorePlugin.PLUGIN_ID, - -1, - "CPathEntry: unknown kind (" + kindAttr + ")", - (Throwable) null); - throw new CoreException(status); - } - } - } - - private char[][] splitOn(char divider, char[] array) { - int length = array == null ? 0 : array.length; - - if (length == 0) - return NO_CHAR_CHAR; - - int wordCount = 1; - for (int i = 0; i < length; i++) - if (array[i] == divider) - wordCount++; - char[][] split = new char[wordCount][]; - int last = 0, currentWord = 0; - for (int i = 0; i < length; i++) { - if (array[i] == divider) { - split[currentWord] = new char[i - last]; - System.arraycopy(array, last, split[currentWord++], 0, i - last); - last = i + 1; - } - } - split[currentWord] = new char[length - last]; - System.arraycopy(array, last, split[currentWord], 0, length - last); - return split; - } - - protected String getAsXML() throws IOException { - Document doc = new DocumentImpl(); - Element configRootElement = doc.createElement(PROJECT_DESCRIPTION); - doc.appendChild(configRootElement); - configRootElement.setAttribute("id", fOwner.getID()); //$NON-NLS-1$ - encodeProjectExtensions(doc, configRootElement); - encodePathEntries(doc, configRootElement); - encodeProjectData(doc, configRootElement); - return serializeDocument(doc); - } - - private void encodeProjectExtensions(Document doc, Element configRootElement) { - Element element; - Iterator extIterator = extMap.values().iterator(); - while (extIterator.hasNext()) { - CExtensionReference extension[] = (CExtensionReference[]) extIterator.next(); - for (int i = 0; i < extension.length; i++) { - configRootElement.appendChild(element = doc.createElement(PROJECT_EXTENSION)); - element.setAttribute("point", extension[i].getExtension()); - element.setAttribute("id", extension[i].getID()); - CExtensionInfo info = (CExtensionInfo) extInfoMap.get(extension[i]); - if (info != null) { - Iterator attribIterator = info.getAttributes().entrySet().iterator(); - while (attribIterator.hasNext()) { - Entry entry = (Entry) attribIterator.next(); - Element extAttributes = doc.createElement(PROJECT_EXTENSION_ATTRIBUTE); - extAttributes.setAttribute("key", (String) entry.getKey()); - extAttributes.setAttribute("value", (String) entry.getValue()); - element.appendChild(extAttributes); - } - } - } - } - } - - private void encodePathEntries(Document doc, Element configRootElement) { - Element element; - IPath projectPath = fProject.getProject().getFullPath(); - for (int i = 0; i < fPathEntries.length; i++) { - configRootElement.appendChild(element = doc.createElement(PATH_ENTRY)); - element.setAttribute("kind", CPathEntry.kindToString(fPathEntries[i].getEntryKind())); //$NON-NLS-1$ - IPath xmlPath = fPathEntries[i].getPath(); - if (fPathEntries[i].getEntryKind() != ICPathEntry.CDT_VARIABLE) { - // translate to project relative from absolute (unless a device path) - if (xmlPath.isAbsolute()) { - if (projectPath != null && projectPath.isPrefixOf(xmlPath)) { - if (xmlPath.segment(0).equals(projectPath.segment(0))) { - xmlPath = xmlPath.removeFirstSegments(1); - xmlPath = xmlPath.makeRelative(); - } else { - xmlPath = xmlPath.makeAbsolute(); - } - } - } - } - element.setAttribute("path", xmlPath.toString()); //$NON-NLS-1$ - if (fPathEntries[i].getSourceAttachmentPath() != null) { - element.setAttribute("sourcepath", fPathEntries[i].getSourceAttachmentPath().toString()); //$NON-NLS-1$ - } - if (fPathEntries[i].getSourceAttachmentRootPath() != null) { - element.setAttribute("rootpath", fPathEntries[i].getSourceAttachmentRootPath().toString()); //$NON-NLS-1$ - } - if (fPathEntries[i].getSourceAttachmentPrefixMapping() != null) { - element.setAttribute("prefixmapping", fPathEntries[i].getSourceAttachmentPrefixMapping().toString()); //$NON-NLS-1$ - } - IPath[] exclusionPatterns = fPathEntries[i].getExclusionPatterns(); - if (exclusionPatterns.length > 0) { - StringBuffer excludeRule = new StringBuffer(10); - for (int j = 0, max = exclusionPatterns.length; j < max; j++) { - if (j > 0) - excludeRule.append('|'); - excludeRule.append(exclusionPatterns[j]); - } - element.setAttribute("excluding", excludeRule.toString()); //$NON-NLS-1$ - } - } - } - - public void setPathEntries(ICPathEntry[] entries) throws CoreException { - fPathEntries = entries; - setDirty(); - } - - public ICPathEntry[] getPathEntries() { - return fPathEntries; - } - - protected ICExtension createExtensions(ICExtensionReference ext) throws CoreException { - InternalCExtension cExtension = null; - IPluginRegistry pluginRegistry = Platform.getPluginRegistry(); - IExtensionPoint extensionPoint = pluginRegistry.getExtensionPoint(ext.getExtension()); - IExtension extension = extensionPoint.getExtension(ext.getID()); - IConfigurationElement element[] = extension.getConfigurationElements(); - for (int i = 0; i < element.length; i++) { - if (element[i].getName().equalsIgnoreCase("cextension")) { - cExtension = (InternalCExtension) element[i].createExecutableExtension("run"); - cExtension.setExtenionReference(ext); - cExtension.setProject(fProject); - break; - } - } - return (ICExtension) cExtension; - } - - // The project data allows for the storage of any structured information - // into the cdtproject file. - private Document getProjectDataDoc() throws CoreException { - if (dataDoc == null) { - try { - dataDoc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument(); - } catch (ParserConfigurationException e) { - throw new CoreException( - new Status( - IStatus.ERROR, - CCorePlugin.PLUGIN_ID, - IStatus.ERROR, - "getProjectDataDoc", - e)); - } - Element rootElem = dataDoc.createElement(PROJECT_DATA); - dataDoc.appendChild(rootElem); - } - return dataDoc; - } - - private void decodeProjectData(Element data) throws CoreException { - Document doc = getProjectDataDoc(); - doc.replaceChild(doc.importNode(data, true), doc.getDocumentElement()); - } - - public Element getProjectData(String id) throws CoreException { - NodeList nodes = getProjectDataDoc().getDocumentElement().getElementsByTagName(PROJECT_DATA_ITEM); - for (int i = 0; i < nodes.getLength(); ++i) { - Element element = (Element)nodes.item(i); - if (element.getAttribute(PROJECT_DATA_ID).equals(id)) - return element; - } - - // Not found, make a new one - Element element = dataDoc.createElement(PROJECT_DATA_ITEM); - element.setAttribute(PROJECT_DATA_ID, id); - dataDoc.getDocumentElement().appendChild(element); - return element; - } - - public void saveProjectData() throws CoreException { - setDirty(); - } - - private void encodeProjectData(Document doc, Element root) { - // Don't create or encode the doc if it isn't there already - if (dataDoc != null) - root.appendChild(doc.importNode(dataDoc.getDocumentElement(), true)); - } -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CDescriptorManager.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CDescriptorManager.java deleted file mode 100644 index 073419ee934..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CDescriptorManager.java +++ /dev/null @@ -1,142 +0,0 @@ -/********************************************************************** - * Copyright (c) 2002,2003 QNX Software Systems Ltd. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v0.5 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v05.html - * - * Contributors: - * QNX Software Systems - Initial API and implementation -***********************************************************************/ -package org.eclipse.cdt.internal.core; - -import java.util.HashMap; - -import org.eclipse.cdt.core.CCorePlugin; -import org.eclipse.cdt.core.ICDescriptor; -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.IResourceChangeEvent; -import org.eclipse.core.resources.IResourceChangeListener; -import org.eclipse.core.resources.IResourceDelta; -import org.eclipse.core.resources.IWorkspace; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Status; - -public class CDescriptorManager implements IResourceChangeListener { - private static HashMap fDescriptorMap; - - private IWorkspace getWorkspace() { - return ResourcesPlugin.getWorkspace(); - } - - public void shutdown() { - getWorkspace().removeResourceChangeListener(this); - } - - public void startup() { - getWorkspace().addResourceChangeListener(this); - } - - /** - * Traverses the delta looking for added/removed/changed launch - * configuration files. - * - * @see IResourceChangeListener#resourceChanged(IResourceChangeEvent) - */ - public void resourceChanged(IResourceChangeEvent event) { - if ( fDescriptorMap == null ) { - return; - } - IResource resource = event.getResource(); - - int eventType = event.getType(); - - switch(eventType) { - case IResourceChangeEvent.PRE_DELETE: - if (resource.getType() == IResource.PROJECT){ - fDescriptorMap.remove(resource); - } - break; - case IResourceChangeEvent.POST_CHANGE: - IResourceDelta delta= event.getDelta(); - if (delta == null) { - break; - } - IResource dResource = delta.getResource(); - //if (0 != (delta.getFlags() & IResourceDelta.OPEN)) { - if (dResource instanceof IFile) { - IFile file = (IFile)dResource; - - // the .cdtproject file has been deleted - if ((file != null) && (file.getName().endsWith(CDescriptor.DESCRIPTION_FILE_NAME)) && !file.exists()){ - // must remove the corresponding reference to it in the fDescriptorMap - if (fDescriptorMap != null){ - fDescriptorMap.remove(resource); - } - } - - } - //} - break; - } - } - - - public synchronized ICDescriptor getDescriptor(IProject project) throws CoreException { - if ( fDescriptorMap == null ) { - fDescriptorMap = new HashMap(); - } - CDescriptor cproject; - cproject = (CDescriptor)fDescriptorMap.get(project) ; - if ( cproject == null ) { - cproject = new CDescriptor(project); - cproject.setAutoSave(true); - fDescriptorMap.put(project, cproject); - } - return cproject; - } - - public synchronized void configure(IProject project, String id) throws CoreException { - CDescriptor cproject; - if ( fDescriptorMap == null ) { - fDescriptorMap = new HashMap(); - } - if ( fDescriptorMap.get(project) != null ) { - IStatus status = new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, CCorePlugin.STATUS_CDTPROJECT_EXISTS, "CDTProject already configured", (Throwable)null); - throw new CoreException(status); - } - try { - cproject = new CDescriptor(project, id); - } - catch (CoreException e) { // if .cdtproject already exists will use that - IStatus status = e.getStatus(); - if ( status.getCode() == CCorePlugin.STATUS_CDTPROJECT_EXISTS ) { - cproject = new CDescriptor(project); - fDescriptorMap.put(project, cproject); - return; - } - else - throw e; - } - cproject.getOwner().configure(project, cproject); - cproject.saveInfo(); - cproject.setAutoSave(true); - fDescriptorMap.put(project, cproject); - } - - public synchronized void convert(IProject project, String id) throws CoreException { - CDescriptor cproject; - if ( fDescriptorMap == null ) { - fDescriptorMap = new HashMap(); - } - cproject = new CDescriptor(project, new COwner(id)); - cproject.getOwner().configure(project, cproject); - cproject.saveInfo(); - cproject.setAutoSave(true); - fDescriptorMap.put(project, cproject); - } -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CExtensionInfo.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CExtensionInfo.java deleted file mode 100644 index e4fd954eed0..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CExtensionInfo.java +++ /dev/null @@ -1,31 +0,0 @@ -/********************************************************************** - * Copyright (c) 2002,2003 QNX Software Systems Ltd. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v0.5 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v05.html - * - * Contributors: - * QNX Software Systems - Initial API and implementation -***********************************************************************/ -package org.eclipse.cdt.internal.core; - -import java.util.HashMap; - -public class CExtensionInfo { - - protected HashMap attribMap = new HashMap(4); - - protected HashMap getAttributes() { - return attribMap; - } - - public void setAttribute(String key, String value) { - attribMap.put(key, value); - } - - public String getAttribute(String key) { - return (String) attribMap.get(key); - } - -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CExtensionReference.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CExtensionReference.java deleted file mode 100644 index 1126d682474..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CExtensionReference.java +++ /dev/null @@ -1,52 +0,0 @@ -/********************************************************************** - * Copyright (c) 2002,2003 QNX Software Systems Ltd. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v0.5 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v05.html - * - * Contributors: - * QNX Software Systems - Initial API and implementation -***********************************************************************/ -package org.eclipse.cdt.internal.core; - -import org.eclipse.cdt.core.ICExtension; -import org.eclipse.cdt.core.ICExtensionReference; -import org.eclipse.core.runtime.CoreException; - -public class CExtensionReference implements ICExtensionReference { - private CDescriptor fDescriptor; - private String fName; - private String fId; - - public CExtensionReference(CDescriptor descriptor, String name, String id) { - fDescriptor = descriptor; - fName = name; - fId = id; - } - - public String getExtension() { - return fName; - } - - public String getID() { - return fId; - } - - private CExtensionInfo getInfo() { - return fDescriptor.getInfo(this); - } - - public void setExtensionData(String key, String value) { - getInfo().setAttribute(key, value); - } - - public String getExtensionData(String key) { - return getInfo().getAttribute(key); - } - - public ICExtension createExtension() throws CoreException { - return fDescriptor.createExtensions(this); - } - -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/COwner.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/COwner.java deleted file mode 100644 index 4ab305a186a..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/COwner.java +++ /dev/null @@ -1,88 +0,0 @@ -/********************************************************************** - * Copyright (c) 2002,2003 QNX Software Systems Ltd. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v0.5 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v05.html - * - * Contributors: - * QNX Software Systems - Initial API and implementation -***********************************************************************/ -package org.eclipse.cdt.internal.core; - -import org.eclipse.cdt.core.CCorePlugin; -import org.eclipse.cdt.core.ICDescriptor; -import org.eclipse.cdt.core.ICOwner; -import org.eclipse.cdt.core.ICOwnerInfo; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IConfigurationElement; -import org.eclipse.core.runtime.IExtension; -import org.eclipse.core.runtime.IExtensionPoint; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Status; - -public class COwner implements ICOwnerInfo { - String ownerID; - String fPlatform; - IExtension extension; - - public COwner(String id) throws CoreException { - ownerID = id; - IExtensionPoint extpoint = CCorePlugin.getDefault().getDescriptor().getExtensionPoint("CProject"); - extension = extpoint.getExtension(ownerID); - - if (extension == null) { - IStatus status = new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, "Invalid CDTProject owner ID", (Throwable)null); - throw new CoreException(status); - } - } - - public String getID() { - return ownerID; - } - - public String getName() { - return extension == null ? null : extension.getLabel(); - } - - public String getPlatform() { - if ( fPlatform == null ) { - IConfigurationElement element[] = extension.getConfigurationElements(); - for( int i = 0; i < element.length; i++ ) { - if ( element[i].getName().equalsIgnoreCase("cproject") ) { - fPlatform = element[i].getAttribute("platform"); - break; - } - } - } - return fPlatform == null ? "*" : fPlatform; - } - - void configure(IProject project, ICDescriptor cproject) throws CoreException { - IConfigurationElement element[] = extension.getConfigurationElements(); - for( int i = 0; i < element.length; i++ ) { - if ( element[i].getName().equalsIgnoreCase("cproject") ) { - ICOwner owner = (ICOwner) element[i].createExecutableExtension("class"); - owner.configure(cproject); - return; - } - } - IStatus status = new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, "Invalid CDTProject owner extension", (Throwable)null); - throw new CoreException(status); - } - - void update(IProject project, ICDescriptor cproject, String extensionID) throws CoreException { - IConfigurationElement element[] = extension.getConfigurationElements(); - for( int i = 0; i < element.length; i++ ) { - if ( element[i].getName().equalsIgnoreCase("cproject") ) { - ICOwner owner = (ICOwner) element[i].createExecutableExtension("class"); - owner.update(cproject, extensionID); - return; - } - } - IStatus status = new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, "Invalid CDTProject owner extension", (Throwable)null); - throw new CoreException(status); - } - -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CPathEntry.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CPathEntry.java deleted file mode 100644 index 47332e23adb..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CPathEntry.java +++ /dev/null @@ -1,263 +0,0 @@ -/********************************************************************** - * Created on 25-Mar-2003 - * - * Copyright (c) 2002,2003 QNX Software Systems Ltd. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v0.5 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v05.html - * - * Contributors: - * QNX Software Systems - Initial API and implementation -***********************************************************************/ -package org.eclipse.cdt.internal.core; - -import org.eclipse.cdt.core.ICPathEntry; -import org.eclipse.core.runtime.IPath; - -public class CPathEntry implements ICPathEntry { - - public int entryKind; - - public IPath path; - - public IPath[] exclusionPatterns; - - public IPath sourceAttachmentPath; - - public IPath sourceAttachmentRootPath; - - public IPath sourceAttachmentPrefixMapping; - - private char[][] fullCharExclusionPatterns; - private final static char[][] UNINIT_PATTERNS = new char[][] { "Non-initialized yet".toCharArray()}; //$NON-NLS-1$ - - /** - * Default exclusion pattern set - */ - public final static IPath[] NO_EXCLUSION_PATTERNS = { - }; - - public CPathEntry( - int entryKind, - IPath path, - IPath[] exclusionPatterns, - IPath sourceAttachmentPath, - IPath sourceAttachmentRootPath, - IPath sourceAttachmentPrefixMapping) { - - this.entryKind = entryKind; - this.path = path; - this.exclusionPatterns = exclusionPatterns; - if (exclusionPatterns.length > 0) { - this.fullCharExclusionPatterns = UNINIT_PATTERNS; - } - this.sourceAttachmentPath = sourceAttachmentPath; - this.sourceAttachmentRootPath = sourceAttachmentRootPath; - this.sourceAttachmentPrefixMapping = sourceAttachmentPrefixMapping; - } - - /* - * Returns a char based representation of the exclusions patterns full path. - */ - public char[][] fullExclusionPatternChars() { - - if (this.fullCharExclusionPatterns == UNINIT_PATTERNS) { - int length = this.exclusionPatterns.length; - this.fullCharExclusionPatterns = new char[length][]; - IPath prefixPath = path.removeTrailingSeparator(); - for (int i = 0; i < length; i++) { - this.fullCharExclusionPatterns[i] = prefixPath.append(this.exclusionPatterns[i]).toString().toCharArray(); - } - } - return this.fullCharExclusionPatterns; - } - - /* (non-Javadoc) - * @see org.eclipse.cdt.core.ICPathEntry#getEntryKind() - */ - public int getEntryKind() { - return this.entryKind; - } - - /* (non-Javadoc) - * @see org.eclipse.cdt.core.ICPathEntry#getExclusionPatterns() - */ - public IPath[] getExclusionPatterns() { - return this.exclusionPatterns; - } - - /* (non-Javadoc) - * @see org.eclipse.cdt.core.ICPathEntry#getPath() - */ - public IPath getPath() { - return this.path; - } - - /* (non-Javadoc) - * @see org.eclipse.cdt.core.ICPathEntry#getSourceAttachmentPath() - */ - public IPath getSourceAttachmentPath() { - return this.sourceAttachmentPath; - } - - /* (non-Javadoc) - * @see org.eclipse.cdt.core.ICPathEntry#getSourceAttachmentRootPath() - */ - public IPath getSourceAttachmentRootPath() { - return this.sourceAttachmentRootPath; - } - - /* (non-Javadoc) - * @see org.eclipse.cdt.core.ICPathEntry#getSourceAttachmentPrefixMapping() - */ - public IPath getSourceAttachmentPrefixMapping() { - return this.sourceAttachmentPrefixMapping; - } - - /** - * Returns true if the given object is a classpath entry - * with equivalent attributes. - */ - public boolean equals(Object object) { - if (this == object) - return true; - if (object instanceof ICPathEntry) { - ICPathEntry otherEntry = (ICPathEntry) object; - - if (this.entryKind != otherEntry.getEntryKind()) - return false; - - if (!this.path.equals(otherEntry.getPath())) - return false; - - IPath otherPath = otherEntry.getSourceAttachmentPath(); - if (this.sourceAttachmentPath == null) { - if (otherPath != null) - return false; - } else { - if (!this.sourceAttachmentPath.equals(otherPath)) - return false; - } - - otherPath = otherEntry.getSourceAttachmentRootPath(); - if (this.sourceAttachmentRootPath == null) { - if (otherPath != null) - return false; - } else { - if (!this.sourceAttachmentRootPath.equals(otherPath)) - return false; - } - - IPath[] otherExcludes = otherEntry.getExclusionPatterns(); - if (this.exclusionPatterns != otherExcludes) { - int excludeLength = this.exclusionPatterns.length; - if (otherExcludes.length != excludeLength) - return false; - for (int i = 0; i < excludeLength; i++) { - // compare toStrings instead of IPaths - // since IPath.equals is specified to ignore trailing separators - if (!this.exclusionPatterns[i].toString().equals(otherExcludes[i].toString())) - return false; - } - } - return true; - } else { - return false; - } - } - - /** - * Returns the hash code for this classpath entry - */ - public int hashCode() { - return this.path.hashCode(); - } - /** - * Returns the kind of a <code>PackageFragmentRoot</code> from its <code>String</code> form. - */ - static int kindFromString(String kindStr) { - - if (kindStr.equalsIgnoreCase("prj")) //$NON-NLS-1$ - return ICPathEntry.CDT_PROJECT; - if (kindStr.equalsIgnoreCase("var")) //$NON-NLS-1$ - return ICPathEntry.CDT_VARIABLE; - if (kindStr.equalsIgnoreCase("src")) //$NON-NLS-1$ - return ICPathEntry.CDT_SOURCE; - if (kindStr.equalsIgnoreCase("lib")) //$NON-NLS-1$ - return ICPathEntry.CDT_LIBRARY; - if (kindStr.equalsIgnoreCase("inc")) //$NON-NLS-1$ - return ICPathEntry.CDT_INCLUDE; - return -1; - } - - /** - * Returns a <code>String</code> for the kind of a class path entry. - */ - static String kindToString(int kind) { - - switch (kind) { - case ICPathEntry.CDT_PROJECT : - return "prj"; - case ICPathEntry.CDT_SOURCE : - return "src"; //$NON-NLS-1$ - case ICPathEntry.CDT_LIBRARY : - return "lib"; //$NON-NLS-1$ - case ICPathEntry.CDT_VARIABLE : - return "var"; //$NON-NLS-1$ - case ICPathEntry.CDT_INCLUDE : - return "inc"; //$NON-NLS-1$ - default : - return "unknown"; //$NON-NLS-1$ - } - } - /** - * Returns a printable representation of this classpath entry. - */ - public String toString() { - StringBuffer buffer = new StringBuffer(); - buffer.append(getPath().toString()); - buffer.append('['); - switch (getEntryKind()) { - case ICPathEntry.CDT_LIBRARY : - buffer.append("CPE_LIBRARY"); //$NON-NLS-1$ - break; - case ICPathEntry.CDT_PROJECT : - buffer.append("CPE_PROJECT"); //$NON-NLS-1$ - break; - case ICPathEntry.CDT_SOURCE : - buffer.append("CPE_SOURCE"); //$NON-NLS-1$ - break; - case ICPathEntry.CDT_VARIABLE : - buffer.append("CPE_VARIABLE"); //$NON-NLS-1$ - break; - case ICPathEntry.CDT_INCLUDE : - buffer.append("CPE_INCLUDE"); //$NON-NLS-1$ - break; - } - buffer.append(']'); - if (getSourceAttachmentPath() != null) { - buffer.append("[sourcePath:"); //$NON-NLS-1$ - buffer.append(getSourceAttachmentPath()); - buffer.append(']'); - } - if (getSourceAttachmentRootPath() != null) { - buffer.append("[rootPath:"); //$NON-NLS-1$ - buffer.append(getSourceAttachmentRootPath()); - buffer.append(']'); - } - IPath[] patterns = getExclusionPatterns(); - int length; - if ((length = patterns.length) > 0) { - buffer.append("[excluding:"); //$NON-NLS-1$ - for (int i = 0; i < length; i++) { - buffer.append(patterns[i]); - if (i != length - 1) { - buffer.append('|'); - } - } - buffer.append(']'); - } - return buffer.toString(); - } -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/GeneratedMakefileBuilder.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/GeneratedMakefileBuilder.java deleted file mode 100644 index 0f1dea7e89b..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/GeneratedMakefileBuilder.java +++ /dev/null @@ -1,395 +0,0 @@ -package org.eclipse.cdt.internal.core; - -/********************************************************************** - * Copyright (c) 2002,2003 Rational Software Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v0.5 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v05.html - * - * Contributors: - * IBM Rational Software - Initial API and implementation - * **********************************************************************/ - -import java.io.IOException; -import java.io.OutputStream; -import java.util.ArrayList; -import java.util.Enumeration; -import java.util.List; -import java.util.Map; -import java.util.Properties; -import java.util.StringTokenizer; - -import org.eclipse.cdt.core.CCorePlugin; -import org.eclipse.cdt.core.CommandLauncher; -import org.eclipse.cdt.core.ConsoleOutputStream; -import org.eclipse.cdt.core.ErrorParserManager; -import org.eclipse.cdt.core.build.managed.IManagedBuildInfo; -import org.eclipse.cdt.core.build.managed.ManagedBuildManager; -import org.eclipse.cdt.core.model.ICModelMarker; -import org.eclipse.cdt.core.resources.ACBuilder; -import org.eclipse.cdt.core.resources.IConsole; -import org.eclipse.cdt.core.resources.MakeUtil; -import org.eclipse.core.resources.IMarker; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.IResourceDelta; -import org.eclipse.core.resources.IResourceDeltaVisitor; -import org.eclipse.core.resources.IWorkspace; -import org.eclipse.core.resources.IncrementalProjectBuilder; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.NullProgressMonitor; -import org.eclipse.core.runtime.OperationCanceledException; -import org.eclipse.core.runtime.Path; -import org.eclipse.core.runtime.SubProgressMonitor; - -public class GeneratedMakefileBuilder extends ACBuilder { - // String constants - private static final String MESSAGE = "MakeBuilder.message"; //$NON-NLS-1$ - private static final String BUILD_ERROR = MESSAGE + ".error"; //$NON-NLS-1$ - private static final String BUILD_FINISHED = MESSAGE + ".finished"; //$NON-NLS-1$ - private static final String INCREMENTAL = MESSAGE + ".incremental"; //$NON-NLS-1$ - private static final String MAKE = MESSAGE + ".make"; //$NON-NLS-1$ - private static final String REBUILD = MESSAGE + ".rebuild"; //$NON-NLS-1$ - private static final String START = MESSAGE + ".starting"; //$NON-NLS-1$ - - // Status codes - public static final int EMPTY_PROJECT_BUILD_ERROR = 1; - - // Local variables - protected List resourcesToBuild; - protected List ruleList; - - - public class ResourceDeltaVisitor implements IResourceDeltaVisitor { - boolean bContinue; - - public boolean visit(IResourceDelta delta) throws CoreException { - IResource resource = delta.getResource(); - if (resource != null && resource.getProject() == getProject()) { - bContinue = true; - return false; - } - return true; - } - public boolean shouldBuild() { - return bContinue; - } - } - - /** - * - */ - public GeneratedMakefileBuilder() { - super(); - } - - /* (non-Javadoc) - * @see org.eclipse.core.internal.events.InternalBuilder#build(int, java.util.Map, org.eclipse.core.runtime.IProgressMonitor) - */ - protected IProject[] build(int kind, Map args, IProgressMonitor monitor) throws CoreException { - String statusMsg = CCorePlugin.getFormattedString(START, getProject().getName()); - if (statusMsg != null) { - monitor.subTask(statusMsg); - } - - if (kind == IncrementalProjectBuilder.FULL_BUILD) { - fullBuild(monitor); - } - else { - // Create a delta visitor to make sure we should be rebuilding - ResourceDeltaVisitor visitor = new ResourceDeltaVisitor(); - IResourceDelta delta = getDelta(getProject()); - if (delta == null) { - fullBuild(monitor); - } - else { - delta.accept(visitor); - if (visitor.shouldBuild()) { - incrementalBuild(delta, monitor); - } - } - } - // Checking to see if the user cancelled the build - checkCancel(monitor); - - // Ask build mechanism to compute deltas for project dependencies next time - return getProject().getReferencedProjects(); - } - - /** - * Check whether the build has been canceled. Cancellation requests - * propagated to the caller by throwing <code>OperationCanceledException</code>. - * - * @see org.eclipse.core.runtime.OperationCanceledException#OperationCanceledException() - */ - public void checkCancel(IProgressMonitor monitor) { - if (monitor != null && monitor.isCanceled()) { - throw new OperationCanceledException(); - } - } - - /** - * @param monitor - */ - protected void fullBuild(IProgressMonitor monitor) throws CoreException { - // Always need one of these bad boys - if (monitor == null) { - monitor = new NullProgressMonitor(); - } - - // We also need one of these ... - IProject currentProject = getProject(); - if (currentProject == null) { - // Flag some sort of error and bail - return; - } - - // Regenerate the makefiles for any managed projects this project depends on - IProject[] deps = currentProject.getReferencedProjects(); - for (int i = 0; i < deps.length; i++) { - IProject depProject = deps[i]; - if (ManagedBuildManager.manages(depProject)) { - IManagedBuildInfo depInfo = ManagedBuildManager.getBuildInfo(depProject); - MakefileGenerator generator = new MakefileGenerator(depProject, depInfo, monitor); - try { - generator.regenerateMakefiles(); - } catch (CoreException e) { - // This may be an empty project exception - if (e.getStatus().getCode() == GeneratedMakefileBuilder.EMPTY_PROJECT_BUILD_ERROR) { - // Just keep looking for other projects - continue; - } - } - } - } - - // Need to report status to the user - String statusMsg = CCorePlugin.getFormattedString(REBUILD, currentProject.getName()); - monitor.subTask(statusMsg); - - // Regenerate the makefiles for this project - IManagedBuildInfo info = ManagedBuildManager.getBuildInfo(getProject()); - MakefileGenerator generator = new MakefileGenerator(currentProject, info, monitor); - try { - generator.regenerateMakefiles(); - } catch (CoreException e) { - // See if this is an empty project - if (e.getStatus().getCode() == GeneratedMakefileBuilder.EMPTY_PROJECT_BUILD_ERROR) { - monitor.worked(1); - return; - } - } - IPath topBuildDir = generator.getTopBuildDir(); - - // Now call make - invokeMake(true, topBuildDir.removeFirstSegments(1), info, monitor); - - monitor.worked(1); - } - - /** - * @param makefilePath - * @param info - * @return - */ - protected String[] getMakeTargets() { - List args = new ArrayList(); - // Add each target - String sessionTarget = MakeUtil.getSessionTarget(getProject()); - StringTokenizer tokens = new StringTokenizer(sessionTarget); - while (tokens.hasMoreTokens()) { - args.add(tokens.nextToken().trim()); - } - if (args.isEmpty()) { - args.add("all"); - } - return (String[])args.toArray(new String[args.size()]); - } - - /** - * @return - */ - protected List getResourcesToBuild() { - if (resourcesToBuild == null) { - resourcesToBuild = new ArrayList(); - } - return resourcesToBuild; - } - - /** - * @return - */ - protected List getRuleList() { - if (ruleList == null) { - ruleList = new ArrayList(); - } - return ruleList; - } - - /* (non-Javadoc) - * @see org.eclipse.cdt.core.resources.ACBuilder#getWorkingDirectory() - */ - public IPath getWorkingDirectory() { - IProject currProject = getProject(); - IPath workingDirectory = new Path(MakeUtil.getSessionBuildDir((IResource) currProject)); - if (workingDirectory.isEmpty()) - workingDirectory = currProject.getLocation(); - return workingDirectory; - } - - /** - * @param delta - * @param monitor - */ - protected void incrementalBuild(IResourceDelta delta, IProgressMonitor monitor) throws CoreException { - // Rebuild the resource tree in the delta - IProject currentProject = getProject(); - String statusMsg = null; - - // Need to report status to the user - if (monitor == null) { - monitor = new NullProgressMonitor(); - } - statusMsg = CCorePlugin.getFormattedString(INCREMENTAL, currentProject.getName()); - monitor.subTask(statusMsg); - - IManagedBuildInfo info = ManagedBuildManager.getBuildInfo(getProject()); - IPath buildDir = new Path(info.getConfigurationName()); - invokeMake(false, buildDir, info, monitor); - - monitor.worked(1); - } - - protected void invokeMake(boolean fullBuild, IPath buildDir, IManagedBuildInfo info, IProgressMonitor monitor) { - boolean isCanceled = false; - IProject currentProject = getProject(); - SubProgressMonitor subMonitor = null; - if (monitor == null) { - monitor = new NullProgressMonitor(); - } - - // Flag to the user that make is about to be called - IPath makeCommand = new Path(info.getMakeCommand()); - String[] msgs = new String[2]; - msgs[0] = info.getMakeCommand(); - msgs[1] = currentProject.getName(); - String statusMsg = CCorePlugin.getFormattedString(MAKE, msgs); - if (statusMsg != null) { - monitor.subTask(statusMsg); - } - - // Get a build console for the project - IConsole console = null; - ConsoleOutputStream consoleOutStream = null; - IWorkspace workspace = null; - IMarker[] markers = null; - try { - console = CCorePlugin.getDefault().getConsole(); - console.start(currentProject); - consoleOutStream = console.getOutputStream(); - - // Remove all markers for this project - workspace = currentProject.getWorkspace(); - markers = currentProject.findMarkers(ICModelMarker.C_MODEL_PROBLEM_MARKER, true, IResource.DEPTH_INFINITE); - if (markers != null) { - workspace.deleteMarkers(markers); - } - } catch (CoreException e) { - } - - IPath workingDirectory = getWorkingDirectory().append(buildDir); - - // Get the arguments to be passed to make from build model - String[] makeTargets = getMakeTargets(); - - // Get a launcher for the make command - String errMsg = null; - CommandLauncher launcher = new CommandLauncher(); - launcher.showCommand(true); - - // Set the environmennt, some scripts may need the CWD var to be set. - Properties props = launcher.getEnvironment(); - props.put("CWD", workingDirectory.toOSString()); - props.put("PWD", workingDirectory.toOSString()); - String[] env = null; - ArrayList envList = new ArrayList(); - Enumeration names = props.propertyNames(); - if (names != null) { - while (names.hasMoreElements()) { - String key = (String) names.nextElement(); - envList.add(key + "=" + props.getProperty(key)); - } - env = (String[]) envList.toArray(new String[envList.size()]); - } - - // Hook up an error parser - ErrorParserManager epm = new ErrorParserManager(this); - epm.setOutputStream(consoleOutStream); - OutputStream stdout = epm.getOutputStream(); - OutputStream stderr = epm.getOutputStream(); - - // Launch make - Process proc = launcher.execute(makeCommand, makeTargets, env, workingDirectory); - if (proc != null) { - try { - // Close the input of the Process explicitely. - // We will never write to it. - proc.getOutputStream().close(); - } catch (IOException e) { - } - subMonitor = new SubProgressMonitor(monitor, IProgressMonitor.UNKNOWN); - if (launcher.waitAndRead(stdout, stderr, subMonitor) != CommandLauncher.OK) { - errMsg = launcher.getErrorMessage(); - - isCanceled = monitor.isCanceled(); - monitor.setCanceled(false); - subMonitor = new SubProgressMonitor(monitor, IProgressMonitor.UNKNOWN); - subMonitor.subTask("Refresh From Local"); - - try { - currentProject.refreshLocal(IResource.DEPTH_INFINITE, subMonitor); - } catch (CoreException e) { - } - - subMonitor = new SubProgressMonitor(monitor, IProgressMonitor.UNKNOWN); - subMonitor.subTask("Parsing"); - } else { - errMsg = launcher.getErrorMessage(); - } - - - // Report either the success or failure of our mission - StringBuffer buf = new StringBuffer(); - if (errMsg != null && errMsg.length() > 0) { - String errorDesc = CCorePlugin.getResourceString(BUILD_ERROR); - buf.append(errorDesc); - buf.append(System.getProperty("line.separator", "\n")); - buf.append("(").append(errMsg).append(")"); - } - else { - // Report a successful build - String successMsg = CCorePlugin.getFormattedString(BUILD_FINISHED, currentProject.getName()); - buf.append(successMsg); - buf.append(System.getProperty("line.separator", "\n")); - } - // Write your message on the pavement - try { - consoleOutStream.write(buf.toString().getBytes()); - consoleOutStream.flush(); - stdout.close(); - stderr.close(); - } catch (IOException e) { - } - - epm.reportProblems(); - - subMonitor.done(); - monitor.setCanceled(isCanceled); - } - monitor.done(); - } - -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/InternalCExtension.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/InternalCExtension.java deleted file mode 100644 index fe676426146..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/InternalCExtension.java +++ /dev/null @@ -1,36 +0,0 @@ -/********************************************************************** - * Copyright (c) 2002,2003 QNX Software Systems Ltd. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v0.5 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v05.html - * - * Contributors: - * QNX Software Systems - Initial API and implementation -***********************************************************************/ -package org.eclipse.cdt.internal.core; - -import org.eclipse.cdt.core.ICExtensionReference; -import org.eclipse.core.resources.IProject; - -public abstract class InternalCExtension { - - private IProject project; - private ICExtensionReference extensionRef; - - void setProject(IProject project) { - this.project = project; - } - - void setExtenionReference(ICExtensionReference extReference) { - extensionRef = extReference; - } - - protected IProject getProject() { - return project; - } - - protected ICExtensionReference getExtensionReference() { - return extensionRef; - } -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/MakefileGenerator.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/MakefileGenerator.java deleted file mode 100644 index 7a855792bd4..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/MakefileGenerator.java +++ /dev/null @@ -1,613 +0,0 @@ -package org.eclipse.cdt.internal.core; - -/********************************************************************** - * Copyright (c) 2002,2003 Rational Software Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v0.5 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v05.html - * - * Contributors: - * IBM Rational Software - Initial API and implementation - * **********************************************************************/ - -import java.io.ByteArrayInputStream; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; -import java.util.ListIterator; - -import org.eclipse.cdt.core.CCorePlugin; -import org.eclipse.cdt.core.build.managed.IManagedBuildInfo; -import org.eclipse.cdt.core.build.managed.ManagedBuildManager; -import org.eclipse.cdt.core.search.ICSearchConstants; -import org.eclipse.cdt.internal.core.model.Util; -import org.eclipse.cdt.internal.core.sourcedependency.DependencyManager; -import org.eclipse.cdt.internal.core.sourcedependency.DependencyQueryJob; -import org.eclipse.core.resources.IContainer; -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IFolder; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.IResourceProxy; -import org.eclipse.core.resources.IResourceProxyVisitor; -import org.eclipse.core.resources.IResourceStatus; -import org.eclipse.core.resources.IWorkspaceRoot; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.OperationCanceledException; -import org.eclipse.core.runtime.Path; -import org.eclipse.core.runtime.Status; - -public class MakefileGenerator { - // String constants for messages - private static final String MESSAGE = "MakeBuilder.message"; //$NON-NLS-1$ - private static final String BUILD_ERROR = MESSAGE + ".error"; //$NON-NLS-1$ - private static final String COMMENT = "MakeBuilder.comment"; //$NON-NLS-1$ - private static final String MOD_LIST = COMMENT + ".module.list"; //$NON-NLS-1$ - private static final String SRC_LISTS = COMMENT + ".source.list"; //$NON-NLS-1$ - private static final String MOD_RULES = COMMENT + ".build.rule"; //$NON-NLS-1$ - private static final String MOD_INCL = COMMENT + ".module.make.includes"; //$NON-NLS-1$ - private static final String DEP_INCL = COMMENT + ".module.dep.includes"; //$NON-NLS-1$ - private static final String AUTO_DEP = COMMENT + ".autodeps"; //$NON-NLS-1$ - - // String constants for makefile contents - protected static final String COLON = ":"; - protected static final String DEPFILE_NAME = "module.dep"; //$NON-NLS-1$ - protected static final String DOT = "."; - protected static final String MAKEFILE_NAME = "makefile"; //$NON-NLS-1$ - protected static final String MODFILE_NAME = "module.mk"; //$NON-NLS-1$ - protected static final String LINEBREAK = "\\"; - protected static final String NEWLINE = System.getProperty("line.separator"); - protected static final String SEMI_COLON = ";"; - protected static final String SEPARATOR = "/"; - protected static final String TAB = "\t"; - protected static final String WHITESPACE = " "; - protected static final String WILDCARD = "%"; - - // Local variables needed by generator - protected IManagedBuildInfo info; - protected List moduleList; - protected IProgressMonitor monitor; - protected IProject project; - protected List ruleList; - protected IPath topBuildDir; - - /** - * This class is used to recursively walk the project and determine which - * modules contribute buildable source files. - */ - protected class ResourceProxyVisitor implements IResourceProxyVisitor { - private MakefileGenerator generator; - private IManagedBuildInfo info; - - /** - * Constructs a new resource proxy visitor to quickly visit project - * resources. - */ - public ResourceProxyVisitor(MakefileGenerator generator, IManagedBuildInfo info) { - this.generator = generator; - this.info = info; - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.IResourceProxyVisitor#visit(org.eclipse.core.resources.IResourceProxy) - */ - public boolean visit(IResourceProxy proxy) throws CoreException { - // No point in proceeding, is there - if (generator == null) { - return false; - } - - // Is this a resource we should even consider - if (proxy.getType() == IResource.FILE) { - // Check extension to see if build model should build this file - IResource resource = proxy.requestResource(); - String ext = resource.getFileExtension(); - if (info.buildsFileType(ext)) { - generator.appendModule(resource); - } - return false; - } - - // Recurse into subdirectories - return true; - } - - } - - public MakefileGenerator(IProject project, IManagedBuildInfo info, IProgressMonitor monitor) { - super(); - // Save the project so we can get path and member information - this.project = project; - // Save the monitor reference for reporting back to the user - this.monitor = monitor; - // Get the build info for the project - this.info = info; - } - - /** - * @param module - * @return - */ - protected StringBuffer addDeps(IContainer module) throws CoreException { - // Calculate the new directory relative to the build output - IPath moduleRelativePath = module.getProjectRelativePath(); - String relativePath = moduleRelativePath.toString(); - relativePath += relativePath.length() == 0 ? "" : SEPARATOR; - - // Create the buffer to hold the output for the module and a dep calculator - StringBuffer buffer = new StringBuffer(); - buffer.append(CCorePlugin.getResourceString(AUTO_DEP) + NEWLINE); - DependencyManager dependencyManager = CCorePlugin.getDefault().getCoreModel().getDependencyManager(); - - /* - * Visit each resource in the folder that we have a rule to build. - * The dependency output for each resource will be in the format - * <relativePath>/<resourceName>.<outputExtension> : <dep1> ... <depn> - * with long lines broken. - */ - IResource[] resources = module.members(); - for (int i = 0; i < resources.length; i++) { - IResource resource = resources[i]; - if (resource.getType() == IResource.FILE) { - String inputExt = resource.getFileExtension(); - if (info.buildsFileType(inputExt)) { - // Get the filename without an extension - String fileName = resource.getFullPath().removeFileExtension().lastSegment(); - if (fileName == null) continue; - String outputExt = info.getOutputExtension(inputExt); - if (outputExt != null) { - fileName += DOT + outputExt; - } - // ASk the dep generator to find all the deps for this resource - ArrayList dependencies = new ArrayList(); - try { - dependencyManager.performConcurrentJob(new DependencyQueryJob(project, (IFile)resource, dependencyManager, dependencies), ICSearchConstants.WAIT_UNTIL_READY_TO_SEARCH, null); - } catch (Exception e) { - continue; - } - if (dependencies.size() == 0) continue; - buffer.append(relativePath + fileName + COLON + WHITESPACE); - Iterator iter = dependencies.listIterator(); - while (iter.hasNext()) { - buffer.append(LINEBREAK + NEWLINE); - String path = (String)iter.next(); - buffer.append(path + WHITESPACE); - } - buffer.append(NEWLINE); - } - } - } - return buffer; - } - - /** - * @param buffer - * @param info - */ - protected StringBuffer addMacros() { - StringBuffer buffer = new StringBuffer(); - - // Add the ROOT macro - buffer.append("ROOT := .." + NEWLINE); - - // Get the clean command from the build model - buffer.append("RM := "); - buffer.append(info.getCleanCommand() + NEWLINE + NEWLINE); - - buffer.append(CCorePlugin.getResourceString(SRC_LISTS) + NEWLINE); - buffer.append("C_SRCS := " + NEWLINE); - buffer.append("CC_SRCS := " + NEWLINE + NEWLINE); - - // Add the libraries this project dependes on - buffer.append("LIBS := "); - buffer.append(NEWLINE + NEWLINE); - return buffer; - } - - /** - * @return - */ - protected StringBuffer addModules() { - StringBuffer buffer = new StringBuffer(); - // Add the comment - buffer.append(CCorePlugin.getResourceString(MOD_LIST) + NEWLINE); - buffer.append("MODULES := " + LINEBREAK + NEWLINE); - buffer.append("." + LINEBREAK + NEWLINE); - - // Get all the module names - ListIterator iter = getModuleList().listIterator(); - while (iter.hasNext()) { - IContainer container = (IContainer) iter.next(); - IPath path = container.getProjectRelativePath(); - buffer.append(path.toString() + WHITESPACE + LINEBREAK + NEWLINE); - } - - buffer.append(NEWLINE); - buffer.append(CCorePlugin.getResourceString(MOD_INCL) + NEWLINE); - buffer.append("include ${patsubst %, %/module.mk, $(MODULES)}" + NEWLINE); - - buffer.append(NEWLINE + NEWLINE); - return buffer; - } - - - /** - * Answers a <code>StringBuffer</code> containing all of the sources contributed by - * a container to the build. - * @param module - * @return - */ - protected StringBuffer addSources(IContainer module) throws CoreException { - // Calculate the new directory relative to the build output - IPath moduleRelativePath = module.getProjectRelativePath(); - String relativePath = moduleRelativePath.toString(); - relativePath += relativePath.length() == 0 ? "" : SEPARATOR; - - // String buffers - StringBuffer buffer = new StringBuffer(); - StringBuffer cBuffer = new StringBuffer("C_SRCS += " + LINEBREAK + NEWLINE); - cBuffer.append("${addprefix $(ROOT)/" + relativePath + "," + LINEBREAK + NEWLINE); - StringBuffer ccBuffer = new StringBuffer("CC_SRCS += \\" + NEWLINE); - ccBuffer.append("${addprefix $(ROOT)/" + relativePath + "," + LINEBREAK + NEWLINE); - StringBuffer ruleBuffer = new StringBuffer(CCorePlugin.getResourceString(MOD_RULES) + NEWLINE); - - // Put the comment in - buffer.append(CCorePlugin.getResourceString(SRC_LISTS) + NEWLINE); - - // Visit the resources in this folder - IResource[] resources = module.members(); - for (int i = 0; i < resources.length; i++) { - IResource resource = resources[i]; - if (resource.getType() == IResource.FILE) { - String ext = resource.getFileExtension(); - if (info.buildsFileType(ext)) { - // TODO use build model to determine what list the file goes in - ccBuffer.append(resource.getName() + WHITESPACE + LINEBREAK + NEWLINE); - // Try to add the rule for the file - addRule(relativePath, ruleBuffer, resource); - } - } - } - - // Finish the commands in the buffers - cBuffer.append("}" + NEWLINE + NEWLINE); - ccBuffer.append("}" + NEWLINE + NEWLINE); - - // Append them all together - buffer.append(cBuffer).append(ccBuffer).append(ruleBuffer); - return buffer; - } - - /** - * Answers a <code>StrinBuffer</code> containing all of the required targets to - * properly build the project. - */ - protected StringBuffer addTargets() { - StringBuffer buffer = new StringBuffer(); - - // Get the target and it's extension - String target = info.getBuildArtifactName(); - IPath temp = new Path(target); - String extension = temp.getFileExtension(); - - /* - * Write out the target rule as: - * <prefix><target>.<extension>: $(CC_SRCS:$(ROOT)/%.cpp=%.o) $(C_SRCS:$(ROOT)/%.c=%.o) - * <cd <Proj_Dep_1/build_dir>; make all> - * <cd <Proj_Dep_.../build_dir>; make all> - * <cd <Proj_Dep_n/build_dir>; make all> - * $(BUILD_TOOL) $(FLAGS) $(OUTPUT_FLAG) $@ $^ $(LIB_DEPS) - */ - String cmd = info.getToolForTarget(extension); - String flags = info.getFlagsForTarget(extension); - String outflag = info.getOutputFlag(extension); - String outputPrefix = info.getOutputPrefix(extension); - - buffer.append(outputPrefix + target + COLON + WHITESPACE + "$(CC_SRCS:$(ROOT)/%.cpp=%.o) $(C_SRCS:$(ROOT)/%.c=%.o)" + NEWLINE); - IProject[] deps; - try { - deps = project.getReferencedProjects(); - for (int i = 0; i < deps.length; i++) { - IProject dep = deps[i]; - String buildDir = dep.getLocation().toString(); - if (ManagedBuildManager.manages(dep)) { - IManagedBuildInfo depInfo = ManagedBuildManager.getBuildInfo(dep); - buildDir += SEPARATOR + depInfo.getConfigurationName(); - } - buffer.append(TAB + "cd" + WHITESPACE + buildDir + SEMI_COLON + WHITESPACE + "make all" + NEWLINE); - } - } catch (CoreException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - - buffer.append(TAB + cmd + WHITESPACE + flags + WHITESPACE + outflag + WHITESPACE + "$@" + WHITESPACE + "$^"); - String[] libraries = info.getLibsForTarget(extension); - for (int i = 0; i < libraries.length; i++) { - String lib = libraries[i]; - buffer.append(WHITESPACE + lib); - } - buffer.append(NEWLINE); - buffer.append(NEWLINE); - - // TODO Generate 'all' for now but determine the real rules from UI - buffer.append("all: " + outputPrefix + target + NEWLINE); - buffer.append(NEWLINE); - - // Always add a clean target - buffer.append(".PHONY: clean" + NEWLINE); - buffer.append("clean:" + NEWLINE); - buffer.append(TAB + "$(RM)" + WHITESPACE + "${addprefix ., $(CC_SRCS:$(ROOT)%.cpp=%.o)} ${addprefix ., $(C_SRCS:$(ROOT)%.c=%.o)}" + WHITESPACE + outputPrefix + target + NEWLINE); - buffer.append(NEWLINE); - - buffer.append(NEWLINE + CCorePlugin.getResourceString(DEP_INCL) + NEWLINE); - buffer.append("include ${patsubst %, %/module.dep, $(MODULES)}" + NEWLINE); - - buffer.append(NEWLINE); - return buffer; - } - - protected void addRule(String relativePath, StringBuffer buffer, IResource resource) { - String rule = null; - String cmd = null; - String buildFlags = null; - String inputExtension = null; - String outputExtension = null; - String outflag = null; - String outputPrefix = null; - - // Is there a special rule for this file - if (false) { - } - else { - // Get the extension of the resource - inputExtension = resource.getFileExtension(); - // ASk the build model what it will produce from this - outputExtension = info.getOutputExtension(inputExtension); - /* - * Create the pattern rule in the format - * <relative_path>/%.o: $(ROOT)/<relative_path>/%.cpp - * $(CC) $(CFLAGS) $(OUTPUT_FLAG) $@ $< - * - * Note that CC CFLAGS and OUTPUT_FLAG all come from the build model - * and are resolved to a real command before writing to the module - * makefile, so a real command might look something like - * source1/%.o: $(ROOT)/source1/%.cpp - * g++ -g -O2 -c -I/cygdrive/c/eclipse/workspace/Project/headers -o $@ $< - */ - rule = relativePath + WILDCARD + DOT + outputExtension + COLON + WHITESPACE + "$(ROOT)" + SEPARATOR + relativePath + WILDCARD + DOT + inputExtension; - } - - // Check if the rule is listed as something we already generated in the makefile - if (!getRuleList().contains(rule)) { - // Add it to the list - getRuleList().add(rule); - - // Add the rule and command to the makefile - buffer.append(rule + NEWLINE); - cmd = info.getToolForSource(inputExtension); - buildFlags = info.getFlagsForSource(inputExtension); - outflag = info.getOutputFlag(outputExtension); - outputPrefix = info.getOutputPrefix(outputExtension); - buffer.append(TAB + cmd + WHITESPACE + buildFlags + WHITESPACE + outflag + WHITESPACE + outputPrefix + "$@" + WHITESPACE + "$<" + NEWLINE + NEWLINE); - } - } - - /** - * @param resource - */ - public void appendModule(IResource resource) { - // The build model knows how to build this file - IContainer container = resource.getParent(); - - // But is this a generated directory ... - IPath root = new Path(info.getConfigurationName()); - IPath path = container.getProjectRelativePath(); - if (root.isPrefixOf(path)) { - return; - } - - if (!getModuleList().contains(container)) { - getModuleList().add(container); - } - } - - /** - * Check whether the build has been canceled. Cancellation requests - * propagated to the caller by throwing <code>OperationCanceledException</code>. - * - * @see org.eclipse.core.runtime.OperationCanceledException#OperationCanceledException() - */ - public void checkCancel() { - if (monitor != null && monitor.isCanceled()) { - throw new OperationCanceledException(); - } - } - - /** - * @return - */ - private List getModuleList() { - if (moduleList == null) { - moduleList = new ArrayList(); - } - return moduleList; - } - - /** - * - */ - private List getRuleList() { - if (ruleList == null) { - ruleList = new ArrayList(); - } - return ruleList; - } - - /** - * @param string - * @return - */ - private IPath createDirectory(String dirName) throws CoreException { - // Create or get the handle for the build directory - IFolder folder = project.getFolder(dirName); - if (!folder.exists()) { - - // Make sure that parent folders exist - IPath parentPath = (new Path(dirName)).removeLastSegments(1); - // Assume that the parent exists if the path is empty - if (!parentPath.isEmpty()) { - IFolder parent = project.getFolder(parentPath); - if (!parent.exists()) { - createDirectory(parentPath.toString()); - } - } - - // Now make the requested folder - try { - folder.create(true, true, null); - } - catch (CoreException e) { - if (e.getStatus().getCode() == IResourceStatus.PATH_OCCUPIED) - folder.refreshLocal(IResource.DEPTH_ZERO, null); - else - throw e; - } - } - return folder.getFullPath(); - } - - /** - * @param makefilePath - * @param monitor - * @return - */ - private IFile createFile(IPath makefilePath) throws CoreException { - // Create or get the handle for the makefile - IWorkspaceRoot root = CCorePlugin.getWorkspace().getRoot(); - IFile newFile = root.getFileForLocation(makefilePath); - if (newFile == null) { - newFile = root.getFile(makefilePath); - } - // Create the file if it does not exist - ByteArrayInputStream contents = new ByteArrayInputStream(new byte[0]); - try { - newFile.create(contents, false, monitor); - } - catch (CoreException e) { - // If the file already existed locally, just refresh to get contents - if (e.getStatus().getCode() == IResourceStatus.PATH_OCCUPIED) - newFile.refreshLocal(IResource.DEPTH_ZERO, null); - else - throw e; - } - // TODO handle long running file operation - return newFile; - } - - /** - * Answers the <code>IPath</code> of the top directory generated for the build - * output, or <code>null</code> if none has been generated. - * - * @return - */ - public IPath getTopBuildDir() { - return topBuildDir; - } - - /** - * Create the entire contents of the makefile. - * - * @param fileHandle The file to place the contents in. - * @param info - * @param monitor - */ - protected void populateMakefile(IFile fileHandle) { - StringBuffer buffer = new StringBuffer(); - - // Add the macro definitions - buffer.append(addMacros()); - - // Append the module list - buffer.append(addModules()); - - // Add targets - buffer.append(addTargets()); - - // Save the file - try { - Util.save(buffer, fileHandle); - } catch (CoreException e1) { - // TODO Auto-generated catch block - e1.printStackTrace(); - } - } - - /** - * @param module - */ - protected void populateModMakefile(IContainer module) throws CoreException { - // Calcualte the new directory relative to the build output - IPath moduleRelativePath = module.getProjectRelativePath(); - IPath buildRoot = getTopBuildDir().removeFirstSegments(1); - if (buildRoot == null) { - return; - } - IPath moduleOutputPath = buildRoot.append(moduleRelativePath); - - // Now create the directory - IPath moduleOutputDir = createDirectory(moduleOutputPath.toString()); - - // Create a module makefile - IFile modMakefile = createFile(moduleOutputDir.addTrailingSeparator().append(MODFILE_NAME)); - StringBuffer makeBuf = new StringBuffer(); - makeBuf.append(addSources(module)); - - // Create a module dep file - IFile modDepfile = createFile(moduleOutputDir.addTrailingSeparator().append(DEPFILE_NAME)); - StringBuffer depBuf = new StringBuffer(); - depBuf.append(addDeps(module)); - - // Save the files - Util.save(makeBuf, modMakefile); - Util.save(depBuf, modDepfile); - } - - - public void regenerateMakefiles() throws CoreException { - // Visit the resources in the project - ResourceProxyVisitor visitor = new ResourceProxyVisitor(this, info); - project.accept(visitor, IResource.NONE); - if (getModuleList().isEmpty()) { - // There is nothing to build - IStatus status = new Status(IStatus.INFO, CCorePlugin.PLUGIN_ID, GeneratedMakefileBuilder.EMPTY_PROJECT_BUILD_ERROR, "", null); - throw new CoreException(status); - } - - // See if the user has cancelled the build - checkCancel(); - - // Create the top-level directory for the build output - topBuildDir = createDirectory(info.getConfigurationName()); - - // Create the top-level makefile - IPath makefilePath = topBuildDir.addTrailingSeparator().append(MAKEFILE_NAME); - IFile makefileHandle = createFile(makefilePath); - - // Populate the makefile - populateMakefile(makefileHandle); - checkCancel(); - - // Now populate the module makefiles - ListIterator iter = getModuleList().listIterator(); - while (iter.hasNext()) { - populateModMakefile((IContainer)iter.next()); - checkCancel(); - } - } - -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/ProcessClosure.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/ProcessClosure.java deleted file mode 100644 index 34caa9ac782..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/ProcessClosure.java +++ /dev/null @@ -1,189 +0,0 @@ -package org.eclipse.cdt.internal.core; - -/* - * (c) Copyright IBM Corp. 2000, 2001. - * All Rights Reserved. - */ - -import java.io.BufferedReader; -import java.io.BufferedWriter; -import java.io.IOException; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.OutputStream; -import java.io.OutputStreamWriter; - - -/** - * Bundled state of a launched process including the threads linking the process in/output - * to console documents. - */ -public class ProcessClosure { - - /** - * Thread which continuously reads from a input stream and pushes the read data - * to an output stream which is immediately flushed afterwards. - */ - protected static class ReaderThread extends Thread { - - private InputStream fInputStream; - private OutputStream fOutputStream; - private boolean fFinished = false; - private String lineSeparator; - /* - * outputStream can be null - */ - public ReaderThread(ThreadGroup group, String name, InputStream in, OutputStream out) { - super(group, name); - fOutputStream= out; - fInputStream= in; - setDaemon(true); - lineSeparator = (String) System.getProperty("line.separator"); - } - - public void run() { - try { - BufferedReader reader = new BufferedReader(new InputStreamReader(fInputStream)); - BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(fOutputStream)); - String line; - while ((line = reader.readLine()) != null) { - line += lineSeparator; - char[] array = line.toCharArray(); - writer.write(array, 0, array.length); - writer.flush(); - } - } catch (IOException x) { - // ignore - } finally { - try { - fInputStream.close(); - } catch (IOException e) { - // ignore - } - try { - fOutputStream.close(); - } catch (IOException e) { - // ignore - } - complete(); - } - } - - public synchronized boolean finished() { - return fFinished; - } - - public synchronized void waitFor() { - while (!fFinished) { - try { - wait(); - } catch (InterruptedException e) { - } - } - } - - public synchronized void complete() { - fFinished = true; - notify(); - } - } - - protected static int fCounter= 0; - - protected Process fProcess; - - protected OutputStream fOutput; - protected OutputStream fError; - - protected ReaderThread fOutputReader; - protected ReaderThread fErrorReader; - - /** - * Creates a process closure and connects the launched process with - * a console document. - * @param outputStream prcess stdout is written to this stream. Can be <code>null</code>, if - * not interested in reading the output - * @param errorStream prcess stderr is written to this stream. Can be <code>null</code>, if - * not interested in reading the output - */ - public ProcessClosure(Process process, OutputStream outputStream, OutputStream errorStream) { - fProcess= process; - fOutput= outputStream; - fError= errorStream; - } - - /** - * Live links the launched process with the configured in/out streams using - * reader threads. - */ - public void runNonBlocking() { - ThreadGroup group= new ThreadGroup("CBuilder" + fCounter++); - - InputStream stdin= fProcess.getInputStream(); - InputStream stderr= fProcess.getErrorStream(); - - fOutputReader= new ReaderThread(group, "OutputReader", stdin, fOutput); - fErrorReader= new ReaderThread(group, "ErrorReader", stderr, fError); - - fOutputReader.start(); - fErrorReader.start(); - } - - public void runBlocking() { - runNonBlocking(); - - boolean finished = false; - while (!finished) { - try { - fProcess.waitFor(); - } catch (InterruptedException e) { - //System.err.println("Closure exception " +e); - } - try { - fProcess.exitValue(); - finished = true; - } catch (IllegalThreadStateException e) { - //System.err.println("Closure exception " +e); - } - } - - // @@@FIXME: Windows 2000 is screwed; double-check using output threads - if (!fOutputReader.finished()) { - fOutputReader.waitFor(); - } - - if (!fErrorReader.finished()) { - fErrorReader.waitFor(); - } - - // it seems that thread termination and stream closing is working without - // any help - fProcess= null; - fOutputReader= null; - fErrorReader= null; - } - - - public boolean isAlive() { - if (fProcess != null) { - if (fOutputReader.isAlive() || fErrorReader.isAlive()) { - return true; - } else { - fProcess= null; - fOutputReader= null; - fErrorReader= null; - } - } - return false; - } - - /** - * Forces the termination the launched process - */ - public void terminate() { - if (fProcess != null) { - fProcess.destroy(); - fProcess= null; - } - } -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/make/MakeBuilder.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/make/MakeBuilder.java deleted file mode 100644 index 6eda8ba3462..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/make/MakeBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * (c) Copyright QNX Software System Ltd. 2002. - * All Rights Reserved. - */ -package org.eclipse.cdt.internal.core.make; - -import org.eclipse.cdt.core.AbstractCExtension; -import org.eclipse.cdt.core.CCorePlugin; -import org.eclipse.core.runtime.IPath; - -public class MakeBuilder extends AbstractCExtension /*implements ICBuilder */ { - - public IPath[] getIncludePaths() { - return new IPath[0]; - } - - public void setIncludePaths(IPath[] incPaths) { - } - - public IPath[] getLibraryPaths() { - return new IPath[0]; - } - - public void setLibraryPaths(IPath[] libPaths) { - } - - public String[] getLibraries() { - return new String[0]; - } - - public void setLibraries(String[] libs) { - } - -// public IOptimization getOptimization() { -// return null; -// } -// -// public IProject[] build(CIncrementalBuilder cbuilder) { -// ICExtensionReference ref = getExtensionReference(); -// System.out.println("MakeBuilder!!!!\n Command is:" + ref.getExtensionData("command")); -// return null; -// } -// -// public void setOptimization(IOptimization o) { -// } - - public String getID() { - return CCorePlugin.PLUGIN_ID + ".makeBuilder"; - } - - -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/make/MakeProject.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/make/MakeProject.java deleted file mode 100644 index f2e0e09ae0d..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/make/MakeProject.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * (c) Copyright QNX Software System Ltd. 2002. - * All Rights Reserved. - */ -package org.eclipse.cdt.internal.core.make; - -import org.eclipse.cdt.core.CCorePlugin; -import org.eclipse.cdt.core.ICDescriptor; -import org.eclipse.cdt.core.ICExtensionReference; -import org.eclipse.cdt.core.ICOwner; -import org.eclipse.core.runtime.CoreException; - -public class MakeProject implements ICOwner { - - public void configure(ICDescriptor cproject) throws CoreException { - cproject.remove(CCorePlugin.BUILDER_MODEL_ID); - ICExtensionReference ext = cproject.create(CCorePlugin.BUILDER_MODEL_ID, CCorePlugin.PLUGIN_ID + ".makeBuilder"); - ext.setExtensionData("command", "make"); - } - - public void update(ICDescriptor cproject, String extensionID) throws CoreException { - if ( extensionID.equals(CCorePlugin.BUILDER_MODEL_ID ) ) { - ICExtensionReference ext = cproject.create(CCorePlugin.BUILDER_MODEL_ID, CCorePlugin.PLUGIN_ID + ".makeBuilder"); - ext.setExtensionData("command", "make"); - } - } -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/GASErrorParser.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/GASErrorParser.java deleted file mode 100644 index 8d5b5fc8b8a..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/GASErrorParser.java +++ /dev/null @@ -1,56 +0,0 @@ -package org.eclipse.cdt.internal.errorparsers; - -/* - * (c) Copyright IBM Corp. 2000, 2001. - * All Rights Reserved. - */ - -import org.eclipse.cdt.core.ErrorParserManager; -import org.eclipse.cdt.core.IErrorParser; -import org.eclipse.cdt.core.IMarkerGenerator; -import org.eclipse.core.resources.IFile; - -public class GASErrorParser implements IErrorParser { - - public boolean processLine(String line, ErrorParserManager eoParser) { - // cc -c x.c - // Only when the previous line sasys Assembler - // /tmp/cc8EXnKk.s: Assembler messages: - // /tmp/cc8EXnKk.s:46: Error: no such 386 instruction: `b' - try { - String previous = eoParser.getPreviousLine(); - String fileName = ""; - IFile file = null; - int num = 0; - int severity = IMarkerGenerator.SEVERITY_ERROR_RESOURCE; - String desc = line; - if (previous != null && previous.startsWith("Assembler")) { - if (! line.startsWith("FATAL")) { - int firstColon= line.indexOf(':'); - if (firstColon != -1) { - fileName = line.substring(0, firstColon); - desc = line.substring(firstColon + 1); - int secondColon= line.indexOf(':', firstColon + 1); - if (secondColon != -1) { - String lineNumber = line.substring(firstColon + 1, secondColon); - try { - num = Integer.parseInt(lineNumber); - } catch (NumberFormatException e) { - } - if (num != 0) { - desc = line.substring(secondColon + 2); - } - } - file = eoParser.findFilePath(fileName); - } - } - if (file == null) { - desc = fileName + " " + desc; - } - eoParser.generateMarker(file, num, desc, severity, null); - } - } catch (IndexOutOfBoundsException e) { - } - return false; - } -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/GCCErrorParser.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/GCCErrorParser.java deleted file mode 100644 index 03cfe1a6638..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/GCCErrorParser.java +++ /dev/null @@ -1,213 +0,0 @@ -package org.eclipse.cdt.internal.errorparsers; - -/* - * (c) Copyright IBM Corp. 2000, 2001. - * All Rights Reserved. - */ - -import org.eclipse.cdt.core.ErrorParserManager; -import org.eclipse.cdt.core.IErrorParser; -import org.eclipse.cdt.core.IMarkerGenerator; -import org.eclipse.core.resources.IFile; - -public class GCCErrorParser implements IErrorParser { - - public boolean processLine(String line, ErrorParserManager eoParser) { - // Known patterns. - // (a) - // filename:lineno: description - // - // (b) - // filename:lineno:column: description - // - // (b) - // In file included from b.h:2, - // from a.h:3, - // from hello.c:3: - // c.h:2:15: missing ')' in macro parameter list - // - // (c) - // h.c: In function `main': - // h.c:41: `foo' undeclared (first use in this function) - // h.c:41: (Each undeclared identifier is reported only once - // h.c:41: for each function it appears in.) - // h.c:41: parse error before `char' - // h.c:75: `p' undeclared (first use in this function) - - int firstColon = line.indexOf(':'); - - /* Guard against drive in Windows platform. */ - if (firstColon == 1) { - try { - String os = System.getProperty("os.name"); - if (os != null && os.startsWith("Win")) { - try { - if (Character.isLetter(line.charAt(0))) { - firstColon = line.indexOf(':', 2); - } - } catch (StringIndexOutOfBoundsException e) { - } - } - } catch (SecurityException e) { - } - } - - if (firstColon != -1) { - try { - int secondColon= line.indexOf(':', firstColon + 1); - if (secondColon != -1) { - String fileName = line.substring(0, firstColon); - String lineNumber = line.substring(firstColon + 1, secondColon); - String varName = null; - String desc = line.substring(secondColon + 1).trim(); - int severity = IMarkerGenerator.SEVERITY_ERROR_RESOURCE; - int num = -1; - int col = -1; - - try { - num = Integer.parseInt(lineNumber); - } catch (NumberFormatException e) { - } - - if (num == -1) { - // Bail out not recognizable format. i.e. no line numbers - return false; - } else { - /* Then check for the column */ - int thirdColon= line.indexOf(':', secondColon + 1); - if (thirdColon != -1) { - String columnNumber = line.substring(secondColon + 1, thirdColon); - try { - col = Integer.parseInt(columnNumber); - } catch (NumberFormatException e) { - } - } - if (col != -1) { - desc = line.substring(thirdColon + 1).trim(); - } - } - - // gnu c: filename:no: (Each undeclared identifier is reported - // only once. filename:no: for each function it appears in.) - if (desc.startsWith ("(Each undeclared")) { - // Do nothing. - return false; - } else { - String previous = eoParser.getPreviousLine(); - if (desc.endsWith(")") - && previous.indexOf("(Each undeclared") >= 0 ) { - // Do nothing. - return false; - } - } - - /* See if we can get a var name - * Look for: - * 'foo' undeclared - * 'foo' defined but not used - * conflicting types for 'foo' - * - */ - int s; - if((s = desc.indexOf("\' undeclared")) != -1) { - int p = desc.indexOf("`"); - if (p != -1) { - varName = desc.substring(p+1, s); - //System.out.println("undex varName "+ varName); - } - } else if((s = desc.indexOf("\' defined but not used")) != -1) { - int p = desc.indexOf("`"); - if (p != -1) { - varName = desc.substring(p+1, s); - //System.out.println("unused varName "+ varName); - } - } else if((s = desc.indexOf("conflicting types for `")) != -1) { - int p = desc.indexOf("\'", s); - if (p != -1) { - varName = desc.substring(desc.indexOf("`") + 1, p); - //System.out.println("confl varName "+ varName); - } - } else if((s = desc.indexOf("previous declaration of `")) != -1) { - int p = desc.indexOf("\'", s); - if (p != -1) { - varName = desc.substring(desc.indexOf("`") + 1, p); - //System.out.println("prev varName "+ varName); - } - } else if ((s = desc.indexOf("parse error before ")) != -1) { - int p = desc.indexOf("\'", s); - if (p != -1) { - varName = desc.substring(desc.indexOf("`") + 1, p); - //System.out.println("prev varName "+ varName); - } - } - - if (eoParser.getScratchBuffer().startsWith("In file included from ")) { - if (line.startsWith("from ")) { - eoParser.appendToScratchBuffer(line); - return false; - } - String buffer = eoParser.getScratchBuffer(); - eoParser.clearScratchBuffer(); - int from = -1; - while ((from = buffer.lastIndexOf("from ")) != -1) { - String buf = buffer.substring(from + 5); - buffer = buffer.substring(0, from); - if (buf.endsWith(",")) { - int coma = buf.lastIndexOf(','); - StringBuffer b = new StringBuffer(buf); - b.setCharAt(coma, ':'); - b.append(' ').append(buffer).append(" from ").append(line); - buf = b.toString(); - } else { - buf = buf + ' ' + buffer + " from " + line; - } - processLine(buf, eoParser); - } - } - - IFile file = eoParser.findFilePath(fileName); - - if (file == null) { - // Parse the entire project. - file = eoParser.findFileName(fileName); - if (file != null) { - // If there is a conflict set the error on the project. - if (eoParser.isConflictingName(fileName)) { - desc = "*" + desc; - file = null; - } - } - } - - if (desc.startsWith("warning") || desc.startsWith("Warning")) { - severity = IMarkerGenerator.SEVERITY_WARNING; - // Remove the warning. - String d = desc.substring("warning".length()).trim(); - if (d.startsWith(":")) { - d = d.substring(1).trim(); - } - - if (d.length() != 0) { - desc = d; - } - } - - // Display the fileName. - if (file == null) { - desc = desc +"[" + fileName + "]"; - } - eoParser.generateMarker(file, num, desc, severity, varName); - } else { - if (line.startsWith("In file included from ")) { - eoParser.appendToScratchBuffer(line); - } else if (line.startsWith("from ")) { - eoParser.appendToScratchBuffer(line); - } - } - } catch (StringIndexOutOfBoundsException e) { - } catch (NumberFormatException e) { - } - } - return false; - } -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/GLDErrorParser.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/GLDErrorParser.java deleted file mode 100644 index 4ffd9c94ae0..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/GLDErrorParser.java +++ /dev/null @@ -1,59 +0,0 @@ -package org.eclipse.cdt.internal.errorparsers; - -/* - * (c) Copyright IBM Corp. 2000, 2001. - * All Rights Reserved. - */ - -import org.eclipse.cdt.core.ErrorParserManager; -import org.eclipse.cdt.core.IErrorParser; -import org.eclipse.cdt.core.IMarkerGenerator; -import org.eclipse.core.resources.IFile; - -public class GLDErrorParser implements IErrorParser { - - public boolean processLine(String line, ErrorParserManager eoParser) { - // binutils linker error: - // 1- an error when trying to link - // tempfile: In function `function': - // tempfile(.text+0xhex): undefined reference to `symbol' - // 2- - // Something went wrong check if it is "ld" the linkeer bay cheching - // the last letter for "ld" - int firstColon= line.indexOf(':'); - if (firstColon != -1) { - String buf= line.substring(0, firstColon); - String desc= line.substring(firstColon + 1); - int firstPara= buf.indexOf('('); - int secondPara= buf.indexOf(')'); - if (firstPara >= 0 && secondPara >= 0) { - String fileName = buf.substring(0, firstPara); - String previous = eoParser.getPreviousLine(); - if (previous == null) - previous = ""; - int colon = previous.indexOf(':'); - if (colon != -1) { - previous = previous.substring(colon + 1); - } - - desc = "*" + previous + " " + desc; - // Since we do not have any way to know the name of the C file - // where the undefined reference is refering we set the error - // on the project. - IFile file = eoParser.findFilePath(fileName); - if (file == null) { - desc = fileName + " " + desc; - } - eoParser.generateMarker(file, 0, desc, IMarkerGenerator.SEVERITY_ERROR_RESOURCE, null); - } else if (buf.endsWith("ld")){ - String fileName = line.substring(0, firstColon); - IFile file = eoParser.findFilePath(fileName); - if (file == null) { - desc = fileName + " " + desc; - } - eoParser.generateMarker(file, 0, desc, IMarkerGenerator.SEVERITY_ERROR_RESOURCE, null); - } - } - return false; - } -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/MakeErrorParser.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/MakeErrorParser.java deleted file mode 100644 index ea68180ccfd..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/MakeErrorParser.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.eclipse.cdt.internal.errorparsers; - -/* - * (c) Copyright IBM Corp. 2000, 2001. - * All Rights Reserved. - */ - -import org.eclipse.cdt.core.ErrorParserManager; -import org.eclipse.cdt.core.IErrorParser; -import org.eclipse.cdt.core.IMarkerGenerator; -import org.eclipse.core.runtime.Path; - -public class MakeErrorParser implements IErrorParser { - - public MakeErrorParser() { - } - - static int getDirectoryLevel(String line) { - int s = line.indexOf('['); - if (s != -1) { - int e = line.indexOf(']'); - String number = line.substring(s + 1, e); - int num= Integer.parseInt(number); - return num; - } - return 0; - } - - public boolean processLine(String line, ErrorParserManager eoParser) { - // make\[[0-9]*\]: error_desc - int firstColon= line.indexOf(':'); - if (firstColon != -1 && line.startsWith("make")) { - boolean enter = false; - String msg= line.substring(firstColon + 1); - if ((enter = msg.startsWith(" Entering directory")) || - (msg.startsWith(" Leaving directory"))) { - int s = msg.indexOf('`'); - int e = msg.indexOf('\''); - if (s != -1 && e != -1) { - String dir = msg.substring(s+1, e); - if (enter) { - /* Sometimes make screws up the output, so - * "leave" events can't be seen. Double-check level - * here. - */ - int level = getDirectoryLevel(line); - int parseLevel = eoParser.getDirectoryLevel(); - for (; level < parseLevel; level++) { - eoParser.popDirectory(); - } - eoParser.pushDirectory(new Path(dir)); - } else { - eoParser.popDirectory(); - /* Could check to see if they match */ - } - } - } else if (msg.startsWith(" ***")) { - eoParser.generateMarker(null, -1, msg, IMarkerGenerator.SEVERITY_ERROR_BUILD, null); - } - } - return false; - } -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/VCErrorParser.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/VCErrorParser.java deleted file mode 100644 index 9680e5e7c37..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/VCErrorParser.java +++ /dev/null @@ -1,54 +0,0 @@ -package org.eclipse.cdt.internal.errorparsers; - -/* - * (c) Copyright IBM Corp. 2000, 2001. - * All Rights Reserved. - */ - -import java.io.File; -import java.util.StringTokenizer; - -import org.eclipse.cdt.core.ErrorParserManager; -import org.eclipse.cdt.core.IErrorParser; -import org.eclipse.cdt.core.IMarkerGenerator; -import org.eclipse.core.resources.IFile; - -public class VCErrorParser implements IErrorParser { - - public boolean processLine(String line, ErrorParserManager eoParser) { - // msdev: filname(linenumber) : error/warning error_desc - int firstColon= line.indexOf(':'); - if (firstColon != -1) { - String firstPart= line.substring(0, firstColon); - StringTokenizer tok= new StringTokenizer(firstPart, "()"); - if (tok.hasMoreTokens()) { - String fileName= tok.nextToken(); - if (tok.hasMoreTokens()) { - String lineNumber= tok.nextToken(); - try { - int num= Integer.parseInt(lineNumber); - int i= fileName.lastIndexOf(File.separatorChar); - if (i != -1) { - fileName= fileName.substring(i + 1); - } - IFile file= eoParser.findFileName(fileName); - if (file != null || eoParser.isConflictingName(fileName)) { - String desc= line.substring(firstColon + 1).trim(); - if (file == null) { - desc= "*" + desc; - } - int severity= IMarkerGenerator.SEVERITY_ERROR_RESOURCE; - if (desc.startsWith("warning")) { - severity= IMarkerGenerator.SEVERITY_WARNING; - } - eoParser.generateMarker(file, num, desc, severity, null); - return true; - } - } catch (NumberFormatException e) { - } - } - } - } - return false; - } -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/formatter/CCodeFormatter.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/formatter/CCodeFormatter.java deleted file mode 100644 index 0e9022d85ba..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/formatter/CCodeFormatter.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.eclipse.cdt.internal.formatter; - -/* - * (c) Copyright QNX Software Systems Ltd. 2002. - * All Rights Reserved. - */ - -public class CCodeFormatter { - //public FormatterOptions options; - - public CCodeFormatter() { - } - -// CCodeFormatter(FormatterOptions options) { -// } - - public String formatSourceString(String content) { - return content; - } - - -} - - diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/ASCII_CharStream.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/ASCII_CharStream.java deleted file mode 100644 index d844e6171c4..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/ASCII_CharStream.java +++ /dev/null @@ -1,414 +0,0 @@ -/* Generated By:JavaCC: Do not edit this line. ASCII_CharStream.java Version 0.7pre6 */ -package org.eclipse.cdt.internal.parser; - -/* - * (c) Copyright QNX Software Systems Ltd. 2002. - * All Rights Reserved. - */ - -/* fixed ASCII_CharStream: tab is counting only one character for column */ - - -/** - * An implementation of interface CharStream, where the stream is assumed to - * contain only ASCII characters (without unicode processing). - */ -public final class ASCII_CharStream { - public static final boolean staticFlag= true; - static int bufsize; - static int available; - static int tokenBegin; - static public int bufpos= -1; - static private int bufline[]; - static private int bufcolumn[]; - - - static private int column= 0; - static private int line= 1; - - - static private boolean prevCharIsCR= false; - static private boolean prevCharIsLF= false; - - - static private java.io.Reader inputStream; - - - static private char[] buffer; - static private int maxNextCharInd= 0; - static private int inBuf= 0; - - - static private final void ExpandBuff(boolean wrapAround) { - char[] newbuffer= new char[bufsize + 2048]; - int newbufline[]= new int[bufsize + 2048]; - int newbufcolumn[]= new int[bufsize + 2048]; - - - try { - if (wrapAround) { - System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); - System.arraycopy(buffer, 0, newbuffer, bufsize - tokenBegin, bufpos); - buffer= newbuffer; - - - System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); - System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos); - bufline= newbufline; - - - System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); - System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize - tokenBegin, bufpos); - bufcolumn= newbufcolumn; - - - maxNextCharInd= (bufpos += (bufsize - tokenBegin)); - } else { - System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); - buffer= newbuffer; - - - System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); - bufline= newbufline; - - - System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); - bufcolumn= newbufcolumn; - - - maxNextCharInd= (bufpos -= tokenBegin); - } - } catch (Throwable t) { - throw new Error(t.getMessage()); - } - - - bufsize += 2048; - available= bufsize; - tokenBegin= 0; - } - - - static private final void FillBuff() throws java.io.IOException { - if (maxNextCharInd == available) { - if (available == bufsize) { - if (tokenBegin > 2048) { - bufpos= maxNextCharInd= 0; - available= tokenBegin; - } else - if (tokenBegin < 0) - bufpos= maxNextCharInd= 0; - else - ExpandBuff(false); - } else - if (available > tokenBegin) - available= bufsize; - else - if ((tokenBegin - available) < 2048) - ExpandBuff(true); - else - available= tokenBegin; - } - - - int i; - try { - if ((i= inputStream.read(buffer, maxNextCharInd, available - maxNextCharInd)) == -1) { - inputStream.close(); - throw new java.io.IOException(); - } else { - maxNextCharInd += i; - } - return; - } catch (java.io.IOException e) { - --bufpos; - backup(0); - if (tokenBegin == -1) - tokenBegin= bufpos; - throw e; - } - } - - - static public final char BeginToken() throws java.io.IOException { - tokenBegin= -1; - char c= readChar(); - tokenBegin= bufpos; - - - return c; - } - - - static private final void UpdateLineColumn(char c) { - column++; - - - if (prevCharIsLF) { - prevCharIsLF= false; - line += (column= 1); - } else - if (prevCharIsCR) { - prevCharIsCR= false; - if (c == '\n') { - prevCharIsLF= true; - } else - line += (column= 1); - } - - - switch (c) { - case '\r' : - prevCharIsCR= true; - break; - case '\n' : - prevCharIsLF= true; - break; - default : - break; - } - - - bufline[bufpos]= line; - bufcolumn[bufpos]= column; - } - - - static public final char readChar() throws java.io.IOException { - if (inBuf > 0) { - --inBuf; - return (char) ((char) 0xff & buffer[(bufpos == bufsize - 1) ? (bufpos= 0) : ++bufpos]); - } - - - if (++bufpos >= maxNextCharInd) { - FillBuff(); - } - - - char c= (char) ((char) 0xff & buffer[bufpos]); - - // Remove '\' line continuations - if(c == '\\') { - int pos = bufpos+1; - if((bufpos+1) >= maxNextCharInd) { - // Safe to do so here, we already have the character - FillBuff(); - pos = bufpos; - } - char n = (char) ((char) 0xff & buffer[pos]); - if((n == '\n') || (n == '\r')) { - UpdateLineColumn(n); - // We eat the \\\n combo. - bufpos++; - if(n == '\r') { - while((c = readChar()) == '\n'); - } - } else { - UpdateLineColumn(c); - } - } else { - UpdateLineColumn(c); - } - return (c); - } - - - /** - * @deprecated - * @see #getEndColumn - */ - - - static public final int getColumn() { - return bufcolumn[bufpos]; - } - - - /** - * @deprecated - * @see #getEndLine - */ - - - static public final int getLine() { - return bufline[bufpos]; - } - - - static public final int getEndColumn() { - return bufcolumn[bufpos]; - } - - - static public final int getEndLine() { - return bufline[bufpos]; - } - - - static public final int getBeginColumn() { - return bufcolumn[tokenBegin]; - } - - - static public final int getBeginLine() { - return bufline[tokenBegin]; - } - - - static public final void backup(int amount) { - - - inBuf += amount; - if ((bufpos -= amount) < 0) - bufpos += bufsize; - } - - - public ASCII_CharStream(java.io.Reader dstream, int startline, int startcolumn, int buffersize) { - if (inputStream != null) - throw new Error( - "\n ERROR: Second call to the constructor of a static ASCII_CharStream. You must\n" - + " either use ReInit() or set the JavaCC option STATIC to false\n" - + " during the generation of this class."); - inputStream= dstream; - line= startline; - column= startcolumn - 1; - - - available= bufsize= buffersize; - buffer= new char[buffersize]; - bufline= new int[buffersize]; - bufcolumn= new int[buffersize]; - } - - - public ASCII_CharStream(java.io.Reader dstream, int startline, int startcolumn) { - this(dstream, startline, startcolumn, 4096); - } - - - static public void ReInit(java.io.Reader dstream, int startline, int startcolumn, int buffersize) { - inputStream= dstream; - line= startline; - column= startcolumn - 1; - - - if (buffer == null || buffersize != buffer.length) { - available= bufsize= buffersize; - buffer= new char[buffersize]; - bufline= new int[buffersize]; - bufcolumn= new int[buffersize]; - } - prevCharIsLF= prevCharIsCR= false; - tokenBegin= inBuf= maxNextCharInd= 0; - bufpos= -1; - } - - - static public void ReInit(java.io.Reader dstream, int startline, int startcolumn) { - ReInit(dstream, startline, startcolumn, 4096); - } - - - public ASCII_CharStream(java.io.InputStream dstream, int startline, int startcolumn, int buffersize) { - this(new java.io.InputStreamReader(dstream), startline, startcolumn, 4096); - } - - - public ASCII_CharStream(java.io.InputStream dstream, int startline, int startcolumn) { - this(dstream, startline, startcolumn, 4096); - } - - - static public void ReInit(java.io.InputStream dstream, int startline, int startcolumn, int buffersize) { - ReInit(new java.io.InputStreamReader(dstream), startline, startcolumn, 4096); - } - - - static public void ReInit(java.io.InputStream dstream, int startline, int startcolumn) { - ReInit(dstream, startline, startcolumn, 4096); - } - - - static public final String GetImage() { - if (bufpos >= tokenBegin) - return new String(buffer, tokenBegin, bufpos - tokenBegin + 1); - else - return new String(buffer, tokenBegin, bufsize - tokenBegin) + new String(buffer, 0, bufpos + 1); - } - - - static public final char[] GetSuffix(int len) { - char[] ret= new char[len]; - - - if ((bufpos + 1) >= len) - System.arraycopy(buffer, bufpos - len + 1, ret, 0, len); - else { - System.arraycopy(buffer, bufsize - (len - bufpos - 1), ret, 0, len - bufpos - 1); - System.arraycopy(buffer, 0, ret, len - bufpos - 1, bufpos + 1); - } - - - return ret; - } - - - static public void Done() { - buffer= null; - bufline= null; - bufcolumn= null; - } - - - /** - * Method to adjust line and column numbers for the start of a token.<BR> - */ - static public void adjustBeginLineColumn(int newLine, int newCol) { - int start= tokenBegin; - int len; - - - if (bufpos >= tokenBegin) { - len= bufpos - tokenBegin + inBuf + 1; - } else { - len= bufsize - tokenBegin + bufpos + 1 + inBuf; - } - - - int i= 0, j= 0, k= 0; - int nextColDiff= 0, columnDiff= 0; - - - while (i < len && bufline[j= start % bufsize] == bufline[k= ++start % bufsize]) { - bufline[j]= newLine; - nextColDiff= columnDiff + bufcolumn[k] - bufcolumn[j]; - bufcolumn[j]= newCol + columnDiff; - columnDiff= nextColDiff; - i++; - } - - - if (i < len) { - bufline[j]= newLine++; - bufcolumn[j]= newCol + columnDiff; - - - while (i++ < len) { - if (bufline[j= start % bufsize] != bufline[++start % bufsize]) - bufline[j]= newLine++; - else - bufline[j]= newLine; - } - } - - - line= bufline[j]; - column= bufcolumn[j]; - } - - -} - - diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/CStructurizer.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/CStructurizer.java deleted file mode 100644 index 260c9b3276e..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/CStructurizer.java +++ /dev/null @@ -1,46 +0,0 @@ -package org.eclipse.cdt.internal.parser; - -/* - * (c) Copyright IBM Corp. 2000, 2001. - * All Rights Reserved. - */ - -import java.io.IOException; -import java.io.InputStream; - -import org.eclipse.cdt.internal.parser.generated.CPPParser; -import org.eclipse.cdt.internal.parser.generated.ParseException; -import org.eclipse.cdt.internal.parser.generated.TokenMgrError; - - -public class CStructurizer { - - private static CStructurizer fgStructurizerSingelton= new CStructurizer(); - - public static CStructurizer getCStructurizer() { - return fgStructurizerSingelton; - } - - private CPPParser fParser; - private CStructurizer() { - } - - public synchronized void parse(IStructurizerCallback callback, InputStream inputStream) throws IOException { - LinePositionInputStream lpiStream= new LinePositionInputStream(inputStream); - try { - ParserCallback cb= new ParserCallback(lpiStream, callback); - if (fParser == null) { - fParser= new CPPParser(lpiStream); - } else { - fParser.ReInit(lpiStream); - } - fParser.setParserCallback(cb); - - fParser.translation_unit(); - } catch (TokenMgrError error) { - callback.reportError(error); - } catch (ParseException e) { - callback.reportError(e); - } - } -}
\ No newline at end of file diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/IStructurizerCallback.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/IStructurizerCallback.java deleted file mode 100644 index f5d540eddf4..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/IStructurizerCallback.java +++ /dev/null @@ -1,26 +0,0 @@ -package org.eclipse.cdt.internal.parser; - -/* - * (c) Copyright IBM Corp. 2000, 2001. - * All Rights Reserved. - */ - -public interface IStructurizerCallback { - - void includeDecl(String name, int startPos, int endPos, int startLine, int endLine); - - void defineDecl(String name, int startPos, int endPos, int startLine, int endLine); - - void functionDeclBegin(String name, int nameStartPos, int nameEndPos, int declStartPos, int startLine, int kind, int modifiers); - void functionDeclEnd(int declEndPos, int endLine, boolean prototype); - - void fieldDecl(String name, int nameStartPos, int nameEndPos, int declStartPos, int declEndPos, int startLine, int endLine, int modifiers); - - void structDeclBegin(String name, int kind, int nameStartPos, int nameEndPos, int declStartPos, int startLine, int modifiers); - void structDeclEnd(int declEndPos, int endLine); - - void superDecl(String name); - - void reportError(Throwable throwable); - -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/LinePositionInputStream.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/LinePositionInputStream.java deleted file mode 100644 index 4f2e495225a..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/LinePositionInputStream.java +++ /dev/null @@ -1,68 +0,0 @@ -package org.eclipse.cdt.internal.parser; - -/* - * (c) Copyright IBM Corp. 2000, 2001. - * All Rights Reserved. - */ - -import java.io.BufferedInputStream; -import java.io.IOException; -import java.io.InputStream; -import java.util.ArrayList; -import java.util.List; - - -/** - * An input stream that only observes the stream and remembers the position of new - * lines - */ -public class LinePositionInputStream extends InputStream { - - private List fLinePositions; - private BufferedInputStream buffered; - - private boolean fRRead; - private boolean fAddLine; - - private int fCurrPosition; - - public LinePositionInputStream(InputStream inputStream) throws IOException { - buffered = new BufferedInputStream(inputStream); - fLinePositions= new ArrayList(30); - fAddLine= true; - fRRead= false; - fCurrPosition= 0; - } - - public int read() throws IOException { - - int ch = buffered.read(); - if (fRRead && ch == '\n') { - fRRead= false; - } else { - if (fAddLine) { - fLinePositions.add(new Integer(fCurrPosition)); - fAddLine= false; - } - - if (ch == '\n' || ch == '\r') { - fAddLine= true; - fRRead= (ch == '\r'); - } else { - fRRead= false; - } - } - fCurrPosition++; - return ch; - } - - public int getPosition(int line, int col) { - line--; - col--; - if (line < fLinePositions.size()) { - Integer lineStart= (Integer)fLinePositions.get(line); - return lineStart.intValue() + col; - } - return -1; - } -}
\ No newline at end of file diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/ParserCallback.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/ParserCallback.java deleted file mode 100644 index 19248c9072c..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/ParserCallback.java +++ /dev/null @@ -1,135 +0,0 @@ -package org.eclipse.cdt.internal.parser; - -/* - * (c) Copyright IBM Corp. 2000, 2001. - * All Rights Reserved. - */ - -import org.eclipse.cdt.core.model.ICElement; -import org.eclipse.cdt.internal.parser.generated.Token; - -public final class ParserCallback { - - public final static int K_CLASS= ICElement.C_CLASS; - public final static int K_STRUCT= ICElement.C_STRUCT; - public final static int K_UNION= ICElement.C_UNION; - public final static int K_FUNCTION= ICElement.C_FUNCTION; - public final static int K_DECL= ICElement.C_FUNCTION_DECLARATION; - public final static int K_CTOR= ICElement.C_CLASS_CTOR; - public final static int K_DTOR= ICElement.C_CLASS_DTOR; - public final static int K_STATIC= ICElement.C_STORAGE_STATIC; - public final static int K_EXTERN= ICElement.C_STORAGE_EXTERN; - - private LinePositionInputStream fLinePositions; - private IStructurizerCallback fCallback; - private int fStorage; - - public ParserCallback(LinePositionInputStream lpiStream, IStructurizerCallback callback) { - fLinePositions= lpiStream; - fCallback= callback; - } - - public void functionDeclBegin(Token nameToken, Token firstToken, int kind) { - int declStart= fLinePositions.getPosition(firstToken.beginLine, firstToken.beginColumn); - int nameStart= fLinePositions.getPosition(nameToken.beginLine, nameToken.beginColumn); - int nameEnd= fLinePositions.getPosition(nameToken.endLine, nameToken.endColumn); - - fCallback.functionDeclBegin(nameToken.image, nameStart, nameEnd, declStart, - firstToken.beginLine, kind, fStorage); - fStorage = 0; - } - - public void functionDeclEnd(Token lastToken) { - int declEnd= fLinePositions.getPosition(lastToken.endLine, lastToken.endColumn); - boolean prototype = ";".equals(lastToken.image); - - fCallback.functionDeclEnd(declEnd, lastToken.endLine, prototype); - } - - public void structDeclBegin(Token nameToken, int kind, Token firstToken) { - int declStart= fLinePositions.getPosition(firstToken.beginLine, firstToken.beginColumn); - int nameStart= fLinePositions.getPosition(nameToken.beginLine, nameToken.beginColumn); - int nameEnd= fLinePositions.getPosition(nameToken.endLine, nameToken.endColumn); - - fCallback.structDeclBegin(nameToken.image, kind, nameStart, nameEnd, declStart, firstToken.beginLine, fStorage); - fStorage = 0; - } - - public void structDeclEnd(Token lastToken) { - int declEnd= fLinePositions.getPosition(lastToken.endLine, lastToken.endColumn); - - fCallback.structDeclEnd(declEnd, lastToken.endLine); - } - - public void fieldDecl(Token nameToken, Token firstToken, Token lastToken) { - int declStart= fLinePositions.getPosition(firstToken.beginLine, firstToken.beginColumn); - int declEnd= fLinePositions.getPosition(lastToken.endLine, lastToken.endColumn); - int nameStart= fLinePositions.getPosition(nameToken.beginLine, nameToken.beginColumn); - int nameEnd= fLinePositions.getPosition(nameToken.endLine, nameToken.endColumn); - - fCallback.fieldDecl(nameToken.image, nameStart, nameEnd, declStart, declEnd, - firstToken.beginLine, lastToken.endLine, fStorage); - fStorage = 0; - } - - public void superDecl(String name) { - fCallback.superDecl(name); - } - - public void includeDecl(String name, int line, int column) { - int start= fLinePositions.getPosition(line, column); - int end= fLinePositions.getPosition(line, column + name.length()) - 1; - fCallback.includeDecl(name, start, end, line, line); - } - - public void defineDecl(String name, int line, int column) { - int start= fLinePositions.getPosition(line, column); - int end= fLinePositions.getPosition(line, column + name.length()) - 1; - fCallback.defineDecl(name, start, end, line, line); - } - - public void storageSpecifier(int kind) { - fStorage |= kind; - } - - public boolean isStorageClassSpecifier(Token token) { - String str= token.image; - if (str != null) { - if ("JNIEXPORT".equals(str)) { - return true; - } - if (str.startsWith("__declspec")) { - return true; - } - if ("JNICALL".equals(str)) { - return true; - } - } - return false; - } - - public boolean overreadBlocks() { - return true; - } - - // ---- util functions ----- - public static Token createToken(String name, Token positions) { - Token res= new Token(); - res.image= name; - res.beginColumn= positions.beginColumn; - res.beginLine= positions.beginLine; - res.endColumn= positions.endColumn; - res.endLine= positions.endLine; - return res; - } - - public static Token createToken(String name, Token positionBegin, Token positionEnd) { - Token res= new Token(); - res.image= name; - res.beginColumn= positionBegin.beginColumn; - res.beginLine= positionBegin.beginLine; - res.endColumn= positionEnd.endColumn; - res.endLine= positionEnd.endLine; - return res; - } -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/RunParserGenerator.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/RunParserGenerator.java deleted file mode 100644 index 699d2bf8527..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/RunParserGenerator.java +++ /dev/null @@ -1,39 +0,0 @@ -package org.eclipse.cdt.internal.parser; - -/* - * (c) Copyright IBM Corp. 2000, 2001. - * All Rights Reserved. - */ - -/** - * generates the parser from the CPLUSPLUS.jj file. after running, import the sources - * from the given temporary output directory - * needs javacc in the class path (www.metamata.com) - * version used for this release 1.2 - */ -public class RunParserGenerator { - - private static final String tempOutputDir="c:\\temp\\jccout"; - - - public static void main(String[] args) { - /* URL url= (new RunParserGenerator()).getClass().getResource("/com/ibm/cdt/parser/generated/CPLUSPLUS.jj"); - File file= new File(url.getFile()); - - String[] arguments= new String[] { - "-OUTPUT_DIRECTORY=" + tempOutputDir, - file.getPath() - }; - try { - System.out.println("start javacc..."); - COM.sun.labs.javacc.Main.main(arguments); - } catch (Exception e) { - e.printStackTrace(); - } - System.out.println("javacc finished..."); */ - } - - - - -}
\ No newline at end of file diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/generated/CPPParser.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/generated/CPPParser.java deleted file mode 100644 index e9d42f02f6b..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/generated/CPPParser.java +++ /dev/null @@ -1,10090 +0,0 @@ -/* Generated By:JavaCC: Do not edit this line. CPPParser.java */ -package org.eclipse.cdt.internal.parser.generated; - -import org.eclipse.cdt.internal.parser.ParserCallback; - -// redirect to a fixed class -import org.eclipse.cdt.internal.parser.ASCII_CharStream; - -public final class CPPParser implements CPPParserConstants { - - private static String vers = "0.1"; - private static String id = "C++ Parser"; - - static ParserCallback fgCallback; - - public static void setParserCallback(ParserCallback cb) { - fgCallback= cb; - } - - - /* - * Methods used in semantics predicates. - */ - /** - * Reads a fully qualified name (since it is used during lookahead, we - * cannot use token. We have to explicitly use getToken). - */ - static String getFullyScopedName() - { - Token t = getToken(1); - - if (t.kind != ID && t.kind != SCOPE) - return null; - - StringBuffer s = new StringBuffer(); - - int i; - if (t.kind != SCOPE) - { - s.append(t.image); - t = getToken(2); - i = 3; - } - else - i = 2; - - while (t.kind == SCOPE) - { - s.append(t.image); - s.append((t = getToken(i++)).image); - t = getToken(i++); - } - - return s.toString(); - } - - static boolean isNotNull(Object obj) { - return obj != null; - } - - - static void skipToClosedBracket() { - int count= 1; - Token t; - do { - t= getNextToken(); - if (t.kind == LCURLYBRACE) { - count++; - } else if (t.kind == RCURLYBRACE) { - count--; - } - } while (t.kind != EOF && count != 0); - } - - static void synchronize(int kind) { - //if (getToken(0).kind == kind) { - // return; - //} - Token t; - do { - t= getNextToken(); - } while (t.kind != EOF && t.kind != kind); - } - - /** - * This method first tries to read a sequence of tokens of the form - * ("::")? <ID> ("::" <ID>)* - * and if it succeeds then asks the symbol table manager if this is - * the name of a constructor. - */ - static boolean isCtor() - { - return getFullyScopedName() != null; - } - - static final public void translation_unit() throws ParseException { - label_1: - while (true) { - if (jj_2_1(2)) { - ; - } else { - break label_1; - } - external_declaration(); - } - jj_consume_token(0); - } - - static final public void external_declaration() throws ParseException { - boolean isTypedef = false; - Token firstToken= getToken(1); - String name; - try { - if (jj_2_5(2147483647)) { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case TEMPLATE: - template_head(); - break; - default: - jj_la1[0] = jj_gen; - ; - } - declaration(false, null); - } else if (jj_2_6(2147483647)) { - enum_specifier(); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LPARENTHESIS: - case SCOPE: - case AMPERSAND: - case STAR: - case TILDE: - case OPERATOR: - case ID: - init_declarator_list(false, false, firstToken); - break; - default: - jj_la1[1] = jj_gen; - ; - } - jj_consume_token(SEMICOLON); - } else if (jj_2_7(2147483647)) { - dtor_definition(firstToken); - } else if (jj_2_8(2147483647)) { - ctor_definition(firstToken); - } else if (jj_2_9(2147483647)) { - function_definition(firstToken); - } else if (jj_2_10(2147483647)) { - conversion_function_decl_or_def(firstToken); - } else { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case TEMPLATE: - template_head(); - if (jj_2_2(2147483647)) { - ctor_definition(firstToken); - } else if (jj_2_3(2147483647)) { - function_definition(firstToken); - } else if (jj_2_4(1)) { - isTypedef = declaration_specifiers(); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LPARENTHESIS: - case SCOPE: - case AMPERSAND: - case STAR: - case TILDE: - case OPERATOR: - case ID: - init_declarator_list(isTypedef, false, firstToken); - break; - default: - jj_la1[2] = jj_gen; - ; - } - jj_consume_token(SEMICOLON); - } else { - jj_consume_token(-1); - throw new ParseException(); - } - break; - default: - jj_la1[3] = jj_gen; - if (jj_2_11(1)) { - declaration(true, firstToken); - } else { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case SEMICOLON: - jj_consume_token(SEMICOLON); - break; - default: - jj_la1[4] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - } - } - } catch (ParseException e) { - synchronize(SEMICOLON); - } - } - - static final public void function_definition(Token firstToken) throws ParseException { - boolean isTypedef; - if (jj_2_12(3)) { - isTypedef = declaration_specifiers(); - function_declarator(isTypedef, firstToken); - func_decl_def(); - } else { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case SCOPE: - case AMPERSAND: - case STAR: - case OPERATOR: - case ID: - function_declarator(false, firstToken); - func_decl_def(); - break; - default: - jj_la1[5] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - fgCallback.functionDeclEnd(getToken(0)); - } - - static final public void func_decl_def() throws ParseException { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case SEMICOLON: - jj_consume_token(SEMICOLON); - break; - case LCURLYBRACE: - compound_statement(); - break; - default: - jj_la1[6] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - - static final public void linkage_specification(Token firstToken) throws ParseException { - jj_consume_token(EXTERN); - jj_consume_token(STRING); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LCURLYBRACE: - jj_consume_token(LCURLYBRACE); - label_2: - while (true) { - if (jj_2_13(1)) { - ; - } else { - break label_2; - } - external_declaration(); - } - jj_consume_token(RCURLYBRACE); - if (jj_2_14(2147483647)) { - jj_consume_token(SEMICOLON); - } else { - ; - } - break; - default: - jj_la1[7] = jj_gen; - if (jj_2_15(1)) { - declaration(false, firstToken); - } else { - jj_consume_token(-1); - throw new ParseException(); - } - } - } - - static final public void declaration(boolean report, Token firstToken) throws ParseException { - boolean isTypedef = false; - if (jj_2_16(2)) { - isTypedef = declaration_specifiers(); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LPARENTHESIS: - case SCOPE: - case AMPERSAND: - case STAR: - case TILDE: - case OPERATOR: - case ID: - init_declarator_list(isTypedef, report, firstToken); - break; - default: - jj_la1[8] = jj_gen; - ; - } - jj_consume_token(SEMICOLON); - } else { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case EXTERN: - linkage_specification(firstToken); - break; - default: - jj_la1[9] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - } - -/** - * Very temporary. Just returns true if it sees a typedef. Finally, we will - * need a structure that stores all the attributes. - */ - static final public boolean type_modifiers() throws ParseException { - boolean isTypedef = false; - if (jj_2_17(1)) { - isTypedef = storage_class_specifier(); - } else { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case CONST: - case VOLATILE: - type_qualifier(); - break; - case INLINE: - jj_consume_token(INLINE); - break; - case VIRTUAL: - jj_consume_token(VIRTUAL); - break; - case FRIEND: - jj_consume_token(FRIEND); - break; - default: - jj_la1[10] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - {if (true) return isTypedef;} - throw new Error("Missing return statement in function"); - } - - /* -boolean declaration_specifiers() : -{ - Token t; - boolean isTypedef = false, tmp; -} -{ - ( - - ( LOOKAHEAD(2) - ( - LOOKAHEAD(builtin_type_specifier()) builtin_type_specifier() - | - LOOKAHEAD(type_modifiers()) tmp = type_modifiers() { isTypedef |= tmp; } - ) - - - )* - - ( - class_specifier() - | - enum_specifier() - | - qualified_type() - ) - - ( LOOKAHEAD(2) - ( - LOOKAHEAD(builtin_type_specifier()) builtin_type_specifier() - | - LOOKAHEAD(type_modifiers()) tmp = type_modifiers() { isTypedef |= tmp; } - // | - // <ID> - ) - - )* - - ) - { return isTypedef; } -} - */ - - -/** - * Very temporary. Just returns true if it sees a typedef. Finally, we will - * need a structure that stores all the attributes. - */ - static final public boolean declaration_specifiers() throws ParseException { - Token t; - boolean isTypedef = false, tmp; - if (jj_2_32(1)) { - label_3: - while (true) { - tmp = type_modifiers(); - isTypedef |= tmp; - if (jj_2_18(2147483647)) { - ; - } else { - break label_3; - } - } - if (jj_2_26(2)) { - if (jj_2_24(2147483647)) { - builtin_type_specifier(); - label_4: - while (true) { - if (jj_2_19(2)) { - ; - } else { - break label_4; - } - if (jj_2_20(2147483647)) { - builtin_type_specifier(); - } else if (jj_2_21(2147483647)) { - tmp = type_modifiers(); - } else { - jj_consume_token(-1); - throw new ParseException(); - } - isTypedef |= tmp; - } - } else if (jj_2_25(1)) { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case STRUCT: - case CLASS: - case UNION: - class_specifier(); - break; - case ENUM: - enum_specifier(); - break; - default: - jj_la1[11] = jj_gen; - if (jj_2_22(1)) { - qualified_type(); - } else { - jj_consume_token(-1); - throw new ParseException(); - } - } - label_5: - while (true) { - if (jj_2_23(2)) { - ; - } else { - break label_5; - } - tmp = type_modifiers(); - isTypedef |= tmp; - } - } else { - jj_consume_token(-1); - throw new ParseException(); - } - } else { - ; - } - } else if (jj_2_33(2147483647)) { - builtin_type_specifier(); - label_6: - while (true) { - if (jj_2_27(2)) { - ; - } else { - break label_6; - } - if (jj_2_28(2147483647)) { - builtin_type_specifier(); - } else if (jj_2_29(1)) { - tmp = type_modifiers(); - isTypedef |= tmp; - } else { - jj_consume_token(-1); - throw new ParseException(); - } - } - } else if (jj_2_34(1)) { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case STRUCT: - case CLASS: - case UNION: - class_specifier(); - break; - case ENUM: - enum_specifier(); - break; - default: - jj_la1[12] = jj_gen; - if (jj_2_30(1)) { - qualified_type(); - } else { - jj_consume_token(-1); - throw new ParseException(); - } - } - label_7: - while (true) { - if (jj_2_31(2)) { - ; - } else { - break label_7; - } - tmp = type_modifiers(); - isTypedef |= tmp; - } - } else { - jj_consume_token(-1); - throw new ParseException(); - } - {if (true) return isTypedef;} - throw new Error("Missing return statement in function"); - } - -/* -void type_specifier() : -{} -{ - simple_type_specifier() - | - class_specifier() - | - enum_specifier() -} -*/ - static final public void simple_type_specifier() throws ParseException { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case CHAR: - case DOUBLE: - case FLOAT: - case INT: - case LONG: - case SHORT: - case SIGNED: - case UNSIGNED: - case VOID: - builtin_type_specifier(); - break; - default: - jj_la1[13] = jj_gen; - if (jj_2_35(1)) { - qualified_type(); - } else { - jj_consume_token(-1); - throw new ParseException(); - } - } - } - - static final public void scope_override_lookahead() throws ParseException { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case SCOPE: - jj_consume_token(SCOPE); - break; - case ID: - jj_consume_token(ID); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LESSTHAN: - jj_consume_token(LESSTHAN); - template_argument_list(); - jj_consume_token(GREATERTHAN); - break; - default: - jj_la1[14] = jj_gen; - ; - } - jj_consume_token(SCOPE); - break; - default: - jj_la1[15] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - - static final public String scope_override() throws ParseException { - String name = ""; - Token t; - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case SCOPE: - jj_consume_token(SCOPE); - name += "::"; - label_8: - while (true) { - if (jj_2_36(2)) { - ; - } else { - break label_8; - } - t = jj_consume_token(ID); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LESSTHAN: - jj_consume_token(LESSTHAN); - template_argument_list(); - jj_consume_token(GREATERTHAN); - break; - default: - jj_la1[16] = jj_gen; - ; - } - jj_consume_token(SCOPE); - name += t.image + "::"; - } - break; - case ID: - label_9: - while (true) { - t = jj_consume_token(ID); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LESSTHAN: - jj_consume_token(LESSTHAN); - template_argument_list(); - jj_consume_token(GREATERTHAN); - break; - default: - jj_la1[17] = jj_gen; - ; - } - jj_consume_token(SCOPE); - name += t.image + "::"; - if (jj_2_37(2)) { - ; - } else { - break label_9; - } - } - break; - default: - jj_la1[18] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - {if (true) return name;} - throw new Error("Missing return statement in function"); - } - - static final public Token qualified_id() throws ParseException { - String name = ""; - String scopeName= ""; - Token t; - Token beginToken= getToken(1); - if (jj_2_38(2147483647)) { - scopeName = scope_override(); - } else { - ; - } - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case ID: - t = jj_consume_token(ID); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LESSTHAN: - jj_consume_token(LESSTHAN); - template_argument_list(); - jj_consume_token(GREATERTHAN); - break; - default: - jj_la1[19] = jj_gen; - ; - } - {if (true) return ParserCallback.createToken(scopeName + t.image, beginToken, t);} - break; - case OPERATOR: - jj_consume_token(OPERATOR); - name = optor(); - {if (true) return ParserCallback.createToken(scopeName + "operator" + name, beginToken, getToken(0));} - break; - default: - jj_la1[20] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - throw new Error("Missing return statement in function"); - } - - static final public void ptr_to_member() throws ParseException { - scope_override(); - jj_consume_token(STAR); - } - - static final public void qualified_type() throws ParseException { - if (isNotNull(getFullyScopedName())) { - - } else { - jj_consume_token(-1); - throw new ParseException(); - } - qualified_id(); - } - - static final public void type_qualifier() throws ParseException { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case CONST: - jj_consume_token(CONST); - break; - case VOLATILE: - jj_consume_token(VOLATILE); - break; - default: - jj_la1[21] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - -/** - * Very temporary. Just returns true if it sees a typedef. Finally, we will - * need a structure that stores all the attributes. - */ - static final public boolean storage_class_specifier() throws ParseException { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case AUTO: - case REGISTER: - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case AUTO: - jj_consume_token(AUTO); - break; - case REGISTER: - jj_consume_token(REGISTER); - break; - default: - jj_la1[22] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - {if (true) return false;} - break; - case STATIC: - jj_consume_token(STATIC); - fgCallback.storageSpecifier(ParserCallback.K_STATIC); {if (true) return false;} - break; - case EXTERN: - jj_consume_token(EXTERN); - fgCallback.storageSpecifier(ParserCallback.K_EXTERN); {if (true) return false;} - break; - case TYPEDEF: - jj_consume_token(TYPEDEF); - {if (true) return true;} - break; - default: - jj_la1[23] = jj_gen; - if (fgCallback.isStorageClassSpecifier(getToken(1))) { - jj_consume_token(ID); - {if (true) return false;} - } else { - jj_consume_token(-1); - throw new ParseException(); - } - } - throw new Error("Missing return statement in function"); - } - - static final public void builtin_type_specifier() throws ParseException { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case VOID: - jj_consume_token(VOID); - break; - case CHAR: - jj_consume_token(CHAR); - break; - case SHORT: - jj_consume_token(SHORT); - break; - case INT: - jj_consume_token(INT); - break; - case LONG: - jj_consume_token(LONG); - break; - case FLOAT: - jj_consume_token(FLOAT); - break; - case DOUBLE: - jj_consume_token(DOUBLE); - break; - case SIGNED: - jj_consume_token(SIGNED); - break; - case UNSIGNED: - jj_consume_token(UNSIGNED); - break; - default: - jj_la1[24] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - - static final public void init_declarator_list(boolean isTypedef, boolean report, Token firstToken) throws ParseException { - init_declarator(isTypedef, report, firstToken); - label_10: - while (true) { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case COMMA: - ; - break; - default: - jj_la1[25] = jj_gen; - break label_10; - } - jj_consume_token(COMMA); - init_declarator(isTypedef, report, firstToken); - } - } - - static final public void init_declarator(boolean isTypedef, boolean report, Token firstToken) throws ParseException { - Token nameToken; - nameToken = declarator(); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LPARENTHESIS: - case ASSIGNEQUAL: - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case ASSIGNEQUAL: - jj_consume_token(ASSIGNEQUAL); - initializer(); - break; - case LPARENTHESIS: - jj_consume_token(LPARENTHESIS); - expression_list(); - jj_consume_token(RPARENTHESIS); - break; - default: - jj_la1[26] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - break; - default: - jj_la1[27] = jj_gen; - ; - } - if (report && firstToken != null) { - fgCallback.fieldDecl(nameToken, firstToken, getToken(0)); - } - } - -// used only in lookaheads - static final public void class_head() throws ParseException { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case STRUCT: - jj_consume_token(STRUCT); - break; - case UNION: - jj_consume_token(UNION); - break; - case CLASS: - jj_consume_token(CLASS); - break; - default: - jj_la1[28] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case ID: - jj_consume_token(ID); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case COLON: - base_clause(); - break; - default: - jj_la1[29] = jj_gen; - ; - } - break; - default: - jj_la1[30] = jj_gen; - ; - } - } - - static final public void class_specifier() throws ParseException { - Token t, u; - Token firstToken= getToken(1); - int kind; - try { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case STRUCT: - jj_consume_token(STRUCT); - kind= ParserCallback.K_STRUCT; - break; - case UNION: - jj_consume_token(UNION); - kind= ParserCallback.K_UNION; - break; - case CLASS: - jj_consume_token(CLASS); - kind= ParserCallback.K_CLASS; - break; - default: - jj_la1[31] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LCURLYBRACE: - jj_consume_token(LCURLYBRACE); - fgCallback.structDeclBegin(getToken(0), kind, firstToken); - label_11: - while (true) { - if (jj_2_39(1)) { - ; - } else { - break label_11; - } - member_declaration(); - } - u = jj_consume_token(RCURLYBRACE); - fgCallback.structDeclEnd(u); - break; - default: - jj_la1[33] = jj_gen; - if (jj_2_42(2)) { - t = jj_consume_token(ID); - fgCallback.structDeclBegin(t, kind, firstToken); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case COLON: - base_clause(); - break; - default: - jj_la1[32] = jj_gen; - ; - } - jj_consume_token(LCURLYBRACE); - label_12: - while (true) { - if (jj_2_40(1)) { - ; - } else { - break label_12; - } - member_declaration(); - } - u = jj_consume_token(RCURLYBRACE); - fgCallback.structDeclEnd(u); - } else { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case ID: - t = jj_consume_token(ID); - if (jj_2_41(2)) { - jj_consume_token(LESSTHAN); - template_argument_list(); - jj_consume_token(GREATERTHAN); - } else { - ; - } - break; - default: - jj_la1[34] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - } - } catch (ParseException e) { - synchronize(SEMICOLON); - } - } - - static final public void base_clause() throws ParseException { - jj_consume_token(COLON); - base_specifier(); - label_13: - while (true) { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case COMMA: - ; - break; - default: - jj_la1[35] = jj_gen; - break label_13; - } - jj_consume_token(COMMA); - base_specifier(); - } - } - - static final public void base_specifier() throws ParseException { - Token t; - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case PRIVATE: - case PROTECTED: - case PUBLIC: - case VIRTUAL: - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case VIRTUAL: - jj_consume_token(VIRTUAL); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case PRIVATE: - case PROTECTED: - case PUBLIC: - access_specifier(); - break; - default: - jj_la1[36] = jj_gen; - ; - } - break; - case PRIVATE: - case PROTECTED: - case PUBLIC: - access_specifier(); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case VIRTUAL: - jj_consume_token(VIRTUAL); - break; - default: - jj_la1[37] = jj_gen; - ; - } - break; - default: - jj_la1[38] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - break; - default: - jj_la1[39] = jj_gen; - ; - } - if (jj_2_43(2147483647)) { - scope_override(); - } else { - ; - } - t = jj_consume_token(ID); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LESSTHAN: - jj_consume_token(LESSTHAN); - template_argument_list(); - jj_consume_token(GREATERTHAN); - break; - default: - jj_la1[40] = jj_gen; - ; - } - fgCallback.superDecl(t.image); - } - - static final public void access_specifier() throws ParseException { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case PUBLIC: - jj_consume_token(PUBLIC); - break; - case PROTECTED: - jj_consume_token(PROTECTED); - break; - case PRIVATE: - jj_consume_token(PRIVATE); - break; - default: - jj_la1[41] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - - static final public void member_declaration() throws ParseException { - boolean isTypedef = false; - Token firstToken= getToken(1); - Token t; - String name; - try { - if (jj_2_44(2147483647)) { - declaration(true, firstToken); - } else if (jj_2_45(2147483647)) { - enum_specifier(); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LPARENTHESIS: - case SCOPE: - case AMPERSAND: - case STAR: - case TILDE: - case OPERATOR: - case ID: - member_declarator_list(false, firstToken); - break; - default: - jj_la1[42] = jj_gen; - ; - } - jj_consume_token(SEMICOLON); - } else if (jj_2_46(2147483647)) { - conversion_function_decl_or_def(firstToken); - } else if (jj_2_47(2147483647)) { - dtor_definition(firstToken); - } else if (jj_2_48(2147483647)) { - dtor_ctor_decl_spec(); - simple_dtor_declarator(firstToken, "", null); - t = jj_consume_token(SEMICOLON); - fgCallback.functionDeclEnd(t); - } else if (jj_2_49(2147483647)) { - ctor_definition(firstToken); - } else if (jj_2_50(2147483647)) { - dtor_ctor_decl_spec(); - ctor_declarator(firstToken); - t = jj_consume_token(SEMICOLON); - fgCallback.functionDeclEnd(t); - } else if (jj_2_51(2147483647)) { - function_definition(firstToken); - } else if (jj_2_52(2147483647)) { - isTypedef = declaration_specifiers(); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LPARENTHESIS: - case SCOPE: - case AMPERSAND: - case STAR: - case TILDE: - case OPERATOR: - case ID: - member_declarator_list(isTypedef, firstToken); - break; - default: - jj_la1[43] = jj_gen; - ; - } - jj_consume_token(SEMICOLON); - } else if (jj_2_53(2147483647)) { - function_declarator(false, firstToken); - t = jj_consume_token(SEMICOLON); - fgCallback.functionDeclEnd(t); - } else if (jj_2_54(3)) { - qualified_id(); - jj_consume_token(SEMICOLON); - } else { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case PRIVATE: - case PROTECTED: - case PUBLIC: - access_specifier(); - jj_consume_token(COLON); - break; - case SEMICOLON: - jj_consume_token(SEMICOLON); - break; - default: - jj_la1[44] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - } catch (ParseException e) { - synchronize(SEMICOLON); - } - } - - static final public void member_declarator_list(boolean isTypedef, Token firstToken) throws ParseException { - member_declarator(isTypedef, firstToken); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case ASSIGNEQUAL: - jj_consume_token(ASSIGNEQUAL); - jj_consume_token(OCTALINT); - break; - default: - jj_la1[45] = jj_gen; - ; - } - label_14: - while (true) { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case COMMA: - ; - break; - default: - jj_la1[46] = jj_gen; - break label_14; - } - jj_consume_token(COMMA); - member_declarator(isTypedef, firstToken); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case ASSIGNEQUAL: - jj_consume_token(ASSIGNEQUAL); - jj_consume_token(OCTALINT); - break; - default: - jj_la1[47] = jj_gen; - ; - } - } - } - - static final public void member_declarator(boolean isTypedef, Token firstToken) throws ParseException { - Token nameToken; - nameToken = declarator(); - fgCallback.fieldDecl(nameToken, firstToken, getToken(0)); - } - - static final public void conversion_function_decl_or_def(Token firstToken) throws ParseException { - String name = null; - StringBuffer buf= new StringBuffer(); - Token t; - Token nameStart= getToken(1); - if (jj_2_55(2147483647)) { - name = scope_override(); - buf.append(name); - } else { - ; - } - t = jj_consume_token(OPERATOR); - declaration_specifiers(); - // reconstruct the name - Token s= getToken(1); - while (t != s) { - buf.append(t.image); - buf.append(' '); - t= t.next; - } - Token nameToken= ParserCallback.createToken(buf.toString(), nameStart, s); - fgCallback.functionDeclBegin(nameToken, firstToken, ParserCallback.K_FUNCTION); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case AMPERSAND: - case STAR: - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case STAR: - jj_consume_token(STAR); - break; - case AMPERSAND: - jj_consume_token(AMPERSAND); - break; - default: - jj_la1[48] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - break; - default: - jj_la1[49] = jj_gen; - ; - } - jj_consume_token(LPARENTHESIS); - if (jj_2_56(1)) { - parameter_list(); - } else { - ; - } - jj_consume_token(RPARENTHESIS); - if (jj_2_57(2)) { - type_qualifier(); - } else { - ; - } - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case THROW: - exception_spec(); - break; - default: - jj_la1[50] = jj_gen; - ; - } - func_decl_def(); - fgCallback.functionDeclEnd(getToken(0)); - } - - static final public void enum_specifier() throws ParseException { - Token t; - jj_consume_token(ENUM); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LCURLYBRACE: - jj_consume_token(LCURLYBRACE); - enumerator_list(); - jj_consume_token(RCURLYBRACE); - break; - case ID: - t = jj_consume_token(ID); - if (jj_2_58(2)) { - jj_consume_token(LCURLYBRACE); - enumerator_list(); - jj_consume_token(RCURLYBRACE); - } else { - ; - } - break; - default: - jj_la1[51] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - - static final public void enumerator_list() throws ParseException { - enumerator(); - label_15: - while (true) { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case COMMA: - ; - break; - default: - jj_la1[52] = jj_gen; - break label_15; - } - jj_consume_token(COMMA); - enumerator(); - } - } - - static final public void enumerator() throws ParseException { - jj_consume_token(ID); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case ASSIGNEQUAL: - jj_consume_token(ASSIGNEQUAL); - constant_expression(); - break; - default: - jj_la1[53] = jj_gen; - ; - } - } - - static final public void ptr_operator() throws ParseException { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case AMPERSAND: - jj_consume_token(AMPERSAND); - cv_qualifier_seq(); - break; - case STAR: - jj_consume_token(STAR); - cv_qualifier_seq(); - break; - case SCOPE: - case ID: - ptr_to_member(); - cv_qualifier_seq(); - break; - default: - jj_la1[54] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - - static final public void cv_qualifier_seq() throws ParseException { - if (jj_2_61(2)) { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case CONST: - jj_consume_token(CONST); - if (jj_2_59(2)) { - jj_consume_token(VOLATILE); - } else { - ; - } - break; - case VOLATILE: - jj_consume_token(VOLATILE); - if (jj_2_60(2)) { - jj_consume_token(CONST); - } else { - ; - } - break; - default: - jj_la1[55] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } else { - ; - } - } - - static final public Token declarator() throws ParseException { - Token nameToken; - if (jj_2_62(2147483647)) { - ptr_operator(); - nameToken = declarator(); - } else { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LPARENTHESIS: - case SCOPE: - case TILDE: - case OPERATOR: - case ID: - nameToken = direct_declarator(); - break; - default: - jj_la1[56] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - {if (true) return nameToken;} - throw new Error("Missing return statement in function"); - } - - static final public Token direct_declarator() throws ParseException { - Token t; - if (jj_2_66(2)) { - jj_consume_token(TILDE); - t = jj_consume_token(ID); - if (jj_2_63(2)) { - declarator_suffixes(); - } else { - ; - } - {if (true) return ParserCallback.createToken("~" + t.image, t);} - } else { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LPARENTHESIS: - jj_consume_token(LPARENTHESIS); - t = declarator(); - jj_consume_token(RPARENTHESIS); - if (jj_2_64(2)) { - declarator_suffixes(); - } else { - ; - } - {if (true) return t;} - break; - case SCOPE: - case OPERATOR: - case ID: - t = qualified_id(); - if (jj_2_65(2)) { - declarator_suffixes(); - } else { - ; - } - {if (true) return t;} - break; - default: - jj_la1[57] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - throw new Error("Missing return statement in function"); - } - - static final public void declarator_suffixes() throws ParseException { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LSQUAREBRACKET: - label_16: - while (true) { - jj_consume_token(LSQUAREBRACKET); - if (jj_2_67(1)) { - constant_expression(); - } else { - ; - } - jj_consume_token(RSQUAREBRACKET); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LSQUAREBRACKET: - ; - break; - default: - jj_la1[58] = jj_gen; - break label_16; - } - } - break; - case LPARENTHESIS: - jj_consume_token(LPARENTHESIS); - if (jj_2_68(1)) { - parameter_list(); - } else { - ; - } - jj_consume_token(RPARENTHESIS); - if (jj_2_69(2)) { - type_qualifier(); - } else { - ; - } - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case THROW: - exception_spec(); - break; - default: - jj_la1[59] = jj_gen; - ; - } - break; - default: - jj_la1[60] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - -/** - * Used only for lookahead. - */ - static final public void function_declarator_lookahead() throws ParseException { - label_17: - while (true) { - if (jj_2_70(2)) { - ; - } else { - break label_17; - } - ptr_operator(); - } - qualified_id(); - jj_consume_token(LPARENTHESIS); - } - -// needs closing of function - static final public void function_declarator(boolean isTypedef, Token firstToken) throws ParseException { - if (jj_2_71(2147483647)) { - ptr_operator(); - function_declarator(isTypedef, firstToken); - } else { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case SCOPE: - case OPERATOR: - case ID: - function_direct_declarator(isTypedef, firstToken); - break; - default: - jj_la1[61] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - } - -// needs closing of function - static final public void function_direct_declarator(boolean isTypedef, Token firstToken) throws ParseException { - Token nameToken; - nameToken = qualified_id(); - fgCallback.functionDeclBegin(nameToken, firstToken, ParserCallback.K_FUNCTION); - jj_consume_token(LPARENTHESIS); - if (jj_2_72(1)) { - parameter_list(); - } else { - ; - } - jj_consume_token(RPARENTHESIS); - if (jj_2_73(2)) { - type_qualifier(); - } else { - ; - } - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case THROW: - exception_spec(); - break; - default: - jj_la1[62] = jj_gen; - ; - } - if (jj_2_74(2147483647)) { - jj_consume_token(ASSIGNEQUAL); - jj_consume_token(OCTALINT); - } else { - ; - } - } - - static final public void dtor_ctor_decl_spec() throws ParseException { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case INLINE: - case VIRTUAL: - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case VIRTUAL: - jj_consume_token(VIRTUAL); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case INLINE: - jj_consume_token(INLINE); - break; - default: - jj_la1[63] = jj_gen; - ; - } - break; - case INLINE: - jj_consume_token(INLINE); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case VIRTUAL: - jj_consume_token(VIRTUAL); - break; - default: - jj_la1[64] = jj_gen; - ; - } - break; - default: - jj_la1[65] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - break; - default: - jj_la1[66] = jj_gen; - ; - } - } - - static final public void dtor_definition(Token firstToken) throws ParseException { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case TEMPLATE: - template_head(); - break; - default: - jj_la1[67] = jj_gen; - ; - } - dtor_ctor_decl_spec(); - dtor_declarator(firstToken); - compound_statement(); - } - - static final public void ctor_definition(Token firstToken) throws ParseException { - dtor_ctor_decl_spec(); - ctor_declarator(firstToken); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case THROW: - exception_spec(); - break; - default: - jj_la1[68] = jj_gen; - ; - } - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case SEMICOLON: - jj_consume_token(SEMICOLON); - break; - case LCURLYBRACE: - case COLON: - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case COLON: - ctor_initializer(); - break; - default: - jj_la1[69] = jj_gen; - ; - } - compound_statement(); - break; - default: - jj_la1[70] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - fgCallback.functionDeclEnd(getToken(0)); - } - - static final public void ctor_declarator_lookahead() throws ParseException { - if (isCtor()) { - - } else { - jj_consume_token(-1); - throw new ParseException(); - } - qualified_id(); - jj_consume_token(LPARENTHESIS); - } - -// starts function, must be closed by caller - static final public void ctor_declarator(Token firstToken) throws ParseException { - Token nameToken; - if (isCtor()) { - - } else { - jj_consume_token(-1); - throw new ParseException(); - } - nameToken = qualified_id(); - fgCallback.functionDeclBegin(nameToken, firstToken, ParserCallback.K_CTOR); - jj_consume_token(LPARENTHESIS); - if (jj_2_75(2)) { - parameter_list(); - } else { - ; - } - jj_consume_token(RPARENTHESIS); - if (jj_2_76(2)) { - exception_spec(); - } else { - ; - } - } - - static final public void ctor_initializer() throws ParseException { - jj_consume_token(COLON); - superclass_init(); - label_18: - while (true) { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case COMMA: - ; - break; - default: - jj_la1[71] = jj_gen; - break label_18; - } - jj_consume_token(COMMA); - superclass_init(); - } - } - - static final public void superclass_init() throws ParseException { - qualified_id(); - jj_consume_token(LPARENTHESIS); - if (jj_2_77(1)) { - expression_list(); - } else { - ; - } - jj_consume_token(RPARENTHESIS); - } - - static final public void dtor_declarator(Token firstToken) throws ParseException { - Token firstNameToken= getToken(1); - String name= ""; - if (jj_2_78(2147483647)) { - name = scope_override(); - } else { - ; - } - simple_dtor_declarator(firstToken, name, firstNameToken); - fgCallback.functionDeclEnd(getToken(0)); - } - -// starts funct begin, must be closed by caller - static final public void simple_dtor_declarator(Token firstToken, String name, Token firstNameToken) throws ParseException { - Token t; - jj_consume_token(TILDE); - if (isCtor()) { - - } else { - jj_consume_token(-1); - throw new ParseException(); - } - t = jj_consume_token(ID); - jj_consume_token(LPARENTHESIS); - if (jj_2_79(1)) { - parameter_list(); - } else { - ; - } - jj_consume_token(RPARENTHESIS); - if (firstToken != null) { // can be null in lookaheads - if (firstNameToken == null) { - firstNameToken= t; - } - Token nameToken= ParserCallback.createToken(name + "~" + t.image, firstNameToken, t); - fgCallback.functionDeclBegin(nameToken, firstToken, ParserCallback.K_DTOR); - } - } - - static final public void parameter_list() throws ParseException { - if (jj_2_81(1)) { - parameter_declaration_list(); - if (jj_2_80(2)) { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case COMMA: - jj_consume_token(COMMA); - break; - default: - jj_la1[72] = jj_gen; - ; - } - jj_consume_token(ELLIPSIS); - } else { - ; - } - } else { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case ELLIPSIS: - jj_consume_token(ELLIPSIS); - break; - default: - jj_la1[73] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - } - - static final public void parameter_declaration_list() throws ParseException { - parameter_declaration(); - label_19: - while (true) { - if (jj_2_82(2)) { - ; - } else { - break label_19; - } - jj_consume_token(COMMA); - parameter_declaration(); - } - } - - static final public void parameter_declaration() throws ParseException { - declaration_specifiers(); - if (jj_2_83(2147483647)) { - declarator(); - } else { - abstract_declarator(); - } - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case ASSIGNEQUAL: - jj_consume_token(ASSIGNEQUAL); - assignment_expression(); - break; - default: - jj_la1[74] = jj_gen; - ; - } - } - - static final public void initializer() throws ParseException { - if (jj_2_84(3)) { - jj_consume_token(LCURLYBRACE); - initializer(); - label_20: - while (true) { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case COMMA: - ; - break; - default: - jj_la1[75] = jj_gen; - break label_20; - } - jj_consume_token(COMMA); - initializer(); - } - jj_consume_token(RCURLYBRACE); - } else if (jj_2_85(1)) { - assignment_expression(); - } else { - jj_consume_token(-1); - throw new ParseException(); - } - } - - static final public void type_name() throws ParseException { - declaration_specifiers(); - abstract_declarator(); - } - - static final public void abstract_declarator() throws ParseException { - if (jj_2_87(2)) { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LPARENTHESIS: - jj_consume_token(LPARENTHESIS); - abstract_declarator(); - jj_consume_token(RPARENTHESIS); - label_21: - while (true) { - abstract_declarator_suffix(); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LSQUAREBRACKET: - case LPARENTHESIS: - ; - break; - default: - jj_la1[76] = jj_gen; - break label_21; - } - } - break; - case LSQUAREBRACKET: - label_22: - while (true) { - jj_consume_token(LSQUAREBRACKET); - if (jj_2_86(1)) { - constant_expression(); - } else { - ; - } - jj_consume_token(RSQUAREBRACKET); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LSQUAREBRACKET: - ; - break; - default: - jj_la1[77] = jj_gen; - break label_22; - } - } - break; - case SCOPE: - case AMPERSAND: - case STAR: - case ID: - ptr_operator(); - abstract_declarator(); - break; - default: - jj_la1[78] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } else { - ; - } - } - - static final public void abstract_declarator_suffix() throws ParseException { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LSQUAREBRACKET: - jj_consume_token(LSQUAREBRACKET); - if (jj_2_88(1)) { - constant_expression(); - } else { - ; - } - jj_consume_token(RSQUAREBRACKET); - break; - case LPARENTHESIS: - jj_consume_token(LPARENTHESIS); - if (jj_2_89(1)) { - parameter_list(); - } else { - ; - } - jj_consume_token(RPARENTHESIS); - break; - default: - jj_la1[79] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - - static final public void template_head() throws ParseException { - jj_consume_token(TEMPLATE); - jj_consume_token(LESSTHAN); - template_parameter_list(); - jj_consume_token(GREATERTHAN); - } - - static final public void template_parameter_list() throws ParseException { - template_parameter(); - label_23: - while (true) { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case COMMA: - ; - break; - default: - jj_la1[80] = jj_gen; - break label_23; - } - jj_consume_token(COMMA); - template_parameter(); - } - } - - static final public void template_parameter() throws ParseException { - Token t; - if (jj_2_90(3)) { - jj_consume_token(CLASS); - t = jj_consume_token(ID); - } else if (jj_2_91(1)) { - parameter_declaration(); - } else { - jj_consume_token(-1); - throw new ParseException(); - } - } - - static final public void template_id() throws ParseException { - jj_consume_token(ID); - jj_consume_token(LESSTHAN); - template_argument_list(); - jj_consume_token(GREATERTHAN); - } - - static final public void template_argument_list() throws ParseException { - template_argument(); - label_24: - while (true) { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case COMMA: - ; - break; - default: - jj_la1[81] = jj_gen; - break label_24; - } - jj_consume_token(COMMA); - template_argument(); - } - } - - static final public void template_argument() throws ParseException { - if (jj_2_92(3)) { - type_name(); - } else if (jj_2_93(1)) { - shift_expression(); - } else { - jj_consume_token(-1); - throw new ParseException(); - } - } - - static final public void statement_list() throws ParseException { - label_25: - while (true) { - statement(); - if (jj_2_94(2147483647)) { - ; - } else { - break label_25; - } - } - } - - static final public void statement() throws ParseException { - if (jj_2_95(2147483647)) { - declaration(false, null); - } else if (jj_2_96(2147483647)) { - expression(); - jj_consume_token(SEMICOLON); - } else { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LCURLYBRACE: - compound_statement(); - break; - case IF: - case SWITCH: - selection_statement(); - break; - case BREAK: - case CONTINUE: - case GOTO: - case RETURN: - jump_statement(); - break; - case SEMICOLON: - jj_consume_token(SEMICOLON); - break; - case TRY: - try_block(); - break; - case THROW: - throw_statement(); - break; - default: - jj_la1[82] = jj_gen; - if (jj_2_97(2)) { - labeled_statement(); - } else { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case DO: - case FOR: - case WHILE: - iteration_statement(); - break; - default: - jj_la1[83] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - } - } - } - - static final public void labeled_statement() throws ParseException { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case ID: - jj_consume_token(ID); - jj_consume_token(COLON); - statement(); - break; - case CASE: - jj_consume_token(CASE); - constant_expression(); - jj_consume_token(COLON); - statement(); - break; - case _DEFAULT: - jj_consume_token(_DEFAULT); - jj_consume_token(COLON); - statement(); - break; - default: - jj_la1[84] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - - static final public void compound_statement() throws ParseException { - jj_consume_token(LCURLYBRACE); - if (fgCallback.overreadBlocks()) { - skipToClosedBracket(); - } else if (jj_2_99(1)) { - try { - if (jj_2_98(1)) { - statement_list(); - } else { - ; - } - jj_consume_token(RCURLYBRACE); - } catch (ParseException e) { - synchronize(RCURLYBRACE); - } - } else { - jj_consume_token(-1); - throw new ParseException(); - } - } - - static final public void selection_statement() throws ParseException { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case IF: - jj_consume_token(IF); - jj_consume_token(LPARENTHESIS); - expression(); - jj_consume_token(RPARENTHESIS); - statement(); - if (jj_2_100(2)) { - jj_consume_token(ELSE); - statement(); - } else { - ; - } - break; - case SWITCH: - jj_consume_token(SWITCH); - jj_consume_token(LPARENTHESIS); - expression(); - jj_consume_token(RPARENTHESIS); - statement(); - break; - default: - jj_la1[85] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - - static final public void iteration_statement() throws ParseException { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case WHILE: - jj_consume_token(WHILE); - jj_consume_token(LPARENTHESIS); - expression(); - jj_consume_token(RPARENTHESIS); - statement(); - break; - case DO: - jj_consume_token(DO); - statement(); - jj_consume_token(WHILE); - jj_consume_token(LPARENTHESIS); - expression(); - jj_consume_token(RPARENTHESIS); - jj_consume_token(SEMICOLON); - break; - case FOR: - jj_consume_token(FOR); - jj_consume_token(LPARENTHESIS); - if (jj_2_101(3)) { - declaration(false, null); - } else if (jj_2_102(1)) { - expression(); - jj_consume_token(SEMICOLON); - } else { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case SEMICOLON: - jj_consume_token(SEMICOLON); - break; - default: - jj_la1[86] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - if (jj_2_103(1)) { - expression(); - } else { - ; - } - jj_consume_token(SEMICOLON); - if (jj_2_104(1)) { - expression(); - } else { - ; - } - jj_consume_token(RPARENTHESIS); - statement(); - break; - default: - jj_la1[87] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - - static final public void jump_statement() throws ParseException { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case GOTO: - jj_consume_token(GOTO); - jj_consume_token(ID); - jj_consume_token(SEMICOLON); - break; - case CONTINUE: - jj_consume_token(CONTINUE); - jj_consume_token(SEMICOLON); - break; - case BREAK: - jj_consume_token(BREAK); - jj_consume_token(SEMICOLON); - break; - case RETURN: - jj_consume_token(RETURN); - if (jj_2_105(1)) { - expression(); - } else { - ; - } - jj_consume_token(SEMICOLON); - break; - default: - jj_la1[88] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - - static final public void try_block() throws ParseException { - jj_consume_token(TRY); - compound_statement(); - label_26: - while (true) { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case CATCH: - case FINALLY: - ; - break; - default: - jj_la1[89] = jj_gen; - break label_26; - } - handler(); - } - } - - static final public void handler() throws ParseException { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case CATCH: - jj_consume_token(CATCH); - jj_consume_token(LPARENTHESIS); - exception_declaration(); - jj_consume_token(RPARENTHESIS); - compound_statement(); - break; - case FINALLY: - jj_consume_token(FINALLY); - compound_statement(); - break; - default: - jj_la1[90] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - - static final public void exception_declaration() throws ParseException { - if (jj_2_106(1)) { - parameter_declaration_list(); - } else { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case ELLIPSIS: - jj_consume_token(ELLIPSIS); - break; - default: - jj_la1[91] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - } - - static final public void throw_statement() throws ParseException { - jj_consume_token(THROW); - if (jj_2_107(1)) { - assignment_expression(); - } else { - ; - } - jj_consume_token(SEMICOLON); - } - - static final public void expression() throws ParseException { - assignment_expression(); - label_27: - while (true) { - if (jj_2_108(2)) { - ; - } else { - break label_27; - } - jj_consume_token(COMMA); - assignment_expression(); - } - } - - static final public void assignment_expression() throws ParseException { - conditional_expression(); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case ASSIGNEQUAL: - case TIMESEQUAL: - case DIVIDEEQUAL: - case MODEQUAL: - case PLUSEQUAL: - case MINUSEQUAL: - case SHIFTLEFTEQUAL: - case SHIFTRIGHTEQUAL: - case BITWISEANDEQUAL: - case BITWISEXOREQUAL: - case BITWISEOREQUAL: - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case ASSIGNEQUAL: - jj_consume_token(ASSIGNEQUAL); - break; - case TIMESEQUAL: - jj_consume_token(TIMESEQUAL); - break; - case DIVIDEEQUAL: - jj_consume_token(DIVIDEEQUAL); - break; - case MODEQUAL: - jj_consume_token(MODEQUAL); - break; - case PLUSEQUAL: - jj_consume_token(PLUSEQUAL); - break; - case MINUSEQUAL: - jj_consume_token(MINUSEQUAL); - break; - case SHIFTLEFTEQUAL: - jj_consume_token(SHIFTLEFTEQUAL); - break; - case SHIFTRIGHTEQUAL: - jj_consume_token(SHIFTRIGHTEQUAL); - break; - case BITWISEANDEQUAL: - jj_consume_token(BITWISEANDEQUAL); - break; - case BITWISEXOREQUAL: - jj_consume_token(BITWISEXOREQUAL); - break; - case BITWISEOREQUAL: - jj_consume_token(BITWISEOREQUAL); - break; - default: - jj_la1[92] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - assignment_expression(); - break; - default: - jj_la1[93] = jj_gen; - ; - } - } - - static final public void conditional_expression() throws ParseException { - logical_or_expression(); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case QUESTIONMARK: - jj_consume_token(QUESTIONMARK); - conditional_expression(); - jj_consume_token(COLON); - conditional_expression(); - break; - default: - jj_la1[94] = jj_gen; - ; - } - } - - static final public void constant_expression() throws ParseException { - conditional_expression(); - } - - static final public void logical_or_expression() throws ParseException { - logical_and_expression(); - label_28: - while (true) { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case OR: - ; - break; - default: - jj_la1[95] = jj_gen; - break label_28; - } - jj_consume_token(OR); - logical_and_expression(); - } - } - - static final public void logical_and_expression() throws ParseException { - inclusive_or_expression(); - label_29: - while (true) { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case AND: - ; - break; - default: - jj_la1[96] = jj_gen; - break label_29; - } - jj_consume_token(AND); - inclusive_or_expression(); - } - } - - static final public void inclusive_or_expression() throws ParseException { - exclusive_or_expression(); - label_30: - while (true) { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case BITWISEOR: - ; - break; - default: - jj_la1[97] = jj_gen; - break label_30; - } - jj_consume_token(BITWISEOR); - exclusive_or_expression(); - } - } - - static final public void exclusive_or_expression() throws ParseException { - and_expression(); - label_31: - while (true) { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case BITWISEXOR: - ; - break; - default: - jj_la1[98] = jj_gen; - break label_31; - } - jj_consume_token(BITWISEXOR); - and_expression(); - } - } - - static final public void and_expression() throws ParseException { - equality_expression(); - label_32: - while (true) { - if (jj_2_109(2)) { - ; - } else { - break label_32; - } - jj_consume_token(AMPERSAND); - equality_expression(); - } - } - - static final public void equality_expression() throws ParseException { - relational_expression(); - label_33: - while (true) { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case EQUAL: - case NOTEQUAL: - ; - break; - default: - jj_la1[99] = jj_gen; - break label_33; - } - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case NOTEQUAL: - jj_consume_token(NOTEQUAL); - break; - case EQUAL: - jj_consume_token(EQUAL); - break; - default: - jj_la1[100] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - relational_expression(); - } - } - - static final public void relational_expression() throws ParseException { - shift_expression(); - label_34: - while (true) { - if (jj_2_110(2)) { - ; - } else { - break label_34; - } - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LESSTHAN: - jj_consume_token(LESSTHAN); - break; - case GREATERTHAN: - jj_consume_token(GREATERTHAN); - break; - case LESSTHANOREQUALTO: - jj_consume_token(LESSTHANOREQUALTO); - break; - case GREATERTHANOREQUALTO: - jj_consume_token(GREATERTHANOREQUALTO); - break; - default: - jj_la1[101] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - shift_expression(); - } - } - - static final public void shift_expression() throws ParseException { - additive_expression(); - label_35: - while (true) { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case SHIFTLEFT: - case SHIFTRIGHT: - ; - break; - default: - jj_la1[102] = jj_gen; - break label_35; - } - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case SHIFTLEFT: - jj_consume_token(SHIFTLEFT); - break; - case SHIFTRIGHT: - jj_consume_token(SHIFTRIGHT); - break; - default: - jj_la1[103] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - additive_expression(); - } - } - - static final public void additive_expression() throws ParseException { - multiplicative_expression(); - label_36: - while (true) { - if (jj_2_111(2)) { - ; - } else { - break label_36; - } - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case PLUS: - jj_consume_token(PLUS); - break; - case MINUS: - jj_consume_token(MINUS); - break; - default: - jj_la1[104] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - multiplicative_expression(); - } - } - - static final public void multiplicative_expression() throws ParseException { - pm_expression(); - label_37: - while (true) { - if (jj_2_112(2)) { - ; - } else { - break label_37; - } - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case STAR: - jj_consume_token(STAR); - break; - case DIVIDE: - jj_consume_token(DIVIDE); - break; - case MOD: - jj_consume_token(MOD); - break; - default: - jj_la1[105] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - pm_expression(); - } - } - - static final public void pm_expression() throws ParseException { - cast_expression(); - label_38: - while (true) { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case DOTSTAR: - case ARROWSTAR: - ; - break; - default: - jj_la1[106] = jj_gen; - break label_38; - } - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case DOTSTAR: - jj_consume_token(DOTSTAR); - break; - case ARROWSTAR: - jj_consume_token(ARROWSTAR); - break; - default: - jj_la1[107] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - cast_expression(); - } - } - - static final public void cast_expression() throws ParseException { - if (jj_2_113(2147483647)) { - jj_consume_token(LPARENTHESIS); - type_name(); - jj_consume_token(RPARENTHESIS); - cast_expression(); - } else if (jj_2_114(1)) { - unary_expression(); - } else { - jj_consume_token(-1); - throw new ParseException(); - } - } - - static final public void unary_expression() throws ParseException { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case PLUSPLUS: - jj_consume_token(PLUSPLUS); - unary_expression(); - break; - case MINUSMINUS: - jj_consume_token(MINUSMINUS); - unary_expression(); - break; - default: - jj_la1[108] = jj_gen; - if (jj_2_117(3)) { - unary_operator(); - cast_expression(); - } else { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case SIZEOF: - jj_consume_token(SIZEOF); - if (jj_2_115(2147483647)) { - jj_consume_token(LPARENTHESIS); - type_name(); - jj_consume_token(RPARENTHESIS); - } else if (jj_2_116(1)) { - unary_expression(); - } else { - jj_consume_token(-1); - throw new ParseException(); - } - break; - default: - jj_la1[109] = jj_gen; - if (jj_2_118(1)) { - postfix_expression(); - } else { - jj_consume_token(-1); - throw new ParseException(); - } - } - } - } - } - - static final public void new_expression() throws ParseException { - if (jj_2_119(2147483647)) { - jj_consume_token(SCOPE); - } else { - ; - } - jj_consume_token(NEW); - if (jj_2_123(2147483647)) { - jj_consume_token(LPARENTHESIS); - type_name(); - jj_consume_token(RPARENTHESIS); - } else if (jj_2_124(1)) { - if (jj_2_120(2147483647)) { - jj_consume_token(LPARENTHESIS); - expression_list(); - jj_consume_token(RPARENTHESIS); - } else { - ; - } - if (jj_2_121(2147483647)) { - jj_consume_token(LPARENTHESIS); - type_name(); - jj_consume_token(RPARENTHESIS); - } else if (jj_2_122(2147483647)) { - new_type_id(); - } else { - jj_consume_token(-1); - throw new ParseException(); - } - } else { - jj_consume_token(-1); - throw new ParseException(); - } - if (jj_2_125(2147483647)) { - new_initializer(); - } else { - ; - } - } - - static final public void new_type_id() throws ParseException { - declaration_specifiers(); - if (jj_2_126(2147483647)) { - new_declarator(); - } else { - ; - } - } - - static final public void new_declarator() throws ParseException { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LSQUAREBRACKET: - direct_new_declarator(); - break; - case SCOPE: - case AMPERSAND: - case STAR: - case ID: - ptr_operator(); - cv_qualifier_seq(); - if (jj_2_127(2)) { - new_declarator(); - } else { - ; - } - break; - default: - jj_la1[110] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - - static final public void direct_new_declarator() throws ParseException { - label_39: - while (true) { - jj_consume_token(LSQUAREBRACKET); - expression(); - jj_consume_token(RSQUAREBRACKET); - if (jj_2_128(2)) { - ; - } else { - break label_39; - } - } - } - - static final public void new_initializer() throws ParseException { - jj_consume_token(LPARENTHESIS); - if (jj_2_129(1)) { - expression_list(); - } else { - ; - } - jj_consume_token(RPARENTHESIS); - } - - static final public void delete_expression() throws ParseException { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case SCOPE: - jj_consume_token(SCOPE); - break; - default: - jj_la1[111] = jj_gen; - ; - } - jj_consume_token(DELETE); - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LSQUAREBRACKET: - jj_consume_token(LSQUAREBRACKET); - jj_consume_token(RSQUAREBRACKET); - break; - default: - jj_la1[112] = jj_gen; - ; - } - cast_expression(); - } - - static final public void unary_operator() throws ParseException { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case AMPERSAND: - jj_consume_token(AMPERSAND); - break; - case STAR: - jj_consume_token(STAR); - break; - case PLUS: - jj_consume_token(PLUS); - break; - case MINUS: - jj_consume_token(MINUS); - break; - case TILDE: - jj_consume_token(TILDE); - break; - case NOT: - jj_consume_token(NOT); - break; - default: - jj_la1[113] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - - static final public void postfix_expression() throws ParseException { - if (jj_2_133(3)) { - primary_expression(); - label_40: - while (true) { - if (jj_2_130(2)) { - ; - } else { - break label_40; - } - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case LSQUAREBRACKET: - jj_consume_token(LSQUAREBRACKET); - expression(); - jj_consume_token(RSQUAREBRACKET); - break; - case LPARENTHESIS: - jj_consume_token(LPARENTHESIS); - if (jj_2_131(1)) { - expression_list(); - } else { - ; - } - jj_consume_token(RPARENTHESIS); - break; - case DOT: - jj_consume_token(DOT); - id_expression(); - break; - case POINTERTO: - jj_consume_token(POINTERTO); - id_expression(); - break; - case PLUSPLUS: - jj_consume_token(PLUSPLUS); - break; - case MINUSMINUS: - jj_consume_token(MINUSMINUS); - break; - default: - jj_la1[114] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - } else if (jj_2_134(1)) { - simple_type_specifier(); - jj_consume_token(LPARENTHESIS); - if (jj_2_132(1)) { - expression_list(); - } else { - ; - } - jj_consume_token(RPARENTHESIS); - } else { - jj_consume_token(-1); - throw new ParseException(); - } - } - - static final public void id_expression() throws ParseException { - if (jj_2_135(2147483647)) { - scope_override(); - } else { - ; - } - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case ID: - jj_consume_token(ID); - break; - case OPERATOR: - jj_consume_token(OPERATOR); - optor(); - break; - case TILDE: - jj_consume_token(TILDE); - jj_consume_token(ID); - break; - default: - jj_la1[115] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - - static final public void primary_expression() throws ParseException { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case THIS: - jj_consume_token(THIS); - break; - case STRING: - label_41: - while (true) { - jj_consume_token(STRING); - if (jj_2_136(2)) { - ; - } else { - break label_41; - } - } - break; - case LPARENTHESIS: - jj_consume_token(LPARENTHESIS); - expression(); - jj_consume_token(RPARENTHESIS); - break; - default: - jj_la1[116] = jj_gen; - if (jj_2_137(2147483647)) { - new_expression(); - } else if (jj_2_138(2147483647)) { - delete_expression(); - } else { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case SCOPE: - case TILDE: - case OPERATOR: - case ID: - id_expression(); - break; - case TRUETOK: - case FALSETOK: - case OCTALINT: - case OCTALLONG: - case UNSIGNED_OCTALINT: - case UNSIGNED_OCTALLONG: - case DECIMALINT: - case DECIMALLONG: - case UNSIGNED_DECIMALINT: - case UNSIGNED_DECIMALLONG: - case HEXADECIMALINT: - case HEXADECIMALLONG: - case UNSIGNED_HEXADECIMALINT: - case UNSIGNED_HEXADECIMALLONG: - case FLOATONE: - case FLOATTWO: - case CHARACTER: - constant(); - break; - default: - jj_la1[117] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - } - } - - static final public void expression_list() throws ParseException { - assignment_expression(); - label_42: - while (true) { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case COMMA: - ; - break; - default: - jj_la1[118] = jj_gen; - break label_42; - } - jj_consume_token(COMMA); - assignment_expression(); - } - } - - static final public void constant() throws ParseException { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case OCTALINT: - jj_consume_token(OCTALINT); - break; - case OCTALLONG: - jj_consume_token(OCTALLONG); - break; - case DECIMALINT: - jj_consume_token(DECIMALINT); - break; - case DECIMALLONG: - jj_consume_token(DECIMALLONG); - break; - case HEXADECIMALINT: - jj_consume_token(HEXADECIMALINT); - break; - case HEXADECIMALLONG: - jj_consume_token(HEXADECIMALLONG); - break; - case UNSIGNED_OCTALINT: - jj_consume_token(UNSIGNED_OCTALINT); - break; - case UNSIGNED_OCTALLONG: - jj_consume_token(UNSIGNED_OCTALLONG); - break; - case UNSIGNED_DECIMALINT: - jj_consume_token(UNSIGNED_DECIMALINT); - break; - case UNSIGNED_DECIMALLONG: - jj_consume_token(UNSIGNED_DECIMALLONG); - break; - case UNSIGNED_HEXADECIMALINT: - jj_consume_token(UNSIGNED_HEXADECIMALINT); - break; - case UNSIGNED_HEXADECIMALLONG: - jj_consume_token(UNSIGNED_HEXADECIMALLONG); - break; - case CHARACTER: - jj_consume_token(CHARACTER); - break; - case FLOATONE: - jj_consume_token(FLOATONE); - break; - case FLOATTWO: - jj_consume_token(FLOATTWO); - break; - case TRUETOK: - jj_consume_token(TRUETOK); - break; - case FALSETOK: - jj_consume_token(FALSETOK); - break; - default: - jj_la1[119] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } - - static final public String optor() throws ParseException { - String name= getToken(1).image; - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case NEW: - jj_consume_token(NEW); - if (jj_2_139(2)) { - jj_consume_token(LSQUAREBRACKET); - jj_consume_token(RSQUAREBRACKET); - name += "[]"; - } else { - ; - } - break; - case DELETE: - jj_consume_token(DELETE); - if (jj_2_140(2)) { - jj_consume_token(LSQUAREBRACKET); - jj_consume_token(RSQUAREBRACKET); - name += "[]"; - } else { - ; - } - break; - case PLUS: - jj_consume_token(PLUS); - break; - case MINUS: - jj_consume_token(MINUS); - break; - case STAR: - jj_consume_token(STAR); - break; - case DIVIDE: - jj_consume_token(DIVIDE); - break; - case MOD: - jj_consume_token(MOD); - break; - case BITWISEXOR: - jj_consume_token(BITWISEXOR); - break; - case AMPERSAND: - jj_consume_token(AMPERSAND); - break; - case BITWISEOR: - jj_consume_token(BITWISEOR); - break; - case TILDE: - jj_consume_token(TILDE); - break; - case NOT: - jj_consume_token(NOT); - break; - case ASSIGNEQUAL: - jj_consume_token(ASSIGNEQUAL); - break; - case LESSTHAN: - jj_consume_token(LESSTHAN); - break; - case GREATERTHAN: - jj_consume_token(GREATERTHAN); - break; - case PLUSEQUAL: - jj_consume_token(PLUSEQUAL); - break; - case MINUSEQUAL: - jj_consume_token(MINUSEQUAL); - break; - case TIMESEQUAL: - jj_consume_token(TIMESEQUAL); - break; - case DIVIDEEQUAL: - jj_consume_token(DIVIDEEQUAL); - break; - case MODEQUAL: - jj_consume_token(MODEQUAL); - break; - case BITWISEXOREQUAL: - jj_consume_token(BITWISEXOREQUAL); - break; - case BITWISEANDEQUAL: - jj_consume_token(BITWISEANDEQUAL); - break; - case BITWISEOREQUAL: - jj_consume_token(BITWISEOREQUAL); - break; - case SHIFTLEFT: - jj_consume_token(SHIFTLEFT); - break; - case SHIFTRIGHT: - jj_consume_token(SHIFTRIGHT); - break; - case SHIFTRIGHTEQUAL: - jj_consume_token(SHIFTRIGHTEQUAL); - break; - case SHIFTLEFTEQUAL: - jj_consume_token(SHIFTLEFTEQUAL); - break; - case EQUAL: - jj_consume_token(EQUAL); - break; - case NOTEQUAL: - jj_consume_token(NOTEQUAL); - break; - case LESSTHANOREQUALTO: - jj_consume_token(LESSTHANOREQUALTO); - break; - case GREATERTHANOREQUALTO: - jj_consume_token(GREATERTHANOREQUALTO); - break; - case AND: - jj_consume_token(AND); - break; - case OR: - jj_consume_token(OR); - break; - case PLUSPLUS: - jj_consume_token(PLUSPLUS); - break; - case MINUSMINUS: - jj_consume_token(MINUSMINUS); - break; - case COMMA: - jj_consume_token(COMMA); - break; - case ARROWSTAR: - jj_consume_token(ARROWSTAR); - break; - case POINTERTO: - jj_consume_token(POINTERTO); - break; - case LPARENTHESIS: - jj_consume_token(LPARENTHESIS); - jj_consume_token(RPARENTHESIS); - name += ")"; - break; - case LSQUAREBRACKET: - jj_consume_token(LSQUAREBRACKET); - jj_consume_token(RSQUAREBRACKET); - name += "]"; - break; - default: - jj_la1[121] = jj_gen; - if (jj_2_142(1)) { - declaration_specifiers(); - if (jj_2_141(2)) { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case STAR: - jj_consume_token(STAR); - break; - case AMPERSAND: - jj_consume_token(AMPERSAND); - break; - default: - jj_la1[120] = jj_gen; - jj_consume_token(-1); - throw new ParseException(); - } - } else { - ; - } - } else { - jj_consume_token(-1); - throw new ParseException(); - } - } - {if (true) return name;} - throw new Error("Missing return statement in function"); - } - - static final public void exception_spec() throws ParseException { - jj_consume_token(THROW); - jj_consume_token(LPARENTHESIS); - exception_list(); - jj_consume_token(RPARENTHESIS); - } - - static final public void exception_list() throws ParseException { - type_name(); - label_43: - while (true) { - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { - case COMMA: - ; - break; - default: - jj_la1[122] = jj_gen; - break label_43; - } - jj_consume_token(COMMA); - type_name(); - } - } - - static final private boolean jj_2_1(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_1(); - jj_save(0, xla); - return retval; - } - - static final private boolean jj_2_2(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_2(); - jj_save(1, xla); - return retval; - } - - static final private boolean jj_2_3(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_3(); - jj_save(2, xla); - return retval; - } - - static final private boolean jj_2_4(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_4(); - jj_save(3, xla); - return retval; - } - - static final private boolean jj_2_5(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_5(); - jj_save(4, xla); - return retval; - } - - static final private boolean jj_2_6(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_6(); - jj_save(5, xla); - return retval; - } - - static final private boolean jj_2_7(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_7(); - jj_save(6, xla); - return retval; - } - - static final private boolean jj_2_8(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_8(); - jj_save(7, xla); - return retval; - } - - static final private boolean jj_2_9(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_9(); - jj_save(8, xla); - return retval; - } - - static final private boolean jj_2_10(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_10(); - jj_save(9, xla); - return retval; - } - - static final private boolean jj_2_11(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_11(); - jj_save(10, xla); - return retval; - } - - static final private boolean jj_2_12(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_12(); - jj_save(11, xla); - return retval; - } - - static final private boolean jj_2_13(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_13(); - jj_save(12, xla); - return retval; - } - - static final private boolean jj_2_14(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_14(); - jj_save(13, xla); - return retval; - } - - static final private boolean jj_2_15(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_15(); - jj_save(14, xla); - return retval; - } - - static final private boolean jj_2_16(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_16(); - jj_save(15, xla); - return retval; - } - - static final private boolean jj_2_17(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_17(); - jj_save(16, xla); - return retval; - } - - static final private boolean jj_2_18(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_18(); - jj_save(17, xla); - return retval; - } - - static final private boolean jj_2_19(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_19(); - jj_save(18, xla); - return retval; - } - - static final private boolean jj_2_20(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_20(); - jj_save(19, xla); - return retval; - } - - static final private boolean jj_2_21(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_21(); - jj_save(20, xla); - return retval; - } - - static final private boolean jj_2_22(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_22(); - jj_save(21, xla); - return retval; - } - - static final private boolean jj_2_23(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_23(); - jj_save(22, xla); - return retval; - } - - static final private boolean jj_2_24(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_24(); - jj_save(23, xla); - return retval; - } - - static final private boolean jj_2_25(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_25(); - jj_save(24, xla); - return retval; - } - - static final private boolean jj_2_26(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_26(); - jj_save(25, xla); - return retval; - } - - static final private boolean jj_2_27(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_27(); - jj_save(26, xla); - return retval; - } - - static final private boolean jj_2_28(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_28(); - jj_save(27, xla); - return retval; - } - - static final private boolean jj_2_29(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_29(); - jj_save(28, xla); - return retval; - } - - static final private boolean jj_2_30(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_30(); - jj_save(29, xla); - return retval; - } - - static final private boolean jj_2_31(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_31(); - jj_save(30, xla); - return retval; - } - - static final private boolean jj_2_32(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_32(); - jj_save(31, xla); - return retval; - } - - static final private boolean jj_2_33(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_33(); - jj_save(32, xla); - return retval; - } - - static final private boolean jj_2_34(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_34(); - jj_save(33, xla); - return retval; - } - - static final private boolean jj_2_35(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_35(); - jj_save(34, xla); - return retval; - } - - static final private boolean jj_2_36(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_36(); - jj_save(35, xla); - return retval; - } - - static final private boolean jj_2_37(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_37(); - jj_save(36, xla); - return retval; - } - - static final private boolean jj_2_38(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_38(); - jj_save(37, xla); - return retval; - } - - static final private boolean jj_2_39(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_39(); - jj_save(38, xla); - return retval; - } - - static final private boolean jj_2_40(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_40(); - jj_save(39, xla); - return retval; - } - - static final private boolean jj_2_41(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_41(); - jj_save(40, xla); - return retval; - } - - static final private boolean jj_2_42(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_42(); - jj_save(41, xla); - return retval; - } - - static final private boolean jj_2_43(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_43(); - jj_save(42, xla); - return retval; - } - - static final private boolean jj_2_44(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_44(); - jj_save(43, xla); - return retval; - } - - static final private boolean jj_2_45(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_45(); - jj_save(44, xla); - return retval; - } - - static final private boolean jj_2_46(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_46(); - jj_save(45, xla); - return retval; - } - - static final private boolean jj_2_47(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_47(); - jj_save(46, xla); - return retval; - } - - static final private boolean jj_2_48(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_48(); - jj_save(47, xla); - return retval; - } - - static final private boolean jj_2_49(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_49(); - jj_save(48, xla); - return retval; - } - - static final private boolean jj_2_50(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_50(); - jj_save(49, xla); - return retval; - } - - static final private boolean jj_2_51(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_51(); - jj_save(50, xla); - return retval; - } - - static final private boolean jj_2_52(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_52(); - jj_save(51, xla); - return retval; - } - - static final private boolean jj_2_53(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_53(); - jj_save(52, xla); - return retval; - } - - static final private boolean jj_2_54(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_54(); - jj_save(53, xla); - return retval; - } - - static final private boolean jj_2_55(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_55(); - jj_save(54, xla); - return retval; - } - - static final private boolean jj_2_56(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_56(); - jj_save(55, xla); - return retval; - } - - static final private boolean jj_2_57(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_57(); - jj_save(56, xla); - return retval; - } - - static final private boolean jj_2_58(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_58(); - jj_save(57, xla); - return retval; - } - - static final private boolean jj_2_59(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_59(); - jj_save(58, xla); - return retval; - } - - static final private boolean jj_2_60(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_60(); - jj_save(59, xla); - return retval; - } - - static final private boolean jj_2_61(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_61(); - jj_save(60, xla); - return retval; - } - - static final private boolean jj_2_62(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_62(); - jj_save(61, xla); - return retval; - } - - static final private boolean jj_2_63(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_63(); - jj_save(62, xla); - return retval; - } - - static final private boolean jj_2_64(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_64(); - jj_save(63, xla); - return retval; - } - - static final private boolean jj_2_65(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_65(); - jj_save(64, xla); - return retval; - } - - static final private boolean jj_2_66(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_66(); - jj_save(65, xla); - return retval; - } - - static final private boolean jj_2_67(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_67(); - jj_save(66, xla); - return retval; - } - - static final private boolean jj_2_68(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_68(); - jj_save(67, xla); - return retval; - } - - static final private boolean jj_2_69(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_69(); - jj_save(68, xla); - return retval; - } - - static final private boolean jj_2_70(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_70(); - jj_save(69, xla); - return retval; - } - - static final private boolean jj_2_71(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_71(); - jj_save(70, xla); - return retval; - } - - static final private boolean jj_2_72(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_72(); - jj_save(71, xla); - return retval; - } - - static final private boolean jj_2_73(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_73(); - jj_save(72, xla); - return retval; - } - - static final private boolean jj_2_74(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_74(); - jj_save(73, xla); - return retval; - } - - static final private boolean jj_2_75(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_75(); - jj_save(74, xla); - return retval; - } - - static final private boolean jj_2_76(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_76(); - jj_save(75, xla); - return retval; - } - - static final private boolean jj_2_77(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_77(); - jj_save(76, xla); - return retval; - } - - static final private boolean jj_2_78(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_78(); - jj_save(77, xla); - return retval; - } - - static final private boolean jj_2_79(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_79(); - jj_save(78, xla); - return retval; - } - - static final private boolean jj_2_80(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_80(); - jj_save(79, xla); - return retval; - } - - static final private boolean jj_2_81(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_81(); - jj_save(80, xla); - return retval; - } - - static final private boolean jj_2_82(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_82(); - jj_save(81, xla); - return retval; - } - - static final private boolean jj_2_83(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_83(); - jj_save(82, xla); - return retval; - } - - static final private boolean jj_2_84(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_84(); - jj_save(83, xla); - return retval; - } - - static final private boolean jj_2_85(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_85(); - jj_save(84, xla); - return retval; - } - - static final private boolean jj_2_86(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_86(); - jj_save(85, xla); - return retval; - } - - static final private boolean jj_2_87(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_87(); - jj_save(86, xla); - return retval; - } - - static final private boolean jj_2_88(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_88(); - jj_save(87, xla); - return retval; - } - - static final private boolean jj_2_89(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_89(); - jj_save(88, xla); - return retval; - } - - static final private boolean jj_2_90(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_90(); - jj_save(89, xla); - return retval; - } - - static final private boolean jj_2_91(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_91(); - jj_save(90, xla); - return retval; - } - - static final private boolean jj_2_92(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_92(); - jj_save(91, xla); - return retval; - } - - static final private boolean jj_2_93(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_93(); - jj_save(92, xla); - return retval; - } - - static final private boolean jj_2_94(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_94(); - jj_save(93, xla); - return retval; - } - - static final private boolean jj_2_95(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_95(); - jj_save(94, xla); - return retval; - } - - static final private boolean jj_2_96(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_96(); - jj_save(95, xla); - return retval; - } - - static final private boolean jj_2_97(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_97(); - jj_save(96, xla); - return retval; - } - - static final private boolean jj_2_98(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_98(); - jj_save(97, xla); - return retval; - } - - static final private boolean jj_2_99(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_99(); - jj_save(98, xla); - return retval; - } - - static final private boolean jj_2_100(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_100(); - jj_save(99, xla); - return retval; - } - - static final private boolean jj_2_101(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_101(); - jj_save(100, xla); - return retval; - } - - static final private boolean jj_2_102(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_102(); - jj_save(101, xla); - return retval; - } - - static final private boolean jj_2_103(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_103(); - jj_save(102, xla); - return retval; - } - - static final private boolean jj_2_104(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_104(); - jj_save(103, xla); - return retval; - } - - static final private boolean jj_2_105(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_105(); - jj_save(104, xla); - return retval; - } - - static final private boolean jj_2_106(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_106(); - jj_save(105, xla); - return retval; - } - - static final private boolean jj_2_107(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_107(); - jj_save(106, xla); - return retval; - } - - static final private boolean jj_2_108(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_108(); - jj_save(107, xla); - return retval; - } - - static final private boolean jj_2_109(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_109(); - jj_save(108, xla); - return retval; - } - - static final private boolean jj_2_110(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_110(); - jj_save(109, xla); - return retval; - } - - static final private boolean jj_2_111(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_111(); - jj_save(110, xla); - return retval; - } - - static final private boolean jj_2_112(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_112(); - jj_save(111, xla); - return retval; - } - - static final private boolean jj_2_113(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_113(); - jj_save(112, xla); - return retval; - } - - static final private boolean jj_2_114(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_114(); - jj_save(113, xla); - return retval; - } - - static final private boolean jj_2_115(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_115(); - jj_save(114, xla); - return retval; - } - - static final private boolean jj_2_116(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_116(); - jj_save(115, xla); - return retval; - } - - static final private boolean jj_2_117(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_117(); - jj_save(116, xla); - return retval; - } - - static final private boolean jj_2_118(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_118(); - jj_save(117, xla); - return retval; - } - - static final private boolean jj_2_119(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_119(); - jj_save(118, xla); - return retval; - } - - static final private boolean jj_2_120(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_120(); - jj_save(119, xla); - return retval; - } - - static final private boolean jj_2_121(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_121(); - jj_save(120, xla); - return retval; - } - - static final private boolean jj_2_122(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_122(); - jj_save(121, xla); - return retval; - } - - static final private boolean jj_2_123(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_123(); - jj_save(122, xla); - return retval; - } - - static final private boolean jj_2_124(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_124(); - jj_save(123, xla); - return retval; - } - - static final private boolean jj_2_125(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_125(); - jj_save(124, xla); - return retval; - } - - static final private boolean jj_2_126(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_126(); - jj_save(125, xla); - return retval; - } - - static final private boolean jj_2_127(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_127(); - jj_save(126, xla); - return retval; - } - - static final private boolean jj_2_128(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_128(); - jj_save(127, xla); - return retval; - } - - static final private boolean jj_2_129(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_129(); - jj_save(128, xla); - return retval; - } - - static final private boolean jj_2_130(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_130(); - jj_save(129, xla); - return retval; - } - - static final private boolean jj_2_131(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_131(); - jj_save(130, xla); - return retval; - } - - static final private boolean jj_2_132(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_132(); - jj_save(131, xla); - return retval; - } - - static final private boolean jj_2_133(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_133(); - jj_save(132, xla); - return retval; - } - - static final private boolean jj_2_134(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_134(); - jj_save(133, xla); - return retval; - } - - static final private boolean jj_2_135(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_135(); - jj_save(134, xla); - return retval; - } - - static final private boolean jj_2_136(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_136(); - jj_save(135, xla); - return retval; - } - - static final private boolean jj_2_137(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_137(); - jj_save(136, xla); - return retval; - } - - static final private boolean jj_2_138(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_138(); - jj_save(137, xla); - return retval; - } - - static final private boolean jj_2_139(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_139(); - jj_save(138, xla); - return retval; - } - - static final private boolean jj_2_140(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_140(); - jj_save(139, xla); - return retval; - } - - static final private boolean jj_2_141(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_141(); - jj_save(140, xla); - return retval; - } - - static final private boolean jj_2_142(int xla) { - jj_la = xla; jj_lastpos = jj_scanpos = token; - boolean retval = !jj_3_142(); - jj_save(141, xla); - return retval; - } - - static final private boolean jj_3_109() { - if (jj_scan_token(AMPERSAND)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_110()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_114() { - if (jj_scan_token(GREATERTHANOREQUALTO)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_113() { - if (jj_scan_token(LESSTHANOREQUALTO)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_112() { - if (jj_scan_token(GREATERTHAN)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_111() { - if (jj_scan_token(LESSTHAN)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_441() { - if (jj_scan_token(BITWISEOR)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_428()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_432() { - if (jj_scan_token(AND)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_414()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_454() { - if (jj_scan_token(BITWISEXOR)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_437()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_110() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_111()) { - jj_scanpos = xsp; - if (jj_3R_112()) { - jj_scanpos = xsp; - if (jj_3R_113()) { - jj_scanpos = xsp; - if (jj_3R_114()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_105()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_238() { - if (jj_3R_105()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3_110()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3R_422() { - if (jj_scan_token(OR)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_362()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_110() { - if (jj_3R_238()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_473()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3R_437() { - if (jj_3R_110()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3_109()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3R_428() { - if (jj_3R_437()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_454()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3R_414() { - if (jj_3R_428()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_441()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3R_362() { - if (jj_3R_414()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_432()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3R_290() { - if (jj_3R_362()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_422()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3R_91() { - if (jj_3R_219()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_377() { - if (jj_scan_token(QUESTIONMARK)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_219()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(COLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_219()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_108() { - if (jj_scan_token(COMMA)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_100()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_219() { - if (jj_3R_290()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_377()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_419() { - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_388() { - if (jj_scan_token(BITWISEOREQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_387() { - if (jj_scan_token(BITWISEXOREQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_386() { - if (jj_scan_token(BITWISEANDEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_385() { - if (jj_scan_token(SHIFTRIGHTEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_384() { - if (jj_scan_token(SHIFTLEFTEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_383() { - if (jj_scan_token(MINUSEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_382() { - if (jj_scan_token(PLUSEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_381() { - if (jj_scan_token(MODEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_380() { - if (jj_scan_token(DIVIDEEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_378() { - if (jj_scan_token(ASSIGNEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_379() { - if (jj_scan_token(TIMESEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_298() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_378()) { - jj_scanpos = xsp; - if (jj_3R_379()) { - jj_scanpos = xsp; - if (jj_3R_380()) { - jj_scanpos = xsp; - if (jj_3R_381()) { - jj_scanpos = xsp; - if (jj_3R_382()) { - jj_scanpos = xsp; - if (jj_3R_383()) { - jj_scanpos = xsp; - if (jj_3R_384()) { - jj_scanpos = xsp; - if (jj_3R_385()) { - jj_scanpos = xsp; - if (jj_3R_386()) { - jj_scanpos = xsp; - if (jj_3R_387()) { - jj_scanpos = xsp; - if (jj_3R_388()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_100()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_100() { - if (jj_3R_219()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_298()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_102() { - if (jj_3R_107()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_107() { - if (jj_3R_100()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_372() { - if (jj_3R_418()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_107() { - if (jj_3R_100()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3_108()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3R_296() { - if (jj_scan_token(THROW)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3_107()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_450() { - if (jj_scan_token(ELLIPSIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_106() { - if (jj_3R_95()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_438() { - Token xsp; - xsp = jj_scanpos; - if (jj_3_106()) { - jj_scanpos = xsp; - if (jj_3R_450()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_430() { - if (jj_scan_token(FINALLY)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_292()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_418() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_429()) { - jj_scanpos = xsp; - if (jj_3R_430()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_429() { - if (jj_scan_token(CATCH)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_438()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_292()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_105() { - if (jj_3R_107()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_104() { - if (jj_3R_107()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_295() { - if (jj_scan_token(TRY)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_292()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_372()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3R_371() { - if (jj_scan_token(RETURN)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3_105()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_101() { - if (jj_3R_57()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_370() { - if (jj_scan_token(BREAK)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_369() { - if (jj_scan_token(CONTINUE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_294() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_368()) { - jj_scanpos = xsp; - if (jj_3R_369()) { - jj_scanpos = xsp; - if (jj_3R_370()) { - jj_scanpos = xsp; - if (jj_3R_371()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_368() { - if (jj_scan_token(GOTO)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(ID)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_103() { - if (jj_3R_107()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_375() { - if (jj_scan_token(FOR)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3_101()) { - jj_scanpos = xsp; - if (jj_3_102()) { - jj_scanpos = xsp; - if (jj_3R_419()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3_103()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3_104()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_106()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_374() { - if (jj_scan_token(DO)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_106()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(WHILE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_107()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_297() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_373()) { - jj_scanpos = xsp; - if (jj_3R_374()) { - jj_scanpos = xsp; - if (jj_3R_375()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_373() { - if (jj_scan_token(WHILE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_107()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_106()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_100() { - if (jj_scan_token(ELSE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_106()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_367() { - if (jj_scan_token(SWITCH)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_107()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_106()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_293() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_366()) { - jj_scanpos = xsp; - if (jj_3R_367()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_366() { - if (jj_scan_token(IF)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_107()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_106()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3_100()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_98() { - if (jj_3R_109()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_99() { - Token xsp; - xsp = jj_scanpos; - if (jj_3_98()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RCURLYBRACE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_365() { - return false; - } - - static final private boolean jj_3R_292() { - if (jj_scan_token(LCURLYBRACE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - lookingAhead = true; - jj_semLA = fgCallback.overreadBlocks(); - lookingAhead = false; - if (!jj_semLA || jj_3R_365()) { - jj_scanpos = xsp; - if (jj_3_99()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_236() { - if (jj_scan_token(_DEFAULT)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(COLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_106()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_235() { - if (jj_scan_token(CASE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_91()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(COLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_106()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_108() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_234()) { - jj_scanpos = xsp; - if (jj_3R_235()) { - jj_scanpos = xsp; - if (jj_3R_236()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_234() { - if (jj_scan_token(ID)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(COLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_106()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_233() { - if (jj_3R_297()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_97() { - if (jj_3R_108()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_232() { - if (jj_3R_296()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_96() { - if (jj_3R_107()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_231() { - if (jj_3R_295()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_230() { - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_95() { - if (jj_3R_57()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_229() { - if (jj_3R_294()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_228() { - if (jj_3R_293()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_227() { - if (jj_3R_292()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_94() { - if (jj_3R_106()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_226() { - if (jj_3R_107()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_106() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_225()) { - jj_scanpos = xsp; - if (jj_3R_226()) { - jj_scanpos = xsp; - if (jj_3R_227()) { - jj_scanpos = xsp; - if (jj_3R_228()) { - jj_scanpos = xsp; - if (jj_3R_229()) { - jj_scanpos = xsp; - if (jj_3R_230()) { - jj_scanpos = xsp; - if (jj_3R_231()) { - jj_scanpos = xsp; - if (jj_3R_232()) { - jj_scanpos = xsp; - if (jj_3_97()) { - jj_scanpos = xsp; - if (jj_3R_233()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_225() { - if (jj_3R_57()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_413() { - if (jj_scan_token(COMMA)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_203()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_237() { - if (jj_3R_106()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_109() { - Token xsp; - if (jj_3R_237()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - while (true) { - xsp = jj_scanpos; - if (jj_3R_237()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3_93() { - if (jj_3R_105()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_92() { - if (jj_3R_104()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_203() { - Token xsp; - xsp = jj_scanpos; - if (jj_3_92()) { - jj_scanpos = xsp; - if (jj_3_93()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_315() { - if (jj_scan_token(COMMA)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_314()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_77() { - if (jj_3R_203()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_413()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3_91() { - if (jj_3R_96()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_90() { - if (jj_scan_token(CLASS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(ID)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_314() { - Token xsp; - xsp = jj_scanpos; - if (jj_3_90()) { - jj_scanpos = xsp; - if (jj_3_91()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_270() { - if (jj_3R_314()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_315()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3R_160() { - if (jj_scan_token(TEMPLATE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(LESSTHAN)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_270()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(GREATERTHAN)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_89() { - if (jj_3R_84()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_88() { - if (jj_3R_91()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_443() { - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3_89()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_433() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_442()) { - jj_scanpos = xsp; - if (jj_3R_443()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_442() { - if (jj_scan_token(LSQUAREBRACKET)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3_88()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RSQUAREBRACKET)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_86() { - if (jj_3R_91()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_103() { - if (jj_3R_89()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_222()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_99() { - if (jj_scan_token(COMMA)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_98()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_94() { - if (jj_scan_token(COMMA)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_223() { - if (jj_scan_token(LSQUAREBRACKET)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3_86()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RSQUAREBRACKET)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_102() { - Token xsp; - if (jj_3R_223()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - while (true) { - xsp = jj_scanpos; - if (jj_3R_223()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3R_423() { - if (jj_3R_433()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_101() { - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_222()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - if (jj_3R_423()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - while (true) { - xsp = jj_scanpos; - if (jj_3R_423()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3_87() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_101()) { - jj_scanpos = xsp; - if (jj_3R_102()) { - jj_scanpos = xsp; - if (jj_3R_103()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_222() { - Token xsp; - xsp = jj_scanpos; - if (jj_3_87()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_104() { - if (jj_3R_49()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_222()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_82() { - if (jj_scan_token(COMMA)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_96()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_80() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_94()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(ELLIPSIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_85() { - if (jj_3R_100()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_98() { - Token xsp; - xsp = jj_scanpos; - if (jj_3_84()) { - jj_scanpos = xsp; - if (jj_3_85()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_83() { - if (jj_3R_97()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_84() { - if (jj_scan_token(LCURLYBRACE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_98()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_99()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - if (jj_scan_token(RCURLYBRACE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_79() { - if (jj_3R_84()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_417() { - if (jj_scan_token(ASSIGNEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_100()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_416() { - if (jj_3R_222()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_415() { - if (jj_3R_97()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_96() { - if (jj_3R_49()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_415()) { - jj_scanpos = xsp; - if (jj_3R_416()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3R_417()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_95() { - if (jj_3R_96()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3_82()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3R_210() { - if (jj_scan_token(ELLIPSIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_84() { - Token xsp; - xsp = jj_scanpos; - if (jj_3_81()) { - jj_scanpos = xsp; - if (jj_3R_210()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_81() { - if (jj_3R_95()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3_80()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_271() { - return false; - } - - static final private boolean jj_3R_162() { - if (jj_scan_token(TILDE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - lookingAhead = true; - jj_semLA = isCtor(); - lookingAhead = false; - if (!jj_semLA || jj_3R_271()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(ID)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3_79()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_77() { - if (jj_3R_93()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_78() { - if (jj_3R_75()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_488() { - if (jj_scan_token(COMMA)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_487()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_161() { - if (jj_3R_163()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_54() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_161()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_162()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_487() { - if (jj_3R_83()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3_77()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_479() { - if (jj_scan_token(COLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_487()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_488()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3_75() { - if (jj_3R_84()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_76() { - if (jj_3R_92()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_318() { - return false; - } - - static final private boolean jj_3R_152() { - return false; - } - - static final private boolean jj_3R_283() { - Token xsp; - xsp = jj_scanpos; - lookingAhead = true; - jj_semLA = isCtor(); - lookingAhead = false; - if (!jj_semLA || jj_3R_318()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_83()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3_75()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3_76()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_46() { - Token xsp; - xsp = jj_scanpos; - lookingAhead = true; - jj_semLA = isCtor(); - lookingAhead = false; - if (!jj_semLA || jj_3R_152()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_83()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_468() { - if (jj_3R_479()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_461() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_468()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_292()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_460() { - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_459() { - if (jj_3R_92()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_264() { - if (jj_3R_45()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_283()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_459()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3R_460()) { - jj_scanpos = xsp; - if (jj_3R_461()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_313() { - if (jj_scan_token(VIRTUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_312() { - if (jj_scan_token(INLINE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_309() { - if (jj_3R_160()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_263() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_309()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_45()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_54()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_292()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_74() { - if (jj_scan_token(ASSIGNEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_268() { - if (jj_scan_token(INLINE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_313()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_151() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_267()) { - jj_scanpos = xsp; - if (jj_3R_268()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_267() { - if (jj_scan_token(VIRTUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_312()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_45() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_151()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_72() { - if (jj_3R_84()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_486() { - if (jj_scan_token(ASSIGNEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(OCTALINT)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_485() { - if (jj_3R_92()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_73() { - if (jj_3R_85()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_275() { - if (jj_3R_83()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3_72()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3_73()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3R_485()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3R_486()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_71() { - if (jj_3R_89()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_166() { - if (jj_3R_275()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_165() { - if (jj_3R_89()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_58()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_58() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_165()) { - jj_scanpos = xsp; - if (jj_3R_166()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_70() { - if (jj_3R_89()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_48() { - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3_70()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - if (jj_3R_83()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_64() { - if (jj_3R_90()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_65() { - if (jj_3R_90()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_68() { - if (jj_3R_84()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_67() { - if (jj_3R_91()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_449() { - if (jj_3R_92()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_69() { - if (jj_3R_85()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_218() { - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3_68()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3_69()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3R_449()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_289() { - if (jj_scan_token(LSQUAREBRACKET)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3_67()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RSQUAREBRACKET)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_90() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_217()) { - jj_scanpos = xsp; - if (jj_3R_218()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_217() { - Token xsp; - if (jj_3R_289()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - while (true) { - xsp = jj_scanpos; - if (jj_3R_289()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3_63() { - if (jj_3R_90()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_364() { - if (jj_3R_83()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3_65()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_363() { - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_97()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3_64()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_66() { - if (jj_scan_token(TILDE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(ID)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3_63()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_291() { - Token xsp; - xsp = jj_scanpos; - if (jj_3_66()) { - jj_scanpos = xsp; - if (jj_3R_363()) { - jj_scanpos = xsp; - if (jj_3R_364()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_62() { - if (jj_3R_89()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_60() { - if (jj_scan_token(CONST)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_221() { - if (jj_3R_291()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_59() { - if (jj_scan_token(VOLATILE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_220() { - if (jj_3R_89()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_97()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_97() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_220()) { - jj_scanpos = xsp; - if (jj_3R_221()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_88() { - if (jj_scan_token(VOLATILE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3_60()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_87() { - if (jj_scan_token(CONST)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3_59()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_61() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_87()) { - jj_scanpos = xsp; - if (jj_3R_88()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_287() { - Token xsp; - xsp = jj_scanpos; - if (jj_3_61()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_216() { - if (jj_3R_288()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_287()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_215() { - if (jj_scan_token(STAR)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_287()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_436() { - if (jj_scan_token(COMMA)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_213()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_89() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_214()) { - jj_scanpos = xsp; - if (jj_3R_215()) { - jj_scanpos = xsp; - if (jj_3R_216()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_214() { - if (jj_scan_token(AMPERSAND)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_287()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_448() { - if (jj_scan_token(ASSIGNEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_91()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_213() { - if (jj_scan_token(ID)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_448()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_58() { - if (jj_scan_token(LCURLYBRACE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_86()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RCURLYBRACE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_86() { - if (jj_3R_213()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_436()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3_56() { - if (jj_3R_84()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_308() { - if (jj_scan_token(ID)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3_58()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_307() { - if (jj_scan_token(LCURLYBRACE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_86()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RCURLYBRACE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_188() { - if (jj_scan_token(ENUM)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_307()) { - jj_scanpos = xsp; - if (jj_3R_308()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_484() { - if (jj_scan_token(ASSIGNEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(OCTALINT)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_470() { - if (jj_scan_token(AMPERSAND)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_476() { - if (jj_scan_token(ASSIGNEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(OCTALINT)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_463() { - if (jj_3R_92()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_57() { - if (jj_3R_85()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_462() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_469()) { - jj_scanpos = xsp; - if (jj_3R_470()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_469() { - if (jj_scan_token(STAR)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_55() { - if (jj_3R_75()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_311() { - if (jj_3R_163()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_266() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_311()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(OPERATOR)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_49()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3R_462()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3_56()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3_57()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3R_463()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_464()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_475() { - if (jj_3R_97()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_477() { - if (jj_scan_token(COMMA)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_475()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_484()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_466() { - if (jj_3R_475()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_476()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - while (true) { - xsp = jj_scanpos; - if (jj_3R_477()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3R_202() { - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_53() { - if (jj_scan_token(ID)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_201() { - if (jj_3R_284()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(COLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_54() { - if (jj_3R_83()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_52() { - if (jj_3R_49()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_458() { - if (jj_3R_466()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_82() { - if (jj_3R_49()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_51() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_82()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_48()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_200() { - if (jj_3R_58()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_206() { - if (jj_scan_token(VIRTUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_50() { - if (jj_3R_45()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_46()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_446() { - if (jj_scan_token(VIRTUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_199() { - if (jj_3R_49()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_458()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_49() { - if (jj_3R_45()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_46()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_198() { - if (jj_3R_265()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_81() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_205()) { - jj_scanpos = xsp; - if (jj_3R_206()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_205() { - if (jj_scan_token(INLINE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_48() { - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_81()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - if (jj_scan_token(TILDE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_80() { - if (jj_scan_token(ID)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_197() { - if (jj_3R_45()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_283()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_47() { - if (jj_3R_45()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_54()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(LCURLYBRACE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_196() { - if (jj_3R_264()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_46() { - if (jj_scan_token(OPERATOR)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_45() { - if (jj_scan_token(ENUM)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_80()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(LCURLYBRACE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_79() { - if (jj_scan_token(TYPEDEF)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_195() { - if (jj_3R_45()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_162()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_321() { - if (jj_scan_token(PRIVATE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_44() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_79()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_51()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(LCURLYBRACE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_435() { - if (jj_3R_284()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_446()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_194() { - if (jj_3R_263()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_457() { - if (jj_3R_466()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_193() { - if (jj_3R_266()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_192() { - if (jj_3R_188()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_457()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_191() { - if (jj_3R_57()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_320() { - if (jj_scan_token(PROTECTED)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_76() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_191()) { - jj_scanpos = xsp; - if (jj_3R_192()) { - jj_scanpos = xsp; - if (jj_3R_193()) { - jj_scanpos = xsp; - if (jj_3R_194()) { - jj_scanpos = xsp; - if (jj_3R_195()) { - jj_scanpos = xsp; - if (jj_3R_196()) { - jj_scanpos = xsp; - if (jj_3R_197()) { - jj_scanpos = xsp; - if (jj_3R_198()) { - jj_scanpos = xsp; - if (jj_3R_199()) { - jj_scanpos = xsp; - if (jj_3R_200()) { - jj_scanpos = xsp; - if (jj_3_54()) { - jj_scanpos = xsp; - if (jj_3R_201()) { - jj_scanpos = xsp; - if (jj_3R_202()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_412() { - if (jj_scan_token(COMMA)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_411()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_43() { - if (jj_3R_75()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_427() { - if (jj_scan_token(LESSTHAN)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_77()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(GREATERTHAN)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_445() { - if (jj_3R_284()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_284() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_319()) { - jj_scanpos = xsp; - if (jj_3R_320()) { - jj_scanpos = xsp; - if (jj_3R_321()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_319() { - if (jj_scan_token(PUBLIC)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_426() { - if (jj_3R_163()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_425() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_434()) { - jj_scanpos = xsp; - if (jj_3R_435()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_434() { - if (jj_scan_token(VIRTUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_445()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_411() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_425()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3R_426()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(ID)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3R_427()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_204() { - if (jj_scan_token(COLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_411()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_412()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3_41() { - if (jj_scan_token(LESSTHAN)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_77()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(GREATERTHAN)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_317() { - if (jj_scan_token(ID)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3_41()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_40() { - if (jj_3R_76()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_78() { - if (jj_3R_204()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_42() { - if (jj_scan_token(ID)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_78()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(LCURLYBRACE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - while (true) { - xsp = jj_scanpos; - if (jj_3_40()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - if (jj_scan_token(RCURLYBRACE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_39() { - if (jj_3R_76()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_158() { - if (jj_scan_token(CLASS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_281() { - if (jj_scan_token(CLASS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_316() { - if (jj_scan_token(LCURLYBRACE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3_39()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - if (jj_scan_token(RCURLYBRACE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_280() { - if (jj_scan_token(UNION)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_279() { - if (jj_scan_token(STRUCT)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_157() { - if (jj_scan_token(UNION)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_182() { - if (jj_scan_token(FLOAT)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_187() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_279()) { - jj_scanpos = xsp; - if (jj_3R_280()) { - jj_scanpos = xsp; - if (jj_3R_281()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3R_316()) { - jj_scanpos = xsp; - if (jj_3_42()) { - jj_scanpos = xsp; - if (jj_3R_317()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_269() { - if (jj_3R_204()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_181() { - if (jj_scan_token(LONG)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_159() { - if (jj_scan_token(ID)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_269()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_156() { - if (jj_scan_token(STRUCT)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_51() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_156()) { - jj_scanpos = xsp; - if (jj_3R_157()) { - jj_scanpos = xsp; - if (jj_3R_158()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3R_159()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_180() { - if (jj_scan_token(INT)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_185() { - if (jj_scan_token(UNSIGNED)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_440() { - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_93()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_431() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_439()) { - jj_scanpos = xsp; - if (jj_3R_440()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_439() { - if (jj_scan_token(ASSIGNEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_98()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_179() { - if (jj_scan_token(SHORT)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_276() { - if (jj_3R_97()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_431()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_184() { - if (jj_scan_token(SIGNED)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_178() { - if (jj_scan_token(CHAR)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_420() { - if (jj_scan_token(COMMA)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_276()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_167() { - if (jj_3R_276()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_420()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3R_183() { - if (jj_scan_token(DOUBLE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_278() { - if (jj_scan_token(REGISTER)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_177() { - if (jj_scan_token(VOID)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_64() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_177()) { - jj_scanpos = xsp; - if (jj_3R_178()) { - jj_scanpos = xsp; - if (jj_3R_179()) { - jj_scanpos = xsp; - if (jj_3R_180()) { - jj_scanpos = xsp; - if (jj_3R_181()) { - jj_scanpos = xsp; - if (jj_3R_182()) { - jj_scanpos = xsp; - if (jj_3R_183()) { - jj_scanpos = xsp; - if (jj_3R_184()) { - jj_scanpos = xsp; - if (jj_3R_185()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_172() { - if (jj_scan_token(ID)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_171() { - if (jj_scan_token(TYPEDEF)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_170() { - if (jj_scan_token(EXTERN)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_169() { - if (jj_scan_token(STATIC)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_277() { - if (jj_scan_token(AUTO)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_212() { - if (jj_scan_token(VOLATILE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_168() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_277()) { - jj_scanpos = xsp; - if (jj_3R_278()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_60() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_168()) { - jj_scanpos = xsp; - if (jj_3R_169()) { - jj_scanpos = xsp; - if (jj_3R_170()) { - jj_scanpos = xsp; - if (jj_3R_171()) { - jj_scanpos = xsp; - lookingAhead = true; - jj_semLA = fgCallback.isStorageClassSpecifier(getToken(1)); - lookingAhead = false; - if (!jj_semLA || jj_3R_172()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_186() { - return false; - } - - static final private boolean jj_3R_85() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_211()) { - jj_scanpos = xsp; - if (jj_3R_212()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_211() { - if (jj_scan_token(CONST)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_65() { - Token xsp; - xsp = jj_scanpos; - lookingAhead = true; - jj_semLA = isNotNull(getFullyScopedName()); - lookingAhead = false; - if (!jj_semLA || jj_3R_186()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_83()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_288() { - if (jj_3R_163()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(STAR)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_285() { - if (jj_scan_token(LESSTHAN)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_77()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(GREATERTHAN)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_38() { - if (jj_3R_75()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_74() { - if (jj_scan_token(LESSTHAN)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_77()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(GREATERTHAN)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_209() { - if (jj_scan_token(OPERATOR)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_286()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_73() { - if (jj_scan_token(LESSTHAN)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_77()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(GREATERTHAN)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_208() { - if (jj_scan_token(ID)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_285()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_207() { - if (jj_3R_163()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_83() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_207()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3R_208()) { - jj_scanpos = xsp; - if (jj_3R_209()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_37() { - if (jj_scan_token(ID)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_74()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SCOPE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_273() { - Token xsp; - if (jj_3_37()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - while (true) { - xsp = jj_scanpos; - if (jj_3_37()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3_36() { - if (jj_scan_token(ID)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_73()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SCOPE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_272() { - if (jj_scan_token(SCOPE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3_36()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3R_163() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_272()) { - jj_scanpos = xsp; - if (jj_3R_273()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_282() { - if (jj_scan_token(LESSTHAN)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_77()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(GREATERTHAN)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_190() { - if (jj_scan_token(ID)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_282()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SCOPE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_75() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_189()) { - jj_scanpos = xsp; - if (jj_3R_190()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_189() { - if (jj_scan_token(SCOPE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_35() { - if (jj_3R_65()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_261() { - if (jj_3R_64()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_138() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_261()) { - jj_scanpos = xsp; - if (jj_3_35()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_28() { - if (jj_3R_64()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_31() { - if (jj_3R_61()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_30() { - if (jj_3R_65()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_29() { - if (jj_3R_61()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_72() { - if (jj_3R_188()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_69() { - if (jj_3R_64()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_71() { - if (jj_3R_187()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_33() { - if (jj_3R_64()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_34() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_71()) { - jj_scanpos = xsp; - if (jj_3R_72()) { - jj_scanpos = xsp; - if (jj_3_30()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - while (true) { - xsp = jj_scanpos; - if (jj_3_31()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3_27() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_69()) { - jj_scanpos = xsp; - if (jj_3_29()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_153() { - if (jj_3R_64()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3_27()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3_21() { - if (jj_3R_61()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_23() { - if (jj_3R_61()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_20() { - if (jj_3R_64()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_22() { - if (jj_3R_65()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_67() { - if (jj_3R_188()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_66() { - if (jj_3R_187()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_63() { - if (jj_3R_61()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_25() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_66()) { - jj_scanpos = xsp; - if (jj_3R_67()) { - jj_scanpos = xsp; - if (jj_3_22()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - while (true) { - xsp = jj_scanpos; - if (jj_3_23()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3_24() { - if (jj_3R_64()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_62() { - if (jj_3R_64()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_19() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_62()) { - jj_scanpos = xsp; - if (jj_3R_63()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_68() { - if (jj_3R_64()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3_19()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3_18() { - if (jj_3R_61()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_26() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_68()) { - jj_scanpos = xsp; - if (jj_3_25()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_70() { - if (jj_3R_61()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_32() { - Token xsp; - if (jj_3R_70()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - while (true) { - xsp = jj_scanpos; - if (jj_3R_70()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - xsp = jj_scanpos; - if (jj_3_26()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_49() { - Token xsp; - xsp = jj_scanpos; - if (jj_3_32()) { - jj_scanpos = xsp; - if (jj_3R_153()) { - jj_scanpos = xsp; - if (jj_3_34()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_176() { - if (jj_scan_token(FRIEND)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_175() { - if (jj_scan_token(VIRTUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_174() { - if (jj_scan_token(INLINE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_173() { - if (jj_3R_85()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_17() { - if (jj_3R_60()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_59() { - if (jj_3R_167()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_61() { - Token xsp; - xsp = jj_scanpos; - if (jj_3_17()) { - jj_scanpos = xsp; - if (jj_3R_173()) { - jj_scanpos = xsp; - if (jj_3R_174()) { - jj_scanpos = xsp; - if (jj_3R_175()) { - jj_scanpos = xsp; - if (jj_3R_176()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_164() { - if (jj_3R_274()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_14() { - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_57() { - Token xsp; - xsp = jj_scanpos; - if (jj_3_16()) { - jj_scanpos = xsp; - if (jj_3R_164()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_16() { - if (jj_3R_49()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_59()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_13() { - if (jj_3R_44()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_421() { - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_15() { - if (jj_3R_57()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_376() { - if (jj_scan_token(LCURLYBRACE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3_13()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - if (jj_scan_token(RCURLYBRACE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3R_421()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_274() { - if (jj_scan_token(EXTERN)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(STRING)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_376()) { - jj_scanpos = xsp; - if (jj_3_15()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_472() { - if (jj_3R_292()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_471() { - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_464() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_471()) { - jj_scanpos = xsp; - if (jj_3R_472()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_310() { - if (jj_3R_58()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_464()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_12() { - if (jj_3R_49()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_58()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_464()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_265() { - Token xsp; - xsp = jj_scanpos; - if (jj_3_12()) { - jj_scanpos = xsp; - if (jj_3R_310()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_47() { - if (jj_3R_49()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_465() { - if (jj_3R_167()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_3() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_47()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_48()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_2() { - if (jj_3R_45()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_46()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_150() { - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_11() { - if (jj_3R_57()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_4() { - if (jj_3R_49()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_465()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_453() { - if (jj_3R_265()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_56() { - if (jj_3R_163()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_10() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_56()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(OPERATOR)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_452() { - if (jj_3R_264()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_55() { - if (jj_3R_49()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_451() { - if (jj_3R_167()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_155() { - if (jj_3R_160()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_9() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_55()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_48()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_52() { - if (jj_scan_token(ID)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_149() { - if (jj_3R_160()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_452()) { - jj_scanpos = xsp; - if (jj_3R_453()) { - jj_scanpos = xsp; - if (jj_3_4()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_8() { - if (jj_3R_45()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_46()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_53() { - if (jj_3R_160()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_148() { - if (jj_3R_266()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_7() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_53()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_45()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_54()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(LCURLYBRACE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_147() { - if (jj_3R_265()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_6() { - if (jj_scan_token(ENUM)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_52()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(LCURLYBRACE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_154() { - if (jj_scan_token(TYPEDEF)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_50() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_154()) { - jj_scanpos = xsp; - if (jj_3R_155()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_5() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_50()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_51()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(LCURLYBRACE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_146() { - if (jj_3R_264()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_145() { - if (jj_3R_263()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_262() { - if (jj_3R_160()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_144() { - if (jj_3R_188()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_451()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_143() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_262()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_57()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_44() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_143()) { - jj_scanpos = xsp; - if (jj_3R_144()) { - jj_scanpos = xsp; - if (jj_3R_145()) { - jj_scanpos = xsp; - if (jj_3R_146()) { - jj_scanpos = xsp; - if (jj_3R_147()) { - jj_scanpos = xsp; - if (jj_3R_148()) { - jj_scanpos = xsp; - if (jj_3R_149()) { - jj_scanpos = xsp; - if (jj_3_11()) { - jj_scanpos = xsp; - if (jj_3R_150()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_1() { - if (jj_3R_44()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_142() { - if (jj_scan_token(AMPERSAND)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_141() { - if (jj_scan_token(STAR)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_478() { - if (jj_scan_token(COMMA)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_104()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_141() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_141()) { - jj_scanpos = xsp; - if (jj_3R_142()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_467() { - if (jj_3R_104()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_478()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3R_92() { - if (jj_scan_token(THROW)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_467()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_142() { - if (jj_3R_49()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3_141()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_361() { - if (jj_scan_token(LSQUAREBRACKET)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RSQUAREBRACKET)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_360() { - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_359() { - if (jj_scan_token(POINTERTO)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_358() { - if (jj_scan_token(ARROWSTAR)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_357() { - if (jj_scan_token(COMMA)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_356() { - if (jj_scan_token(MINUSMINUS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_355() { - if (jj_scan_token(PLUSPLUS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_354() { - if (jj_scan_token(OR)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_353() { - if (jj_scan_token(AND)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_352() { - if (jj_scan_token(GREATERTHANOREQUALTO)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_351() { - if (jj_scan_token(LESSTHANOREQUALTO)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_350() { - if (jj_scan_token(NOTEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_349() { - if (jj_scan_token(EQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_348() { - if (jj_scan_token(SHIFTLEFTEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_347() { - if (jj_scan_token(SHIFTRIGHTEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_346() { - if (jj_scan_token(SHIFTRIGHT)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_345() { - if (jj_scan_token(SHIFTLEFT)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_344() { - if (jj_scan_token(BITWISEOREQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_343() { - if (jj_scan_token(BITWISEANDEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_342() { - if (jj_scan_token(BITWISEXOREQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_341() { - if (jj_scan_token(MODEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_340() { - if (jj_scan_token(DIVIDEEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_339() { - if (jj_scan_token(TIMESEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_338() { - if (jj_scan_token(MINUSEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_337() { - if (jj_scan_token(PLUSEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_336() { - if (jj_scan_token(GREATERTHAN)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_335() { - if (jj_scan_token(LESSTHAN)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_140() { - if (jj_scan_token(LSQUAREBRACKET)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RSQUAREBRACKET)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_334() { - if (jj_scan_token(ASSIGNEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_333() { - if (jj_scan_token(NOT)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_332() { - if (jj_scan_token(TILDE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_139() { - if (jj_scan_token(LSQUAREBRACKET)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RSQUAREBRACKET)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_331() { - if (jj_scan_token(BITWISEOR)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_330() { - if (jj_scan_token(AMPERSAND)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_329() { - if (jj_scan_token(BITWISEXOR)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_328() { - if (jj_scan_token(MOD)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_327() { - if (jj_scan_token(DIVIDE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_326() { - if (jj_scan_token(STAR)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_325() { - if (jj_scan_token(MINUS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_324() { - if (jj_scan_token(PLUS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_322() { - if (jj_scan_token(NEW)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3_139()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_323() { - if (jj_scan_token(DELETE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3_140()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_286() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_322()) { - jj_scanpos = xsp; - if (jj_3R_323()) { - jj_scanpos = xsp; - if (jj_3R_324()) { - jj_scanpos = xsp; - if (jj_3R_325()) { - jj_scanpos = xsp; - if (jj_3R_326()) { - jj_scanpos = xsp; - if (jj_3R_327()) { - jj_scanpos = xsp; - if (jj_3R_328()) { - jj_scanpos = xsp; - if (jj_3R_329()) { - jj_scanpos = xsp; - if (jj_3R_330()) { - jj_scanpos = xsp; - if (jj_3R_331()) { - jj_scanpos = xsp; - if (jj_3R_332()) { - jj_scanpos = xsp; - if (jj_3R_333()) { - jj_scanpos = xsp; - if (jj_3R_334()) { - jj_scanpos = xsp; - if (jj_3R_335()) { - jj_scanpos = xsp; - if (jj_3R_336()) { - jj_scanpos = xsp; - if (jj_3R_337()) { - jj_scanpos = xsp; - if (jj_3R_338()) { - jj_scanpos = xsp; - if (jj_3R_339()) { - jj_scanpos = xsp; - if (jj_3R_340()) { - jj_scanpos = xsp; - if (jj_3R_341()) { - jj_scanpos = xsp; - if (jj_3R_342()) { - jj_scanpos = xsp; - if (jj_3R_343()) { - jj_scanpos = xsp; - if (jj_3R_344()) { - jj_scanpos = xsp; - if (jj_3R_345()) { - jj_scanpos = xsp; - if (jj_3R_346()) { - jj_scanpos = xsp; - if (jj_3R_347()) { - jj_scanpos = xsp; - if (jj_3R_348()) { - jj_scanpos = xsp; - if (jj_3R_349()) { - jj_scanpos = xsp; - if (jj_3R_350()) { - jj_scanpos = xsp; - if (jj_3R_351()) { - jj_scanpos = xsp; - if (jj_3R_352()) { - jj_scanpos = xsp; - if (jj_3R_353()) { - jj_scanpos = xsp; - if (jj_3R_354()) { - jj_scanpos = xsp; - if (jj_3R_355()) { - jj_scanpos = xsp; - if (jj_3R_356()) { - jj_scanpos = xsp; - if (jj_3R_357()) { - jj_scanpos = xsp; - if (jj_3R_358()) { - jj_scanpos = xsp; - if (jj_3R_359()) { - jj_scanpos = xsp; - if (jj_3R_360()) { - jj_scanpos = xsp; - if (jj_3R_361()) { - jj_scanpos = xsp; - if (jj_3_142()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_249() { - if (jj_scan_token(COMMA)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_100()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_410() { - if (jj_scan_token(FALSETOK)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_409() { - if (jj_scan_token(TRUETOK)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_408() { - if (jj_scan_token(FLOATTWO)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_407() { - if (jj_scan_token(FLOATONE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_406() { - if (jj_scan_token(CHARACTER)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_405() { - if (jj_scan_token(UNSIGNED_HEXADECIMALLONG)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_404() { - if (jj_scan_token(UNSIGNED_HEXADECIMALINT)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_403() { - if (jj_scan_token(UNSIGNED_DECIMALLONG)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_402() { - if (jj_scan_token(UNSIGNED_DECIMALINT)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_401() { - if (jj_scan_token(UNSIGNED_OCTALLONG)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_400() { - if (jj_scan_token(UNSIGNED_OCTALINT)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_399() { - if (jj_scan_token(HEXADECIMALLONG)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_398() { - if (jj_scan_token(HEXADECIMALINT)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_397() { - if (jj_scan_token(DECIMALLONG)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_396() { - if (jj_scan_token(DECIMALINT)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_395() { - if (jj_scan_token(OCTALLONG)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_306() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_394()) { - jj_scanpos = xsp; - if (jj_3R_395()) { - jj_scanpos = xsp; - if (jj_3R_396()) { - jj_scanpos = xsp; - if (jj_3R_397()) { - jj_scanpos = xsp; - if (jj_3R_398()) { - jj_scanpos = xsp; - if (jj_3R_399()) { - jj_scanpos = xsp; - if (jj_3R_400()) { - jj_scanpos = xsp; - if (jj_3R_401()) { - jj_scanpos = xsp; - if (jj_3R_402()) { - jj_scanpos = xsp; - if (jj_3R_403()) { - jj_scanpos = xsp; - if (jj_3R_404()) { - jj_scanpos = xsp; - if (jj_3R_405()) { - jj_scanpos = xsp; - if (jj_3R_406()) { - jj_scanpos = xsp; - if (jj_3R_407()) { - jj_scanpos = xsp; - if (jj_3R_408()) { - jj_scanpos = xsp; - if (jj_3R_409()) { - jj_scanpos = xsp; - if (jj_3R_410()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_394() { - if (jj_scan_token(OCTALINT)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_140() { - if (jj_scan_token(SCOPE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_138() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_140()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(DELETE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_139() { - if (jj_scan_token(SCOPE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_93() { - if (jj_3R_100()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_249()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3_137() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_139()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(NEW)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_132() { - if (jj_3R_93()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_260() { - if (jj_3R_306()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_259() { - if (jj_3R_253()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_258() { - if (jj_3R_305()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_257() { - if (jj_3R_304()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_136() { - if (jj_scan_token(STRING)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_256() { - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_107()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_255() { - Token xsp; - if (jj_3_136()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - while (true) { - xsp = jj_scanpos; - if (jj_3_136()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3R_137() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_254()) { - jj_scanpos = xsp; - if (jj_3R_255()) { - jj_scanpos = xsp; - if (jj_3R_256()) { - jj_scanpos = xsp; - if (jj_3R_257()) { - jj_scanpos = xsp; - if (jj_3R_258()) { - jj_scanpos = xsp; - if (jj_3R_259()) { - jj_scanpos = xsp; - if (jj_3R_260()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_254() { - if (jj_scan_token(THIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_135() { - if (jj_3R_75()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_301() { - if (jj_scan_token(ID)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_303() { - if (jj_scan_token(TILDE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(ID)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_302() { - if (jj_scan_token(OPERATOR)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_286()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_300() { - if (jj_3R_163()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_253() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_300()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3R_301()) { - jj_scanpos = xsp; - if (jj_3R_302()) { - jj_scanpos = xsp; - if (jj_3R_303()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_134() { - if (jj_3R_138()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3_132()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_136() { - if (jj_scan_token(MINUSMINUS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_135() { - if (jj_scan_token(PLUSPLUS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_131() { - if (jj_3R_93()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_134() { - if (jj_scan_token(POINTERTO)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_253()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_133() { - if (jj_scan_token(DOT)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_253()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_132() { - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3_131()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_127() { - if (jj_3R_130()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_393() { - if (jj_scan_token(LSQUAREBRACKET)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RSQUAREBRACKET)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_131() { - if (jj_scan_token(LSQUAREBRACKET)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_107()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RSQUAREBRACKET)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_130() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_131()) { - jj_scanpos = xsp; - if (jj_3R_132()) { - jj_scanpos = xsp; - if (jj_3R_133()) { - jj_scanpos = xsp; - if (jj_3R_134()) { - jj_scanpos = xsp; - if (jj_3R_135()) { - jj_scanpos = xsp; - if (jj_3R_136()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_125() { - Token xsp; - xsp = jj_scanpos; - if (jj_3_133()) { - jj_scanpos = xsp; - if (jj_3_134()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_133() { - if (jj_3R_137()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3_130()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3R_247() { - if (jj_scan_token(NOT)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_246() { - if (jj_scan_token(TILDE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_245() { - if (jj_scan_token(MINUS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_244() { - if (jj_scan_token(PLUS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_243() { - if (jj_scan_token(STAR)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_123() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_242()) { - jj_scanpos = xsp; - if (jj_3R_243()) { - jj_scanpos = xsp; - if (jj_3R_244()) { - jj_scanpos = xsp; - if (jj_3R_245()) { - jj_scanpos = xsp; - if (jj_3R_246()) { - jj_scanpos = xsp; - if (jj_3R_247()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_242() { - if (jj_scan_token(AMPERSAND)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_392() { - if (jj_scan_token(SCOPE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_129() { - if (jj_3R_93()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_305() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_392()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(DELETE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3R_393()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_124()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_129() { - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3_129()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_128() { - if (jj_scan_token(LSQUAREBRACKET)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_107()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RSQUAREBRACKET)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_299() { - Token xsp; - if (jj_3_128()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - while (true) { - xsp = jj_scanpos; - if (jj_3_128()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3_126() { - if (jj_3R_130()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_252() { - if (jj_3R_89()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_287()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3_127()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_130() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_251()) { - jj_scanpos = xsp; - if (jj_3R_252()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_251() { - if (jj_3R_299()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_125() { - if (jj_3R_129()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_122() { - if (jj_3R_49()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_444() { - if (jj_3R_130()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_121() { - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_104()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_250() { - if (jj_3R_49()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_444()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_120() { - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_93()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_391() { - if (jj_3R_129()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_128() { - if (jj_3R_250()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_123() { - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_104()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_127() { - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_104()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_119() { - if (jj_scan_token(SCOPE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_126() { - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_93()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_124() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_126()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3R_127()) { - jj_scanpos = xsp; - if (jj_3R_128()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_390() { - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_104()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_115() { - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_389() { - if (jj_scan_token(SCOPE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_304() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_389()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(NEW)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3R_390()) { - jj_scanpos = xsp; - if (jj_3_124()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - xsp = jj_scanpos; - if (jj_3R_391()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_118() { - if (jj_3R_125()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_116() { - if (jj_3R_122()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_483() { - if (jj_scan_token(ARROWSTAR)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_424() { - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_104()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_241() { - if (jj_scan_token(SIZEOF)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_424()) { - jj_scanpos = xsp; - if (jj_3_116()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_482() { - if (jj_scan_token(DOTSTAR)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_120() { - if (jj_scan_token(MOD)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_117() { - if (jj_3R_123()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_124()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_474() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_482()) { - jj_scanpos = xsp; - if (jj_3R_483()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_124()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_240() { - if (jj_scan_token(MINUSMINUS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_122()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_113() { - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_104()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_122() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_239()) { - jj_scanpos = xsp; - if (jj_3R_240()) { - jj_scanpos = xsp; - if (jj_3_117()) { - jj_scanpos = xsp; - if (jj_3R_241()) { - jj_scanpos = xsp; - if (jj_3_118()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_239() { - if (jj_scan_token(PLUSPLUS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_122()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_119() { - if (jj_scan_token(DIVIDE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_456() { - if (jj_scan_token(SHIFTRIGHT)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_114() { - if (jj_3R_122()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_118() { - if (jj_scan_token(STAR)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_116() { - if (jj_scan_token(MINUS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_455() { - if (jj_scan_token(SHIFTLEFT)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_124() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_248()) { - jj_scanpos = xsp; - if (jj_3_114()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_248() { - if (jj_scan_token(LPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_104()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPARENTHESIS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_124()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_447() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_455()) { - jj_scanpos = xsp; - if (jj_3R_456()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_224()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_115() { - if (jj_scan_token(PLUS)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_121() { - if (jj_3R_124()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_474()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3R_481() { - if (jj_scan_token(EQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_112() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_118()) { - jj_scanpos = xsp; - if (jj_3R_119()) { - jj_scanpos = xsp; - if (jj_3R_120()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_121()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_117() { - if (jj_3R_121()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3_112()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3R_480() { - if (jj_scan_token(NOTEQUAL)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3_111() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_115()) { - jj_scanpos = xsp; - if (jj_3R_116()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_117()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_224() { - if (jj_3R_117()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3_111()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static final private boolean jj_3R_473() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_480()) { - jj_scanpos = xsp; - if (jj_3R_481()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_238()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - static final private boolean jj_3R_105() { - if (jj_3R_224()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_447()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - - static private boolean jj_initialized_once = false; - static public CPPParserTokenManager token_source; - static ASCII_CharStream jj_input_stream; - static public Token token, jj_nt; - static private int jj_ntk; - static private Token jj_scanpos, jj_lastpos; - static private int jj_la; - static public boolean lookingAhead = false; - static private boolean jj_semLA; - static private int jj_gen; - static final private int[] jj_la1 = new int[123]; - static final private int[] jj_la1_0 = {0x0,0x0,0x0,0x0,0x0,0x0,0x10000000,0x10000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x10000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x10000000,0x0,0x0,0x0,0x0,0x0,0x0,0x40000000,0x0,0x40000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x10000000,0x0,0x0,0x0,0x0,0x0,0x40000000,0x40000000,0x40000000,0x40000000,0x0,0x0,0x10000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x40000000,0x0,0x40000000,0x0,0x40000000,0x0,0x0,0x0,0x0,0x0,0x0,0x40000000,0x0,}; - static final private int[] jj_la1_1 = {0x0,0x800005,0x800005,0x0,0x10,0x800004,0x10,0x0,0x800005,0x0,0x0,0x0,0x0,0x0,0x4000000,0x4,0x4000000,0x4000000,0x4,0x4000000,0x0,0x0,0x0,0x0,0x0,0x20,0x101,0x101,0x0,0x8,0x0,0x0,0x8,0x0,0x0,0x20,0x0,0x0,0x0,0x0,0x4000000,0x0,0x800005,0x800005,0x10,0x100,0x20,0x100,0x800000,0x800000,0x0,0x0,0x20,0x100,0x800004,0x0,0x5,0x5,0x0,0x0,0x1,0x4,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x8,0x18,0x20,0x20,0x80,0x100,0x20,0x1,0x0,0x800005,0x1,0x20,0x20,0x10,0x0,0x0,0x0,0x10,0x0,0x0,0x0,0x0,0x80,0x7ff00,0x7ff00,0x40,0x80000,0x100000,0x200000,0x400000,0x3000000,0x3000000,0x3c000000,0xc0000000,0xc0000000,0x0,0x0,0x0,0x0,0x0,0x0,0x800004,0x4,0x0,0x800000,0x1,0x0,0x1,0x4,0x20,0x0,0x800000,0xffffff21,0x20,}; - static final private int[] jj_la1_2 = {0x0,0x84,0x84,0x0,0x0,0x4,0x0,0x0,0x84,0x4000000,0x40040000,0x2000000,0x2000000,0x10820000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x40000,0x2000,0x4002000,0x10820000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x84,0x84,0x0,0x0,0x0,0x0,0x4,0x4,0x0,0x0,0x0,0x0,0x4,0x40000,0x80,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x4,0x0,0x0,0x0,0x80084000,0x20400000,0x108000,0x0,0x0,0x20400000,0x80084000,0x8010000,0x8010000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x3,0x1c,0x1800,0x1800,0x60,0x0,0x4,0x0,0x0,0x187,0x660,0x80,0x0,0x80,0x0,0x0,0x4,0x2015ff,0x0,}; - static final private int[] jj_la1_3 = {0x40000,0x10000000,0x10000000,0x40000,0x0,0x10000000,0x0,0x0,0x10000000,0x0,0x5000002,0x418000,0x418000,0x280180c,0x0,0x0,0x0,0x0,0x0,0x0,0x10000000,0x4000000,0x200,0x204200,0x280180c,0x0,0x0,0x0,0x418000,0x0,0x0,0x418000,0x0,0x0,0x0,0x0,0xe0,0x1000000,0x10000e0,0x10000e0,0x0,0xe0,0x10000000,0x10000000,0xe0,0x0,0x0,0x0,0x0,0x0,0x80000000,0x0,0x0,0x0,0x0,0x4000000,0x10000000,0x10000000,0x0,0x80000000,0x0,0x10000000,0x80000000,0x2,0x1000000,0x1000002,0x1000002,0x40000,0x80000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x80120401,0x8000000,0x0,0x20001,0x0,0x8000000,0x400,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x2000,0x0,0x0,0x0,0x0,0x0,0x10000000,0x80000,0x70000000,0x0,0x60000000,0x0,0x10,0x0,}; - static final private int[] jj_la1_4 = {0x0,0x10000,0x10000,0x0,0x0,0x10000,0x0,0x0,0x10000,0x0,0x0,0x0,0x0,0x0,0x0,0x10000,0x0,0x0,0x10000,0x0,0x10000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x10000,0x0,0x0,0x0,0x10000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x10000,0x10000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x10000,0x0,0x0,0x10000,0x0,0x10000,0x10000,0x0,0x0,0x0,0x10000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x10000,0x0,0x0,0x0,0x0,0x0,0x10000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x10000,0x0,0x0,0x0,0x0,0x10000,0x8000,0x17fff,0x0,0x7fff,0x0,0x0,0x0,}; - static final private JJCalls[] jj_2_rtns = new JJCalls[142]; - static private boolean jj_rescan = false; - static private int jj_gc = 0; - - public CPPParser(java.io.InputStream stream) { - if (jj_initialized_once) { - System.out.println("ERROR: Second call to constructor of static parser. You must"); - System.out.println(" either use ReInit() or set the JavaCC option STATIC to false"); - System.out.println(" during parser generation."); - throw new Error(); - } - jj_initialized_once = true; - jj_input_stream = new ASCII_CharStream(stream, 1, 1); - token_source = new CPPParserTokenManager(jj_input_stream); - token = new Token(); - jj_ntk = -1; - jj_gen = 0; - for (int i = 0; i < 123; i++) jj_la1[i] = -1; - for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); - } - - static public void ReInit(java.io.InputStream stream) { - jj_input_stream.ReInit(stream, 1, 1); - token_source.ReInit(jj_input_stream); - token = new Token(); - jj_ntk = -1; - jj_gen = 0; - for (int i = 0; i < 123; i++) jj_la1[i] = -1; - for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); - } - - public CPPParser(java.io.Reader stream) { - if (jj_initialized_once) { - System.out.println("ERROR: Second call to constructor of static parser. You must"); - System.out.println(" either use ReInit() or set the JavaCC option STATIC to false"); - System.out.println(" during parser generation."); - throw new Error(); - } - jj_initialized_once = true; - jj_input_stream = new ASCII_CharStream(stream, 1, 1); - token_source = new CPPParserTokenManager(jj_input_stream); - token = new Token(); - jj_ntk = -1; - jj_gen = 0; - for (int i = 0; i < 123; i++) jj_la1[i] = -1; - for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); - } - - static public void ReInit(java.io.Reader stream) { - jj_input_stream.ReInit(stream, 1, 1); - token_source.ReInit(jj_input_stream); - token = new Token(); - jj_ntk = -1; - jj_gen = 0; - for (int i = 0; i < 123; i++) jj_la1[i] = -1; - for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); - } - - public CPPParser(CPPParserTokenManager tm) { - if (jj_initialized_once) { - System.out.println("ERROR: Second call to constructor of static parser. You must"); - System.out.println(" either use ReInit() or set the JavaCC option STATIC to false"); - System.out.println(" during parser generation."); - throw new Error(); - } - jj_initialized_once = true; - token_source = tm; - token = new Token(); - jj_ntk = -1; - jj_gen = 0; - for (int i = 0; i < 123; i++) jj_la1[i] = -1; - for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); - } - - public void ReInit(CPPParserTokenManager tm) { - token_source = tm; - token = new Token(); - jj_ntk = -1; - jj_gen = 0; - for (int i = 0; i < 123; i++) jj_la1[i] = -1; - for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); - } - - static final private Token jj_consume_token(int kind) throws ParseException { - Token oldToken; - if ((oldToken = token).next != null) token = token.next; - else token = token.next = token_source.getNextToken(); - jj_ntk = -1; - if (token.kind == kind) { - jj_gen++; - if (++jj_gc > 100) { - jj_gc = 0; - for (int i = 0; i < jj_2_rtns.length; i++) { - JJCalls c = jj_2_rtns[i]; - while (c != null) { - if (c.gen < jj_gen) c.first = null; - c = c.next; - } - } - } - return token; - } - token = oldToken; - jj_kind = kind; - throw generateParseException(); - } - - static final private boolean jj_scan_token(int kind) { - if (jj_scanpos == jj_lastpos) { - jj_la--; - if (jj_scanpos.next == null) { - jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken(); - } else { - jj_lastpos = jj_scanpos = jj_scanpos.next; - } - } else { - jj_scanpos = jj_scanpos.next; - } - if (jj_rescan) { - int i = 0; Token tok = token; - while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; } - if (tok != null) jj_add_error_token(kind, i); - } - return (jj_scanpos.kind != kind); - } - - static final public Token getNextToken() { - if (token.next != null) token = token.next; - else token = token.next = token_source.getNextToken(); - jj_ntk = -1; - jj_gen++; - return token; - } - - static final public Token getToken(int index) { - Token t = lookingAhead ? jj_scanpos : token; - for (int i = 0; i < index; i++) { - if (t.next != null) t = t.next; - else t = t.next = token_source.getNextToken(); - } - return t; - } - - static final private int jj_ntk() { - if ((jj_nt=token.next) == null) - return (jj_ntk = (token.next=token_source.getNextToken()).kind); - else - return (jj_ntk = jj_nt.kind); - } - - static private java.util.Vector jj_expentries = new java.util.Vector(); - static private int[] jj_expentry; - static private int jj_kind = -1; - static private int[] jj_lasttokens = new int[100]; - static private int jj_endpos; - - static private void jj_add_error_token(int kind, int pos) { - if (pos >= 100) return; - if (pos == jj_endpos + 1) { - jj_lasttokens[jj_endpos++] = kind; - } else if (jj_endpos != 0) { - jj_expentry = new int[jj_endpos]; - for (int i = 0; i < jj_endpos; i++) { - jj_expentry[i] = jj_lasttokens[i]; - } - boolean exists = false; - for (java.util.Enumeration enum = jj_expentries.elements(); enum.hasMoreElements();) { - int[] oldentry = (int[])(enum.nextElement()); - if (oldentry.length == jj_expentry.length) { - exists = true; - for (int i = 0; i < jj_expentry.length; i++) { - if (oldentry[i] != jj_expentry[i]) { - exists = false; - break; - } - } - if (exists) break; - } - } - if (!exists) jj_expentries.addElement(jj_expentry); - if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind; - } - } - - static final public ParseException generateParseException() { - jj_expentries.removeAllElements(); - boolean[] la1tokens = new boolean[145]; - for (int i = 0; i < 145; i++) { - la1tokens[i] = false; - } - if (jj_kind >= 0) { - la1tokens[jj_kind] = true; - jj_kind = -1; - } - for (int i = 0; i < 123; i++) { - if (jj_la1[i] == jj_gen) { - for (int j = 0; j < 32; j++) { - if ((jj_la1_0[i] & (1<<j)) != 0) { - la1tokens[j] = true; - } - if ((jj_la1_1[i] & (1<<j)) != 0) { - la1tokens[32+j] = true; - } - if ((jj_la1_2[i] & (1<<j)) != 0) { - la1tokens[64+j] = true; - } - if ((jj_la1_3[i] & (1<<j)) != 0) { - la1tokens[96+j] = true; - } - if ((jj_la1_4[i] & (1<<j)) != 0) { - la1tokens[128+j] = true; - } - } - } - } - for (int i = 0; i < 145; i++) { - if (la1tokens[i]) { - jj_expentry = new int[1]; - jj_expentry[0] = i; - jj_expentries.addElement(jj_expentry); - } - } - jj_endpos = 0; - jj_rescan_token(); - jj_add_error_token(0, 0); - int[][] exptokseq = new int[jj_expentries.size()][]; - for (int i = 0; i < jj_expentries.size(); i++) { - exptokseq[i] = (int[])jj_expentries.elementAt(i); - } - return new ParseException(token, exptokseq, tokenImage); - } - - static final public void enable_tracing() { - } - - static final public void disable_tracing() { - } - - static final private void jj_rescan_token() { - jj_rescan = true; - for (int i = 0; i < 142; i++) { - JJCalls p = jj_2_rtns[i]; - do { - if (p.gen > jj_gen) { - jj_la = p.arg; jj_lastpos = jj_scanpos = p.first; - switch (i) { - case 0: jj_3_1(); break; - case 1: jj_3_2(); break; - case 2: jj_3_3(); break; - case 3: jj_3_4(); break; - case 4: jj_3_5(); break; - case 5: jj_3_6(); break; - case 6: jj_3_7(); break; - case 7: jj_3_8(); break; - case 8: jj_3_9(); break; - case 9: jj_3_10(); break; - case 10: jj_3_11(); break; - case 11: jj_3_12(); break; - case 12: jj_3_13(); break; - case 13: jj_3_14(); break; - case 14: jj_3_15(); break; - case 15: jj_3_16(); break; - case 16: jj_3_17(); break; - case 17: jj_3_18(); break; - case 18: jj_3_19(); break; - case 19: jj_3_20(); break; - case 20: jj_3_21(); break; - case 21: jj_3_22(); break; - case 22: jj_3_23(); break; - case 23: jj_3_24(); break; - case 24: jj_3_25(); break; - case 25: jj_3_26(); break; - case 26: jj_3_27(); break; - case 27: jj_3_28(); break; - case 28: jj_3_29(); break; - case 29: jj_3_30(); break; - case 30: jj_3_31(); break; - case 31: jj_3_32(); break; - case 32: jj_3_33(); break; - case 33: jj_3_34(); break; - case 34: jj_3_35(); break; - case 35: jj_3_36(); break; - case 36: jj_3_37(); break; - case 37: jj_3_38(); break; - case 38: jj_3_39(); break; - case 39: jj_3_40(); break; - case 40: jj_3_41(); break; - case 41: jj_3_42(); break; - case 42: jj_3_43(); break; - case 43: jj_3_44(); break; - case 44: jj_3_45(); break; - case 45: jj_3_46(); break; - case 46: jj_3_47(); break; - case 47: jj_3_48(); break; - case 48: jj_3_49(); break; - case 49: jj_3_50(); break; - case 50: jj_3_51(); break; - case 51: jj_3_52(); break; - case 52: jj_3_53(); break; - case 53: jj_3_54(); break; - case 54: jj_3_55(); break; - case 55: jj_3_56(); break; - case 56: jj_3_57(); break; - case 57: jj_3_58(); break; - case 58: jj_3_59(); break; - case 59: jj_3_60(); break; - case 60: jj_3_61(); break; - case 61: jj_3_62(); break; - case 62: jj_3_63(); break; - case 63: jj_3_64(); break; - case 64: jj_3_65(); break; - case 65: jj_3_66(); break; - case 66: jj_3_67(); break; - case 67: jj_3_68(); break; - case 68: jj_3_69(); break; - case 69: jj_3_70(); break; - case 70: jj_3_71(); break; - case 71: jj_3_72(); break; - case 72: jj_3_73(); break; - case 73: jj_3_74(); break; - case 74: jj_3_75(); break; - case 75: jj_3_76(); break; - case 76: jj_3_77(); break; - case 77: jj_3_78(); break; - case 78: jj_3_79(); break; - case 79: jj_3_80(); break; - case 80: jj_3_81(); break; - case 81: jj_3_82(); break; - case 82: jj_3_83(); break; - case 83: jj_3_84(); break; - case 84: jj_3_85(); break; - case 85: jj_3_86(); break; - case 86: jj_3_87(); break; - case 87: jj_3_88(); break; - case 88: jj_3_89(); break; - case 89: jj_3_90(); break; - case 90: jj_3_91(); break; - case 91: jj_3_92(); break; - case 92: jj_3_93(); break; - case 93: jj_3_94(); break; - case 94: jj_3_95(); break; - case 95: jj_3_96(); break; - case 96: jj_3_97(); break; - case 97: jj_3_98(); break; - case 98: jj_3_99(); break; - case 99: jj_3_100(); break; - case 100: jj_3_101(); break; - case 101: jj_3_102(); break; - case 102: jj_3_103(); break; - case 103: jj_3_104(); break; - case 104: jj_3_105(); break; - case 105: jj_3_106(); break; - case 106: jj_3_107(); break; - case 107: jj_3_108(); break; - case 108: jj_3_109(); break; - case 109: jj_3_110(); break; - case 110: jj_3_111(); break; - case 111: jj_3_112(); break; - case 112: jj_3_113(); break; - case 113: jj_3_114(); break; - case 114: jj_3_115(); break; - case 115: jj_3_116(); break; - case 116: jj_3_117(); break; - case 117: jj_3_118(); break; - case 118: jj_3_119(); break; - case 119: jj_3_120(); break; - case 120: jj_3_121(); break; - case 121: jj_3_122(); break; - case 122: jj_3_123(); break; - case 123: jj_3_124(); break; - case 124: jj_3_125(); break; - case 125: jj_3_126(); break; - case 126: jj_3_127(); break; - case 127: jj_3_128(); break; - case 128: jj_3_129(); break; - case 129: jj_3_130(); break; - case 130: jj_3_131(); break; - case 131: jj_3_132(); break; - case 132: jj_3_133(); break; - case 133: jj_3_134(); break; - case 134: jj_3_135(); break; - case 135: jj_3_136(); break; - case 136: jj_3_137(); break; - case 137: jj_3_138(); break; - case 138: jj_3_139(); break; - case 139: jj_3_140(); break; - case 140: jj_3_141(); break; - case 141: jj_3_142(); break; - } - } - p = p.next; - } while (p != null); - } - jj_rescan = false; - } - - static final private void jj_save(int index, int xla) { - JJCalls p = jj_2_rtns[index]; - while (p.gen > jj_gen) { - if (p.next == null) { p = p.next = new JJCalls(); break; } - p = p.next; - } - p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla; - } - - static final class JJCalls { - int gen; - Token first; - int arg; - JJCalls next; - } - -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/generated/CPPParserConstants.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/generated/CPPParserConstants.java deleted file mode 100644 index eeb0c3a8f6d..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/generated/CPPParserConstants.java +++ /dev/null @@ -1,283 +0,0 @@ -/* Generated By:JavaCC: Do not edit this line. CPPParserConstants.java */ -package org.eclipse.cdt.internal.parser.generated; - -public interface CPPParserConstants { - - int EOF = 0; - int LCURLYBRACE = 28; - int RCURLYBRACE = 29; - int LSQUAREBRACKET = 30; - int RSQUAREBRACKET = 31; - int LPARENTHESIS = 32; - int RPARENTHESIS = 33; - int SCOPE = 34; - int COLON = 35; - int SEMICOLON = 36; - int COMMA = 37; - int QUESTIONMARK = 38; - int ELLIPSIS = 39; - int ASSIGNEQUAL = 40; - int TIMESEQUAL = 41; - int DIVIDEEQUAL = 42; - int MODEQUAL = 43; - int PLUSEQUAL = 44; - int MINUSEQUAL = 45; - int SHIFTLEFTEQUAL = 46; - int SHIFTRIGHTEQUAL = 47; - int BITWISEANDEQUAL = 48; - int BITWISEXOREQUAL = 49; - int BITWISEOREQUAL = 50; - int OR = 51; - int AND = 52; - int BITWISEOR = 53; - int BITWISEXOR = 54; - int AMPERSAND = 55; - int EQUAL = 56; - int NOTEQUAL = 57; - int LESSTHAN = 58; - int GREATERTHAN = 59; - int LESSTHANOREQUALTO = 60; - int GREATERTHANOREQUALTO = 61; - int SHIFTLEFT = 62; - int SHIFTRIGHT = 63; - int PLUS = 64; - int MINUS = 65; - int STAR = 66; - int DIVIDE = 67; - int MOD = 68; - int PLUSPLUS = 69; - int MINUSMINUS = 70; - int TILDE = 71; - int NOT = 72; - int DOT = 73; - int POINTERTO = 74; - int DOTSTAR = 75; - int ARROWSTAR = 76; - int AUTO = 77; - int BREAK = 78; - int CASE = 79; - int CATCH = 80; - int CHAR = 81; - int CONST = 82; - int CONTINUE = 83; - int _DEFAULT = 84; - int DELETE = 85; - int DO = 86; - int DOUBLE = 87; - int ELSE = 88; - int ENUM = 89; - int EXTERN = 90; - int FINALLY = 91; - int FLOAT = 92; - int FOR = 93; - int FRIEND = 94; - int GOTO = 95; - int IF = 96; - int INLINE = 97; - int INT = 98; - int LONG = 99; - int NEW = 100; - int PRIVATE = 101; - int PROTECTED = 102; - int PUBLIC = 103; - int REDECLARED = 104; - int REGISTER = 105; - int RETURN = 106; - int SHORT = 107; - int SIGNED = 108; - int SIZEOF = 109; - int STATIC = 110; - int STRUCT = 111; - int CLASS = 112; - int SWITCH = 113; - int TEMPLATE = 114; - int THIS = 115; - int TRY = 116; - int TYPEDEF = 117; - int UNION = 118; - int UNSIGNED = 119; - int VIRTUAL = 120; - int VOID = 121; - int VOLATILE = 122; - int WHILE = 123; - int OPERATOR = 124; - int TRUETOK = 125; - int FALSETOK = 126; - int THROW = 127; - int OCTALINT = 128; - int OCTALLONG = 129; - int UNSIGNED_OCTALINT = 130; - int UNSIGNED_OCTALLONG = 131; - int DECIMALINT = 132; - int DECIMALLONG = 133; - int UNSIGNED_DECIMALINT = 134; - int UNSIGNED_DECIMALLONG = 135; - int HEXADECIMALINT = 136; - int HEXADECIMALLONG = 137; - int UNSIGNED_HEXADECIMALINT = 138; - int UNSIGNED_HEXADECIMALLONG = 139; - int FLOATONE = 140; - int FLOATTWO = 141; - int CHARACTER = 142; - int STRING = 143; - int ID = 144; - - int DEFAULT = 0; - int DEFINE_STMT = 1; - int INCLUDE_STMT = 2; - int LINE_NUMBER = 3; - int LINE_DIRECTIVE = 4; - int AFTER_LINE_DIRECTIVE = 5; - int IN_LINE_COMMENT = 6; - int IN_COMMENT = 7; - int PREPROCESSOR_OUTPUT = 8; - - String[] tokenImage = { - "<EOF>", - "\" \"", - "\"\\t\"", - "\"\\n\"", - "\"\\r\"", - "\"//\"", - "\"/*\"", - "<token of kind 7>", - "<token of kind 8>", - "<token of kind 9>", - "<token of kind 10>", - "\"#\"", - "<token of kind 12>", - "<token of kind 13>", - "<token of kind 14>", - "<token of kind 15>", - "<token of kind 16>", - "<token of kind 17>", - "<token of kind 18>", - "<token of kind 19>", - "<token of kind 20>", - "<token of kind 21>", - "<token of kind 22>", - "<token of kind 23>", - "\"*/\"", - "<token of kind 25>", - "<token of kind 26>", - "<token of kind 27>", - "\"{\"", - "\"}\"", - "\"[\"", - "\"]\"", - "\"(\"", - "\")\"", - "\"::\"", - "\":\"", - "\";\"", - "\",\"", - "\"?\"", - "\"...\"", - "\"=\"", - "\"*=\"", - "\"/=\"", - "\"%=\"", - "\"+=\"", - "\"-=\"", - "\"<<=\"", - "\">>=\"", - "\"&=\"", - "\"^=\"", - "\"|=\"", - "\"||\"", - "\"&&\"", - "\"|\"", - "\"^\"", - "\"&\"", - "\"==\"", - "\"!=\"", - "\"<\"", - "\">\"", - "\"<=\"", - "\">=\"", - "\"<<\"", - "\">>\"", - "\"+\"", - "\"-\"", - "\"*\"", - "\"/\"", - "\"%\"", - "\"++\"", - "\"--\"", - "\"~\"", - "\"!\"", - "\".\"", - "\"->\"", - "\".*\"", - "\"->*\"", - "\"auto\"", - "\"break\"", - "\"case\"", - "\"catch\"", - "\"char\"", - "\"const\"", - "\"continue\"", - "\"default\"", - "\"delete\"", - "\"do\"", - "\"double\"", - "\"else\"", - "\"enum\"", - "\"extern\"", - "\"finally\"", - "\"float\"", - "\"for\"", - "\"friend\"", - "\"goto\"", - "\"if\"", - "\"inline\"", - "\"int\"", - "\"long\"", - "\"new\"", - "\"private\"", - "\"protected\"", - "\"public\"", - "\"redeclared\"", - "\"register\"", - "\"return\"", - "\"short\"", - "\"signed\"", - "\"sizeof\"", - "\"static\"", - "\"struct\"", - "\"class\"", - "\"switch\"", - "\"template\"", - "\"this\"", - "\"try\"", - "\"typedef\"", - "\"union\"", - "\"unsigned\"", - "\"virtual\"", - "\"void\"", - "\"volatile\"", - "\"while\"", - "\"operator\"", - "\"true\"", - "\"false\"", - "\"throw\"", - "<OCTALINT>", - "<OCTALLONG>", - "<UNSIGNED_OCTALINT>", - "<UNSIGNED_OCTALLONG>", - "<DECIMALINT>", - "<DECIMALLONG>", - "<UNSIGNED_DECIMALINT>", - "<UNSIGNED_DECIMALLONG>", - "<HEXADECIMALINT>", - "<HEXADECIMALLONG>", - "<UNSIGNED_HEXADECIMALINT>", - "<UNSIGNED_HEXADECIMALLONG>", - "<FLOATONE>", - "<FLOATTWO>", - "<CHARACTER>", - "<STRING>", - "<ID>", - }; - -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/generated/CPPParserTokenManager.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/generated/CPPParserTokenManager.java deleted file mode 100644 index f22c7d204de..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/generated/CPPParserTokenManager.java +++ /dev/null @@ -1,2354 +0,0 @@ -/* Generated By:JavaCC: Do not edit this line. CPPParserTokenManager.java */ -package org.eclipse.cdt.internal.parser.generated; - -import org.eclipse.cdt.internal.parser.ParserCallback; -// redirect to a fixed class -import org.eclipse.cdt.internal.parser.ASCII_CharStream; - -public class CPPParserTokenManager implements CPPParserConstants -{ - static int beginLine; - static int beginCol; - static boolean lineDirective = false; - - static void resetBeginLineCol() - { - } - public static java.io.PrintStream debugStream = System.out; - public static void setDebugStream(java.io.PrintStream ds) { debugStream = ds; } -static private final int jjMoveStringLiteralDfa0_1() -{ - return jjMoveNfa_1(1, 0); -} -static private final void jjCheckNAdd(int state) -{ - if (jjrounds[state] != jjround) - { - jjstateSet[jjnewStateCnt++] = state; - jjrounds[state] = jjround; - } -} -static private final void jjAddStates(int start, int end) -{ - do { - jjstateSet[jjnewStateCnt++] = jjnextStates[start]; - } while (start++ != end); -} -static private final void jjCheckNAddTwoStates(int state1, int state2) -{ - jjCheckNAdd(state1); - jjCheckNAdd(state2); -} -static private final void jjCheckNAddStates(int start, int end) -{ - do { - jjCheckNAdd(jjnextStates[start]); - } while (start++ != end); -} -static private final void jjCheckNAddStates(int start) -{ - jjCheckNAdd(jjnextStates[start]); - jjCheckNAdd(jjnextStates[start + 1]); -} -static final long[] jjbitVec0 = { - 0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL -}; -static private final int jjMoveNfa_1(int startState, int curPos) -{ - int[] nextStates; - int startsAt = 0; - jjnewStateCnt = 5; - int i = 1; - jjstateSet[0] = startState; - int j, kind = 0x7fffffff; - for (;;) - { - if (++jjround == 0x7fffffff) - ReInitRounds(); - if (curChar < 64) - { - long l = 1L << curChar; - MatchLoop: do - { - switch(jjstateSet[--i]) - { - case 1: - if ((0xfffffffeffffd9ffL & l) != 0L) - { - if (kind > 12) - kind = 12; - jjCheckNAdd(0); - } - else if ((0x2400L & l) != 0L) - { - if (kind > 14) - kind = 14; - } - else if ((0x100000200L & l) != 0L) - { - if (kind > 13) - kind = 13; - } - if (curChar == 13) - jjstateSet[jjnewStateCnt++] = 3; - break; - case 0: - if ((0xfffffffeffffd9ffL & l) == 0L) - break; - kind = 12; - jjCheckNAdd(0); - break; - case 2: - if ((0x2400L & l) != 0L && kind > 14) - kind = 14; - break; - case 3: - if (curChar == 10 && kind > 14) - kind = 14; - break; - case 4: - if (curChar == 13) - jjstateSet[jjnewStateCnt++] = 3; - break; - default : break; - } - } while(i != startsAt); - } - else if (curChar < 128) - { - long l = 1L << (curChar & 077); - MatchLoop: do - { - switch(jjstateSet[--i]) - { - case 1: - case 0: - kind = 12; - jjCheckNAdd(0); - break; - default : break; - } - } while(i != startsAt); - } - else - { - int i2 = (curChar & 0xff) >> 6; - long l2 = 1L << (curChar & 077); - MatchLoop: do - { - switch(jjstateSet[--i]) - { - case 1: - case 0: - if ((jjbitVec0[i2] & l2) == 0L) - break; - if (kind > 12) - kind = 12; - jjCheckNAdd(0); - break; - default : break; - } - } while(i != startsAt); - } - if (kind != 0x7fffffff) - { - jjmatchedKind = kind; - jjmatchedPos = curPos; - kind = 0x7fffffff; - } - ++curPos; - if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) - return curPos; - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { return curPos; } - } -} -static private final int jjMoveStringLiteralDfa0_3() -{ - return jjMoveNfa_3(0, 0); -} -static private final int jjMoveNfa_3(int startState, int curPos) -{ - int[] nextStates; - int startsAt = 0; - jjnewStateCnt = 1; - int i = 1; - jjstateSet[0] = startState; - int j, kind = 0x7fffffff; - for (;;) - { - if (++jjround == 0x7fffffff) - ReInitRounds(); - if (curChar < 64) - { - long l = 1L << curChar; - MatchLoop: do - { - switch(jjstateSet[--i]) - { - case 0: - if ((0x3ff000000000000L & l) == 0L) - break; - kind = 18; - jjstateSet[jjnewStateCnt++] = 0; - break; - default : break; - } - } while(i != startsAt); - } - else if (curChar < 128) - { - long l = 1L << (curChar & 077); - MatchLoop: do - { - switch(jjstateSet[--i]) - { - default : break; - } - } while(i != startsAt); - } - else - { - int i2 = (curChar & 0xff) >> 6; - long l2 = 1L << (curChar & 077); - MatchLoop: do - { - switch(jjstateSet[--i]) - { - default : break; - } - } while(i != startsAt); - } - if (kind != 0x7fffffff) - { - jjmatchedKind = kind; - jjmatchedPos = curPos; - kind = 0x7fffffff; - } - ++curPos; - if ((i = jjnewStateCnt) == (startsAt = 1 - (jjnewStateCnt = startsAt))) - return curPos; - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { return curPos; } - } -} -static private final int jjMoveStringLiteralDfa0_4() -{ - return jjMoveNfa_4(0, 0); -} -static private final int jjMoveNfa_4(int startState, int curPos) -{ - int[] nextStates; - int startsAt = 0; - jjnewStateCnt = 3; - int i = 1; - jjstateSet[0] = startState; - int j, kind = 0x7fffffff; - for (;;) - { - if (++jjround == 0x7fffffff) - ReInitRounds(); - if (curChar < 64) - { - long l = 1L << curChar; - MatchLoop: do - { - switch(jjstateSet[--i]) - { - case 0: - if ((0x2400L & l) != 0L) - { - if (kind > 19) - kind = 19; - } - if (curChar == 13) - jjstateSet[jjnewStateCnt++] = 1; - break; - case 1: - if (curChar == 10 && kind > 19) - kind = 19; - break; - case 2: - if (curChar == 13) - jjstateSet[jjnewStateCnt++] = 1; - break; - default : break; - } - } while(i != startsAt); - } - else if (curChar < 128) - { - long l = 1L << (curChar & 077); - MatchLoop: do - { - switch(jjstateSet[--i]) - { - default : break; - } - } while(i != startsAt); - } - else - { - int i2 = (curChar & 0xff) >> 6; - long l2 = 1L << (curChar & 077); - MatchLoop: do - { - switch(jjstateSet[--i]) - { - default : break; - } - } while(i != startsAt); - } - if (kind != 0x7fffffff) - { - jjmatchedKind = kind; - jjmatchedPos = curPos; - kind = 0x7fffffff; - } - ++curPos; - if ((i = jjnewStateCnt) == (startsAt = 3 - (jjnewStateCnt = startsAt))) - return curPos; - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { return curPos; } - } -} -static private final int jjMoveStringLiteralDfa0_2() -{ - return jjMoveNfa_2(1, 0); -} -static private final int jjMoveNfa_2(int startState, int curPos) -{ - int[] nextStates; - int startsAt = 0; - jjnewStateCnt = 5; - int i = 1; - jjstateSet[0] = startState; - int j, kind = 0x7fffffff; - for (;;) - { - if (++jjround == 0x7fffffff) - ReInitRounds(); - if (curChar < 64) - { - long l = 1L << curChar; - MatchLoop: do - { - switch(jjstateSet[--i]) - { - case 1: - if ((0xbffffffbffffdbffL & l) != 0L) - { - if (kind > 15) - kind = 15; - jjCheckNAdd(0); - } - else if ((0x2400L & l) != 0L) - { - if (kind > 17) - kind = 17; - } - else if ((0x4000000400000000L & l) != 0L) - { - if (kind > 16) - kind = 16; - } - if (curChar == 13) - jjstateSet[jjnewStateCnt++] = 3; - break; - case 0: - if ((0xbffffffbffffdbffL & l) == 0L) - break; - kind = 15; - jjCheckNAdd(0); - break; - case 2: - if ((0x2400L & l) != 0L && kind > 17) - kind = 17; - break; - case 3: - if (curChar == 10 && kind > 17) - kind = 17; - break; - case 4: - if (curChar == 13) - jjstateSet[jjnewStateCnt++] = 3; - break; - default : break; - } - } while(i != startsAt); - } - else if (curChar < 128) - { - long l = 1L << (curChar & 077); - MatchLoop: do - { - switch(jjstateSet[--i]) - { - case 1: - case 0: - kind = 15; - jjCheckNAdd(0); - break; - default : break; - } - } while(i != startsAt); - } - else - { - int i2 = (curChar & 0xff) >> 6; - long l2 = 1L << (curChar & 077); - MatchLoop: do - { - switch(jjstateSet[--i]) - { - case 1: - case 0: - if ((jjbitVec0[i2] & l2) == 0L) - break; - if (kind > 15) - kind = 15; - jjCheckNAdd(0); - break; - default : break; - } - } while(i != startsAt); - } - if (kind != 0x7fffffff) - { - jjmatchedKind = kind; - jjmatchedPos = curPos; - kind = 0x7fffffff; - } - ++curPos; - if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) - return curPos; - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { return curPos; } - } -} -static private final int jjMoveStringLiteralDfa0_6() -{ - return jjMoveNfa_6(0, 0); -} -static private final int jjMoveNfa_6(int startState, int curPos) -{ - int[] nextStates; - int startsAt = 0; - jjnewStateCnt = 3; - int i = 1; - jjstateSet[0] = startState; - int j, kind = 0x7fffffff; - for (;;) - { - if (++jjround == 0x7fffffff) - ReInitRounds(); - if (curChar < 64) - { - long l = 1L << curChar; - MatchLoop: do - { - switch(jjstateSet[--i]) - { - case 0: - if ((0x2400L & l) != 0L) - { - if (kind > 22) - kind = 22; - } - if (curChar == 13) - jjstateSet[jjnewStateCnt++] = 1; - break; - case 1: - if (curChar == 10 && kind > 22) - kind = 22; - break; - case 2: - if (curChar == 13) - jjstateSet[jjnewStateCnt++] = 1; - break; - default : break; - } - } while(i != startsAt); - } - else if (curChar < 128) - { - long l = 1L << (curChar & 077); - MatchLoop: do - { - switch(jjstateSet[--i]) - { - default : break; - } - } while(i != startsAt); - } - else - { - int i2 = (curChar & 0xff) >> 6; - long l2 = 1L << (curChar & 077); - MatchLoop: do - { - switch(jjstateSet[--i]) - { - default : break; - } - } while(i != startsAt); - } - if (kind != 0x7fffffff) - { - jjmatchedKind = kind; - jjmatchedPos = curPos; - kind = 0x7fffffff; - } - ++curPos; - if ((i = jjnewStateCnt) == (startsAt = 3 - (jjnewStateCnt = startsAt))) - return curPos; - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { return curPos; } - } -} -private static final int jjStopStringLiteralDfa_0(int pos, long active0, long active1, long active2) -{ - switch (pos) - { - case 0: - if ((active0 & 0x8000000000L) != 0L || (active1 & 0xa00L) != 0L) - return 1; - if ((active1 & 0xffffffffffffe000L) != 0L) - { - jjmatchedKind = 144; - return 33; - } - if ((active0 & 0x800L) != 0L) - return 109; - return -1; - case 1: - if ((active1 & 0xfffffffeff3fe000L) != 0L) - { - if (jjmatchedPos != 1) - { - jjmatchedKind = 144; - jjmatchedPos = 1; - } - return 33; - } - if ((active1 & 0x100c00000L) != 0L) - return 33; - return -1; - case 2: - if ((active1 & 0xffefffeadfbfe000L) != 0L) - { - jjmatchedKind = 144; - jjmatchedPos = 2; - return 33; - } - if ((active1 & 0x10001420000000L) != 0L) - return 33; - return -1; - case 3: - if ((active1 & 0x220800088302a000L) != 0L) - return 33; - if ((active1 & 0xdde7ffe25cbd4000L) != 0L) - { - jjmatchedKind = 144; - jjmatchedPos = 3; - return 33; - } - return -1; - case 4: - if ((active1 & 0xc841080010054000L) != 0L) - return 33; - if ((active1 & 0x15a6f7e24cb80000L) != 0L) - { - jjmatchedKind = 144; - jjmatchedPos = 4; - return 33; - } - return -1; - case 5: - if ((active1 & 0x15a4036008180000L) != 0L) - { - jjmatchedKind = 144; - jjmatchedPos = 5; - return 33; - } - if ((active1 & 0x2f48244a00000L) != 0L) - return 33; - return -1; - case 6: - if ((active1 & 0x120002008100000L) != 0L) - return 33; - if ((active1 & 0x1484034000080000L) != 0L) - { - jjmatchedKind = 144; - jjmatchedPos = 6; - return 33; - } - return -1; - case 7: - if ((active1 & 0x1484020000080000L) != 0L) - return 33; - if ((active1 & 0x14000000000L) != 0L) - { - jjmatchedKind = 144; - jjmatchedPos = 7; - return 33; - } - return -1; - case 8: - if ((active1 & 0x10000000000L) != 0L) - { - jjmatchedKind = 144; - jjmatchedPos = 8; - return 33; - } - if ((active1 & 0x4000000000L) != 0L) - return 33; - return -1; - default : - return -1; - } -} -private static final int jjStartNfa_0(int pos, long active0, long active1, long active2) -{ - return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0, active1, active2), pos + 1); -} -static private final int jjStopAtPos(int pos, int kind) -{ - jjmatchedKind = kind; - jjmatchedPos = pos; - return pos + 1; -} -static private final int jjStartNfaWithStates_0(int pos, int kind, int state) -{ - jjmatchedKind = kind; - jjmatchedPos = pos; - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { return pos + 1; } - return jjMoveNfa_0(state, pos + 1); -} -static private final int jjMoveStringLiteralDfa0_0() -{ - switch(curChar) - { - case 33: - jjmatchedKind = 72; - return jjMoveStringLiteralDfa1_0(0x200000000000000L, 0x0L); - case 35: - return jjStartNfaWithStates_0(0, 11, 109); - case 37: - jjmatchedKind = 68; - return jjMoveStringLiteralDfa1_0(0x80000000000L, 0x0L); - case 38: - jjmatchedKind = 55; - return jjMoveStringLiteralDfa1_0(0x11000000000000L, 0x0L); - case 40: - return jjStopAtPos(0, 32); - case 41: - return jjStopAtPos(0, 33); - case 42: - jjmatchedKind = 66; - return jjMoveStringLiteralDfa1_0(0x20000000000L, 0x0L); - case 43: - jjmatchedKind = 64; - return jjMoveStringLiteralDfa1_0(0x100000000000L, 0x20L); - case 44: - return jjStopAtPos(0, 37); - case 45: - jjmatchedKind = 65; - return jjMoveStringLiteralDfa1_0(0x200000000000L, 0x1440L); - case 46: - jjmatchedKind = 73; - return jjMoveStringLiteralDfa1_0(0x8000000000L, 0x800L); - case 47: - jjmatchedKind = 67; - return jjMoveStringLiteralDfa1_0(0x40000000060L, 0x0L); - case 58: - jjmatchedKind = 35; - return jjMoveStringLiteralDfa1_0(0x400000000L, 0x0L); - case 59: - return jjStopAtPos(0, 36); - case 60: - jjmatchedKind = 58; - return jjMoveStringLiteralDfa1_0(0x5000400000000000L, 0x0L); - case 61: - jjmatchedKind = 40; - return jjMoveStringLiteralDfa1_0(0x100000000000000L, 0x0L); - case 62: - jjmatchedKind = 59; - return jjMoveStringLiteralDfa1_0(0xa000800000000000L, 0x0L); - case 63: - return jjStopAtPos(0, 38); - case 91: - return jjStopAtPos(0, 30); - case 93: - return jjStopAtPos(0, 31); - case 94: - jjmatchedKind = 54; - return jjMoveStringLiteralDfa1_0(0x2000000000000L, 0x0L); - case 97: - return jjMoveStringLiteralDfa1_0(0x0L, 0x2000L); - case 98: - return jjMoveStringLiteralDfa1_0(0x0L, 0x4000L); - case 99: - return jjMoveStringLiteralDfa1_0(0x0L, 0x10000000f8000L); - case 100: - return jjMoveStringLiteralDfa1_0(0x0L, 0xf00000L); - case 101: - return jjMoveStringLiteralDfa1_0(0x0L, 0x7000000L); - case 102: - return jjMoveStringLiteralDfa1_0(0x0L, 0x4000000078000000L); - case 103: - return jjMoveStringLiteralDfa1_0(0x0L, 0x80000000L); - case 105: - return jjMoveStringLiteralDfa1_0(0x0L, 0x700000000L); - case 108: - return jjMoveStringLiteralDfa1_0(0x0L, 0x800000000L); - case 110: - return jjMoveStringLiteralDfa1_0(0x0L, 0x1000000000L); - case 111: - return jjMoveStringLiteralDfa1_0(0x0L, 0x1000000000000000L); - case 112: - return jjMoveStringLiteralDfa1_0(0x0L, 0xe000000000L); - case 114: - return jjMoveStringLiteralDfa1_0(0x0L, 0x70000000000L); - case 115: - return jjMoveStringLiteralDfa1_0(0x0L, 0x2f80000000000L); - case 116: - return jjMoveStringLiteralDfa1_0(0x0L, 0xa03c000000000000L); - case 117: - return jjMoveStringLiteralDfa1_0(0x0L, 0xc0000000000000L); - case 118: - return jjMoveStringLiteralDfa1_0(0x0L, 0x700000000000000L); - case 119: - return jjMoveStringLiteralDfa1_0(0x0L, 0x800000000000000L); - case 123: - return jjStopAtPos(0, 28); - case 124: - jjmatchedKind = 53; - return jjMoveStringLiteralDfa1_0(0xc000000000000L, 0x0L); - case 125: - return jjStopAtPos(0, 29); - case 126: - return jjStopAtPos(0, 71); - default : - return jjMoveNfa_0(32, 0); - } -} -static private final int jjMoveStringLiteralDfa1_0(long active0, long active1) -{ - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_0(0, active0, active1, 0L); - return 1; - } - switch(curChar) - { - case 38: - if ((active0 & 0x10000000000000L) != 0L) - return jjStopAtPos(1, 52); - break; - case 42: - if ((active0 & 0x40L) != 0L) - return jjStopAtPos(1, 6); - else if ((active1 & 0x800L) != 0L) - return jjStopAtPos(1, 75); - break; - case 43: - if ((active1 & 0x20L) != 0L) - return jjStopAtPos(1, 69); - break; - case 45: - if ((active1 & 0x40L) != 0L) - return jjStopAtPos(1, 70); - break; - case 46: - return jjMoveStringLiteralDfa2_0(active0, 0x8000000000L, active1, 0L); - case 47: - if ((active0 & 0x20L) != 0L) - return jjStopAtPos(1, 5); - break; - case 58: - if ((active0 & 0x400000000L) != 0L) - return jjStopAtPos(1, 34); - break; - case 60: - if ((active0 & 0x4000000000000000L) != 0L) - { - jjmatchedKind = 62; - jjmatchedPos = 1; - } - return jjMoveStringLiteralDfa2_0(active0, 0x400000000000L, active1, 0L); - case 61: - if ((active0 & 0x20000000000L) != 0L) - return jjStopAtPos(1, 41); - else if ((active0 & 0x40000000000L) != 0L) - return jjStopAtPos(1, 42); - else if ((active0 & 0x80000000000L) != 0L) - return jjStopAtPos(1, 43); - else if ((active0 & 0x100000000000L) != 0L) - return jjStopAtPos(1, 44); - else if ((active0 & 0x200000000000L) != 0L) - return jjStopAtPos(1, 45); - else if ((active0 & 0x1000000000000L) != 0L) - return jjStopAtPos(1, 48); - else if ((active0 & 0x2000000000000L) != 0L) - return jjStopAtPos(1, 49); - else if ((active0 & 0x4000000000000L) != 0L) - return jjStopAtPos(1, 50); - else if ((active0 & 0x100000000000000L) != 0L) - return jjStopAtPos(1, 56); - else if ((active0 & 0x200000000000000L) != 0L) - return jjStopAtPos(1, 57); - else if ((active0 & 0x1000000000000000L) != 0L) - return jjStopAtPos(1, 60); - else if ((active0 & 0x2000000000000000L) != 0L) - return jjStopAtPos(1, 61); - break; - case 62: - if ((active0 & 0x8000000000000000L) != 0L) - { - jjmatchedKind = 63; - jjmatchedPos = 1; - } - else if ((active1 & 0x400L) != 0L) - { - jjmatchedKind = 74; - jjmatchedPos = 1; - } - return jjMoveStringLiteralDfa2_0(active0, 0x800000000000L, active1, 0x1000L); - case 97: - return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x4000000000018000L); - case 101: - return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x4071000300000L); - case 102: - if ((active1 & 0x100000000L) != 0L) - return jjStartNfaWithStates_0(1, 96, 33); - break; - case 104: - return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x8808080000020000L); - case 105: - return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x100300008000000L); - case 108: - return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x1000011000000L); - case 110: - return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0xc0000602000000L); - case 111: - if ((active1 & 0x400000L) != 0L) - { - jjmatchedKind = 86; - jjmatchedPos = 1; - } - return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x6000008a08c0000L); - case 112: - return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x1000000000000000L); - case 114: - return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x2010006040004000L); - case 116: - return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0xc00000000000L); - case 117: - return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x8000002000L); - case 119: - return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x2000000000000L); - case 120: - return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x4000000L); - case 121: - return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x20000000000000L); - case 124: - if ((active0 & 0x8000000000000L) != 0L) - return jjStopAtPos(1, 51); - break; - default : - break; - } - return jjStartNfa_0(0, active0, active1, 0L); -} -static private final int jjMoveStringLiteralDfa2_0(long old0, long active0, long old1, long active1) -{ - if (((active0 &= old0) | (active1 &= old1)) == 0L) - return jjStartNfa_0(0, old0, old1, 0L); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_0(1, active0, active1, 0L); - return 2; - } - switch(curChar) - { - case 42: - if ((active1 & 0x1000L) != 0L) - return jjStopAtPos(2, 76); - break; - case 46: - if ((active0 & 0x8000000000L) != 0L) - return jjStopAtPos(2, 39); - break; - case 61: - if ((active0 & 0x400000000000L) != 0L) - return jjStopAtPos(2, 46); - else if ((active0 & 0x800000000000L) != 0L) - return jjStopAtPos(2, 47); - break; - case 97: - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x1400000020000L); - case 98: - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x8000000000L); - case 100: - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x10000000000L); - case 101: - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x1000000000004000L); - case 102: - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x100000L); - case 103: - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x120000000000L); - case 105: - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0xa4a002040000000L); - case 108: - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x4400000200200000L); - case 109: - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x4000000000000L); - case 110: - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x8080c0000L); - case 111: - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x84010000000L); - case 112: - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x20000000000000L); - case 114: - if ((active1 & 0x20000000L) != 0L) - return jjStartNfaWithStates_0(2, 93, 33); - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x8100800000000000L); - case 115: - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x80000001008000L); - case 116: - if ((active1 & 0x400000000L) != 0L) - return jjStartNfaWithStates_0(2, 98, 33); - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x40084012000L); - case 117: - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x2000000002800000L); - case 119: - if ((active1 & 0x1000000000L) != 0L) - return jjStartNfaWithStates_0(2, 100, 33); - break; - case 121: - if ((active1 & 0x10000000000000L) != 0L) - return jjStartNfaWithStates_0(2, 116, 33); - break; - case 122: - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x200000000000L); - default : - break; - } - return jjStartNfa_0(1, active0, active1, 0L); -} -static private final int jjMoveStringLiteralDfa3_0(long old0, long active0, long old1, long active1) -{ - if (((active0 &= old0) | (active1 &= old1)) == 0L) - return jjStartNfa_0(1, old0, old1, 0L); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_0(2, 0L, active1, 0L); - return 3; - } - switch(curChar) - { - case 97: - return jjMoveStringLiteralDfa4_0(active1, 0x400000018104000L); - case 98: - return jjMoveStringLiteralDfa4_0(active1, 0x800000L); - case 99: - return jjMoveStringLiteralDfa4_0(active1, 0x10000L); - case 100: - if ((active1 & 0x200000000000000L) != 0L) - return jjStartNfaWithStates_0(3, 121, 33); - break; - case 101: - if ((active1 & 0x8000L) != 0L) - return jjStartNfaWithStates_0(3, 79, 33); - else if ((active1 & 0x1000000L) != 0L) - return jjStartNfaWithStates_0(3, 88, 33); - else if ((active1 & 0x2000000000000000L) != 0L) - return jjStartNfaWithStates_0(3, 125, 33); - return jjMoveStringLiteralDfa4_0(active1, 0x20210044200000L); - case 103: - if ((active1 & 0x800000000L) != 0L) - return jjStartNfaWithStates_0(3, 99, 33); - break; - case 105: - return jjMoveStringLiteralDfa4_0(active1, 0x80020200000000L); - case 108: - return jjMoveStringLiteralDfa4_0(active1, 0x800008000000000L); - case 109: - if ((active1 & 0x2000000L) != 0L) - return jjStartNfaWithStates_0(3, 89, 33); - break; - case 110: - return jjMoveStringLiteralDfa4_0(active1, 0x100000000000L); - case 111: - if ((active1 & 0x2000L) != 0L) - return jjStartNfaWithStates_0(3, 77, 33); - else if ((active1 & 0x80000000L) != 0L) - return jjStartNfaWithStates_0(3, 95, 33); - return jjMoveStringLiteralDfa4_0(active1, 0x8040000000000000L); - case 112: - return jjMoveStringLiteralDfa4_0(active1, 0x4000000000000L); - case 114: - if ((active1 & 0x20000L) != 0L) - return jjStartNfaWithStates_0(3, 81, 33); - return jjMoveStringLiteralDfa4_0(active1, 0x1000080000000000L); - case 115: - if ((active1 & 0x8000000000000L) != 0L) - return jjStartNfaWithStates_0(3, 115, 33); - return jjMoveStringLiteralDfa4_0(active1, 0x4001000000040000L); - case 116: - return jjMoveStringLiteralDfa4_0(active1, 0x102404000080000L); - case 117: - return jjMoveStringLiteralDfa4_0(active1, 0x840000000000L); - case 118: - return jjMoveStringLiteralDfa4_0(active1, 0x2000000000L); - default : - break; - } - return jjStartNfa_0(2, 0L, active1, 0L); -} -static private final int jjMoveStringLiteralDfa4_0(long old1, long active1) -{ - if (((active1 &= old1)) == 0L) - return jjStartNfa_0(2, 0L, old1, 0L); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_0(3, 0L, active1, 0L); - return 4; - } - switch(curChar) - { - case 97: - return jjMoveStringLiteralDfa5_0(active1, 0x1000002000000000L); - case 99: - return jjMoveStringLiteralDfa5_0(active1, 0x2810000000000L); - case 100: - return jjMoveStringLiteralDfa5_0(active1, 0x20000000000000L); - case 101: - if ((active1 & 0x800000000000000L) != 0L) - return jjStartNfaWithStates_0(4, 123, 33); - else if ((active1 & 0x4000000000000000L) != 0L) - return jjStartNfaWithStates_0(4, 126, 33); - return jjMoveStringLiteralDfa5_0(active1, 0x104000000000L); - case 103: - return jjMoveStringLiteralDfa5_0(active1, 0x80000000000000L); - case 104: - if ((active1 & 0x10000L) != 0L) - return jjStartNfaWithStates_0(4, 80, 33); - break; - case 105: - return jjMoveStringLiteralDfa5_0(active1, 0x408000080000L); - case 107: - if ((active1 & 0x4000L) != 0L) - return jjStartNfaWithStates_0(4, 78, 33); - break; - case 108: - return jjMoveStringLiteralDfa5_0(active1, 0x4000008800000L); - case 110: - if ((active1 & 0x40000000000000L) != 0L) - return jjStartNfaWithStates_0(4, 118, 33); - return jjMoveStringLiteralDfa5_0(active1, 0x240000000L); - case 111: - return jjMoveStringLiteralDfa5_0(active1, 0x200000000000L); - case 114: - return jjMoveStringLiteralDfa5_0(active1, 0x40004000000L); - case 115: - if ((active1 & 0x1000000000000L) != 0L) - return jjStartNfaWithStates_0(4, 112, 33); - return jjMoveStringLiteralDfa5_0(active1, 0x20000000000L); - case 116: - if ((active1 & 0x40000L) != 0L) - return jjStartNfaWithStates_0(4, 82, 33); - else if ((active1 & 0x10000000L) != 0L) - return jjStartNfaWithStates_0(4, 92, 33); - else if ((active1 & 0x80000000000L) != 0L) - return jjStartNfaWithStates_0(4, 107, 33); - return jjMoveStringLiteralDfa5_0(active1, 0x400000000200000L); - case 117: - return jjMoveStringLiteralDfa5_0(active1, 0x100000000100000L); - case 119: - if ((active1 & 0x8000000000000000L) != 0L) - return jjStartNfaWithStates_0(4, 127, 33); - break; - default : - break; - } - return jjStartNfa_0(3, 0L, active1, 0L); -} -static private final int jjMoveStringLiteralDfa5_0(long old1, long active1) -{ - if (((active1 &= old1)) == 0L) - return jjStartNfa_0(3, 0L, old1, 0L); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_0(4, 0L, active1, 0L); - return 5; - } - switch(curChar) - { - case 97: - return jjMoveStringLiteralDfa6_0(active1, 0x104000000000000L); - case 99: - if ((active1 & 0x8000000000L) != 0L) - return jjStartNfaWithStates_0(5, 103, 33); - else if ((active1 & 0x400000000000L) != 0L) - return jjStartNfaWithStates_0(5, 110, 33); - return jjMoveStringLiteralDfa6_0(active1, 0x4000000000L); - case 100: - if ((active1 & 0x40000000L) != 0L) - return jjStartNfaWithStates_0(5, 94, 33); - else if ((active1 & 0x100000000000L) != 0L) - return jjStartNfaWithStates_0(5, 108, 33); - break; - case 101: - if ((active1 & 0x200000L) != 0L) - return jjStartNfaWithStates_0(5, 85, 33); - else if ((active1 & 0x800000L) != 0L) - return jjStartNfaWithStates_0(5, 87, 33); - else if ((active1 & 0x200000000L) != 0L) - return jjStartNfaWithStates_0(5, 97, 33); - return jjMoveStringLiteralDfa6_0(active1, 0x20000000000000L); - case 102: - if ((active1 & 0x200000000000L) != 0L) - return jjStartNfaWithStates_0(5, 109, 33); - break; - case 104: - if ((active1 & 0x2000000000000L) != 0L) - return jjStartNfaWithStates_0(5, 113, 33); - break; - case 105: - return jjMoveStringLiteralDfa6_0(active1, 0x400000000000000L); - case 108: - return jjMoveStringLiteralDfa6_0(active1, 0x10008100000L); - case 110: - if ((active1 & 0x4000000L) != 0L) - return jjStartNfaWithStates_0(5, 90, 33); - else if ((active1 & 0x40000000000L) != 0L) - return jjStartNfaWithStates_0(5, 106, 33); - return jjMoveStringLiteralDfa6_0(active1, 0x80000000080000L); - case 116: - if ((active1 & 0x800000000000L) != 0L) - return jjStartNfaWithStates_0(5, 111, 33); - return jjMoveStringLiteralDfa6_0(active1, 0x1000022000000000L); - default : - break; - } - return jjStartNfa_0(4, 0L, active1, 0L); -} -static private final int jjMoveStringLiteralDfa6_0(long old1, long active1) -{ - if (((active1 &= old1)) == 0L) - return jjStartNfa_0(4, 0L, old1, 0L); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_0(5, 0L, active1, 0L); - return 6; - } - switch(curChar) - { - case 97: - return jjMoveStringLiteralDfa7_0(active1, 0x10000000000L); - case 101: - if ((active1 & 0x2000000000L) != 0L) - return jjStartNfaWithStates_0(6, 101, 33); - return jjMoveStringLiteralDfa7_0(active1, 0x80020000000000L); - case 102: - if ((active1 & 0x20000000000000L) != 0L) - return jjStartNfaWithStates_0(6, 117, 33); - break; - case 108: - if ((active1 & 0x100000000000000L) != 0L) - return jjStartNfaWithStates_0(6, 120, 33); - return jjMoveStringLiteralDfa7_0(active1, 0x400000000000000L); - case 111: - return jjMoveStringLiteralDfa7_0(active1, 0x1000000000000000L); - case 116: - if ((active1 & 0x100000L) != 0L) - return jjStartNfaWithStates_0(6, 84, 33); - return jjMoveStringLiteralDfa7_0(active1, 0x4004000000000L); - case 117: - return jjMoveStringLiteralDfa7_0(active1, 0x80000L); - case 121: - if ((active1 & 0x8000000L) != 0L) - return jjStartNfaWithStates_0(6, 91, 33); - break; - default : - break; - } - return jjStartNfa_0(5, 0L, active1, 0L); -} -static private final int jjMoveStringLiteralDfa7_0(long old1, long active1) -{ - if (((active1 &= old1)) == 0L) - return jjStartNfa_0(5, 0L, old1, 0L); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_0(6, 0L, active1, 0L); - return 7; - } - switch(curChar) - { - case 100: - if ((active1 & 0x80000000000000L) != 0L) - return jjStartNfaWithStates_0(7, 119, 33); - break; - case 101: - if ((active1 & 0x80000L) != 0L) - return jjStartNfaWithStates_0(7, 83, 33); - else if ((active1 & 0x4000000000000L) != 0L) - return jjStartNfaWithStates_0(7, 114, 33); - else if ((active1 & 0x400000000000000L) != 0L) - return jjStartNfaWithStates_0(7, 122, 33); - return jjMoveStringLiteralDfa8_0(active1, 0x4000000000L); - case 114: - if ((active1 & 0x20000000000L) != 0L) - return jjStartNfaWithStates_0(7, 105, 33); - else if ((active1 & 0x1000000000000000L) != 0L) - return jjStartNfaWithStates_0(7, 124, 33); - return jjMoveStringLiteralDfa8_0(active1, 0x10000000000L); - default : - break; - } - return jjStartNfa_0(6, 0L, active1, 0L); -} -static private final int jjMoveStringLiteralDfa8_0(long old1, long active1) -{ - if (((active1 &= old1)) == 0L) - return jjStartNfa_0(6, 0L, old1, 0L); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_0(7, 0L, active1, 0L); - return 8; - } - switch(curChar) - { - case 100: - if ((active1 & 0x4000000000L) != 0L) - return jjStartNfaWithStates_0(8, 102, 33); - break; - case 101: - return jjMoveStringLiteralDfa9_0(active1, 0x10000000000L); - default : - break; - } - return jjStartNfa_0(7, 0L, active1, 0L); -} -static private final int jjMoveStringLiteralDfa9_0(long old1, long active1) -{ - if (((active1 &= old1)) == 0L) - return jjStartNfa_0(7, 0L, old1, 0L); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_0(8, 0L, active1, 0L); - return 9; - } - switch(curChar) - { - case 100: - if ((active1 & 0x10000000000L) != 0L) - return jjStartNfaWithStates_0(9, 104, 33); - break; - default : - break; - } - return jjStartNfa_0(8, 0L, active1, 0L); -} -static private final int jjMoveNfa_0(int startState, int curPos) -{ - int[] nextStates; - int startsAt = 0; - jjnewStateCnt = 109; - int i = 1; - jjstateSet[0] = startState; - int j, kind = 0x7fffffff; - for (;;) - { - if (++jjround == 0x7fffffff) - ReInitRounds(); - if (curChar < 64) - { - long l = 1L << curChar; - MatchLoop: do - { - switch(jjstateSet[--i]) - { - case 32: - if ((0x3ff000000000000L & l) != 0L) - jjCheckNAddStates(0, 5); - else if (curChar == 35) - jjCheckNAddStates(6, 13); - else if (curChar == 34) - jjCheckNAddStates(14, 16); - else if (curChar == 39) - jjAddStates(17, 18); - else if (curChar == 46) - jjCheckNAdd(1); - if ((0x3fe000000000000L & l) != 0L) - { - if (kind > 132) - kind = 132; - jjCheckNAddStates(19, 26); - } - else if (curChar == 48) - jjAddStates(27, 30); - if (curChar == 48) - { - if (kind > 128) - kind = 128; - jjCheckNAddStates(31, 38); - } - break; - case 109: - if ((0x3ff000000000000L & l) != 0L) - { - if (kind > 8) - kind = 8; - } - else if ((0x100000200L & l) != 0L) - jjCheckNAddTwoStates(53, 60); - if ((0x100000200L & l) != 0L) - jjCheckNAddTwoStates(42, 52); - if ((0x100000200L & l) != 0L) - jjCheckNAddTwoStates(40, 41); - if ((0x100000200L & l) != 0L) - jjCheckNAddTwoStates(35, 39); - break; - case 0: - if (curChar == 46) - jjCheckNAdd(1); - break; - case 1: - if ((0x3ff000000000000L & l) == 0L) - break; - if (kind > 140) - kind = 140; - jjCheckNAddStates(39, 41); - break; - case 3: - if ((0x280000000000L & l) != 0L) - jjCheckNAdd(4); - break; - case 4: - if ((0x3ff000000000000L & l) == 0L) - break; - if (kind > 140) - kind = 140; - jjCheckNAddTwoStates(4, 5); - break; - case 6: - if (curChar == 39) - jjAddStates(17, 18); - break; - case 7: - if ((0xffffff7fffffdbffL & l) != 0L) - jjCheckNAdd(8); - break; - case 8: - if (curChar == 39 && kind > 142) - kind = 142; - break; - case 10: - if ((0x8000008400000000L & l) != 0L) - jjCheckNAdd(8); - break; - case 11: - if (curChar == 48) - jjCheckNAddTwoStates(12, 8); - break; - case 12: - if ((0xff000000000000L & l) != 0L) - jjCheckNAddTwoStates(12, 8); - break; - case 13: - if ((0x3fe000000000000L & l) != 0L) - jjCheckNAddTwoStates(14, 8); - break; - case 14: - if ((0x3ff000000000000L & l) != 0L) - jjCheckNAddTwoStates(14, 8); - break; - case 15: - if (curChar == 48) - jjAddStates(42, 43); - break; - case 17: - if ((0x3ff000000000000L & l) != 0L) - jjCheckNAddTwoStates(17, 8); - break; - case 19: - if (curChar == 34) - jjCheckNAddStates(14, 16); - break; - case 20: - if ((0xfffffffbffffdbffL & l) != 0L) - jjCheckNAddStates(14, 16); - break; - case 22: - if ((0x8000008400000000L & l) != 0L) - jjCheckNAddStates(14, 16); - break; - case 23: - if (curChar == 34 && kind > 143) - kind = 143; - break; - case 24: - if (curChar == 48) - jjCheckNAddStates(44, 47); - break; - case 25: - if ((0xff000000000000L & l) != 0L) - jjCheckNAddStates(44, 47); - break; - case 26: - if ((0x3fe000000000000L & l) != 0L) - jjCheckNAddStates(48, 51); - break; - case 27: - if ((0x3ff000000000000L & l) != 0L) - jjCheckNAddStates(48, 51); - break; - case 28: - if (curChar == 48) - jjAddStates(52, 53); - break; - case 30: - if ((0x3ff000000000000L & l) != 0L) - jjCheckNAddStates(54, 57); - break; - case 33: - if ((0x3ff000000000000L & l) == 0L) - break; - if (kind > 144) - kind = 144; - jjstateSet[jjnewStateCnt++] = 33; - break; - case 34: - if (curChar == 35) - jjCheckNAddStates(6, 13); - break; - case 35: - if ((0x100000200L & l) != 0L) - jjCheckNAddTwoStates(35, 39); - break; - case 40: - if ((0x100000200L & l) != 0L) - jjCheckNAddTwoStates(40, 41); - break; - case 41: - if ((0x3ff000000000000L & l) != 0L && kind > 8) - kind = 8; - break; - case 42: - if ((0x100000200L & l) != 0L) - jjCheckNAddTwoStates(42, 52); - break; - case 44: - if ((0x100000200L & l) != 0L) - jjAddStates(58, 59); - break; - case 45: - if ((0x1000000400000000L & l) == 0L) - break; - if (kind > 9) - kind = 9; - jjCheckNAdd(46); - break; - case 46: - if ((0x100000200L & l) == 0L) - break; - if (kind > 9) - kind = 9; - jjCheckNAdd(46); - break; - case 53: - if ((0x100000200L & l) != 0L) - jjCheckNAddTwoStates(53, 60); - break; - case 55: - if ((0x100000200L & l) == 0L) - break; - if (kind > 10) - kind = 10; - jjstateSet[jjnewStateCnt++] = 55; - break; - case 61: - if (curChar != 48) - break; - if (kind > 128) - kind = 128; - jjCheckNAddStates(31, 38); - break; - case 62: - if ((0xff000000000000L & l) == 0L) - break; - if (kind > 128) - kind = 128; - jjCheckNAdd(62); - break; - case 63: - if ((0xff000000000000L & l) != 0L) - jjCheckNAddTwoStates(63, 64); - break; - case 65: - if ((0xff000000000000L & l) != 0L) - jjCheckNAddTwoStates(65, 66); - break; - case 67: - if ((0xff000000000000L & l) != 0L) - jjCheckNAddStates(60, 62); - break; - case 72: - if ((0x3fe000000000000L & l) == 0L) - break; - if (kind > 132) - kind = 132; - jjCheckNAddStates(19, 26); - break; - case 73: - if ((0x3ff000000000000L & l) == 0L) - break; - if (kind > 132) - kind = 132; - jjCheckNAdd(73); - break; - case 74: - if ((0x3ff000000000000L & l) != 0L) - jjCheckNAddTwoStates(74, 75); - break; - case 76: - if ((0x3ff000000000000L & l) != 0L) - jjCheckNAddTwoStates(76, 77); - break; - case 78: - if ((0x3ff000000000000L & l) != 0L) - jjCheckNAddStates(63, 65); - break; - case 83: - if (curChar == 48) - jjAddStates(27, 30); - break; - case 85: - if ((0x3ff000000000000L & l) == 0L) - break; - if (kind > 136) - kind = 136; - jjstateSet[jjnewStateCnt++] = 85; - break; - case 87: - if ((0x3ff000000000000L & l) == 0L) - break; - if (kind > 137) - kind = 137; - jjAddStates(66, 67); - break; - case 90: - if ((0x3ff000000000000L & l) != 0L) - jjAddStates(68, 69); - break; - case 93: - if ((0x3ff000000000000L & l) != 0L) - jjAddStates(70, 72); - break; - case 98: - if ((0x3ff000000000000L & l) != 0L) - jjCheckNAddStates(0, 5); - break; - case 99: - if ((0x3ff000000000000L & l) != 0L) - jjCheckNAddTwoStates(99, 100); - break; - case 100: - if (curChar != 46) - break; - if (kind > 140) - kind = 140; - jjCheckNAddStates(73, 75); - break; - case 101: - if ((0x3ff000000000000L & l) == 0L) - break; - if (kind > 140) - kind = 140; - jjCheckNAddStates(73, 75); - break; - case 102: - if ((0x3ff000000000000L & l) != 0L) - jjCheckNAddTwoStates(102, 0); - break; - case 103: - if ((0x3ff000000000000L & l) != 0L) - jjCheckNAddTwoStates(103, 104); - break; - case 105: - if ((0x280000000000L & l) != 0L) - jjCheckNAdd(106); - break; - case 106: - if ((0x3ff000000000000L & l) == 0L) - break; - if (kind > 141) - kind = 141; - jjCheckNAddTwoStates(106, 107); - break; - default : break; - } - } while(i != startsAt); - } - else if (curChar < 128) - { - long l = 1L << (curChar & 077); - MatchLoop: do - { - switch(jjstateSet[--i]) - { - case 32: - if ((0x7fffffe87fffffeL & l) != 0L) - { - if (kind > 144) - kind = 144; - jjCheckNAdd(33); - } - if (curChar == 76) - jjAddStates(76, 77); - break; - case 109: - if (curChar == 100) - jjstateSet[jjnewStateCnt++] = 59; - else if (curChar == 105) - jjstateSet[jjnewStateCnt++] = 51; - else if (curChar == 108) - jjstateSet[jjnewStateCnt++] = 38; - break; - case 2: - if ((0x2000000020L & l) != 0L) - jjAddStates(78, 79); - break; - case 5: - if ((0x104000001040L & l) != 0L && kind > 140) - kind = 140; - break; - case 7: - if ((0xffffffffefffffffL & l) != 0L) - jjCheckNAdd(8); - break; - case 9: - if (curChar == 92) - jjAddStates(80, 83); - break; - case 10: - if ((0x54404610000000L & l) != 0L) - jjCheckNAdd(8); - break; - case 16: - if (curChar == 120) - jjCheckNAdd(17); - break; - case 17: - if ((0x7e0000007eL & l) != 0L) - jjCheckNAddTwoStates(17, 8); - break; - case 18: - if (curChar == 88) - jjCheckNAdd(17); - break; - case 20: - if ((0xffffffffefffffffL & l) != 0L) - jjCheckNAddStates(14, 16); - break; - case 21: - if (curChar == 92) - jjAddStates(84, 87); - break; - case 22: - if ((0x54404610000000L & l) != 0L) - jjCheckNAddStates(14, 16); - break; - case 29: - if (curChar == 120) - jjCheckNAdd(30); - break; - case 30: - if ((0x7e0000007eL & l) != 0L) - jjCheckNAddStates(54, 57); - break; - case 31: - if (curChar == 88) - jjCheckNAdd(30); - break; - case 33: - if ((0x7fffffe87fffffeL & l) == 0L) - break; - if (kind > 144) - kind = 144; - jjCheckNAdd(33); - break; - case 36: - if (curChar == 101 && kind > 7) - kind = 7; - break; - case 37: - if (curChar == 110) - jjstateSet[jjnewStateCnt++] = 36; - break; - case 38: - if (curChar == 105) - jjstateSet[jjnewStateCnt++] = 37; - break; - case 39: - if (curChar == 108) - jjstateSet[jjnewStateCnt++] = 38; - break; - case 43: - if (curChar == 101) - jjAddStates(58, 59); - break; - case 47: - if (curChar == 100) - jjstateSet[jjnewStateCnt++] = 43; - break; - case 48: - if (curChar == 117) - jjstateSet[jjnewStateCnt++] = 47; - break; - case 49: - if (curChar == 108) - jjstateSet[jjnewStateCnt++] = 48; - break; - case 50: - if (curChar == 99) - jjstateSet[jjnewStateCnt++] = 49; - break; - case 51: - if (curChar == 110) - jjstateSet[jjnewStateCnt++] = 50; - break; - case 52: - if (curChar == 105) - jjstateSet[jjnewStateCnt++] = 51; - break; - case 54: - if (curChar != 101) - break; - if (kind > 10) - kind = 10; - jjstateSet[jjnewStateCnt++] = 55; - break; - case 56: - if (curChar == 110) - jjstateSet[jjnewStateCnt++] = 54; - break; - case 57: - if (curChar == 105) - jjstateSet[jjnewStateCnt++] = 56; - break; - case 58: - if (curChar == 102) - jjstateSet[jjnewStateCnt++] = 57; - break; - case 59: - if (curChar == 101) - jjstateSet[jjnewStateCnt++] = 58; - break; - case 60: - if (curChar == 100) - jjstateSet[jjnewStateCnt++] = 59; - break; - case 64: - if ((0x100000001000L & l) != 0L && kind > 129) - kind = 129; - break; - case 66: - if ((0x20000000200000L & l) != 0L && kind > 130) - kind = 130; - break; - case 68: - if ((0x100000001000L & l) != 0L && kind > 131) - kind = 131; - break; - case 69: - if ((0x20000000200000L & l) != 0L) - jjstateSet[jjnewStateCnt++] = 68; - break; - case 70: - if ((0x20000000200000L & l) != 0L && kind > 131) - kind = 131; - break; - case 71: - if ((0x100000001000L & l) != 0L) - jjstateSet[jjnewStateCnt++] = 70; - break; - case 75: - if ((0x20100000201000L & l) != 0L && kind > 133) - kind = 133; - break; - case 77: - if ((0x20000000200000L & l) != 0L && kind > 134) - kind = 134; - break; - case 79: - if ((0x100000001000L & l) != 0L && kind > 135) - kind = 135; - break; - case 80: - if ((0x20000000200000L & l) != 0L) - jjstateSet[jjnewStateCnt++] = 79; - break; - case 81: - if ((0x20000000200000L & l) != 0L && kind > 135) - kind = 135; - break; - case 82: - if ((0x100000001000L & l) != 0L) - jjstateSet[jjnewStateCnt++] = 81; - break; - case 84: - if ((0x100000001000000L & l) != 0L) - jjCheckNAdd(85); - break; - case 85: - if ((0x7e0000007eL & l) == 0L) - break; - if (kind > 136) - kind = 136; - jjCheckNAdd(85); - break; - case 86: - if ((0x100000001000000L & l) != 0L) - jjCheckNAdd(87); - break; - case 87: - if ((0x7e0000007eL & l) == 0L) - break; - if (kind > 137) - kind = 137; - jjCheckNAddTwoStates(87, 88); - break; - case 88: - if ((0x20100000201000L & l) != 0L && kind > 137) - kind = 137; - break; - case 89: - if ((0x100000001000000L & l) != 0L) - jjCheckNAdd(90); - break; - case 90: - if ((0x7e0000007eL & l) != 0L) - jjCheckNAddTwoStates(90, 91); - break; - case 91: - if ((0x20000000200000L & l) != 0L && kind > 138) - kind = 138; - break; - case 92: - if ((0x100000001000000L & l) != 0L) - jjCheckNAdd(93); - break; - case 93: - if ((0x7e0000007eL & l) != 0L) - jjCheckNAddStates(70, 72); - break; - case 94: - if ((0x100000001000L & l) != 0L && kind > 139) - kind = 139; - break; - case 95: - if ((0x20000000200000L & l) != 0L) - jjstateSet[jjnewStateCnt++] = 94; - break; - case 96: - if ((0x20000000200000L & l) != 0L && kind > 139) - kind = 139; - break; - case 97: - if ((0x100000001000L & l) != 0L) - jjstateSet[jjnewStateCnt++] = 96; - break; - case 104: - if ((0x2000000020L & l) != 0L) - jjAddStates(88, 89); - break; - case 107: - if ((0x104000001040L & l) != 0L && kind > 141) - kind = 141; - break; - case 108: - if (curChar == 76) - jjAddStates(76, 77); - break; - default : break; - } - } while(i != startsAt); - } - else - { - int i2 = (curChar & 0xff) >> 6; - long l2 = 1L << (curChar & 077); - MatchLoop: do - { - switch(jjstateSet[--i]) - { - case 7: - if ((jjbitVec0[i2] & l2) != 0L) - jjstateSet[jjnewStateCnt++] = 8; - break; - case 20: - if ((jjbitVec0[i2] & l2) != 0L) - jjAddStates(14, 16); - break; - default : break; - } - } while(i != startsAt); - } - if (kind != 0x7fffffff) - { - jjmatchedKind = kind; - jjmatchedPos = curPos; - kind = 0x7fffffff; - } - ++curPos; - if ((i = jjnewStateCnt) == (startsAt = 109 - (jjnewStateCnt = startsAt))) - return curPos; - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { return curPos; } - } -} -static private final int jjMoveStringLiteralDfa0_7() -{ - switch(curChar) - { - case 42: - return jjMoveStringLiteralDfa1_7(0x1000000L); - default : - return 1; - } -} -static private final int jjMoveStringLiteralDfa1_7(long active0) -{ - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - return 1; - } - switch(curChar) - { - case 47: - if ((active0 & 0x1000000L) != 0L) - return jjStopAtPos(1, 24); - break; - default : - return 2; - } - return 2; -} -static private final int jjMoveStringLiteralDfa0_8() -{ - return jjMoveNfa_8(0, 0); -} -static private final int jjMoveNfa_8(int startState, int curPos) -{ - int[] nextStates; - int startsAt = 0; - jjnewStateCnt = 3; - int i = 1; - jjstateSet[0] = startState; - int j, kind = 0x7fffffff; - for (;;) - { - if (++jjround == 0x7fffffff) - ReInitRounds(); - if (curChar < 64) - { - long l = 1L << curChar; - MatchLoop: do - { - switch(jjstateSet[--i]) - { - case 0: - if ((0x2400L & l) != 0L) - { - if (kind > 26) - kind = 26; - } - if (curChar == 13) - jjstateSet[jjnewStateCnt++] = 1; - break; - case 1: - if (curChar == 10 && kind > 26) - kind = 26; - break; - case 2: - if (curChar == 13) - jjstateSet[jjnewStateCnt++] = 1; - break; - default : break; - } - } while(i != startsAt); - } - else if (curChar < 128) - { - long l = 1L << (curChar & 077); - MatchLoop: do - { - switch(jjstateSet[--i]) - { - default : break; - } - } while(i != startsAt); - } - else - { - int i2 = (curChar & 0xff) >> 6; - long l2 = 1L << (curChar & 077); - MatchLoop: do - { - switch(jjstateSet[--i]) - { - default : break; - } - } while(i != startsAt); - } - if (kind != 0x7fffffff) - { - jjmatchedKind = kind; - jjmatchedPos = curPos; - kind = 0x7fffffff; - } - ++curPos; - if ((i = jjnewStateCnt) == (startsAt = 3 - (jjnewStateCnt = startsAt))) - return curPos; - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { return curPos; } - } -} -static private final int jjMoveStringLiteralDfa0_5() -{ - return 1; -} -static final int[] jjnextStates = { - 99, 100, 102, 0, 103, 104, 35, 39, 40, 41, 42, 52, 53, 60, 20, 21, - 23, 7, 9, 73, 74, 75, 76, 77, 78, 80, 82, 84, 86, 89, 92, 62, - 63, 64, 65, 66, 67, 69, 71, 1, 2, 5, 16, 18, 20, 21, 25, 23, - 20, 21, 27, 23, 29, 31, 20, 21, 30, 23, 44, 45, 67, 69, 71, 78, - 80, 82, 87, 88, 90, 91, 93, 95, 97, 101, 2, 5, 6, 19, 3, 4, - 10, 11, 13, 15, 22, 24, 26, 28, 105, 106, -}; -public static final String[] jjstrLiteralImages = { -"", null, null, null, null, null, null, null, null, null, null, null, null, -null, null, null, null, null, null, null, null, null, null, null, null, null, null, -null, "\173", "\175", "\133", "\135", "\50", "\51", "\72\72", "\72", "\73", "\54", -"\77", "\56\56\56", "\75", "\52\75", "\57\75", "\45\75", "\53\75", "\55\75", -"\74\74\75", "\76\76\75", "\46\75", "\136\75", "\174\75", "\174\174", "\46\46", "\174", -"\136", "\46", "\75\75", "\41\75", "\74", "\76", "\74\75", "\76\75", "\74\74", -"\76\76", "\53", "\55", "\52", "\57", "\45", "\53\53", "\55\55", "\176", "\41", "\56", -"\55\76", "\56\52", "\55\76\52", "\141\165\164\157", "\142\162\145\141\153", -"\143\141\163\145", "\143\141\164\143\150", "\143\150\141\162", "\143\157\156\163\164", -"\143\157\156\164\151\156\165\145", "\144\145\146\141\165\154\164", "\144\145\154\145\164\145", "\144\157", -"\144\157\165\142\154\145", "\145\154\163\145", "\145\156\165\155", "\145\170\164\145\162\156", -"\146\151\156\141\154\154\171", "\146\154\157\141\164", "\146\157\162", "\146\162\151\145\156\144", -"\147\157\164\157", "\151\146", "\151\156\154\151\156\145", "\151\156\164", "\154\157\156\147", -"\156\145\167", "\160\162\151\166\141\164\145", "\160\162\157\164\145\143\164\145\144", -"\160\165\142\154\151\143", "\162\145\144\145\143\154\141\162\145\144", -"\162\145\147\151\163\164\145\162", "\162\145\164\165\162\156", "\163\150\157\162\164", -"\163\151\147\156\145\144", "\163\151\172\145\157\146", "\163\164\141\164\151\143", -"\163\164\162\165\143\164", "\143\154\141\163\163", "\163\167\151\164\143\150", -"\164\145\155\160\154\141\164\145", "\164\150\151\163", "\164\162\171", "\164\171\160\145\144\145\146", -"\165\156\151\157\156", "\165\156\163\151\147\156\145\144", "\166\151\162\164\165\141\154", -"\166\157\151\144", "\166\157\154\141\164\151\154\145", "\167\150\151\154\145", -"\157\160\145\162\141\164\157\162", "\164\162\165\145", "\146\141\154\163\145", "\164\150\162\157\167", null, null, -null, null, null, null, null, null, null, null, null, null, null, null, null, null, -null, }; -public static final String[] lexStateNames = { - "DEFAULT", - "DEFINE_STMT", - "INCLUDE_STMT", - "LINE_NUMBER", - "LINE_DIRECTIVE", - "AFTER_LINE_DIRECTIVE", - "IN_LINE_COMMENT", - "IN_COMMENT", - "PREPROCESSOR_OUTPUT", -}; -public static final int[] jjnewLexState = { - -1, -1, -1, -1, -1, 6, 7, 3, 3, 2, 1, 8, -1, 8, 0, -1, 8, 0, 4, 5, -1, 0, 0, -1, 0, - -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -}; -static final long[] jjtoToken = { - 0xfffffffff0000001L, 0xffffffffffffffffL, 0x1ffffL, -}; -static final long[] jjtoSkip = { - 0x57ffffeL, 0x0L, 0x0L, -}; -static final long[] jjtoMore = { - 0xa800000L, 0x0L, 0x0L, -}; -static private ASCII_CharStream input_stream; -static private final int[] jjrounds = new int[109]; -static private final int[] jjstateSet = new int[218]; -static StringBuffer image; -static int jjimageLen; -static int lengthOfMatch; -static protected char curChar; -public CPPParserTokenManager(ASCII_CharStream stream) -{ - if (input_stream != null) - throw new TokenMgrError("ERROR: Second call to constructor of static lexer. You must use ReInit() to initialize the static variables.", TokenMgrError.STATIC_LEXER_ERROR); - input_stream = stream; -} -public CPPParserTokenManager(ASCII_CharStream stream, int lexState) -{ - this(stream); - SwitchTo(lexState); -} -static public void ReInit(ASCII_CharStream stream) -{ - jjmatchedPos = jjnewStateCnt = 0; - curLexState = defaultLexState; - input_stream = stream; - ReInitRounds(); -} -static private final void ReInitRounds() -{ - int i; - jjround = 0x80000001; - for (i = 109; i-- > 0;) - jjrounds[i] = 0x80000000; -} -static public void ReInit(ASCII_CharStream stream, int lexState) -{ - ReInit(stream); - SwitchTo(lexState); -} -static public void SwitchTo(int lexState) -{ - if (lexState >= 9 || lexState < 0) - throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE); - else - curLexState = lexState; -} - -static private final Token jjFillToken() -{ - Token t = Token.newToken(jjmatchedKind); - t.kind = jjmatchedKind; - String im = jjstrLiteralImages[jjmatchedKind]; - t.image = (im == null) ? input_stream.GetImage() : im; - t.beginLine = input_stream.getBeginLine(); - t.beginColumn = input_stream.getBeginColumn(); - t.endLine = input_stream.getEndLine(); - t.endColumn = input_stream.getEndColumn(); - return t; -} - -static int curLexState = 0; -static int defaultLexState = 0; -static int jjnewStateCnt; -static int jjround; -static int jjmatchedPos; -static int jjmatchedKind; - -public static final Token getNextToken() -{ - int kind; - Token specialToken = null; - Token matchedToken; - int curPos = 0; - - EOFLoop : - for (;;) - { - try - { - curChar = input_stream.BeginToken(); - } - catch(java.io.IOException e) - { - jjmatchedKind = 0; - matchedToken = jjFillToken(); - return matchedToken; - } - image = null; - jjimageLen = 0; - - for (;;) - { - switch(curLexState) - { - case 0: - try { input_stream.backup(0); - while (curChar <= 32 && (0x100002600L & (1L << curChar)) != 0L) - curChar = input_stream.BeginToken(); - } - catch (java.io.IOException e1) { continue EOFLoop; } - jjmatchedKind = 0x7fffffff; - jjmatchedPos = 0; - curPos = jjMoveStringLiteralDfa0_0(); - break; - case 1: - jjmatchedKind = 0x7fffffff; - jjmatchedPos = 0; - curPos = jjMoveStringLiteralDfa0_1(); - break; - case 2: - jjmatchedKind = 0x7fffffff; - jjmatchedPos = 0; - curPos = jjMoveStringLiteralDfa0_2(); - break; - case 3: - jjmatchedKind = 0x7fffffff; - jjmatchedPos = 0; - curPos = jjMoveStringLiteralDfa0_3(); - break; - case 4: - jjmatchedKind = 0x7fffffff; - jjmatchedPos = 0; - curPos = jjMoveStringLiteralDfa0_4(); - if (jjmatchedPos == 0 && jjmatchedKind > 20) - { - jjmatchedKind = 20; - } - break; - case 5: - jjmatchedKind = 0x7fffffff; - jjmatchedPos = 0; - curPos = jjMoveStringLiteralDfa0_5(); - if (jjmatchedPos == 0 && jjmatchedKind > 21) - { - jjmatchedKind = 21; - } - break; - case 6: - jjmatchedKind = 0x7fffffff; - jjmatchedPos = 0; - curPos = jjMoveStringLiteralDfa0_6(); - if (jjmatchedPos == 0 && jjmatchedKind > 23) - { - jjmatchedKind = 23; - } - break; - case 7: - jjmatchedKind = 0x7fffffff; - jjmatchedPos = 0; - curPos = jjMoveStringLiteralDfa0_7(); - if (jjmatchedPos == 0 && jjmatchedKind > 25) - { - jjmatchedKind = 25; - } - break; - case 8: - jjmatchedKind = 0x7fffffff; - jjmatchedPos = 0; - curPos = jjMoveStringLiteralDfa0_8(); - if (jjmatchedPos == 0 && jjmatchedKind > 27) - { - jjmatchedKind = 27; - } - break; - } - if (jjmatchedKind != 0x7fffffff) - { - if (jjmatchedPos + 1 < curPos) - input_stream.backup(curPos - jjmatchedPos - 1); - if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) - { - matchedToken = jjFillToken(); - if (jjnewLexState[jjmatchedKind] != -1) - curLexState = jjnewLexState[jjmatchedKind]; - return matchedToken; - } - else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) - { - SkipLexicalActions(null); - if (jjnewLexState[jjmatchedKind] != -1) - curLexState = jjnewLexState[jjmatchedKind]; - continue EOFLoop; - } - jjimageLen += jjmatchedPos + 1; - if (jjnewLexState[jjmatchedKind] != -1) - curLexState = jjnewLexState[jjmatchedKind]; - curPos = 0; - jjmatchedKind = 0x7fffffff; - try { - curChar = input_stream.readChar(); - continue; - } - catch (java.io.IOException e1) { } - } - int error_line = input_stream.getEndLine(); - int error_column = input_stream.getEndColumn(); - String error_after = null; - boolean EOFSeen = false; - try { input_stream.readChar(); input_stream.backup(1); } - catch (java.io.IOException e1) { - EOFSeen = true; - error_after = curPos <= 1 ? "" : input_stream.GetImage(); - if (curChar == '\n' || curChar == '\r') { - error_line++; - error_column = 0; - } - else - error_column++; - } - if (!EOFSeen) { - input_stream.backup(1); - error_after = curPos <= 1 ? "" : input_stream.GetImage(); - } - throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR); - } - } -} - -static final void SkipLexicalActions(Token matchedToken) -{ - switch(jjmatchedKind) - { - case 8 : - if (image == null) - image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); - else - image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); - input_stream.backup(1); - break; - case 12 : - if (image == null) - image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); - else - image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); - String defineName= image.toString(); - CPPParser.fgCallback.defineDecl(defineName, input_stream.getBeginLine(), input_stream.getBeginColumn()); - break; - case 15 : - if (image == null) - image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); - else - image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); - String includeName= image.toString(); // substring(0, image.length()-1).trim(); - CPPParser.fgCallback.includeDecl(includeName, input_stream.getBeginLine(), input_stream.getBeginColumn()); - break; - case 18 : - if (image == null) - image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); - else - image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); - try - { - beginLine = Integer.parseInt(image.toString()); - } - catch(NumberFormatException e) { } - break; - case 21 : - if (image == null) - image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); - else - image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); - input_stream.adjustBeginLineColumn(beginLine, 1); - input_stream.backup(1); - break; - default : - break; - } -} -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/generated/ParseException.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/generated/ParseException.java deleted file mode 100644 index 4a95acf85e8..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/generated/ParseException.java +++ /dev/null @@ -1,207 +0,0 @@ -/* Generated By:JavaCC: Do not edit this line. ParseException.java Version 0.7pre6 */ -package org.eclipse.cdt.internal.parser.generated; - -/* - * (c) Copyright QNX Software Systems Ltd. 2002. - * All Rights Reserved. - */ - -/** - * This exception is thrown when parse errors are encountered. - * You can explicitly create objects of this exception type by - * calling the method generateParseException in the generated - * parser. - * - * You can modify this class to customize your error reporting - * mechanisms so long as you retain the public fields. - */ -public class ParseException extends Exception { - - - /** - * This constructor is used by the method "generateParseException" - * in the generated parser. Calling this constructor generates - * a new object of this type with the fields "currentToken", - * "expectedTokenSequences", and "tokenImage" set. The boolean - * flag "specialConstructor" is also set to true to indicate that - * this constructor was used to create this object. - * This constructor calls its super class with the empty string - * to force the "toString" method of parent class "Throwable" to - * print the error message in the form: - * ParseException: <result of getMessage> - */ - public ParseException(Token currentTokenVal, - int[][] expectedTokenSequencesVal, - String[] tokenImageVal - ) - { - super(""); - specialConstructor = true; - currentToken = currentTokenVal; - expectedTokenSequences = expectedTokenSequencesVal; - tokenImage = tokenImageVal; - } - - - /** - * The following constructors are for use by you for whatever - * purpose you can think of. Constructing the exception in this - * manner makes the exception behave in the normal way - i.e., as - * documented in the class "Throwable". The fields "errorToken", - * "expectedTokenSequences", and "tokenImage" do not contain - * relevant information. The JavaCC generated code does not use - * these constructors. - */ - - - public ParseException() { - super(); - specialConstructor = false; - } - - - public ParseException(String message) { - super(message); - specialConstructor = false; - } - - - /** - * This variable determines which constructor was used to create - * this object and thereby affects the semantics of the - * "getMessage" method (see below). - */ - protected boolean specialConstructor; - - - /** - * This is the last token that has been consumed successfully. If - * this object has been created due to a parse error, the token - * followng this token will (therefore) be the first error token. - */ - public Token currentToken; - - - /** - * Each entry in this array is an array of integers. Each array - * of integers represents a sequence of tokens (by their ordinal - * values) that is expected at this point of the parse. - */ - public int[][] expectedTokenSequences; - - - /** - * This is a reference to the "tokenImage" array of the generated - * parser within which the parse error occurred. This array is - * defined in the generated ...Constants interface. - */ - public String[] tokenImage; - - - /** - * This method has the standard behavior when this object has been - * created using the standard constructors. Otherwise, it uses - * "currentToken" and "expectedTokenSequences" to generate a parse - * error message and returns it. If this object has been created - * due to a parse error, and you do not catch it (it gets thrown - * from the parser), then this method is called during the printing - * of the final stack trace, and hence the correct error message - * gets displayed. - */ - public String getMessage() { - if (!specialConstructor) { - return super.getMessage(); - } - String expected = ""; - int maxSize = 0; - for (int i = 0; i < expectedTokenSequences.length; i++) { - if (maxSize < expectedTokenSequences[i].length) { - maxSize = expectedTokenSequences[i].length; - } - for (int j = 0; j < expectedTokenSequences[i].length; j++) { - expected += tokenImage[expectedTokenSequences[i][j]] + " "; - } - if (expectedTokenSequences[i][expectedTokenSequences[i].length - 1] != 0) { - expected += "..."; - } - expected += eol + " "; - } - String retval = "Encountered \""; - Token tok = currentToken.next; - for (int i = 0; i < maxSize; i++) { - if (i != 0) retval += " "; - if (tok.kind == 0) { - retval += tokenImage[0]; - break; - } - retval += add_escapes(tok.image); - tok = tok.next; - } - retval += "\" at line " + currentToken.next.beginLine + ", column " + currentToken.next.beginColumn + "." + eol; - if (expectedTokenSequences.length == 1) { - retval += "Was expecting:" + eol + " "; - } else { - retval += "Was expecting one of:" + eol + " "; - } - retval += expected; - return retval; - } - - - /** - * The end of line string for this machine. - */ - protected String eol = System.getProperty("line.separator", "\n"); - - /** - * Used to convert raw characters to their escaped version - * when these raw version cannot be used as part of an ASCII - * string literal. - */ - protected String add_escapes(String str) { - StringBuffer retval = new StringBuffer(); - char ch; - for (int i = 0; i < str.length(); i++) { - switch (str.charAt(i)) - { - case 0 : - continue; - case '\b': - retval.append("\\b"); - continue; - case '\t': - retval.append("\\t"); - continue; - case '\n': - retval.append("\\n"); - continue; - case '\f': - retval.append("\\f"); - continue; - case '\r': - retval.append("\\r"); - continue; - case '\"': - retval.append("\\\""); - continue; - case '\'': - retval.append("\\\'"); - continue; - case '\\': - retval.append("\\\\"); - continue; - default: - if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { - String s = "0000" + Integer.toString(ch, 16); - retval.append("\\u" + s.substring(s.length() - 4, s.length())); - } else { - retval.append(ch); - } - continue; - } - } - return retval.toString(); - } - - -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/generated/Token.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/generated/Token.java deleted file mode 100644 index ebf4c9dfe70..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/generated/Token.java +++ /dev/null @@ -1,95 +0,0 @@ -/* Generated By:JavaCC: Do not edit this line. Token.java Version 0.7pre3 */ -package org.eclipse.cdt.internal.parser.generated; - -/* - * (c) Copyright QNX Software Systems Ltd. 2002. - * All Rights Reserved. - */ - -/** - * Describes the input token stream. - */ - - -public class Token { - - - /** - * An integer that describes the kind of this token. This numbering - * system is determined by JavaCCParser, and a table of these numbers is - * stored in the file ...Constants.java. - */ - public int kind; - - - /** - * beginLine and beginColumn describe the position of the first character - * of this token; endLine and endColumn describe the position of the - * last character of this token. - */ - public int beginLine, beginColumn, endLine, endColumn; - - - /** - * The string image of the token. - */ - public String image; - - - /** - * A reference to the next regular (non-special) token from the input - * stream. If this is the last token from the input stream, or if the - * token manager has not read tokens beyond this one, this field is - * set to null. This is true only if this token is also a regular - * token. Otherwise, see below for a description of the contents of - * this field. - */ - public Token next; - - - /** - * This field is used to access special tokens that occur prior to this - * token, but after the immediately preceding regular (non-special) token. - * If there are no such special tokens, this field is set to null. - * When there are more than one such special token, this field refers - * to the last of these special tokens, which in turn refers to the next - * previous special token through its specialToken field, and so on - * until the first special token (whose specialToken field is null). - * The next fields of special tokens refer to other special tokens that - * immediately follow it (without an intervening regular token). If there - * is no such token, this field is null. - */ - public Token specialToken; - - - /** - * Returns the image. - */ - public final String toString() - { - return image; - } - - - /** - * Returns a new Token object, by default. However, if you want, you - * can create and return subclass objects based on the value of ofKind. - * Simply add the cases to the switch for all those special cases. - * For example, if you have a subclass of Token called IDToken that - * you want to create if ofKind is ID, simlpy add something like : - * - * case MyParserConstants.ID : return new IDToken(); - * - * to the following switch statement. Then you can cast matchedToken - * variable to the appropriate type and use it in your lexical actions. - */ - public static final Token newToken(int ofKind) - { - switch(ofKind) - { - default : return new Token(); - } - } - - -} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/generated/TokenMgrError.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/generated/TokenMgrError.java deleted file mode 100644 index 09e965f9bb8..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/parser/generated/TokenMgrError.java +++ /dev/null @@ -1,150 +0,0 @@ -/* Generated By:JavaCC: Do not edit this line. TokenMgrError.java Version 0.7pre2 */ -package org.eclipse.cdt.internal.parser.generated; - -/* - * (c) Copyright QNX Software Systems Ltd. 2002. - * All Rights Reserved. - */ - -public class TokenMgrError extends Error -{ - /* - * Ordinals for various reasons why an Error of this type can be thrown. - */ - - - /** - * Lexical error occured. - */ - static final int LEXICAL_ERROR = 0; - - - /** - * An attempt wass made to create a second instance of a static token manager. - */ - static final int STATIC_LEXER_ERROR = 1; - - - /** - * Tried to change to an invalid lexical state. - */ - static final int INVALID_LEXICAL_STATE = 2; - - - /** - * Detected (and bailed out of) an infinite loop in the token manager. - */ - static final int LOOP_DETECTED = 3; - - - /** - * Indicates the reason why the exception is thrown. It will have - * one of the above 4 values. - */ - int errorCode; - - - /** - * Replaces unprintable characters by their espaced (or unicode escaped) - * equivalents in the given string - */ - protected static final String addEscapes(String str) { - StringBuffer retval = new StringBuffer(); - char ch; - for (int i = 0; i < str.length(); i++) { - switch (str.charAt(i)) - { - case 0 : - continue; - case '\b': - retval.append("\\b"); - continue; - case '\t': - retval.append("\\t"); - continue; - case '\n': - retval.append("\\n"); - continue; - case '\f': - retval.append("\\f"); - continue; - case '\r': - retval.append("\\r"); - continue; - case '\"': - retval.append("\\\""); - continue; - case '\'': - retval.append("\\\'"); - continue; - case '\\': - retval.append("\\\\"); - continue; - default: - if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { - String s = "0000" + Integer.toString(ch, 16); - retval.append("\\u" + s.substring(s.length() - 4, s.length())); - } else { - retval.append(ch); - } - continue; - } - } - return retval.toString(); - } - - - /** - * Returns a detailed message for the Error when it is thrown by the - * token manager to indicate a lexical error. - * Parameters : - * EOFSeen : indicates if EOF caused the lexicl error - * curLexState : lexical state in which this error occured - * errorLine : line number when the error occured - * errorColumn : column number when the error occured - * errorAfter : prefix that was seen before this error occured - * curchar : the offending character - * Note: You can customize the lexical error message by modifying this method. - */ - private static final String LexicalError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar) { - return("Lexical error at line " + - errorLine + ", column " + - errorColumn + ". Encountered: " + - (EOFSeen ? "<EOF> " : ("\"" + addEscapes(String.valueOf(curChar)) + "\"") + " (" + (int)curChar + "), ") + - "after : \"" + addEscapes(errorAfter) + "\""); - } - - - /** - * You can also modify the body of this method to customize your error messages. - * For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not - * of end-users concern, so you can return something like : - * - * "Internal Error : Please file a bug report .... " - * - * from this method for such cases in the release version of your parser. - */ - public String getMessage() { - return super.getMessage(); - } - - - /* - * Constructors of various flavors follow. - */ - - - public TokenMgrError() { - } - - - public TokenMgrError(String message, int reason) { - super(message); - errorCode = reason; - } - - - public TokenMgrError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar, int reason) { - this(LexicalError(EOFSeen, lexState, errorLine, errorColumn, errorAfter, curChar), reason); - } -} |