mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-22 00:15:25 +02:00
Bug 540373: Cleanup: Add missing annotations
This was done by selecting all projects in Eclipse then Source -> Clean Up... -> choosing: - Add missing Annotations - and selecting all three types: - @Override - @Override on interface methods - @Deprecated and completing the wizard Change-Id: I5d367dacb04327107f25e147edc08efc4eb1c2fe
This commit is contained in:
parent
a923614c73
commit
8985c7b63f
202 changed files with 1311 additions and 0 deletions
|
@ -500,6 +500,7 @@ public class GCCToolChain extends PlatformObject implements IToolChain {
|
|||
includePathReaderThread.start();
|
||||
|
||||
Thread macroReaderThread = new Thread("Macro reader") {
|
||||
@Override
|
||||
public void run() {
|
||||
// Now the defines off the output stream
|
||||
try (BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()))) {
|
||||
|
|
|
@ -35,6 +35,7 @@ public class Activator implements BundleActivator {
|
|||
* (non-Javadoc)
|
||||
* @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
|
||||
*/
|
||||
@Override
|
||||
public void start(BundleContext bundleContext) throws Exception {
|
||||
Activator.context = bundleContext;
|
||||
}
|
||||
|
@ -43,6 +44,7 @@ public class Activator implements BundleActivator {
|
|||
* (non-Javadoc)
|
||||
* @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
|
||||
*/
|
||||
@Override
|
||||
public void stop(BundleContext bundleContext) throws Exception {
|
||||
Activator.context = null;
|
||||
}
|
||||
|
|
|
@ -38,6 +38,7 @@ public class Activator extends AbstractUIPlugin {
|
|||
* (non-Javadoc)
|
||||
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
|
||||
*/
|
||||
@Override
|
||||
public void start(BundleContext context) throws Exception {
|
||||
super.start(context);
|
||||
plugin = this;
|
||||
|
@ -47,6 +48,7 @@ public class Activator extends AbstractUIPlugin {
|
|||
* (non-Javadoc)
|
||||
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
|
||||
*/
|
||||
@Override
|
||||
public void stop(BundleContext context) throws Exception {
|
||||
plugin = null;
|
||||
super.stop(context);
|
||||
|
|
|
@ -29,6 +29,7 @@ public class Activator implements BundleActivator {
|
|||
* (non-Javadoc)
|
||||
* @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
|
||||
*/
|
||||
@Override
|
||||
public void start(BundleContext bundleContext) throws Exception {
|
||||
Activator.context = bundleContext;
|
||||
}
|
||||
|
@ -37,6 +38,7 @@ public class Activator implements BundleActivator {
|
|||
* (non-Javadoc)
|
||||
* @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
|
||||
*/
|
||||
@Override
|
||||
public void stop(BundleContext bundleContext) throws Exception {
|
||||
Activator.context = null;
|
||||
}
|
||||
|
|
|
@ -30,6 +30,7 @@ public class CatchByConstReferenceQuickFix extends CatchByReferenceQuickFix {
|
|||
return Messages.CatchByConstReferenceQuickFix_Message;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Optional<IASTDeclSpecifier> getNewDeclSpecifier(IASTSimpleDeclaration declaration) {
|
||||
IASTDeclSpecifier declSpecifier = declaration.getDeclSpecifier();
|
||||
IASTDeclSpecifier replacement = declSpecifier.copy(CopyStyle.withLocations);
|
||||
|
|
|
@ -42,6 +42,7 @@ public class CodanMarkerGenerator implements IMarkerGenerator {
|
|||
this.reporter = reporter;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public void addMarker(IResource file, int lineNumber, String description, int severity, String variableName) {
|
||||
addMarker(new ProblemMarkerInfo(file, lineNumber, description, severity, variableName));
|
||||
|
|
|
@ -157,6 +157,7 @@ public abstract class CodanFastCxxAstTestCase extends TestCase {
|
|||
void runCodan(IASTTranslationUnit tu) {
|
||||
IProblemReporter problemReporter = CodanRuntime.getInstance().getProblemReporter();
|
||||
CodanRuntime.getInstance().setProblemReporter(new IProblemReporter() {
|
||||
@Override
|
||||
public void reportProblem(String problemId, IProblemLocation loc, Object... args) {
|
||||
codanproblems.add(new ProblemInstance(problemId, loc, args));
|
||||
}
|
||||
|
|
|
@ -125,6 +125,7 @@ public class CodanTestCase extends BaseTestCase {
|
|||
final String projectName = "CodanProjTest_" + System.currentTimeMillis();
|
||||
final IWorkspace workspace = ResourcesPlugin.getWorkspace();
|
||||
workspace.run(new IWorkspaceRunnable() {
|
||||
@Override
|
||||
public void run(IProgressMonitor monitor) throws CoreException {
|
||||
// Create the cproject
|
||||
ICProject cproject = cpp
|
||||
|
@ -143,6 +144,7 @@ public class CodanTestCase extends BaseTestCase {
|
|||
protected void indexFiles() throws CoreException, InterruptedException {
|
||||
final IWorkspace workspace = ResourcesPlugin.getWorkspace();
|
||||
workspace.run(new IWorkspaceRunnable() {
|
||||
@Override
|
||||
public void run(IProgressMonitor monitor) throws CoreException {
|
||||
cproject.getProject().refreshLocal(1, monitor);
|
||||
}
|
||||
|
|
|
@ -38,6 +38,7 @@ public class GrepChecker extends AbstractCheckerWithProblemPreferences {
|
|||
public final static String ID = "org.eclipse.cdt.codan.examples.checkers.GrepCheckerProblemError";
|
||||
private static final String PARAM_STRING_LIST = "searchlist";
|
||||
|
||||
@Override
|
||||
public synchronized boolean processResource(IResource resource) {
|
||||
if (!shouldProduceProblems(resource))
|
||||
return false;
|
||||
|
|
|
@ -43,10 +43,12 @@ public class NamingConventionFunctionIIndexChecker extends AbstractCIndexChecker
|
|||
* org.eclipse.cdt.codan.core.model.ICIndexChecker#processUnit(org.eclipse
|
||||
* .cdt.core.model.ITranslationUnit)
|
||||
*/
|
||||
@Override
|
||||
public void processUnit(ITranslationUnit unit) {
|
||||
final IProblem pt = getProblemById(ER_ID, getFile());
|
||||
try {
|
||||
unit.accept(new ICElementVisitor() {
|
||||
@Override
|
||||
public boolean visit(ICElement element) {
|
||||
if (element.getElementType() == ICElement.C_FUNCTION) {
|
||||
String parameter = (String) getPreference(pt, PARAM_KEY);
|
||||
|
@ -73,6 +75,7 @@ public class NamingConventionFunctionIIndexChecker extends AbstractCIndexChecker
|
|||
* org.eclipse.cdt.codan.core.model.ICheckerWithPreferences#initParameters
|
||||
* (org.eclipse.cdt.codan.core.model.IProblemWorkingCopy)
|
||||
*/
|
||||
@Override
|
||||
public void initPreferences(IProblemWorkingCopy problem) {
|
||||
super.initPreferences(problem);
|
||||
IProblemPreference info = new BasicProblemPreference(PARAM_KEY, "Name Pattern");
|
||||
|
|
|
@ -44,6 +44,7 @@ public class ProcessInfo implements IProcessInfo {
|
|||
/**
|
||||
* @see org.eclipse.cdt.core.IProcessInfo#getName()
|
||||
*/
|
||||
@Override
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
@ -51,6 +52,7 @@ public class ProcessInfo implements IProcessInfo {
|
|||
/**
|
||||
* @see org.eclipse.cdt.core.IProcessInfo#getPid()
|
||||
*/
|
||||
@Override
|
||||
public int getPid() {
|
||||
return pid;
|
||||
}
|
||||
|
|
|
@ -36,6 +36,7 @@ public class ProcessList implements IProcessList {
|
|||
* Insert the method's description here.
|
||||
* @see IProcessList#getProcessList
|
||||
*/
|
||||
@Override
|
||||
public IProcessInfo[] getProcessList() {
|
||||
File proc = new File("/proc"); //$NON-NLS-1$
|
||||
File[] pidFiles = null;
|
||||
|
@ -43,6 +44,7 @@ public class ProcessList implements IProcessList {
|
|||
// We are only interrested in the pid so filter the rest out.
|
||||
try {
|
||||
FilenameFilter filter = new FilenameFilter() {
|
||||
@Override
|
||||
public boolean accept(File dir, String name) {
|
||||
boolean isPID = false;
|
||||
try {
|
||||
|
|
|
@ -44,6 +44,7 @@ public class ProcessInfo implements IProcessInfo {
|
|||
/**
|
||||
* @see org.eclipse.cdt.core.IProcessInfo#getName()
|
||||
*/
|
||||
@Override
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
@ -51,6 +52,7 @@ public class ProcessInfo implements IProcessInfo {
|
|||
/**
|
||||
* @see org.eclipse.cdt.core.IProcessInfo#getPid()
|
||||
*/
|
||||
@Override
|
||||
public int getPid() {
|
||||
return pid;
|
||||
}
|
||||
|
|
|
@ -36,6 +36,7 @@ public class ProcessList implements IProcessList {
|
|||
* Insert the method's description here.
|
||||
* @see IProcessList#getProcessList
|
||||
*/
|
||||
@Override
|
||||
public IProcessInfo[] getProcessList() {
|
||||
Process ps;
|
||||
BufferedReader psOutput;
|
||||
|
|
|
@ -23,6 +23,7 @@ import org.eclipse.cdt.core.EFSExtensionProvider;
|
|||
*/
|
||||
public class MemoryEFSExtensionProvider extends EFSExtensionProvider {
|
||||
|
||||
@Override
|
||||
public String getMappedPath(URI locationURI) {
|
||||
|
||||
String path = locationURI.getPath();
|
||||
|
|
|
@ -119,6 +119,7 @@ public class AST2CPPAttributeTests extends AST2TestBase {
|
|||
return specifiers;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int visit(IASTAttributeSpecifier specifier) {
|
||||
specifiers.add(specifier);
|
||||
return PROCESS_CONTINUE;
|
||||
|
|
|
@ -33,6 +33,7 @@ public class ClassMemberVisibilityTests extends PDOMInlineCodeTestBase {
|
|||
return suite(ClassMemberVisibilityTests.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setUp() throws Exception {
|
||||
super.setUp();
|
||||
setUpSections(1);
|
||||
|
|
|
@ -35,6 +35,7 @@ public class PDOMInlineCodeTestBase extends PDOMTestBase {
|
|||
protected PDOM pdom;
|
||||
protected ICProject cproject;
|
||||
|
||||
@Override
|
||||
public void setUp() throws Exception {
|
||||
cproject = CProjectHelper.createCCProject("classTemplateTests" + System.currentTimeMillis(), "bin",
|
||||
IPDOMManager.ID_NO_INDEXER);
|
||||
|
|
|
@ -700,6 +700,7 @@ public class ResourceHelper {
|
|||
*
|
||||
* @deprecated Use {@link #cleanUp(String)} instead so test name can be printed in diagnostics
|
||||
*/
|
||||
@Deprecated
|
||||
public static void cleanUp() throws CoreException, IOException {
|
||||
cleanUp("<unknown>");
|
||||
}
|
||||
|
|
|
@ -44,6 +44,7 @@ public class ProcessInfo implements IProcessInfo {
|
|||
/**
|
||||
* @see org.eclipse.cdt.core.IProcessInfo#getName()
|
||||
*/
|
||||
@Override
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
@ -51,6 +52,7 @@ public class ProcessInfo implements IProcessInfo {
|
|||
/**
|
||||
* @see org.eclipse.cdt.core.IProcessInfo#getPid()
|
||||
*/
|
||||
@Override
|
||||
public int getPid() {
|
||||
return pid;
|
||||
}
|
||||
|
|
|
@ -42,6 +42,7 @@ public class ProcessList implements IProcessList {
|
|||
|
||||
private IProcessInfo[] NOPROCESS = new IProcessInfo[0];
|
||||
|
||||
@Override
|
||||
public IProcessInfo[] getProcessList() {
|
||||
Process p = null;
|
||||
String command = null;
|
||||
|
|
|
@ -51,6 +51,7 @@ public class ExtractConstantRefactoringTest extends RefactoringTestBase {
|
|||
return suite(ExtractConstantRefactoringTest.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Before
|
||||
public void setUp() throws Exception {
|
||||
extractedConstantName = "EXTRACTED";
|
||||
|
|
|
@ -40,6 +40,7 @@ public class Activator extends Plugin {
|
|||
* (non-Javadoc)
|
||||
* @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
|
||||
*/
|
||||
@Override
|
||||
public void start(BundleContext context) throws Exception {
|
||||
super.start(context);
|
||||
plugin = this;
|
||||
|
@ -49,6 +50,7 @@ public class Activator extends Plugin {
|
|||
* (non-Javadoc)
|
||||
* @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
|
||||
*/
|
||||
@Override
|
||||
public void stop(BundleContext context) throws Exception {
|
||||
plugin = null;
|
||||
super.stop(context);
|
||||
|
|
|
@ -25,6 +25,7 @@ import org.eclipse.core.runtime.Platform;
|
|||
|
||||
public class CrossEnvironmentVariableSupplier implements IConfigurationEnvironmentVariableSupplier {
|
||||
|
||||
@Override
|
||||
public IBuildEnvironmentVariable getVariable(String variableName, IConfiguration configuration,
|
||||
IEnvironmentVariableProvider provider) {
|
||||
if (PathEnvironmentVariable.isVar(variableName))
|
||||
|
@ -33,6 +34,7 @@ public class CrossEnvironmentVariableSupplier implements IConfigurationEnvironme
|
|||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IBuildEnvironmentVariable[] getVariables(IConfiguration configuration,
|
||||
IEnvironmentVariableProvider provider) {
|
||||
IBuildEnvironmentVariable path = PathEnvironmentVariable.create(configuration);
|
||||
|
@ -66,18 +68,22 @@ public class CrossEnvironmentVariableSupplier implements IConfigurationEnvironme
|
|||
: name.equals(PathEnvironmentVariable.name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDelimiter() {
|
||||
return Platform.getOS().equals(Platform.OS_WIN32) ? ";" : ":"; //$NON-NLS-1$ //$NON-NLS-2$
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getOperation() {
|
||||
return IBuildEnvironmentVariable.ENVVAR_PREPEND;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getValue() {
|
||||
return path.getPath();
|
||||
}
|
||||
|
|
|
@ -36,6 +36,7 @@ import org.eclipse.jface.operation.IRunnableWithProgress;
|
|||
*/
|
||||
public class SetCrossCommandOperation implements IRunnableWithProgress {
|
||||
|
||||
@Override
|
||||
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
|
||||
|
||||
String projectName = (String) MBSCustomPageManager.getPageProperty(SetCrossCommandWizardPage.PAGE_ID,
|
||||
|
|
|
@ -71,10 +71,12 @@ public class SetCrossCommandWizardPage extends MBSCustomPage {
|
|||
return finish;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return Messages.SetCrossCommandWizardPage_name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void createControl(Composite parent) {
|
||||
composite = new Composite(parent, SWT.NULL);
|
||||
|
||||
|
@ -95,6 +97,7 @@ public class SetCrossCommandWizardPage extends MBSCustomPage {
|
|||
}
|
||||
prefixTxt.addModifyListener(new ModifyListener() {
|
||||
|
||||
@Override
|
||||
public void modifyText(ModifyEvent e) {
|
||||
updatePrefixProperty();
|
||||
}
|
||||
|
@ -113,6 +116,7 @@ public class SetCrossCommandWizardPage extends MBSCustomPage {
|
|||
pathTxt.setLayoutData(layoutData);
|
||||
pathTxt.addModifyListener(new ModifyListener() {
|
||||
|
||||
@Override
|
||||
public void modifyText(ModifyEvent e) {
|
||||
updatePathProperty();
|
||||
}
|
||||
|
@ -122,9 +126,11 @@ public class SetCrossCommandWizardPage extends MBSCustomPage {
|
|||
button.setText(Messages.SetCrossCommandWizardPage_browse);
|
||||
button.addSelectionListener(new SelectionListener() {
|
||||
|
||||
@Override
|
||||
public void widgetDefaultSelected(SelectionEvent e) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void widgetSelected(SelectionEvent e) {
|
||||
DirectoryDialog dirDialog = new DirectoryDialog(composite.getShell(), SWT.APPLICATION_MODAL);
|
||||
String browsedDirectory = dirDialog.open();
|
||||
|
@ -137,42 +143,53 @@ public class SetCrossCommandWizardPage extends MBSCustomPage {
|
|||
button.setLayoutData(layoutData);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Control getControl() {
|
||||
return composite;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return Messages.SetCrossCommandWizardPage_description;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getErrorMessage() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Image getImage() {
|
||||
return wizard.getDefaultPageImage();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMessage() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTitle() {
|
||||
return Messages.SetCrossCommandWizardPage_title;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void performHelp() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDescription(String description) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setImageDescriptor(ImageDescriptor image) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setTitle(String title) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setVisible(boolean visible) {
|
||||
if (visible) {
|
||||
finish = true;
|
||||
|
@ -180,6 +197,7 @@ public class SetCrossCommandWizardPage extends MBSCustomPage {
|
|||
composite.setVisible(visible);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void dispose() {
|
||||
}
|
||||
|
||||
|
|
|
@ -110,6 +110,7 @@ public class RemoteGdbLaunchDelegate extends GdbLaunchDelegate {
|
|||
if (session != null) {
|
||||
try {
|
||||
session.getExecutor().execute(new DsfRunnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
DsfServicesTracker tracker = new DsfServicesTracker(
|
||||
Activator.getBundleContext(), session.getId());
|
||||
|
@ -166,6 +167,7 @@ public class RemoteGdbLaunchDelegate extends GdbLaunchDelegate {
|
|||
// partially started already.
|
||||
try {
|
||||
l.getSession().getExecutor().execute(new DsfRunnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
l.shutdownSession(new ImmediateRequestMonitor());
|
||||
}
|
||||
|
|
|
@ -118,6 +118,7 @@ public class RemoteCDSFMainTab extends CMainTab {
|
|||
/* If the local binary path changes, modify the remote binary location */
|
||||
fProgText.addModifyListener(new ModifyListener() {
|
||||
|
||||
@Override
|
||||
public void modifyText(ModifyEvent evt) {
|
||||
setLocalPathForRemotePath();
|
||||
}
|
||||
|
@ -194,6 +195,7 @@ public class RemoteCDSFMainTab extends CMainTab {
|
|||
connectionCombo.setLayoutData(gd);
|
||||
connectionCombo.addModifyListener(new ModifyListener() {
|
||||
|
||||
@Override
|
||||
public void modifyText(ModifyEvent e) {
|
||||
useDefaultsFromConnection();
|
||||
updateConnectionButtons();
|
||||
|
@ -260,6 +262,7 @@ public class RemoteCDSFMainTab extends CMainTab {
|
|||
remoteProgText.setLayoutData(gd);
|
||||
remoteProgText.addModifyListener(new ModifyListener() {
|
||||
|
||||
@Override
|
||||
public void modifyText(ModifyEvent evt) {
|
||||
updateLaunchConfigurationDialog();
|
||||
}
|
||||
|
@ -288,6 +291,7 @@ public class RemoteCDSFMainTab extends CMainTab {
|
|||
preRunText.setLayoutData(gd);
|
||||
preRunText.addModifyListener(new ModifyListener() {
|
||||
|
||||
@Override
|
||||
public void modifyText(ModifyEvent evt) {
|
||||
updateLaunchConfigurationDialog();
|
||||
}
|
||||
|
|
|
@ -172,6 +172,7 @@ public class RemoteDSFGDBDebuggerPage extends GdbDebuggerPage {
|
|||
fGDBServerCommandText.setLayoutData(data);
|
||||
fGDBServerCommandText.addModifyListener(new ModifyListener() {
|
||||
|
||||
@Override
|
||||
public void modifyText(ModifyEvent evt) {
|
||||
updateLaunchConfigurationDialog();
|
||||
}
|
||||
|
@ -186,6 +187,7 @@ public class RemoteDSFGDBDebuggerPage extends GdbDebuggerPage {
|
|||
fGDBServerPortNumberText.setLayoutData(data);
|
||||
fGDBServerPortNumberText.addModifyListener(new ModifyListener() {
|
||||
|
||||
@Override
|
||||
public void modifyText(ModifyEvent evt) {
|
||||
updateLaunchConfigurationDialog();
|
||||
}
|
||||
|
@ -200,6 +202,7 @@ public class RemoteDSFGDBDebuggerPage extends GdbDebuggerPage {
|
|||
fGDBServerOptionsText.setLayoutData(data);
|
||||
fGDBServerOptionsText.addModifyListener(new ModifyListener() {
|
||||
|
||||
@Override
|
||||
public void modifyText(ModifyEvent evt) {
|
||||
updateLaunchConfigurationDialog();
|
||||
}
|
||||
|
@ -224,6 +227,7 @@ public class RemoteDSFGDBDebuggerPage extends GdbDebuggerPage {
|
|||
fRemoteTimeoutValueText.setToolTipText(Messages.Remotetimeout_tooltip);
|
||||
fRemoteTimeoutValueText.addModifyListener(new ModifyListener() {
|
||||
|
||||
@Override
|
||||
public void modifyText(ModifyEvent evt) {
|
||||
updateLaunchConfigurationDialog();
|
||||
}
|
||||
|
|
|
@ -106,6 +106,7 @@ public class DebugStringVariableSubstitutor implements IStringVariableManager {
|
|||
: ResourcesPlugin.getWorkspace().getRoot().getProject(projectName));
|
||||
}
|
||||
|
||||
@Override
|
||||
public IStringVariable[] getVariables() {
|
||||
IStringVariable[] variables = variableManager.getVariables();
|
||||
for (int i = 0; i < variables.length; i++) {
|
||||
|
@ -116,14 +117,17 @@ public class DebugStringVariableSubstitutor implements IStringVariableManager {
|
|||
return variables;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IValueVariable[] getValueVariables() {
|
||||
return variableManager.getValueVariables();
|
||||
}
|
||||
|
||||
@Override
|
||||
public IValueVariable getValueVariable(String name) {
|
||||
return variableManager.getValueVariable(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IDynamicVariable[] getDynamicVariables() {
|
||||
IDynamicVariable[] variables = variableManager.getDynamicVariables();
|
||||
for (int i = 0; i < variables.length; i++) {
|
||||
|
@ -132,6 +136,7 @@ public class DebugStringVariableSubstitutor implements IStringVariableManager {
|
|||
return variables;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IDynamicVariable getDynamicVariable(String name) {
|
||||
IDynamicVariable var = variableManager.getDynamicVariable(name);
|
||||
if (var == null)
|
||||
|
@ -147,47 +152,58 @@ public class DebugStringVariableSubstitutor implements IStringVariableManager {
|
|||
return var;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getContributingPluginId(IStringVariable variable) {
|
||||
return variableManager.getContributingPluginId(variable);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String performStringSubstitution(String expression) throws CoreException {
|
||||
return performStringSubstitution(expression, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String performStringSubstitution(String expression, boolean reportUndefinedVariables) throws CoreException {
|
||||
return new StringSubstitutionEngine().performStringSubstitution(expression, reportUndefinedVariables, true,
|
||||
this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void validateStringVariables(String expression) throws CoreException {
|
||||
new StringSubstitutionEngine().validateStringVariables(expression, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IValueVariable newValueVariable(String name, String description) {
|
||||
return variableManager.newValueVariable(name, description);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IValueVariable newValueVariable(String name, String description, boolean readOnly, String value) {
|
||||
return variableManager.newValueVariable(name, description, readOnly, value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addVariables(IValueVariable[] variables) throws CoreException {
|
||||
variableManager.addVariables(variables);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeVariables(IValueVariable[] variables) {
|
||||
variableManager.removeVariables(variables);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addValueVariableListener(IValueVariableListener listener) {
|
||||
variableManager.addValueVariableListener(listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeValueVariableListener(IValueVariableListener listener) {
|
||||
variableManager.removeValueVariableListener(listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String generateVariableExpression(String varName, String arg) {
|
||||
return variableManager.generateVariableExpression(varName, arg);
|
||||
}
|
||||
|
|
|
@ -17,6 +17,7 @@ package org.eclipse.cdt.debug.internal.core;
|
|||
* @deprecated This interface has been moved to a public package. Use
|
||||
* {@link org.eclipse.cdt.debug.core.ICWatchpointTarget} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface ICWatchpointTarget extends org.eclipse.cdt.debug.core.ICWatchpointTarget {
|
||||
|
||||
}
|
||||
|
|
|
@ -48,6 +48,7 @@ public abstract class AbstractDynamicPrintf extends AbstractLineBreakpoint imple
|
|||
* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.core.ICDynamicPrintf#setPrintfString(String)
|
||||
*/
|
||||
@Override
|
||||
public void setPrintfString(String str) throws CoreException {
|
||||
setAttribute(PRINTF_STRING, str);
|
||||
setAttribute(IMarker.MESSAGE, getMarkerMessage());
|
||||
|
|
|
@ -43,6 +43,7 @@ public class CAddressBreakpoint extends AbstractLineBreakpoint implements ICAddr
|
|||
/**
|
||||
* Returns the type of marker associated with this type of breakpoints
|
||||
*/
|
||||
@Override
|
||||
public String getMarkerType() {
|
||||
return C_ADDRESS_BREAKPOINT_MARKER;
|
||||
}
|
||||
|
|
|
@ -40,6 +40,7 @@ public class CAddressDynamicPrintf extends AbstractDynamicPrintf implements ICAd
|
|||
/**
|
||||
* Returns the type of marker associated with this type of breakpoints
|
||||
*/
|
||||
@Override
|
||||
public String getMarkerType() {
|
||||
return C_ADDRESS_DYNAMICPRINTF_MARKER;
|
||||
}
|
||||
|
|
|
@ -46,6 +46,7 @@ public class CAddressTracepoint extends AbstractTracepoint implements ICAddressB
|
|||
/**
|
||||
* Returns the type of marker associated with this type of breakpoints
|
||||
*/
|
||||
@Override
|
||||
public String getMarkerType() {
|
||||
return C_ADDRESS_TRACEPOINT_MARKER;
|
||||
}
|
||||
|
|
|
@ -34,6 +34,7 @@ public class CBreakpointImportParticipant implements IBreakpointImportParticipan
|
|||
* org.eclipse.debug.core.model.IBreakpointImportParticipant#matches(java
|
||||
* .util.Map, org.eclipse.debug.core.model.IBreakpoint)
|
||||
*/
|
||||
@Override
|
||||
public boolean matches(Map<String, Object> attributes, IBreakpoint breakpoint) throws CoreException {
|
||||
if (attributes == null || breakpoint == null) {
|
||||
return false;
|
||||
|
|
|
@ -43,6 +43,7 @@ public class CFunctionBreakpoint extends AbstractLineBreakpoint implements ICFun
|
|||
/**
|
||||
* Returns the type of marker associated with this type of breakpoints
|
||||
*/
|
||||
@Override
|
||||
public String getMarkerType() {
|
||||
return C_FUNCTION_BREAKPOINT_MARKER;
|
||||
}
|
||||
|
|
|
@ -40,6 +40,7 @@ public class CFunctionDynamicPrintf extends AbstractDynamicPrintf implements ICF
|
|||
/**
|
||||
* Returns the type of marker associated with this type of breakpoints
|
||||
*/
|
||||
@Override
|
||||
public String getMarkerType() {
|
||||
return C_FUNCTION_DYNAMICPRINTF_MARKER;
|
||||
}
|
||||
|
@ -47,6 +48,7 @@ public class CFunctionDynamicPrintf extends AbstractDynamicPrintf implements ICF
|
|||
/*(non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.internal.core.breakpoints.CBreakpoint#getMarkerMessage()
|
||||
*/
|
||||
@Override
|
||||
protected String getMarkerMessage() throws CoreException {
|
||||
return MessageFormat.format(BreakpointMessages.getString("CFunctionDynamicPrintf.0"), //$NON-NLS-1$
|
||||
(Object[]) new String[] { CDebugUtils.getBreakpointText(this, false) });
|
||||
|
|
|
@ -46,6 +46,7 @@ public class CFunctionTracepoint extends AbstractTracepoint implements ICFunctio
|
|||
/**
|
||||
* Returns the type of marker associated with this type of breakpoints
|
||||
*/
|
||||
@Override
|
||||
public String getMarkerType() {
|
||||
return C_FUNCTION_TRACEPOINT_MARKER;
|
||||
}
|
||||
|
|
|
@ -493,6 +493,7 @@ public class CDebugUIUtils {
|
|||
* exposed via getEditorId. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=516470
|
||||
* @deprecated Deprecated on creation as this is waiting for Bug 516470 to be resolved
|
||||
*/
|
||||
@Deprecated
|
||||
private static IUnassociatedEditorStrategy getUnassociatedEditorStrategy(boolean allowInteractive) {
|
||||
String preferedStrategy = IDEWorkbenchPlugin.getDefault().getPreferenceStore()
|
||||
.getString(IDE.UNASSOCIATED_EDITOR_STRATEGY_PREFERENCE_KEY);
|
||||
|
|
|
@ -20,6 +20,7 @@ package org.eclipse.cdt.debug.internal.ui.actions;
|
|||
* @deprecated Use the {@link org.eclipse.cdt.debug.ui.breakpoints.AddWatchpointOnVariableActionDelegate}
|
||||
* class instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public class AddWatchpointOnVariableActionDelegate
|
||||
extends org.eclipse.cdt.debug.ui.breakpoints.AddWatchpointOnVariableActionDelegate {
|
||||
|
||||
|
|
|
@ -56,6 +56,7 @@ public class CAddBreakpointInteractiveRulerAction extends Action implements IUpd
|
|||
private IDocument fDocument;
|
||||
private IVerticalRulerInfo fRulerInfo;
|
||||
private IToggleBreakpointsTargetManagerListener fListener = new IToggleBreakpointsTargetManagerListener() {
|
||||
@Override
|
||||
public void preferredTargetsChanged() {
|
||||
update();
|
||||
}
|
||||
|
@ -86,6 +87,7 @@ public class CAddBreakpointInteractiveRulerAction extends Action implements IUpd
|
|||
* (non-Javadoc)
|
||||
* @see org.eclipse.jface.action.IAction#run()
|
||||
*/
|
||||
@Override
|
||||
public void run() {
|
||||
IDocument document = getDocument();
|
||||
if (document == null) {
|
||||
|
@ -167,6 +169,7 @@ public class CAddBreakpointInteractiveRulerAction extends Action implements IUpd
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.texteditor.IUpdate#update()
|
||||
*/
|
||||
@Override
|
||||
public void update() {
|
||||
IDocument document = getDocument();
|
||||
if (document != null) {
|
||||
|
|
|
@ -63,6 +63,7 @@ public class CAddBreakpointInteractiveRulerActionDelegate extends AbstractRulerA
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.texteditor.AbstractRulerActionDelegate#createAction(org.eclipse.ui.texteditor.ITextEditor, org.eclipse.jface.text.source.IVerticalRulerInfo)
|
||||
*/
|
||||
@Override
|
||||
protected IAction createAction(ITextEditor editor, IVerticalRulerInfo rulerInfo) {
|
||||
fDelegate = new CAddBreakpointInteractiveRulerAction(editor, null, rulerInfo);
|
||||
return fDelegate;
|
||||
|
@ -71,6 +72,7 @@ public class CAddBreakpointInteractiveRulerActionDelegate extends AbstractRulerA
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.IEditorActionDelegate#setActiveEditor(org.eclipse.jface.action.IAction, org.eclipse.ui.IEditorPart)
|
||||
*/
|
||||
@Override
|
||||
public void setActiveEditor(IAction callerAction, IEditorPart targetEditor) {
|
||||
if (fEditor != null) {
|
||||
if (fDelegate != null) {
|
||||
|
@ -85,12 +87,14 @@ public class CAddBreakpointInteractiveRulerActionDelegate extends AbstractRulerA
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.IActionDelegate2#init(org.eclipse.jface.action.IAction)
|
||||
*/
|
||||
@Override
|
||||
public void init(IAction action) {
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.IActionDelegate2#dispose()
|
||||
*/
|
||||
@Override
|
||||
public void dispose() {
|
||||
if (fDelegate != null) {
|
||||
fDelegate.dispose();
|
||||
|
|
|
@ -82,6 +82,7 @@ public class CAddDynamicPrintfInteractiveRulerAction extends Action implements I
|
|||
* (non-Javadoc)
|
||||
* @see org.eclipse.jface.action.IAction#run()
|
||||
*/
|
||||
@Override
|
||||
public void run() {
|
||||
IDocument document = getDocument();
|
||||
if (document == null) {
|
||||
|
@ -159,6 +160,7 @@ public class CAddDynamicPrintfInteractiveRulerAction extends Action implements I
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.texteditor.IUpdate#update()
|
||||
*/
|
||||
@Override
|
||||
public void update() {
|
||||
IDocument document = getDocument();
|
||||
if (document != null) {
|
||||
|
|
|
@ -64,6 +64,7 @@ public class CAddDynamicPrintfInteractiveRulerActionDelegate extends AbstractRul
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.texteditor.AbstractRulerActionDelegate#createAction(org.eclipse.ui.texteditor.ITextEditor, org.eclipse.jface.text.source.IVerticalRulerInfo)
|
||||
*/
|
||||
@Override
|
||||
protected IAction createAction(ITextEditor editor, IVerticalRulerInfo rulerInfo) {
|
||||
fDelegate = new CAddDynamicPrintfInteractiveRulerAction(editor, null, rulerInfo);
|
||||
return fDelegate;
|
||||
|
@ -72,6 +73,7 @@ public class CAddDynamicPrintfInteractiveRulerActionDelegate extends AbstractRul
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.IEditorActionDelegate#setActiveEditor(org.eclipse.jface.action.IAction, org.eclipse.ui.IEditorPart)
|
||||
*/
|
||||
@Override
|
||||
public void setActiveEditor(IAction callerAction, IEditorPart targetEditor) {
|
||||
if (fEditor != null) {
|
||||
if (fDelegate != null) {
|
||||
|
@ -86,12 +88,14 @@ public class CAddDynamicPrintfInteractiveRulerActionDelegate extends AbstractRul
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.IActionDelegate2#init(org.eclipse.jface.action.IAction)
|
||||
*/
|
||||
@Override
|
||||
public void init(IAction action) {
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.IActionDelegate2#dispose()
|
||||
*/
|
||||
@Override
|
||||
public void dispose() {
|
||||
if (fDelegate != null) {
|
||||
fDelegate.dispose();
|
||||
|
|
|
@ -30,6 +30,7 @@ public class CRulerEnableDisableBreakpointActionDelegate extends AbstractRulerAc
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.texteditor.AbstractRulerActionDelegate#createAction(org.eclipse.ui.texteditor.ITextEditor, org.eclipse.jface.text.source.IVerticalRulerInfo)
|
||||
*/
|
||||
@Override
|
||||
protected IAction createAction(ITextEditor editor, IVerticalRulerInfo rulerInfo) {
|
||||
return new EnableDisableBreakpointRulerAction(editor, rulerInfo);
|
||||
}
|
||||
|
|
|
@ -38,6 +38,7 @@ public class CRulerToggleBreakpointActionDelegate extends AbstractRulerActionDel
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.texteditor.AbstractRulerActionDelegate#createAction(org.eclipse.ui.texteditor.ITextEditor, org.eclipse.jface.text.source.IVerticalRulerInfo)
|
||||
*/
|
||||
@Override
|
||||
protected IAction createAction(ITextEditor editor, IVerticalRulerInfo rulerInfo) {
|
||||
fDelegate = new ToggleBreakpointAction(editor, null, rulerInfo);
|
||||
fDelegate.setText(ActionMessages.getString("CRulerToggleBreakpointActionDelegate_label")); //$NON-NLS-1$
|
||||
|
@ -48,6 +49,7 @@ public class CRulerToggleBreakpointActionDelegate extends AbstractRulerActionDel
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.IEditorActionDelegate#setActiveEditor(org.eclipse.jface.action.IAction, org.eclipse.ui.IEditorPart)
|
||||
*/
|
||||
@Override
|
||||
public void setActiveEditor(IAction callerAction, IEditorPart targetEditor) {
|
||||
if (fEditor != null) {
|
||||
if (fDelegate != null) {
|
||||
|
@ -62,12 +64,14 @@ public class CRulerToggleBreakpointActionDelegate extends AbstractRulerActionDel
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.IActionDelegate2#init(org.eclipse.jface.action.IAction)
|
||||
*/
|
||||
@Override
|
||||
public void init(IAction action) {
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.IActionDelegate2#dispose()
|
||||
*/
|
||||
@Override
|
||||
public void dispose() {
|
||||
if (fDelegate != null) {
|
||||
fDelegate.dispose();
|
||||
|
@ -79,6 +83,7 @@ public class CRulerToggleBreakpointActionDelegate extends AbstractRulerActionDel
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.IActionDelegate2#runWithEvent(org.eclipse.jface.action.IAction, org.eclipse.swt.widgets.Event)
|
||||
*/
|
||||
@Override
|
||||
public void runWithEvent(IAction action, Event event) {
|
||||
if (fDelegate != null) {
|
||||
fDelegate.runWithEvent(event);
|
||||
|
|
|
@ -43,14 +43,17 @@ public abstract class CToggleBreakpointObjectActionDelegate implements IObjectAc
|
|||
private IWorkbenchPart fPart;
|
||||
private IStructuredSelection fSelection;
|
||||
|
||||
@Override
|
||||
public void setActivePart(IAction action, IWorkbenchPart targetPart) {
|
||||
fPart = targetPart;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run(IAction action) {
|
||||
runWithEvent(action, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void runWithEvent(IAction action, Event event) {
|
||||
IToggleBreakpointsTarget target = DebugUITools.getToggleBreakpointsTargetManager()
|
||||
.getToggleBreakpointsTarget(fPart, fSelection);
|
||||
|
@ -86,6 +89,7 @@ public abstract class CToggleBreakpointObjectActionDelegate implements IObjectAc
|
|||
protected abstract boolean canPerformAction(IToggleBreakpointsTarget target, IWorkbenchPart part,
|
||||
ISelection selection);
|
||||
|
||||
@Override
|
||||
public void selectionChanged(IAction action, ISelection selection) {
|
||||
boolean enabled = false;
|
||||
if (selection instanceof IStructuredSelection) {
|
||||
|
@ -102,9 +106,11 @@ public abstract class CToggleBreakpointObjectActionDelegate implements IObjectAc
|
|||
action.setEnabled(enabled);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init(IAction action) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void dispose() {
|
||||
fSelection = null;
|
||||
fPart = null;
|
||||
|
|
|
@ -36,6 +36,7 @@ import org.eclipse.ui.IWorkbenchPart;
|
|||
*/
|
||||
public class CToggleMethodBreakpointActionDelegate extends CToggleBreakpointObjectActionDelegate {
|
||||
|
||||
@Override
|
||||
protected void performAction(IToggleBreakpointsTarget target, IWorkbenchPart part, ISelection selection,
|
||||
Event event) throws CoreException {
|
||||
if ((event.stateMask & SWT.MOD1) != 0 && target instanceof IToggleBreakpointsTargetCExtension
|
||||
|
|
|
@ -36,6 +36,7 @@ import org.eclipse.ui.IWorkbenchPart;
|
|||
*/
|
||||
public class CToggleWatchpointActionDelegate extends CToggleBreakpointObjectActionDelegate {
|
||||
|
||||
@Override
|
||||
protected void performAction(IToggleBreakpointsTarget target, IWorkbenchPart part, ISelection selection,
|
||||
Event event) throws CoreException {
|
||||
if ((event.stateMask & SWT.MOD1) != 0 && target instanceof IToggleBreakpointsTargetCExtension
|
||||
|
|
|
@ -85,6 +85,7 @@ public class ToggleTracepointAdapter extends AbstractToggleBreakpointAdapter {
|
|||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void createWatchpoint(boolean interactive, IWorkbenchPart part, String sourceHandle, IResource resource,
|
||||
int charStart, int charEnd, int lineNumber, String expression, String memorySpace, String range)
|
||||
throws CoreException {
|
||||
|
|
|
@ -119,16 +119,20 @@ public class CBreakpointContext extends PlatformObject implements ICBreakpointCo
|
|||
* (non-Javadoc)
|
||||
* @see org.eclipse.debug.ui.contexts.IDebugContextProvider implementation
|
||||
*/
|
||||
@Override
|
||||
public IWorkbenchPart getPart() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addDebugContextListener(IDebugContextListener listener) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeDebugContextListener(IDebugContextListener listener) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public ISelection getActiveContext() {
|
||||
return fDebugContext;
|
||||
}
|
||||
|
|
|
@ -105,6 +105,7 @@ public class CBreakpointPreferenceStore implements IPersistentPreferenceStore {
|
|||
fIsCanceled = canceled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void save() throws IOException {
|
||||
if (!fIsCanceled && fContext != null && fContext.getBreakpoint() != null) {
|
||||
ICBreakpoint bp = fContext.getBreakpoint();
|
||||
|
@ -181,6 +182,7 @@ public class CBreakpointPreferenceStore implements IPersistentPreferenceStore {
|
|||
}
|
||||
if (!changedProperties.isEmpty()) {
|
||||
IWorkspaceRunnable wr = new IWorkspaceRunnable() {
|
||||
@Override
|
||||
public void run(IProgressMonitor monitor) throws CoreException {
|
||||
Iterator<String> changed = changedProperties.iterator();
|
||||
while (changed.hasNext()) {
|
||||
|
@ -261,22 +263,27 @@ public class CBreakpointPreferenceStore implements IPersistentPreferenceStore {
|
|||
///////////////////////////////////////////////////////////////////////
|
||||
// IPreferenceStore
|
||||
|
||||
@Override
|
||||
public boolean needsSaving() {
|
||||
return fIsDirty && !fIsCanceled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean contains(String name) {
|
||||
return fProperties.containsKey(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addPropertyChangeListener(IPropertyChangeListener listener) {
|
||||
fListeners.add(listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removePropertyChangeListener(IPropertyChangeListener listener) {
|
||||
fListeners.remove(listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void firePropertyChangeEvent(String name, Object oldValue, Object newValue) {
|
||||
Object[] listeners = fListeners.getListeners();
|
||||
// Do we need to fire an event.
|
||||
|
@ -289,6 +296,7 @@ public class CBreakpointPreferenceStore implements IPersistentPreferenceStore {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getBoolean(String name) {
|
||||
boolean retVal = false;
|
||||
Object o = fProperties.get(name);
|
||||
|
@ -298,6 +306,7 @@ public class CBreakpointPreferenceStore implements IPersistentPreferenceStore {
|
|||
return retVal;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getInt(String name) {
|
||||
int retVal = 0;
|
||||
Object o = fProperties.get(name);
|
||||
|
@ -307,6 +316,7 @@ public class CBreakpointPreferenceStore implements IPersistentPreferenceStore {
|
|||
return retVal;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getString(String name) {
|
||||
String retVal = ""; //$NON-NLS-1$
|
||||
Object o = fProperties.get(name);
|
||||
|
@ -316,46 +326,57 @@ public class CBreakpointPreferenceStore implements IPersistentPreferenceStore {
|
|||
return retVal;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getDouble(String name) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getFloat(String name) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getLong(String name) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isDefault(String name) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getDefaultBoolean(String name) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getDefaultDouble(String name) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getDefaultFloat(String name) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDefaultInt(String name) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getDefaultLong(String name) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDefaultString(String name) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void putValue(String name, String value) {
|
||||
Object oldValue = fProperties.get(name);
|
||||
if (oldValue == null || !oldValue.equals(value)) {
|
||||
|
@ -364,27 +385,35 @@ public class CBreakpointPreferenceStore implements IPersistentPreferenceStore {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDefault(String name, double value) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDefault(String name, float value) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDefault(String name, int value) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDefault(String name, long value) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDefault(String name, String defaultObject) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDefault(String name, boolean value) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setToDefault(String name) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setValue(String name, boolean value) {
|
||||
boolean oldValue = getBoolean(name);
|
||||
if (oldValue != value) {
|
||||
|
@ -394,6 +423,7 @@ public class CBreakpointPreferenceStore implements IPersistentPreferenceStore {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setValue(String name, int value) {
|
||||
int oldValue = getInt(name);
|
||||
if (oldValue != value) {
|
||||
|
@ -403,6 +433,7 @@ public class CBreakpointPreferenceStore implements IPersistentPreferenceStore {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setValue(String name, String value) {
|
||||
Object oldValue = fProperties.get(name);
|
||||
if ((oldValue == null && value != null) || (oldValue != null && !oldValue.equals(value))) {
|
||||
|
@ -412,12 +443,15 @@ public class CBreakpointPreferenceStore implements IPersistentPreferenceStore {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setValue(String name, float value) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setValue(String name, double value) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setValue(String name, long value) {
|
||||
}
|
||||
|
||||
|
|
|
@ -140,6 +140,7 @@ public class CBreakpointPropertyDialogAction extends SelectionProviderAction {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.jface.action.IAction#run()
|
||||
*/
|
||||
@Override
|
||||
public void run() {
|
||||
CBreakpointContext bpContext = getCBreakpointContext();
|
||||
if (bpContext != null) {
|
||||
|
@ -206,6 +207,7 @@ public class CBreakpointPropertyDialogAction extends SelectionProviderAction {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.actions.SelectionProviderAction#selectionChanged(org.eclipse.jface.viewers.IStructuredSelection)
|
||||
*/
|
||||
@Override
|
||||
public void selectionChanged(IStructuredSelection selection) {
|
||||
setEnabled(!selection.isEmpty());
|
||||
}
|
||||
|
|
|
@ -36,6 +36,7 @@ import org.eclipse.debug.ui.contexts.ISuspendTrigger;
|
|||
@SuppressWarnings({ "restriction" })
|
||||
public class PDAAdapterFactory implements IAdapterFactory {
|
||||
// This IAdapterFactory method returns adapters for the PDA launch object only.
|
||||
@Override
|
||||
@SuppressWarnings("unchecked") // IAdapterFactory is Java 1.3
|
||||
public Object getAdapter(Object adaptableObject, Class adapterType) {
|
||||
if (!(adaptableObject instanceof PDALaunch))
|
||||
|
@ -66,6 +67,7 @@ public class PDAAdapterFactory implements IAdapterFactory {
|
|||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked") // IAdapterFactory is Java 1.3
|
||||
public Class[] getAdapterList() {
|
||||
return new Class[] { IElementContentProvider.class, IModelProxyFactory.class, ISuspendTrigger.class };
|
||||
|
|
|
@ -39,6 +39,7 @@ public class PDASuspendTrigger extends DsfSuspendTrigger {
|
|||
protected void getLaunchTopContainers(final DataRequestMonitor<IContainerDMContext[]> rm) {
|
||||
try {
|
||||
getSession().getExecutor().execute(new DsfRunnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
PDACommandControl control = getServicesTracker().getService(PDACommandControl.class);
|
||||
if (control != null) {
|
||||
|
|
|
@ -218,6 +218,7 @@ public class PDAUIPlugin extends AbstractUIPlugin implements ILaunchesListener2
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void launchesRemoved(ILaunch[] launches) {
|
||||
// Dispose the set of adapters for a launch only after the launch is
|
||||
// removed from the view. If the launch is terminated, the adapters
|
||||
|
@ -229,12 +230,15 @@ public class PDAUIPlugin extends AbstractUIPlugin implements ILaunchesListener2
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void launchesTerminated(ILaunch[] launches) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void launchesAdded(ILaunch[] launches) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void launchesChanged(ILaunch[] launches) {
|
||||
}
|
||||
|
||||
|
|
|
@ -103,6 +103,7 @@ class SessionAdapterSet {
|
|||
|
||||
// Initialize debug model provider
|
||||
fDebugModelProvider = new IDebugModelProvider() {
|
||||
@Override
|
||||
public String[] getModelIdentifiers() {
|
||||
return new String[] { PDAPlugin.ID_PDA_DEBUG_MODEL };
|
||||
}
|
||||
|
|
|
@ -54,6 +54,7 @@ public class PDATerminateCommand implements ITerminateHandler {
|
|||
}
|
||||
|
||||
// Run control may not be available after a connection is terminated and shut down.
|
||||
@Override
|
||||
public void canExecute(final IEnabledStateRequest request) {
|
||||
// Terminate can only operate on a single element.
|
||||
if (request.getElements().length != 1 || !(request.getElements()[0] instanceof IDMVMContext)) {
|
||||
|
@ -75,6 +76,7 @@ public class PDATerminateCommand implements ITerminateHandler {
|
|||
|
||||
try {
|
||||
fSession.getExecutor().execute(new DsfRunnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
// Get the processes service and the exec context.
|
||||
PDACommandControl commandControl = fTracker.getService(PDACommandControl.class);
|
||||
|
@ -99,12 +101,14 @@ public class PDATerminateCommand implements ITerminateHandler {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final IDebugCommandRequest request) {
|
||||
// Skip the checks and assume that this method is called only if the action
|
||||
// was enabled.
|
||||
|
||||
try {
|
||||
fSession.getExecutor().submit(new DsfRunnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
// If the command control service is available, attempt to terminate the program.
|
||||
PDACommandControl commandControl = fTracker.getService(PDACommandControl.class);
|
||||
|
|
|
@ -44,6 +44,7 @@ public class PDABreakpointAdapter implements IToggleBreakpointsTargetExtension {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.debug.ui.actions.IToggleBreakpointsTarget#toggleLineBreakpoints(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
|
||||
*/
|
||||
@Override
|
||||
public void toggleLineBreakpoints(IWorkbenchPart part, ISelection selection) throws CoreException {
|
||||
ITextEditor textEditor = getEditor(part);
|
||||
if (textEditor != null) {
|
||||
|
@ -71,6 +72,7 @@ public class PDABreakpointAdapter implements IToggleBreakpointsTargetExtension {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.debug.ui.actions.IToggleBreakpointsTarget#canToggleLineBreakpoints(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
|
||||
*/
|
||||
@Override
|
||||
public boolean canToggleLineBreakpoints(IWorkbenchPart part, ISelection selection) {
|
||||
return getEditor(part) != null;
|
||||
}
|
||||
|
@ -100,12 +102,14 @@ public class PDABreakpointAdapter implements IToggleBreakpointsTargetExtension {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.debug.ui.actions.IToggleBreakpointsTarget#toggleMethodBreakpoints(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
|
||||
*/
|
||||
@Override
|
||||
public void toggleMethodBreakpoints(IWorkbenchPart part, ISelection selection) throws CoreException {
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.debug.ui.actions.IToggleBreakpointsTarget#canToggleMethodBreakpoints(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
|
||||
*/
|
||||
@Override
|
||||
public boolean canToggleMethodBreakpoints(IWorkbenchPart part, ISelection selection) {
|
||||
return false;
|
||||
}
|
||||
|
@ -113,6 +117,7 @@ public class PDABreakpointAdapter implements IToggleBreakpointsTargetExtension {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.debug.ui.actions.IToggleBreakpointsTarget#toggleWatchpoints(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
|
||||
*/
|
||||
@Override
|
||||
public void toggleWatchpoints(IWorkbenchPart part, ISelection selection) throws CoreException {
|
||||
String[] variableAndFunctionName = getVariableAndFunctionName(part, selection);
|
||||
if (variableAndFunctionName != null && part instanceof ITextEditor && selection instanceof ITextSelection) {
|
||||
|
@ -145,6 +150,7 @@ public class PDABreakpointAdapter implements IToggleBreakpointsTargetExtension {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.debug.ui.actions.IToggleBreakpointsTarget#canToggleWatchpoints(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
|
||||
*/
|
||||
@Override
|
||||
public boolean canToggleWatchpoints(IWorkbenchPart part, ISelection selection) {
|
||||
return getVariableAndFunctionName(part, selection) != null;
|
||||
}
|
||||
|
@ -217,6 +223,7 @@ public class PDABreakpointAdapter implements IToggleBreakpointsTargetExtension {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.debug.ui.actions.IToggleBreakpointsTargetExtension#toggleBreakpoints(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
|
||||
*/
|
||||
@Override
|
||||
public void toggleBreakpoints(IWorkbenchPart part, ISelection selection) throws CoreException {
|
||||
if (canToggleWatchpoints(part, selection)) {
|
||||
toggleWatchpoints(part, selection);
|
||||
|
@ -228,6 +235,7 @@ public class PDABreakpointAdapter implements IToggleBreakpointsTargetExtension {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.debug.ui.actions.IToggleBreakpointsTargetExtension#canToggleBreakpoints(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
|
||||
*/
|
||||
@Override
|
||||
public boolean canToggleBreakpoints(IWorkbenchPart part, ISelection selection) {
|
||||
return canToggleLineBreakpoints(part, selection) || canToggleWatchpoints(part, selection);
|
||||
}
|
||||
|
|
|
@ -30,6 +30,7 @@ import org.eclipse.ui.texteditor.ITextEditor;
|
|||
*/
|
||||
public class PDAEditorAdapterFactory implements IAdapterFactory {
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked") // IAdapterFactory is Java 1.3
|
||||
public Object getAdapter(Object adaptableObject, Class adapterType) {
|
||||
if (adaptableObject instanceof PDAEditor) {
|
||||
|
@ -47,6 +48,7 @@ public class PDAEditorAdapterFactory implements IAdapterFactory {
|
|||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked") // IAdapterFactory is Java 1.3
|
||||
public Class[] getAdapterList() {
|
||||
return new Class[] { IToggleBreakpointsTarget.class };
|
||||
|
|
|
@ -23,6 +23,7 @@ import org.eclipse.swt.widgets.Composite;
|
|||
*/
|
||||
public class PDAWatchpointFunctionFieldEditorFactory implements IFieldEditorFactory {
|
||||
|
||||
@Override
|
||||
public FieldEditor createFieldEditor(String name, String labelText, Composite parent) {
|
||||
return new StringFieldEditor(name, labelText, parent);
|
||||
}
|
||||
|
|
|
@ -33,6 +33,7 @@ import org.eclipse.jface.text.source.ISourceViewer;
|
|||
*/
|
||||
public class AnnotationHover implements IAnnotationHover {
|
||||
|
||||
@Override
|
||||
public String getHoverInfo(ISourceViewer sourceViewer, int lineNumber) {
|
||||
IAnnotationModel annotationModel = sourceViewer.getAnnotationModel();
|
||||
Iterator<?> iterator = annotationModel.getAnnotationIterator();
|
||||
|
|
|
@ -29,6 +29,7 @@ import org.eclipse.jface.text.contentassist.IContextInformationValidator;
|
|||
|
||||
public class PDAContentAssistProcessor implements IContentAssistProcessor {
|
||||
|
||||
@Override
|
||||
public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int offset) {
|
||||
int index = offset - 1;
|
||||
StringBuilder prefix = new StringBuilder();
|
||||
|
@ -72,6 +73,7 @@ public class PDAContentAssistProcessor implements IContentAssistProcessor {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#computeContextInformation(org.eclipse.jface.text.ITextViewer, int)
|
||||
*/
|
||||
@Override
|
||||
public IContextInformation[] computeContextInformation(ITextViewer viewer, int offset) {
|
||||
return null;
|
||||
}
|
||||
|
@ -79,6 +81,7 @@ public class PDAContentAssistProcessor implements IContentAssistProcessor {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#getCompletionProposalAutoActivationCharacters()
|
||||
*/
|
||||
@Override
|
||||
public char[] getCompletionProposalAutoActivationCharacters() {
|
||||
return null;
|
||||
}
|
||||
|
@ -86,6 +89,7 @@ public class PDAContentAssistProcessor implements IContentAssistProcessor {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#getContextInformationAutoActivationCharacters()
|
||||
*/
|
||||
@Override
|
||||
public char[] getContextInformationAutoActivationCharacters() {
|
||||
return null;
|
||||
}
|
||||
|
@ -93,6 +97,7 @@ public class PDAContentAssistProcessor implements IContentAssistProcessor {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#getErrorMessage()
|
||||
*/
|
||||
@Override
|
||||
public String getErrorMessage() {
|
||||
return null;
|
||||
}
|
||||
|
@ -100,6 +105,7 @@ public class PDAContentAssistProcessor implements IContentAssistProcessor {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#getContextInformationValidator()
|
||||
*/
|
||||
@Override
|
||||
public IContextInformationValidator getContextInformationValidator() {
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -38,6 +38,7 @@ public class PDAContentAssistant extends ContentAssistant {
|
|||
|
||||
private IInformationControlCreator getInformationControlCreator() {
|
||||
return new IInformationControlCreator() {
|
||||
@Override
|
||||
public IInformationControl createInformationControl(Shell parent) {
|
||||
return new DefaultInformationControl(parent);
|
||||
}
|
||||
|
|
|
@ -40,6 +40,7 @@ public class PDAEditor extends AbstractDecoratedTextEditor {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.texteditor.AbstractTextEditor#createActions()
|
||||
*/
|
||||
@Override
|
||||
protected void createActions() {
|
||||
super.createActions();
|
||||
ResourceBundle bundle = ResourceBundle
|
||||
|
|
|
@ -42,6 +42,7 @@ public class PDAScanner extends BufferedRuleBasedScanner {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.jface.text.rules.IWordDetector#isWordStart(char)
|
||||
*/
|
||||
@Override
|
||||
public boolean isWordStart(char c) {
|
||||
return Character.isLetter(c);
|
||||
}
|
||||
|
@ -49,6 +50,7 @@ public class PDAScanner extends BufferedRuleBasedScanner {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.jface.text.rules.IWordDetector#isWordPart(char)
|
||||
*/
|
||||
@Override
|
||||
public boolean isWordPart(char c) {
|
||||
return Character.isLetter(c) || c == '_';
|
||||
}
|
||||
|
@ -62,6 +64,7 @@ public class PDAScanner extends BufferedRuleBasedScanner {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.jface.text.rules.IWordDetector#isWordStart(char)
|
||||
*/
|
||||
@Override
|
||||
public boolean isWordStart(char c) {
|
||||
return c == ':';
|
||||
}
|
||||
|
@ -69,6 +72,7 @@ public class PDAScanner extends BufferedRuleBasedScanner {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.jface.text.rules.IWordDetector#isWordPart(char)
|
||||
*/
|
||||
@Override
|
||||
public boolean isWordPart(char c) {
|
||||
return super.isWordPart(c) || Character.isDigit(c);
|
||||
}
|
||||
|
|
|
@ -33,6 +33,7 @@ public class PDASourceViewerConfiguration extends TextSourceViewerConfiguration
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.jface.text.source.SourceViewerConfiguration#getTextHover(org.eclipse.jface.text.source.ISourceViewer, java.lang.String)
|
||||
*/
|
||||
@Override
|
||||
public ITextHover getTextHover(ISourceViewer sourceViewer, String contentType) {
|
||||
return new TextHover();
|
||||
}
|
||||
|
@ -40,6 +41,7 @@ public class PDASourceViewerConfiguration extends TextSourceViewerConfiguration
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.jface.text.source.SourceViewerConfiguration#getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer)
|
||||
*/
|
||||
@Override
|
||||
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
|
||||
return new AnnotationHover();
|
||||
}
|
||||
|
@ -47,6 +49,7 @@ public class PDASourceViewerConfiguration extends TextSourceViewerConfiguration
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.jface.text.source.SourceViewerConfiguration#getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer)
|
||||
*/
|
||||
@Override
|
||||
public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer) {
|
||||
PresentationReconciler reconciler = new PresentationReconciler();
|
||||
reconciler.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer));
|
||||
|
@ -59,6 +62,7 @@ public class PDASourceViewerConfiguration extends TextSourceViewerConfiguration
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.jface.text.source.SourceViewerConfiguration#getContentAssistant(org.eclipse.jface.text.source.ISourceViewer)
|
||||
*/
|
||||
@Override
|
||||
public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
|
||||
return new PDAContentAssistant();
|
||||
}
|
||||
|
|
|
@ -29,12 +29,14 @@ public class PopFrameActionDelegate implements IObjectActionDelegate, IActionDel
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.IObjectActionDelegate#setActivePart(org.eclipse.jface.action.IAction, org.eclipse.ui.IWorkbenchPart)
|
||||
*/
|
||||
@Override
|
||||
public void setActivePart(IAction action, IWorkbenchPart targetPart) {
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
|
||||
*/
|
||||
@Override
|
||||
public void run(IAction action) {
|
||||
/*
|
||||
try {
|
||||
|
@ -46,6 +48,7 @@ public class PopFrameActionDelegate implements IObjectActionDelegate, IActionDel
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
|
||||
*/
|
||||
@Override
|
||||
public void selectionChanged(IAction action, ISelection selection) {
|
||||
/* if (selection instanceof IStructuredSelection) {
|
||||
IStructuredSelection ss = (IStructuredSelection) selection;
|
||||
|
@ -72,12 +75,14 @@ public class PopFrameActionDelegate implements IObjectActionDelegate, IActionDel
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.IActionDelegate2#init(org.eclipse.jface.action.IAction)
|
||||
*/
|
||||
@Override
|
||||
public void init(IAction action) {
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.IActionDelegate2#dispose()
|
||||
*/
|
||||
@Override
|
||||
public void dispose() {
|
||||
//fThread = null;
|
||||
}
|
||||
|
@ -85,6 +90,7 @@ public class PopFrameActionDelegate implements IObjectActionDelegate, IActionDel
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.IActionDelegate2#runWithEvent(org.eclipse.jface.action.IAction, org.eclipse.swt.widgets.Event)
|
||||
*/
|
||||
@Override
|
||||
public void runWithEvent(IAction action, Event event) {
|
||||
run(action);
|
||||
}
|
||||
|
|
|
@ -27,6 +27,7 @@ public class TextHover implements ITextHover {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.jface.text.ITextHover#getHoverInfo(org.eclipse.jface.text.ITextViewer, org.eclipse.jface.text.IRegion)
|
||||
*/
|
||||
@Override
|
||||
public String getHoverInfo(ITextViewer textViewer, IRegion hoverRegion) {
|
||||
/*String varName = null;
|
||||
try {
|
||||
|
@ -78,6 +79,7 @@ public class TextHover implements ITextHover {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.jface.text.ITextHover#getHoverRegion(org.eclipse.jface.text.ITextViewer, int)
|
||||
*/
|
||||
@Override
|
||||
public IRegion getHoverRegion(ITextViewer textViewer, int offset) {
|
||||
return WordFinder.findWord(textViewer.getDocument(), offset);
|
||||
}
|
||||
|
|
|
@ -57,6 +57,7 @@ public class PDAMainTab extends AbstractLaunchConfigurationTab {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#createControl(org.eclipse.swt.widgets.Composite)
|
||||
*/
|
||||
@Override
|
||||
public void createControl(Composite parent) {
|
||||
Font font = parent.getFont();
|
||||
|
||||
|
@ -81,6 +82,7 @@ public class PDAMainTab extends AbstractLaunchConfigurationTab {
|
|||
fProgramText.setLayoutData(gd);
|
||||
fProgramText.setFont(font);
|
||||
fProgramText.addModifyListener(new ModifyListener() {
|
||||
@Override
|
||||
public void modifyText(ModifyEvent e) {
|
||||
updateLaunchConfigurationDialog();
|
||||
}
|
||||
|
@ -88,6 +90,7 @@ public class PDAMainTab extends AbstractLaunchConfigurationTab {
|
|||
|
||||
fProgramButton = createPushButton(comp, "&Browse...", null); //$NON-NLS-1$
|
||||
fProgramButton.addSelectionListener(new SelectionAdapter() {
|
||||
@Override
|
||||
public void widgetSelected(SelectionEvent e) {
|
||||
browsePDAFiles();
|
||||
}
|
||||
|
@ -113,12 +116,14 @@ public class PDAMainTab extends AbstractLaunchConfigurationTab {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
|
||||
*/
|
||||
@Override
|
||||
public void setDefaults(ILaunchConfigurationWorkingCopy configuration) {
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#initializeFrom(org.eclipse.debug.core.ILaunchConfiguration)
|
||||
*/
|
||||
@Override
|
||||
public void initializeFrom(ILaunchConfiguration configuration) {
|
||||
//#ifdef ex1
|
||||
//# // TODO: Exercise 1 - retrieve the program path attribute from the launch configuration
|
||||
|
@ -142,6 +147,7 @@ public class PDAMainTab extends AbstractLaunchConfigurationTab {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
|
||||
*/
|
||||
@Override
|
||||
public void performApply(ILaunchConfigurationWorkingCopy configuration) {
|
||||
String program = fProgramText.getText().trim();
|
||||
if (program.length() == 0) {
|
||||
|
@ -158,6 +164,7 @@ public class PDAMainTab extends AbstractLaunchConfigurationTab {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#getName()
|
||||
*/
|
||||
@Override
|
||||
public String getName() {
|
||||
return "Main";
|
||||
}
|
||||
|
@ -165,6 +172,7 @@ public class PDAMainTab extends AbstractLaunchConfigurationTab {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#isValid(org.eclipse.debug.core.ILaunchConfiguration)
|
||||
*/
|
||||
@Override
|
||||
public boolean isValid(ILaunchConfiguration launchConfig) {
|
||||
setErrorMessage(null);
|
||||
setMessage(null);
|
||||
|
@ -189,6 +197,7 @@ public class PDAMainTab extends AbstractLaunchConfigurationTab {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#getImage()
|
||||
*/
|
||||
@Override
|
||||
public Image getImage() {
|
||||
return PDAUIPlugin.getDefault().getImageRegistry().get(PDAUIPlugin.IMG_OBJ_PDA);
|
||||
}
|
||||
|
|
|
@ -32,6 +32,7 @@ public class PDATabGroup extends AbstractLaunchConfigurationTabGroup {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.debug.ui.ILaunchConfigurationTabGroup#createTabs(org.eclipse.debug.ui.ILaunchConfigurationDialog, java.lang.String)
|
||||
*/
|
||||
@Override
|
||||
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
|
||||
//#ifdef ex1
|
||||
//# // TODO: Exercise 1 - add the PDA main tab, source lookup tab and common
|
||||
|
|
|
@ -43,6 +43,7 @@ public class PDAExpressionVMProvider extends ExpressionVMProvider implements IEl
|
|||
super(adapter, context, session);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public void getActiveFormat(IPresentationContext context, IVMNode node, Object viewerInput, TreePath elementPath,
|
||||
DataRequestMonitor<String> rm) {
|
||||
|
@ -82,6 +83,7 @@ public class PDAExpressionVMProvider extends ExpressionVMProvider implements IEl
|
|||
return;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public void setActiveFormat(IPresentationContext context, IVMNode[] node, Object viewerInput,
|
||||
TreePath[] elementPath, String format) {
|
||||
|
@ -115,6 +117,7 @@ public class PDAExpressionVMProvider extends ExpressionVMProvider implements IEl
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportFormat(IVMContext context) {
|
||||
if (context instanceof VariableVMNode.VariableExpressionVMC) {
|
||||
return true;
|
||||
|
|
|
@ -71,6 +71,7 @@ public class PDAThreadsVMNode extends AbstractThreadVMNode implements IElementLa
|
|||
/*
|
||||
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.IElementMementoProvider#compareElements(org.eclipse.debug.internal.ui.viewers.model.provisional.IElementCompareRequest[])
|
||||
*/
|
||||
@Override
|
||||
public void compareElements(IElementCompareRequest[] requests) {
|
||||
for (IElementCompareRequest request : requests) {
|
||||
Object element = request.getElement();
|
||||
|
@ -93,6 +94,7 @@ public class PDAThreadsVMNode extends AbstractThreadVMNode implements IElementLa
|
|||
/*
|
||||
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.IElementMementoProvider#encodeElements(org.eclipse.debug.internal.ui.viewers.model.provisional.IElementMementoRequest[])
|
||||
*/
|
||||
@Override
|
||||
public void encodeElements(IElementMementoRequest[] requests) {
|
||||
for (IElementMementoRequest request : requests) {
|
||||
Object element = request.getElement();
|
||||
|
|
|
@ -90,6 +90,7 @@ public class PDAVirtualMachineVMNode extends AbstractContainerVMNode implements
|
|||
|
||||
private final String MEMENTO_NAME = "PDAPROGRAM_MEMENTO_NAME"; //$NON-NLS-1$
|
||||
|
||||
@Override
|
||||
public void compareElements(IElementCompareRequest[] requests) {
|
||||
|
||||
for (IElementCompareRequest request : requests) {
|
||||
|
@ -115,6 +116,7 @@ public class PDAVirtualMachineVMNode extends AbstractContainerVMNode implements
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void encodeElements(IElementMementoRequest[] requests) {
|
||||
|
||||
for (IElementMementoRequest request : requests) {
|
||||
|
|
|
@ -29,6 +29,7 @@ public class Activator implements BundleActivator {
|
|||
* (non-Javadoc)
|
||||
* @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
|
||||
*/
|
||||
@Override
|
||||
public void start(BundleContext bundleContext) throws Exception {
|
||||
Activator.context = bundleContext;
|
||||
}
|
||||
|
@ -37,6 +38,7 @@ public class Activator implements BundleActivator {
|
|||
* (non-Javadoc)
|
||||
* @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
|
||||
*/
|
||||
@Override
|
||||
public void stop(BundleContext bundleContext) throws Exception {
|
||||
Activator.context = null;
|
||||
}
|
||||
|
|
|
@ -225,6 +225,7 @@ public class GDBJtagDSFFinalLaunchSequence extends FinalLaunchSequence {
|
|||
* Rollback method for {@link #stepInitializeJTAGFinalLaunchSequence()}
|
||||
* @since 4.0
|
||||
*/
|
||||
@Override
|
||||
@RollBack("stepInitializeJTAGFinalLaunchSequence")
|
||||
public void rollBackInitializeFinalLaunchSequence(RequestMonitor rm) {
|
||||
if (fTracker != null)
|
||||
|
|
|
@ -29,6 +29,7 @@ public interface IGDBJtagConstants {
|
|||
public static final String ATTR_IP_ADDRESS = Activator.PLUGIN_ID + ".ipAddress"; //$NON-NLS-1$
|
||||
public static final String ATTR_PORT_NUMBER = Activator.PLUGIN_ID + ".portNumber"; //$NON-NLS-1$
|
||||
/** @deprecated Use {@link #ATTR_JTAG_DEVICE ID} instead */
|
||||
@Deprecated
|
||||
public static final String ATTR_JTAG_DEVICE = Activator.PLUGIN_ID + ".jtagDevice"; //$NON-NLS-1$
|
||||
/** @since 9.2 */
|
||||
public static final String ATTR_JTAG_DEVICE_ID = Activator.PLUGIN_ID + ".jtagDeviceId"; //$NON-NLS-1$
|
||||
|
@ -107,6 +108,7 @@ public interface IGDBJtagConstants {
|
|||
* @since 7.0
|
||||
* @deprecated Use either {@link #DEFAULT_JTAG_DEVICE_ID} or {@link #DEFAULT_JTAG_DEVICE_NAME}
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String DEFAULT_JTAG_DEVICE = ""; //$NON-NLS-1$
|
||||
|
||||
}
|
||||
|
|
|
@ -48,6 +48,7 @@ public class DockerLaunchUIPlugin extends AbstractUIPlugin {
|
|||
* org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext
|
||||
* )
|
||||
*/
|
||||
@Override
|
||||
public void start(BundleContext context) throws Exception {
|
||||
super.start(context);
|
||||
plugin = this;
|
||||
|
@ -61,6 +62,7 @@ public class DockerLaunchUIPlugin extends AbstractUIPlugin {
|
|||
* org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext
|
||||
* )
|
||||
*/
|
||||
@Override
|
||||
public void stop(BundleContext context) throws Exception {
|
||||
plugin = null;
|
||||
super.stop(context);
|
||||
|
|
|
@ -728,6 +728,7 @@ public class ContainerTab extends AbstractLaunchConfigurationTab
|
|||
connectionSelector.addModifyListener(connectionModifyListener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void listChanged(IDockerConnection c, java.util.List<IDockerImage> list) {
|
||||
setErrorMessage(null);
|
||||
final IDockerImage[] finalList = list.toArray(new IDockerImage[0]);
|
||||
|
|
|
@ -148,6 +148,7 @@ public class RemoteDebuggerPage extends GdbDebuggerPage {
|
|||
fGDBServerCommandText.setLayoutData(data);
|
||||
fGDBServerCommandText.addModifyListener(new ModifyListener() {
|
||||
|
||||
@Override
|
||||
public void modifyText(ModifyEvent evt) {
|
||||
updateLaunchConfigurationDialog();
|
||||
}
|
||||
|
@ -162,6 +163,7 @@ public class RemoteDebuggerPage extends GdbDebuggerPage {
|
|||
fGDBServerPortNumberText.setLayoutData(data);
|
||||
fGDBServerPortNumberText.addModifyListener(new ModifyListener() {
|
||||
|
||||
@Override
|
||||
public void modifyText(ModifyEvent evt) {
|
||||
updateLaunchConfigurationDialog();
|
||||
}
|
||||
|
@ -186,6 +188,7 @@ public class RemoteDebuggerPage extends GdbDebuggerPage {
|
|||
fRemoteTimeoutValueText.setToolTipText(Messages.Gdbserver_Settings_Remotetimeout_tooltip);
|
||||
fRemoteTimeoutValueText.addModifyListener(new ModifyListener() {
|
||||
|
||||
@Override
|
||||
public void modifyText(ModifyEvent evt) {
|
||||
updateLaunchConfigurationDialog();
|
||||
}
|
||||
|
|
|
@ -265,6 +265,7 @@ public class NewContainerTargetWizardPage extends WizardPage
|
|||
connectionSelector.addModifyListener(connectionModifyListener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void listChanged(IDockerConnection c, java.util.List<IDockerImage> list) {
|
||||
setErrorMessage(null);
|
||||
final IDockerImage[] finalList = list.toArray(new IDockerImage[0]);
|
||||
|
|
|
@ -37,6 +37,7 @@ public class DockerLaunchPreferencePage extends FieldEditorPreferencePage implem
|
|||
* GUI blocks needed to manipulate various types of preferences. Each field
|
||||
* editor knows how to save and restore itself.
|
||||
*/
|
||||
@Override
|
||||
public void createFieldEditors() {
|
||||
defaultImage = new StringFieldEditor(PreferenceConstants.DEFAULT_IMAGE, Messages.Default_Image,
|
||||
getFieldEditorParent());
|
||||
|
@ -54,6 +55,7 @@ public class DockerLaunchPreferencePage extends FieldEditorPreferencePage implem
|
|||
* @see
|
||||
* org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
|
||||
*/
|
||||
@Override
|
||||
public void init(IWorkbench workbench) {
|
||||
}
|
||||
|
||||
|
|
|
@ -78,6 +78,7 @@ public class LLDBLaunch extends GdbLaunch {
|
|||
* TODO: GdbLaunch.getGDBPath() and setGDBPath() should reference each other
|
||||
* in the javadoc to make sure extenders override both.
|
||||
*/
|
||||
@Override
|
||||
public IPath getGDBPath() {
|
||||
String lldbPath = getAttribute(ILLDBLaunchConfigurationConstants.ATTR_DEBUG_NAME);
|
||||
if (lldbPath != null) {
|
||||
|
@ -87,6 +88,7 @@ public class LLDBLaunch extends GdbLaunch {
|
|||
return getLLDBPath(getLaunchConfiguration());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setGDBPath(String path) {
|
||||
setAttribute(ILLDBLaunchConfigurationConstants.ATTR_DEBUG_NAME, path);
|
||||
}
|
||||
|
@ -114,6 +116,7 @@ public class LLDBLaunch extends GdbLaunch {
|
|||
return retVal;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getDefaultGDBPath() {
|
||||
return getDefaultLLDBPath();
|
||||
}
|
||||
|
|
|
@ -61,6 +61,7 @@ public class LLDBLaunchDelegate extends GdbLaunchDelegate {
|
|||
return new LLDBServiceFactory(version, config);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected GdbLaunch createGdbLaunch(ILaunchConfiguration configuration, String mode, ISourceLocator locator)
|
||||
throws CoreException {
|
||||
return new LLDBLaunch(configuration, mode, locator);
|
||||
|
|
|
@ -45,6 +45,7 @@ public class LLDBControl extends GDBControl_7_4 {
|
|||
super(session, config, factory);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Sequence getCompleteInitializationSequence(Map<String, Object> attributes,
|
||||
RequestMonitorWithProgress rm) {
|
||||
return new LLDBFinalLaunchSequence(getSession(), attributes, rm);
|
||||
|
|
|
@ -166,6 +166,7 @@ public class LLDBProcesses extends GDBProcesses_7_4 {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@DsfServiceEventHandler
|
||||
public void eventDispatched(IExitedDMEvent e) {
|
||||
if (e.getDMContext() instanceof IMIContainerDMContext && getNumConnected() == 0) {
|
||||
|
|
|
@ -32,6 +32,7 @@ public class LLDBLocalApplicationCDebuggerTab extends LocalApplicationCDebuggerT
|
|||
|
||||
private final static String LOCAL_DEBUGGER_ID = "lldb-mi";//$NON-NLS-1$
|
||||
|
||||
@Override
|
||||
protected void initDebuggerTypes(String selection) {
|
||||
if (fAttachMode) {
|
||||
setInitializeDefault(selection.isEmpty());
|
||||
|
@ -81,6 +82,7 @@ public class LLDBLocalApplicationCDebuggerTab extends LocalApplicationCDebuggerT
|
|||
config.setAttribute(DEFAULTS_SET, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void loadDynamicDebugArea() {
|
||||
Composite dynamicTabHolder = getDynamicTabHolder();
|
||||
// Dispose of any current child widgets in the tab holder area
|
||||
|
|
|
@ -550,24 +550,29 @@ public class C99ExpressionParserprs implements lpg.lpgjavaruntime.ParseTable, C9
|
|||
|
||||
public final static String name[] = Name.name;
|
||||
|
||||
@Override
|
||||
public final String name(int index) {
|
||||
return name[index];
|
||||
}
|
||||
|
||||
public final static int ERROR_SYMBOL = 51, SCOPE_UBOUND = 32, SCOPE_SIZE = 33, MAX_NAME_LENGTH = 38;
|
||||
|
||||
@Override
|
||||
public final int getErrorSymbol() {
|
||||
return ERROR_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getScopeUbound() {
|
||||
return SCOPE_UBOUND;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getScopeSize() {
|
||||
return SCOPE_SIZE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getMaxNameLength() {
|
||||
return MAX_NAME_LENGTH;
|
||||
}
|
||||
|
@ -578,42 +583,52 @@ public class C99ExpressionParserprs implements lpg.lpgjavaruntime.ParseTable, C9
|
|||
|
||||
public final static boolean BACKTRACK = true;
|
||||
|
||||
@Override
|
||||
public final int getNumStates() {
|
||||
return NUM_STATES;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNtOffset() {
|
||||
return NT_OFFSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getLaStateOffset() {
|
||||
return LA_STATE_OFFSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getMaxLa() {
|
||||
return MAX_LA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumRules() {
|
||||
return NUM_RULES;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumNonterminals() {
|
||||
return NUM_NONTERMINALS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumSymbols() {
|
||||
return NUM_SYMBOLS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getSegmentSize() {
|
||||
return SEGMENT_SIZE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getStartState() {
|
||||
return START_STATE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getStartSymbol() {
|
||||
return lhs[0];
|
||||
}
|
||||
|
@ -622,55 +637,68 @@ public class C99ExpressionParserprs implements lpg.lpgjavaruntime.ParseTable, C9
|
|||
return IDENTIFIER_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getEoftSymbol() {
|
||||
return EOFT_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getEoltSymbol() {
|
||||
return EOLT_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getAcceptAction() {
|
||||
return ACCEPT_ACTION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getErrorAction() {
|
||||
return ERROR_ACTION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean isValidForParser() {
|
||||
return isValidForParser;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean getBacktrack() {
|
||||
return BACKTRACK;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int originalState(int state) {
|
||||
return -baseCheck[state];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int asi(int state) {
|
||||
return asb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int nasi(int state) {
|
||||
return nasb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int inSymbol(int state) {
|
||||
return inSymb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int ntAction(int state, int sym) {
|
||||
return baseAction[state + sym];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int tAction(int state, int sym) {
|
||||
int i = baseAction[state], k = i + sym;
|
||||
return termAction[termCheck[k] == sym ? k : i];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int lookAhead(int la_state, int sym) {
|
||||
int k = la_state + sym;
|
||||
return termAction[termCheck[k] == sym ? k : la_state];
|
||||
|
|
|
@ -544,24 +544,29 @@ public class C99NoCastExpressionParserprs implements lpg.lpgjavaruntime.ParseTab
|
|||
|
||||
public final static String name[] = Name.name;
|
||||
|
||||
@Override
|
||||
public final String name(int index) {
|
||||
return name[index];
|
||||
}
|
||||
|
||||
public final static int ERROR_SYMBOL = 51, SCOPE_UBOUND = 31, SCOPE_SIZE = 32, MAX_NAME_LENGTH = 38;
|
||||
|
||||
@Override
|
||||
public final int getErrorSymbol() {
|
||||
return ERROR_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getScopeUbound() {
|
||||
return SCOPE_UBOUND;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getScopeSize() {
|
||||
return SCOPE_SIZE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getMaxNameLength() {
|
||||
return MAX_NAME_LENGTH;
|
||||
}
|
||||
|
@ -572,42 +577,52 @@ public class C99NoCastExpressionParserprs implements lpg.lpgjavaruntime.ParseTab
|
|||
|
||||
public final static boolean BACKTRACK = true;
|
||||
|
||||
@Override
|
||||
public final int getNumStates() {
|
||||
return NUM_STATES;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNtOffset() {
|
||||
return NT_OFFSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getLaStateOffset() {
|
||||
return LA_STATE_OFFSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getMaxLa() {
|
||||
return MAX_LA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumRules() {
|
||||
return NUM_RULES;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumNonterminals() {
|
||||
return NUM_NONTERMINALS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumSymbols() {
|
||||
return NUM_SYMBOLS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getSegmentSize() {
|
||||
return SEGMENT_SIZE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getStartState() {
|
||||
return START_STATE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getStartSymbol() {
|
||||
return lhs[0];
|
||||
}
|
||||
|
@ -616,55 +631,68 @@ public class C99NoCastExpressionParserprs implements lpg.lpgjavaruntime.ParseTab
|
|||
return IDENTIFIER_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getEoftSymbol() {
|
||||
return EOFT_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getEoltSymbol() {
|
||||
return EOLT_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getAcceptAction() {
|
||||
return ACCEPT_ACTION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getErrorAction() {
|
||||
return ERROR_ACTION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean isValidForParser() {
|
||||
return isValidForParser;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean getBacktrack() {
|
||||
return BACKTRACK;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int originalState(int state) {
|
||||
return -baseCheck[state];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int asi(int state) {
|
||||
return asb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int nasi(int state) {
|
||||
return nasb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int inSymbol(int state) {
|
||||
return inSymb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int ntAction(int state, int sym) {
|
||||
return baseAction[state + sym];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int tAction(int state, int sym) {
|
||||
int i = baseAction[state], k = i + sym;
|
||||
return termAction[termCheck[k] == sym ? k : i];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int lookAhead(int la_state, int sym) {
|
||||
int k = la_state + sym;
|
||||
return termAction[termCheck[k] == sym ? k : la_state];
|
||||
|
|
|
@ -687,24 +687,29 @@ public class C99Parserprs implements lpg.lpgjavaruntime.ParseTable, C99Parsersym
|
|||
|
||||
public final static String name[] = Name.name;
|
||||
|
||||
@Override
|
||||
public final String name(int index) {
|
||||
return name[index];
|
||||
}
|
||||
|
||||
public final static int ERROR_SYMBOL = 24, SCOPE_UBOUND = 33, SCOPE_SIZE = 34, MAX_NAME_LENGTH = 38;
|
||||
|
||||
@Override
|
||||
public final int getErrorSymbol() {
|
||||
return ERROR_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getScopeUbound() {
|
||||
return SCOPE_UBOUND;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getScopeSize() {
|
||||
return SCOPE_SIZE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getMaxNameLength() {
|
||||
return MAX_NAME_LENGTH;
|
||||
}
|
||||
|
@ -715,42 +720,52 @@ public class C99Parserprs implements lpg.lpgjavaruntime.ParseTable, C99Parsersym
|
|||
|
||||
public final static boolean BACKTRACK = true;
|
||||
|
||||
@Override
|
||||
public final int getNumStates() {
|
||||
return NUM_STATES;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNtOffset() {
|
||||
return NT_OFFSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getLaStateOffset() {
|
||||
return LA_STATE_OFFSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getMaxLa() {
|
||||
return MAX_LA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumRules() {
|
||||
return NUM_RULES;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumNonterminals() {
|
||||
return NUM_NONTERMINALS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumSymbols() {
|
||||
return NUM_SYMBOLS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getSegmentSize() {
|
||||
return SEGMENT_SIZE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getStartState() {
|
||||
return START_STATE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getStartSymbol() {
|
||||
return lhs[0];
|
||||
}
|
||||
|
@ -759,55 +774,68 @@ public class C99Parserprs implements lpg.lpgjavaruntime.ParseTable, C99Parsersym
|
|||
return IDENTIFIER_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getEoftSymbol() {
|
||||
return EOFT_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getEoltSymbol() {
|
||||
return EOLT_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getAcceptAction() {
|
||||
return ACCEPT_ACTION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getErrorAction() {
|
||||
return ERROR_ACTION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean isValidForParser() {
|
||||
return isValidForParser;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean getBacktrack() {
|
||||
return BACKTRACK;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int originalState(int state) {
|
||||
return -baseCheck[state];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int asi(int state) {
|
||||
return asb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int nasi(int state) {
|
||||
return nasb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int inSymbol(int state) {
|
||||
return inSymb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int ntAction(int state, int sym) {
|
||||
return baseAction[state + sym];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int tAction(int state, int sym) {
|
||||
int i = baseAction[state], k = i + sym;
|
||||
return termAction[termCheck[k] == sym ? k : i];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int lookAhead(int la_state, int sym) {
|
||||
int k = la_state + sym;
|
||||
return termAction[termCheck[k] == sym ? k : la_state];
|
||||
|
|
|
@ -546,24 +546,29 @@ public class C99SizeofExpressionParserprs implements lpg.lpgjavaruntime.ParseTab
|
|||
|
||||
public final static String name[] = Name.name;
|
||||
|
||||
@Override
|
||||
public final String name(int index) {
|
||||
return name[index];
|
||||
}
|
||||
|
||||
public final static int ERROR_SYMBOL = 51, SCOPE_UBOUND = 31, SCOPE_SIZE = 32, MAX_NAME_LENGTH = 38;
|
||||
|
||||
@Override
|
||||
public final int getErrorSymbol() {
|
||||
return ERROR_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getScopeUbound() {
|
||||
return SCOPE_UBOUND;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getScopeSize() {
|
||||
return SCOPE_SIZE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getMaxNameLength() {
|
||||
return MAX_NAME_LENGTH;
|
||||
}
|
||||
|
@ -574,42 +579,52 @@ public class C99SizeofExpressionParserprs implements lpg.lpgjavaruntime.ParseTab
|
|||
|
||||
public final static boolean BACKTRACK = true;
|
||||
|
||||
@Override
|
||||
public final int getNumStates() {
|
||||
return NUM_STATES;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNtOffset() {
|
||||
return NT_OFFSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getLaStateOffset() {
|
||||
return LA_STATE_OFFSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getMaxLa() {
|
||||
return MAX_LA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumRules() {
|
||||
return NUM_RULES;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumNonterminals() {
|
||||
return NUM_NONTERMINALS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumSymbols() {
|
||||
return NUM_SYMBOLS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getSegmentSize() {
|
||||
return SEGMENT_SIZE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getStartState() {
|
||||
return START_STATE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getStartSymbol() {
|
||||
return lhs[0];
|
||||
}
|
||||
|
@ -618,55 +633,68 @@ public class C99SizeofExpressionParserprs implements lpg.lpgjavaruntime.ParseTab
|
|||
return IDENTIFIER_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getEoftSymbol() {
|
||||
return EOFT_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getEoltSymbol() {
|
||||
return EOLT_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getAcceptAction() {
|
||||
return ACCEPT_ACTION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getErrorAction() {
|
||||
return ERROR_ACTION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean isValidForParser() {
|
||||
return isValidForParser;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean getBacktrack() {
|
||||
return BACKTRACK;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int originalState(int state) {
|
||||
return -baseCheck[state];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int asi(int state) {
|
||||
return asb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int nasi(int state) {
|
||||
return nasb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int inSymbol(int state) {
|
||||
return inSymb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int ntAction(int state, int sym) {
|
||||
return baseAction[state + sym];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int tAction(int state, int sym) {
|
||||
int i = baseAction[state], k = i + sym;
|
||||
return termAction[termCheck[k] == sym ? k : i];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int lookAhead(int la_state, int sym) {
|
||||
int k = la_state + sym;
|
||||
return termAction[termCheck[k] == sym ? k : la_state];
|
||||
|
|
|
@ -1399,24 +1399,29 @@ public class CPPExpressionParserprs implements lpg.lpgjavaruntime.ParseTable, CP
|
|||
|
||||
public final static String name[] = Name.name;
|
||||
|
||||
@Override
|
||||
public final String name(int index) {
|
||||
return name[index];
|
||||
}
|
||||
|
||||
public final static int ERROR_SYMBOL = 62, SCOPE_UBOUND = 121, SCOPE_SIZE = 122, MAX_NAME_LENGTH = 43;
|
||||
|
||||
@Override
|
||||
public final int getErrorSymbol() {
|
||||
return ERROR_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getScopeUbound() {
|
||||
return SCOPE_UBOUND;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getScopeSize() {
|
||||
return SCOPE_SIZE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getMaxNameLength() {
|
||||
return MAX_NAME_LENGTH;
|
||||
}
|
||||
|
@ -1427,42 +1432,52 @@ public class CPPExpressionParserprs implements lpg.lpgjavaruntime.ParseTable, CP
|
|||
|
||||
public final static boolean BACKTRACK = true;
|
||||
|
||||
@Override
|
||||
public final int getNumStates() {
|
||||
return NUM_STATES;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNtOffset() {
|
||||
return NT_OFFSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getLaStateOffset() {
|
||||
return LA_STATE_OFFSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getMaxLa() {
|
||||
return MAX_LA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumRules() {
|
||||
return NUM_RULES;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumNonterminals() {
|
||||
return NUM_NONTERMINALS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumSymbols() {
|
||||
return NUM_SYMBOLS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getSegmentSize() {
|
||||
return SEGMENT_SIZE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getStartState() {
|
||||
return START_STATE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getStartSymbol() {
|
||||
return lhs[0];
|
||||
}
|
||||
|
@ -1471,55 +1486,68 @@ public class CPPExpressionParserprs implements lpg.lpgjavaruntime.ParseTable, CP
|
|||
return IDENTIFIER_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getEoftSymbol() {
|
||||
return EOFT_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getEoltSymbol() {
|
||||
return EOLT_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getAcceptAction() {
|
||||
return ACCEPT_ACTION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getErrorAction() {
|
||||
return ERROR_ACTION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean isValidForParser() {
|
||||
return isValidForParser;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean getBacktrack() {
|
||||
return BACKTRACK;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int originalState(int state) {
|
||||
return -baseCheck[state];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int asi(int state) {
|
||||
return asb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int nasi(int state) {
|
||||
return nasb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int inSymbol(int state) {
|
||||
return inSymb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int ntAction(int state, int sym) {
|
||||
return baseAction[state + sym];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int tAction(int state, int sym) {
|
||||
int i = baseAction[state], k = i + sym;
|
||||
return termAction[termCheck[k] == sym ? k : i];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int lookAhead(int la_state, int sym) {
|
||||
int k = la_state + sym;
|
||||
return termAction[termCheck[k] == sym ? k : la_state];
|
||||
|
|
|
@ -1395,24 +1395,29 @@ public class CPPNoCastExpressionParserprs implements lpg.lpgjavaruntime.ParseTab
|
|||
|
||||
public final static String name[] = Name.name;
|
||||
|
||||
@Override
|
||||
public final String name(int index) {
|
||||
return name[index];
|
||||
}
|
||||
|
||||
public final static int ERROR_SYMBOL = 62, SCOPE_UBOUND = 120, SCOPE_SIZE = 121, MAX_NAME_LENGTH = 43;
|
||||
|
||||
@Override
|
||||
public final int getErrorSymbol() {
|
||||
return ERROR_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getScopeUbound() {
|
||||
return SCOPE_UBOUND;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getScopeSize() {
|
||||
return SCOPE_SIZE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getMaxNameLength() {
|
||||
return MAX_NAME_LENGTH;
|
||||
}
|
||||
|
@ -1423,42 +1428,52 @@ public class CPPNoCastExpressionParserprs implements lpg.lpgjavaruntime.ParseTab
|
|||
|
||||
public final static boolean BACKTRACK = true;
|
||||
|
||||
@Override
|
||||
public final int getNumStates() {
|
||||
return NUM_STATES;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNtOffset() {
|
||||
return NT_OFFSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getLaStateOffset() {
|
||||
return LA_STATE_OFFSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getMaxLa() {
|
||||
return MAX_LA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumRules() {
|
||||
return NUM_RULES;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumNonterminals() {
|
||||
return NUM_NONTERMINALS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumSymbols() {
|
||||
return NUM_SYMBOLS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getSegmentSize() {
|
||||
return SEGMENT_SIZE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getStartState() {
|
||||
return START_STATE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getStartSymbol() {
|
||||
return lhs[0];
|
||||
}
|
||||
|
@ -1467,55 +1482,68 @@ public class CPPNoCastExpressionParserprs implements lpg.lpgjavaruntime.ParseTab
|
|||
return IDENTIFIER_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getEoftSymbol() {
|
||||
return EOFT_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getEoltSymbol() {
|
||||
return EOLT_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getAcceptAction() {
|
||||
return ACCEPT_ACTION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getErrorAction() {
|
||||
return ERROR_ACTION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean isValidForParser() {
|
||||
return isValidForParser;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean getBacktrack() {
|
||||
return BACKTRACK;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int originalState(int state) {
|
||||
return -baseCheck[state];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int asi(int state) {
|
||||
return asb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int nasi(int state) {
|
||||
return nasb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int inSymbol(int state) {
|
||||
return inSymb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int ntAction(int state, int sym) {
|
||||
return baseAction[state + sym];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int tAction(int state, int sym) {
|
||||
int i = baseAction[state], k = i + sym;
|
||||
return termAction[termCheck[k] == sym ? k : i];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int lookAhead(int la_state, int sym) {
|
||||
int k = la_state + sym;
|
||||
return termAction[termCheck[k] == sym ? k : la_state];
|
||||
|
|
|
@ -1390,24 +1390,29 @@ public class CPPNoFunctionDeclaratorParserprs
|
|||
|
||||
public final static String name[] = Name.name;
|
||||
|
||||
@Override
|
||||
public final String name(int index) {
|
||||
return name[index];
|
||||
}
|
||||
|
||||
public final static int ERROR_SYMBOL = 62, SCOPE_UBOUND = 121, SCOPE_SIZE = 122, MAX_NAME_LENGTH = 43;
|
||||
|
||||
@Override
|
||||
public final int getErrorSymbol() {
|
||||
return ERROR_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getScopeUbound() {
|
||||
return SCOPE_UBOUND;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getScopeSize() {
|
||||
return SCOPE_SIZE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getMaxNameLength() {
|
||||
return MAX_NAME_LENGTH;
|
||||
}
|
||||
|
@ -1418,42 +1423,52 @@ public class CPPNoFunctionDeclaratorParserprs
|
|||
|
||||
public final static boolean BACKTRACK = true;
|
||||
|
||||
@Override
|
||||
public final int getNumStates() {
|
||||
return NUM_STATES;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNtOffset() {
|
||||
return NT_OFFSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getLaStateOffset() {
|
||||
return LA_STATE_OFFSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getMaxLa() {
|
||||
return MAX_LA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumRules() {
|
||||
return NUM_RULES;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumNonterminals() {
|
||||
return NUM_NONTERMINALS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumSymbols() {
|
||||
return NUM_SYMBOLS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getSegmentSize() {
|
||||
return SEGMENT_SIZE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getStartState() {
|
||||
return START_STATE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getStartSymbol() {
|
||||
return lhs[0];
|
||||
}
|
||||
|
@ -1462,55 +1477,68 @@ public class CPPNoFunctionDeclaratorParserprs
|
|||
return IDENTIFIER_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getEoftSymbol() {
|
||||
return EOFT_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getEoltSymbol() {
|
||||
return EOLT_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getAcceptAction() {
|
||||
return ACCEPT_ACTION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getErrorAction() {
|
||||
return ERROR_ACTION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean isValidForParser() {
|
||||
return isValidForParser;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean getBacktrack() {
|
||||
return BACKTRACK;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int originalState(int state) {
|
||||
return -baseCheck[state];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int asi(int state) {
|
||||
return asb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int nasi(int state) {
|
||||
return nasb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int inSymbol(int state) {
|
||||
return inSymb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int ntAction(int state, int sym) {
|
||||
return baseAction[state + sym];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int tAction(int state, int sym) {
|
||||
int i = baseAction[state], k = i + sym;
|
||||
return termAction[termCheck[k] == sym ? k : i];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int lookAhead(int la_state, int sym) {
|
||||
int k = la_state + sym;
|
||||
return termAction[termCheck[k] == sym ? k : la_state];
|
||||
|
|
|
@ -1400,24 +1400,29 @@ public class CPPParserprs implements lpg.lpgjavaruntime.ParseTable, CPPParsersym
|
|||
|
||||
public final static String name[] = Name.name;
|
||||
|
||||
@Override
|
||||
public final String name(int index) {
|
||||
return name[index];
|
||||
}
|
||||
|
||||
public final static int ERROR_SYMBOL = 63, SCOPE_UBOUND = 121, SCOPE_SIZE = 122, MAX_NAME_LENGTH = 43;
|
||||
|
||||
@Override
|
||||
public final int getErrorSymbol() {
|
||||
return ERROR_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getScopeUbound() {
|
||||
return SCOPE_UBOUND;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getScopeSize() {
|
||||
return SCOPE_SIZE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getMaxNameLength() {
|
||||
return MAX_NAME_LENGTH;
|
||||
}
|
||||
|
@ -1428,42 +1433,52 @@ public class CPPParserprs implements lpg.lpgjavaruntime.ParseTable, CPPParsersym
|
|||
|
||||
public final static boolean BACKTRACK = true;
|
||||
|
||||
@Override
|
||||
public final int getNumStates() {
|
||||
return NUM_STATES;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNtOffset() {
|
||||
return NT_OFFSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getLaStateOffset() {
|
||||
return LA_STATE_OFFSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getMaxLa() {
|
||||
return MAX_LA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumRules() {
|
||||
return NUM_RULES;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumNonterminals() {
|
||||
return NUM_NONTERMINALS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumSymbols() {
|
||||
return NUM_SYMBOLS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getSegmentSize() {
|
||||
return SEGMENT_SIZE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getStartState() {
|
||||
return START_STATE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getStartSymbol() {
|
||||
return lhs[0];
|
||||
}
|
||||
|
@ -1472,55 +1487,68 @@ public class CPPParserprs implements lpg.lpgjavaruntime.ParseTable, CPPParsersym
|
|||
return IDENTIFIER_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getEoftSymbol() {
|
||||
return EOFT_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getEoltSymbol() {
|
||||
return EOLT_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getAcceptAction() {
|
||||
return ACCEPT_ACTION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getErrorAction() {
|
||||
return ERROR_ACTION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean isValidForParser() {
|
||||
return isValidForParser;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean getBacktrack() {
|
||||
return BACKTRACK;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int originalState(int state) {
|
||||
return -baseCheck[state];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int asi(int state) {
|
||||
return asb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int nasi(int state) {
|
||||
return nasb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int inSymbol(int state) {
|
||||
return inSymb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int ntAction(int state, int sym) {
|
||||
return baseAction[state + sym];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int tAction(int state, int sym) {
|
||||
int i = baseAction[state], k = i + sym;
|
||||
return termAction[termCheck[k] == sym ? k : i];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int lookAhead(int la_state, int sym) {
|
||||
int k = la_state + sym;
|
||||
return termAction[termCheck[k] == sym ? k : la_state];
|
||||
|
|
|
@ -1399,24 +1399,29 @@ public class CPPSizeofExpressionParserprs implements lpg.lpgjavaruntime.ParseTab
|
|||
|
||||
public final static String name[] = Name.name;
|
||||
|
||||
@Override
|
||||
public final String name(int index) {
|
||||
return name[index];
|
||||
}
|
||||
|
||||
public final static int ERROR_SYMBOL = 62, SCOPE_UBOUND = 119, SCOPE_SIZE = 120, MAX_NAME_LENGTH = 43;
|
||||
|
||||
@Override
|
||||
public final int getErrorSymbol() {
|
||||
return ERROR_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getScopeUbound() {
|
||||
return SCOPE_UBOUND;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getScopeSize() {
|
||||
return SCOPE_SIZE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getMaxNameLength() {
|
||||
return MAX_NAME_LENGTH;
|
||||
}
|
||||
|
@ -1427,42 +1432,52 @@ public class CPPSizeofExpressionParserprs implements lpg.lpgjavaruntime.ParseTab
|
|||
|
||||
public final static boolean BACKTRACK = true;
|
||||
|
||||
@Override
|
||||
public final int getNumStates() {
|
||||
return NUM_STATES;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNtOffset() {
|
||||
return NT_OFFSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getLaStateOffset() {
|
||||
return LA_STATE_OFFSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getMaxLa() {
|
||||
return MAX_LA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumRules() {
|
||||
return NUM_RULES;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumNonterminals() {
|
||||
return NUM_NONTERMINALS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumSymbols() {
|
||||
return NUM_SYMBOLS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getSegmentSize() {
|
||||
return SEGMENT_SIZE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getStartState() {
|
||||
return START_STATE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getStartSymbol() {
|
||||
return lhs[0];
|
||||
}
|
||||
|
@ -1471,55 +1486,68 @@ public class CPPSizeofExpressionParserprs implements lpg.lpgjavaruntime.ParseTab
|
|||
return IDENTIFIER_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getEoftSymbol() {
|
||||
return EOFT_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getEoltSymbol() {
|
||||
return EOLT_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getAcceptAction() {
|
||||
return ACCEPT_ACTION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getErrorAction() {
|
||||
return ERROR_ACTION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean isValidForParser() {
|
||||
return isValidForParser;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean getBacktrack() {
|
||||
return BACKTRACK;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int originalState(int state) {
|
||||
return -baseCheck[state];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int asi(int state) {
|
||||
return asb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int nasi(int state) {
|
||||
return nasb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int inSymbol(int state) {
|
||||
return inSymb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int ntAction(int state, int sym) {
|
||||
return baseAction[state + sym];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int tAction(int state, int sym) {
|
||||
int i = baseAction[state], k = i + sym;
|
||||
return termAction[termCheck[k] == sym ? k : i];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int lookAhead(int la_state, int sym) {
|
||||
int k = la_state + sym;
|
||||
return termAction[termCheck[k] == sym ? k : la_state];
|
||||
|
|
|
@ -1402,24 +1402,29 @@ public class CPPTemplateTypeParameterParserprs
|
|||
|
||||
public final static String name[] = Name.name;
|
||||
|
||||
@Override
|
||||
public final String name(int index) {
|
||||
return name[index];
|
||||
}
|
||||
|
||||
public final static int ERROR_SYMBOL = 62, SCOPE_UBOUND = 121, SCOPE_SIZE = 122, MAX_NAME_LENGTH = 43;
|
||||
|
||||
@Override
|
||||
public final int getErrorSymbol() {
|
||||
return ERROR_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getScopeUbound() {
|
||||
return SCOPE_UBOUND;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getScopeSize() {
|
||||
return SCOPE_SIZE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getMaxNameLength() {
|
||||
return MAX_NAME_LENGTH;
|
||||
}
|
||||
|
@ -1430,42 +1435,52 @@ public class CPPTemplateTypeParameterParserprs
|
|||
|
||||
public final static boolean BACKTRACK = true;
|
||||
|
||||
@Override
|
||||
public final int getNumStates() {
|
||||
return NUM_STATES;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNtOffset() {
|
||||
return NT_OFFSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getLaStateOffset() {
|
||||
return LA_STATE_OFFSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getMaxLa() {
|
||||
return MAX_LA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumRules() {
|
||||
return NUM_RULES;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumNonterminals() {
|
||||
return NUM_NONTERMINALS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumSymbols() {
|
||||
return NUM_SYMBOLS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getSegmentSize() {
|
||||
return SEGMENT_SIZE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getStartState() {
|
||||
return START_STATE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getStartSymbol() {
|
||||
return lhs[0];
|
||||
}
|
||||
|
@ -1474,55 +1489,68 @@ public class CPPTemplateTypeParameterParserprs
|
|||
return IDENTIFIER_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getEoftSymbol() {
|
||||
return EOFT_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getEoltSymbol() {
|
||||
return EOLT_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getAcceptAction() {
|
||||
return ACCEPT_ACTION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getErrorAction() {
|
||||
return ERROR_ACTION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean isValidForParser() {
|
||||
return isValidForParser;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean getBacktrack() {
|
||||
return BACKTRACK;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int originalState(int state) {
|
||||
return -baseCheck[state];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int asi(int state) {
|
||||
return asb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int nasi(int state) {
|
||||
return nasb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int inSymbol(int state) {
|
||||
return inSymb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int ntAction(int state, int sym) {
|
||||
return baseAction[state + sym];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int tAction(int state, int sym) {
|
||||
int i = baseAction[state], k = i + sym;
|
||||
return termAction[termCheck[k] == sym ? k : i];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int lookAhead(int la_state, int sym) {
|
||||
int k = la_state + sym;
|
||||
return termAction[termCheck[k] == sym ? k : la_state];
|
||||
|
|
|
@ -879,24 +879,29 @@ public class GCCParserprs implements lpg.lpgjavaruntime.ParseTable, GCCParsersym
|
|||
|
||||
public final static String name[] = Name.name;
|
||||
|
||||
@Override
|
||||
public final String name(int index) {
|
||||
return name[index];
|
||||
}
|
||||
|
||||
public final static int ERROR_SYMBOL = 34, SCOPE_UBOUND = 91, SCOPE_SIZE = 92, MAX_NAME_LENGTH = 38;
|
||||
|
||||
@Override
|
||||
public final int getErrorSymbol() {
|
||||
return ERROR_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getScopeUbound() {
|
||||
return SCOPE_UBOUND;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getScopeSize() {
|
||||
return SCOPE_SIZE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getMaxNameLength() {
|
||||
return MAX_NAME_LENGTH;
|
||||
}
|
||||
|
@ -907,42 +912,52 @@ public class GCCParserprs implements lpg.lpgjavaruntime.ParseTable, GCCParsersym
|
|||
|
||||
public final static boolean BACKTRACK = true;
|
||||
|
||||
@Override
|
||||
public final int getNumStates() {
|
||||
return NUM_STATES;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNtOffset() {
|
||||
return NT_OFFSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getLaStateOffset() {
|
||||
return LA_STATE_OFFSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getMaxLa() {
|
||||
return MAX_LA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumRules() {
|
||||
return NUM_RULES;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumNonterminals() {
|
||||
return NUM_NONTERMINALS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumSymbols() {
|
||||
return NUM_SYMBOLS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getSegmentSize() {
|
||||
return SEGMENT_SIZE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getStartState() {
|
||||
return START_STATE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getStartSymbol() {
|
||||
return lhs[0];
|
||||
}
|
||||
|
@ -951,55 +966,68 @@ public class GCCParserprs implements lpg.lpgjavaruntime.ParseTable, GCCParsersym
|
|||
return IDENTIFIER_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getEoftSymbol() {
|
||||
return EOFT_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getEoltSymbol() {
|
||||
return EOLT_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getAcceptAction() {
|
||||
return ACCEPT_ACTION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getErrorAction() {
|
||||
return ERROR_ACTION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean isValidForParser() {
|
||||
return isValidForParser;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean getBacktrack() {
|
||||
return BACKTRACK;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int originalState(int state) {
|
||||
return -baseCheck[state];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int asi(int state) {
|
||||
return asb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int nasi(int state) {
|
||||
return nasb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int inSymbol(int state) {
|
||||
return inSymb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int ntAction(int state, int sym) {
|
||||
return baseAction[state + sym];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int tAction(int state, int sym) {
|
||||
int i = baseAction[state], k = i + sym;
|
||||
return termAction[termCheck[k] == sym ? k : i];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int lookAhead(int la_state, int sym) {
|
||||
int k = la_state + sym;
|
||||
return termAction[termCheck[k] == sym ? k : la_state];
|
||||
|
|
|
@ -833,24 +833,29 @@ public class GCCSizeofExpressionParserprs implements lpg.lpgjavaruntime.ParseTab
|
|||
|
||||
public final static String name[] = Name.name;
|
||||
|
||||
@Override
|
||||
public final String name(int index) {
|
||||
return name[index];
|
||||
}
|
||||
|
||||
public final static int ERROR_SYMBOL = 29, SCOPE_UBOUND = 88, SCOPE_SIZE = 89, MAX_NAME_LENGTH = 38;
|
||||
|
||||
@Override
|
||||
public final int getErrorSymbol() {
|
||||
return ERROR_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getScopeUbound() {
|
||||
return SCOPE_UBOUND;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getScopeSize() {
|
||||
return SCOPE_SIZE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getMaxNameLength() {
|
||||
return MAX_NAME_LENGTH;
|
||||
}
|
||||
|
@ -861,42 +866,52 @@ public class GCCSizeofExpressionParserprs implements lpg.lpgjavaruntime.ParseTab
|
|||
|
||||
public final static boolean BACKTRACK = true;
|
||||
|
||||
@Override
|
||||
public final int getNumStates() {
|
||||
return NUM_STATES;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNtOffset() {
|
||||
return NT_OFFSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getLaStateOffset() {
|
||||
return LA_STATE_OFFSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getMaxLa() {
|
||||
return MAX_LA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumRules() {
|
||||
return NUM_RULES;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumNonterminals() {
|
||||
return NUM_NONTERMINALS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getNumSymbols() {
|
||||
return NUM_SYMBOLS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getSegmentSize() {
|
||||
return SEGMENT_SIZE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getStartState() {
|
||||
return START_STATE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getStartSymbol() {
|
||||
return lhs[0];
|
||||
}
|
||||
|
@ -905,55 +920,68 @@ public class GCCSizeofExpressionParserprs implements lpg.lpgjavaruntime.ParseTab
|
|||
return IDENTIFIER_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getEoftSymbol() {
|
||||
return EOFT_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getEoltSymbol() {
|
||||
return EOLT_SYMBOL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getAcceptAction() {
|
||||
return ACCEPT_ACTION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getErrorAction() {
|
||||
return ERROR_ACTION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean isValidForParser() {
|
||||
return isValidForParser;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean getBacktrack() {
|
||||
return BACKTRACK;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int originalState(int state) {
|
||||
return -baseCheck[state];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int asi(int state) {
|
||||
return asb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int nasi(int state) {
|
||||
return nasb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int inSymbol(int state) {
|
||||
return inSymb[originalState(state)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int ntAction(int state, int sym) {
|
||||
return baseAction[state + sym];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int tAction(int state, int sym) {
|
||||
int i = baseAction[state], k = i + sym;
|
||||
return termAction[termCheck[k] == sym ? k : i];
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int lookAhead(int la_state, int sym) {
|
||||
int k = la_state + sym;
|
||||
return termAction[termCheck[k] == sym ? k : la_state];
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue