GP-0: Fixing @Override warnings

This commit is contained in:
Ryan Kurtz 2025-05-29 06:16:20 -04:00
parent d4120b4b4d
commit a6cd5b5dbc
449 changed files with 2348 additions and 1276 deletions

View file

@ -24,6 +24,7 @@ public class GDataConverterBE implements GDataConverter {
/**
* @see GDataConverter#getShort(byte[])
*/
@Override
public final short getShort(byte[] b) {
return getShort(b, 0);
}
@ -31,6 +32,7 @@ public class GDataConverterBE implements GDataConverter {
/**
* @see GDataConverter#getShort(byte[], int)
*/
@Override
public short getShort(byte[] b, int offset) {
return (short) (((b[offset] & 0xff) << 8) | (b[offset + 1] & 0xff));
}
@ -38,6 +40,7 @@ public class GDataConverterBE implements GDataConverter {
/**
* @see GDataConverter#getInt(byte[])
*/
@Override
public final int getInt(byte[] b) {
return getInt(b, 0);
}
@ -45,6 +48,7 @@ public class GDataConverterBE implements GDataConverter {
/**
* @see GDataConverter#getInt(byte[], int)
*/
@Override
public int getInt(byte[] b, int offset) {
int v = b[offset];
for (int i = 1; i < 4; i++) {
@ -56,6 +60,7 @@ public class GDataConverterBE implements GDataConverter {
/**
* @see GDataConverter#getLong(byte[])
*/
@Override
public final long getLong(byte[] b) {
return getLong(b, 0);
}
@ -63,6 +68,7 @@ public class GDataConverterBE implements GDataConverter {
/**
* @see GDataConverter#getLong(byte[], int)
*/
@Override
public long getLong(byte[] b, int offset) {
long v = b[offset];
for (int i = 1; i < 8; i++) {
@ -74,6 +80,7 @@ public class GDataConverterBE implements GDataConverter {
/**
* @see GDataConverter.util.DataConverter#getValue(byte[], int)
*/
@Override
public long getValue(byte[] b, int size) {
return getValue(b, 0, size);
}
@ -81,6 +88,7 @@ public class GDataConverterBE implements GDataConverter {
/**
* @see GDataConverter.util.DataConverter#getValue(byte[], int, int)
*/
@Override
public long getValue(byte[] b, int offset, int size) {
if (size > 8) {
throw new IndexOutOfBoundsException("size exceeds sizeof long: " + size);
@ -95,6 +103,7 @@ public class GDataConverterBE implements GDataConverter {
/**
* @see GDataConverter#getBytes(short, byte[])
*/
@Override
public final void getBytes(short value, byte[] b) {
getBytes(value, b, 0);
}
@ -102,6 +111,7 @@ public class GDataConverterBE implements GDataConverter {
/**
* @see GDataConverter#getBytes(short, byte[], int)
*/
@Override
public void getBytes(short value, byte[] b, int offset) {
b[offset] = (byte) (value >> 8);
b[offset + 1] = (byte) (value & 0xff);
@ -110,6 +120,7 @@ public class GDataConverterBE implements GDataConverter {
/**
* @see GDataConverter#getBytes(int, byte[])
*/
@Override
public final void getBytes(int value, byte[] b) {
getBytes(value, b, 0);
}
@ -117,6 +128,7 @@ public class GDataConverterBE implements GDataConverter {
/**
* @see GDataConverter#getBytes(int, byte[], int)
*/
@Override
public void getBytes(int value, byte[] b, int offset) {
b[offset + 3] = (byte) (value);
for (int i = 2; i >= 0; i--) {
@ -128,6 +140,7 @@ public class GDataConverterBE implements GDataConverter {
/**
* @see GDataConverter#getBytes(long, byte[])
*/
@Override
public final void getBytes(long value, byte[] b) {
getBytes(value, 8, b, 0);
}
@ -135,6 +148,7 @@ public class GDataConverterBE implements GDataConverter {
/**
* @see GDataConverter#getBytes(long, byte[], int)
*/
@Override
public void getBytes(long value, byte[] b, int offset) {
getBytes(value, 8, b, offset);
}
@ -142,6 +156,7 @@ public class GDataConverterBE implements GDataConverter {
/**
* @see GDataConverter.util.DataConverter#getBytes(long, int, byte[], int)
*/
@Override
public void getBytes(long value, int size, byte[] b, int offset) {
for (int i = size - 1; i >= 0; i--) {
b[offset + i] = (byte) value;
@ -152,6 +167,7 @@ public class GDataConverterBE implements GDataConverter {
/**
* @see GDataConverter.util.DataConverter#putInt(byte[], int, int)
*/
@Override
public final void putInt(byte[] b, int offset, int value) {
getBytes(value, b, offset);
}
@ -159,6 +175,7 @@ public class GDataConverterBE implements GDataConverter {
/**
* @see GDataConverter.util.DataConverter#putInt(byte[], int)
*/
@Override
public final void putInt(byte[] b, int value) {
getBytes(value, b);
}
@ -166,6 +183,7 @@ public class GDataConverterBE implements GDataConverter {
/**
* @see GDataConverter.util.DataConverter#putLong(byte[], int, long)
*/
@Override
public final void putLong(byte[] b, int offset, long value) {
getBytes(value, b, offset);
}
@ -173,6 +191,7 @@ public class GDataConverterBE implements GDataConverter {
/**
* @see GDataConverter.util.DataConverter#putLong(byte[], long)
*/
@Override
public final void putLong(byte[] b, long value) {
getBytes(value, b);
}
@ -180,6 +199,7 @@ public class GDataConverterBE implements GDataConverter {
/**
* @see GDataConverter.util.DataConverter#putShort(byte[], int, short)
*/
@Override
public final void putShort(byte[] b, int offset, short value) {
getBytes(value, b, offset);
}
@ -187,6 +207,7 @@ public class GDataConverterBE implements GDataConverter {
/**
* @see GDataConverter.util.DataConverter#putShort(byte[], short)
*/
@Override
public final void putShort(byte[] b, short value) {
getBytes(value, b);
}
@ -194,6 +215,7 @@ public class GDataConverterBE implements GDataConverter {
/**
* @see GDataConverter.util.DataConverter#getBytes(int)
*/
@Override
public byte[] getBytes(int value) {
byte[] bytes = new byte[4];
getBytes(value, bytes);
@ -203,6 +225,7 @@ public class GDataConverterBE implements GDataConverter {
/**
* @see GDataConverter.util.DataConverter#getBytes(long)
*/
@Override
public byte[] getBytes(long value) {
byte[] bytes = new byte[8];
getBytes(value, bytes);
@ -212,6 +235,7 @@ public class GDataConverterBE implements GDataConverter {
/**
* @see GDataConverter.util.DataConverter#getBytes(short)
*/
@Override
public byte[] getBytes(short value) {
byte[] bytes = new byte[2];
getBytes(value, bytes);

View file

@ -23,6 +23,7 @@ public class GDataConverterLE implements GDataConverter {
/**
* @see GDataConverter#getShort(byte[])
*/
@Override
public final short getShort(byte[] b) {
return getShort(b, 0);
}
@ -30,6 +31,7 @@ public class GDataConverterLE implements GDataConverter {
/**
* @see GDataConverter#getShort(byte[], int)
*/
@Override
public short getShort(byte[] b, int offset) {
return (short) (((b[offset + 1] & 0xff) << 8) | (b[offset] & 0xff));
}
@ -37,6 +39,7 @@ public class GDataConverterLE implements GDataConverter {
/**
* @see GDataConverter#getInt(byte[])
*/
@Override
public final int getInt(byte[] b) {
return getInt(b, 0);
}
@ -44,6 +47,7 @@ public class GDataConverterLE implements GDataConverter {
/**
* @see GDataConverter#getInt(byte[], int)
*/
@Override
public int getInt(byte[] b, int offset) {
int v = b[offset + 3];
for (int i = 2; i >= 0; i--) {
@ -55,6 +59,7 @@ public class GDataConverterLE implements GDataConverter {
/**
* @see GDataConverter#getLong(byte[])
*/
@Override
public final long getLong(byte[] b) {
return getLong(b, 0);
}
@ -62,6 +67,7 @@ public class GDataConverterLE implements GDataConverter {
/**
* @see GDataConverter#getLong(byte[], int)
*/
@Override
public long getLong(byte[] b, int offset) {
long v = b[offset + 7];
for (int i = 6; i >= 0; i--) {
@ -73,6 +79,7 @@ public class GDataConverterLE implements GDataConverter {
/**
* @see ghidra.util.GDataConverter#getValue(byte[], int)
*/
@Override
public long getValue(byte[] b, int size) {
return getValue(b, 0, size);
}
@ -80,6 +87,7 @@ public class GDataConverterLE implements GDataConverter {
/**
* @see ghidra.util.GDataConverter#getValue(byte[], int, int)
*/
@Override
public long getValue(byte[] b, int offset, int size) {
if (size > 8) {
throw new IndexOutOfBoundsException("size exceeds sizeof long: " + size);
@ -94,6 +102,7 @@ public class GDataConverterLE implements GDataConverter {
/**
* @see GDataConverter#getBytes(short, byte[])
*/
@Override
public final void getBytes(short value, byte[] b) {
getBytes(value, b, 0);
}
@ -101,6 +110,7 @@ public class GDataConverterLE implements GDataConverter {
/**
* @see GDataConverter#getBytes(short, byte[], int)
*/
@Override
public void getBytes(short value, byte[] b, int offset) {
b[offset + 1] = (byte) (value >> 8);
b[offset] = (byte) (value & 0xff);
@ -109,6 +119,7 @@ public class GDataConverterLE implements GDataConverter {
/**
* @see GDataConverter#getBytes(int, byte[])
*/
@Override
public final void getBytes(int value, byte[] b) {
getBytes(value, b, 0);
}
@ -116,6 +127,7 @@ public class GDataConverterLE implements GDataConverter {
/**
* @see GDataConverter#getBytes(int, byte[], int)
*/
@Override
public void getBytes(int value, byte[] b, int offset) {
b[offset] = (byte) (value);
for (int i = 1; i < 4; i++) {
@ -127,6 +139,7 @@ public class GDataConverterLE implements GDataConverter {
/**
* @see GDataConverter#getBytes(long, byte[])
*/
@Override
public final void getBytes(long value, byte[] b) {
getBytes(value, 8, b, 0);
}
@ -134,6 +147,7 @@ public class GDataConverterLE implements GDataConverter {
/**
* @see GDataConverter#getBytes(long, byte[], int)
*/
@Override
public void getBytes(long value, byte[] b, int offset) {
getBytes(value, 8, b, offset);
}
@ -141,6 +155,7 @@ public class GDataConverterLE implements GDataConverter {
/**
* @see ghidra.util.GDataConverter#getBytes(long, int, byte[], int)
*/
@Override
public void getBytes(long value, int size, byte[] b, int offset) {
for (int i = 0; i < size; i++) {
b[offset + i] = (byte) value;
@ -151,6 +166,7 @@ public class GDataConverterLE implements GDataConverter {
/**
* @see ghidra.util.GDataConverter#putInt(byte[], int, int)
*/
@Override
public final void putInt(byte[] b, int offset, int value) {
getBytes(value, b, offset);
}
@ -158,6 +174,7 @@ public class GDataConverterLE implements GDataConverter {
/**
* @see ghidra.util.GDataConverter#putInt(byte[], int)
*/
@Override
public final void putInt(byte[] b, int value) {
getBytes(value, b);
}
@ -165,6 +182,7 @@ public class GDataConverterLE implements GDataConverter {
/**
* @see ghidra.util.GDataConverter#putLong(byte[], int, long)
*/
@Override
public final void putLong(byte[] b, int offset, long value) {
getBytes(value, b, offset);
}
@ -172,6 +190,7 @@ public class GDataConverterLE implements GDataConverter {
/**
* @see ghidra.util.GDataConverter#putLong(byte[], long)
*/
@Override
public final void putLong(byte[] b, long value) {
getBytes(value, b);
}
@ -179,6 +198,7 @@ public class GDataConverterLE implements GDataConverter {
/**
* @see ghidra.util.GDataConverter#putShort(byte[], int, short)
*/
@Override
public final void putShort(byte[] b, int offset, short value) {
getBytes(value, b, offset);
}
@ -186,6 +206,7 @@ public class GDataConverterLE implements GDataConverter {
/**
* @see ghidra.util.GDataConverter#putShort(byte[], short)
*/
@Override
public final void putShort(byte[] b, short value) {
getBytes(value, b);
}
@ -193,6 +214,7 @@ public class GDataConverterLE implements GDataConverter {
/**
* @see ghidra.util.GDataConverter#getBytes(int)
*/
@Override
public byte[] getBytes(int value) {
byte[] bytes = new byte[4];
getBytes(value, bytes);
@ -202,6 +224,7 @@ public class GDataConverterLE implements GDataConverter {
/**
* @see ghidra.util.GDataConverter#getBytes(long)
*/
@Override
public byte[] getBytes(long value) {
byte[] bytes = new byte[8];
getBytes(value, bytes);
@ -211,6 +234,7 @@ public class GDataConverterLE implements GDataConverter {
/**
* @see ghidra.util.GDataConverter#getBytes(short)
*/
@Override
public byte[] getBytes(short value) {
byte[] bytes = new byte[2];
getBytes(value, bytes);

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -98,6 +98,7 @@ public abstract class AbstractIsfWriter implements Closeable {
gson.toJson(object, writer);
}
@Override
public void close() throws IOException {
if (writer != null) {
writer.flush();

View file

@ -49,10 +49,13 @@ public interface TraceObjectMemoryRegion extends TraceMemoryRegion, TraceObjectI
void setRange(Lifespan lifespan, AddressRange range);
@Override
AddressRange getRange(long snap);
@Override
Address getMinAddress(long snap);
@Override
Address getMaxAddress(long snap);
void setFlags(Lifespan lifespan, Collection<TraceMemoryFlag> flags);
@ -61,5 +64,6 @@ public interface TraceObjectMemoryRegion extends TraceMemoryRegion, TraceObjectI
void clearFlags(Lifespan lifespan, Collection<TraceMemoryFlag> flags);
@Override
Set<TraceMemoryFlag> getFlags(long snap);
}

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -186,6 +186,7 @@ public interface Rectangle2D<X, Y, R extends Rectangle2D<X, Y, R>> extends Bound
* @param shape the other (presumably-inner) rectangle
* @return true if this rectangle encloses the other
*/
@Override
default boolean encloses(R shape) {
return encloses(this, shape);
}

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -40,6 +40,7 @@ public abstract class SampleGraphLayoutProvider
public abstract VisualGraphLayout<SampleVertex, SampleEdge> getLayout(SampleGraph g,
TaskMonitor monitor) throws CancelledException;
@Override
protected void initVertexLocations(SampleGraph g, Layout<SampleVertex, SampleEdge> layout) {
Collection<SampleVertex> vertices = g.getVertices();
for (SampleVertex v : vertices) {

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -145,6 +145,7 @@ public class MultiChoiceBSimValueEditor implements BSimValueEditor {
return component;
}
@Override
public boolean hasValidValues() {
return isValid;
}

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -105,6 +105,7 @@ public class StringBSimValueEditor implements BSimValueEditor {
return textField;
}
@Override
public boolean hasValidValues() {
return isValid;
}

View file

@ -93,6 +93,7 @@ public class BSimSearchDialog extends AbstractBSimSearchDialog {
}
}
@Override
protected JPanel buildServerPanel() {
JPanel panel = super.buildServerPanel();
panel.add(new JLabel("Function(s): "));
@ -100,6 +101,7 @@ public class BSimSearchDialog extends AbstractBSimSearchDialog {
return panel;
}
@Override
protected JPanel buildCenterPanel() {
filterPanel = new BSimFilterPanel(this::filterPanelChanged);
return createTitledPanel("Filters:", filterPanel, true);

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -32,6 +32,7 @@ public abstract class IDElasticResolution {
idString = null;
}
@Override
public void resolve(ElasticDatabase database,ExecutableRecord exe) throws ElasticException {
if (idString == null)
idString = database.recoverExternalFunctionId(exeName, funcName, exe.getArchitecture());

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -41,6 +41,7 @@ public class AdjustVectorIndex extends BSimQuery<ResponseAdjustIndex> {
/* (non-Javadoc)
* @see ghidra.query.protocol.QueryResponseRecord#buildResponseTemplate()
*/
@Override
public void buildResponseTemplate() {
if (response == null)
response = adjustresponse = new ResponseAdjustIndex();

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -27,6 +27,7 @@ public class ChildAtom extends FilterAtom {
public String name = null; // Name of the child function
public String exename = null; // Name of the executable (or library) containing the child (or null)
@Override
public void saveXml(Writer fwrite) throws IOException {
fwrite.append("<childatom");
type.saveXml(fwrite);
@ -49,6 +50,7 @@ public class ChildAtom extends FilterAtom {
name = parser.end(el).getText();
}
@Override
public FilterAtom clone() {
ChildAtom newatom = new ChildAtom();
newatom.type = type;
@ -58,6 +60,7 @@ public class ChildAtom extends FilterAtom {
return newatom;
}
@Override
public String getInfoString() {
if (name == null)
return null;

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -20,6 +19,7 @@ import ghidra.program.model.mem.Memory;
public class GenerateMaskedBitStringScript extends GhidraScript {
@Override
public void run() throws Exception {
Memory mem = currentProgram.getMemory();

View file

@ -29,7 +29,8 @@ import java.util.Iterator;
public class ReportDisassemblyErrors extends GhidraScript {
public void run() throws Exception {
@Override
public void run() throws Exception {
Program prog = currentProgram;
Iterator<Bookmark> bookmarkIter = prog.getBookmarkManager().getBookmarksIterator("Error");
int count = 0;

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -23,6 +23,7 @@ import ghidra.app.script.GhidraScript;
public class TurnOffStackAnalysis extends GhidraScript {
@Override
public void run() throws Exception {
setAnalysisOption(currentProgram, "Stack", "false");

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -32,6 +32,7 @@ public abstract class AbstractBinaryFormatAnalyzer extends AbstractAnalyzer {
this.command = command;
}
@Override
final public boolean added(Program program, AddressSetView set, TaskMonitor monitor,
MessageLog log) throws CancelledException {
@ -48,10 +49,12 @@ public abstract class AbstractBinaryFormatAnalyzer extends AbstractAnalyzer {
return false;
}
@Override
final public boolean canAnalyze(Program program) {
return command.canApply(program);
}
@Override
final public boolean getDefaultEnablement(Program program) {
return command.canApply(program);
}

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -101,6 +101,7 @@ public class MoveBlockTask extends ProgramTask {
throw new RollbackException(statusMessage, cause);
}
@Override
public boolean isCancelled() {
return cancelled;
}

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -406,6 +406,7 @@ class UserDefinedPropertyMerger extends AbstractListingMerger {
this.currentAddress = addr;
try {
final ChangeListener changeListener = new ChangeListener() {
@Override
public void stateChanged(ChangeEvent e) {
conflictOption = conflictPanel.getSelectedOptions();
if (conflictOption == ASK_USER) {
@ -425,12 +426,14 @@ class UserDefinedPropertyMerger extends AbstractListingMerger {
}
};
SwingUtilities.invokeAndWait(new Runnable() {
@Override
public void run() {
setupConflictsPanel(listingPanel, UserDefinedPropertyMerger.this.propertyName,
UserDefinedPropertyMerger.this.currentAddress, changeListener);
}
});
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
listingPanel.clearAllBackgrounds();
listingPanel.paintAllBackgrounds(new AddressSet(addr, addr));

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -86,6 +86,7 @@ public class PropertyListMergeManager implements MergeResolver {
/* (non-Javadoc)
* @see ghidra.app.merge.MergeResolver#apply()
*/
@Override
public void apply() {
conflictOption = mergePanel.getSelectedOption();
@ -99,6 +100,7 @@ public class PropertyListMergeManager implements MergeResolver {
/* (non-Javadoc)
* @see ghidra.app.merge.MergeResolver#cancel()
*/
@Override
public void cancel() {
conflictOption = CANCELED;
}
@ -106,6 +108,7 @@ public class PropertyListMergeManager implements MergeResolver {
/* (non-Javadoc)
* @see ghidra.app.merge.MergeResolver#getDescription()
*/
@Override
public String getDescription() {
return "Merge Property Lists";
}
@ -113,6 +116,7 @@ public class PropertyListMergeManager implements MergeResolver {
/* (non-Javadoc)
* @see ghidra.app.merge.MergeResolver#getName()
*/
@Override
public String getName() {
return "Property List Merger";
}
@ -120,6 +124,7 @@ public class PropertyListMergeManager implements MergeResolver {
/* (non-Javadoc)
* @see ghidra.app.merge.MergeResolver#merge(ghidra.util.task.TaskMonitor)
*/
@Override
public void merge(TaskMonitor monitor) {
mergeManager.setInProgress(PROPERTY_LIST_PHASE);
@ -457,6 +462,7 @@ public class PropertyListMergeManager implements MergeResolver {
final int totalNumConflicts) {
try {
SwingUtilities.invokeAndWait(new Runnable() {
@Override
public void run() {
if (mergePanel == null) {
mergePanel = new PropertyListMergePanel(mergeManager, totalNumConflicts);
@ -478,6 +484,7 @@ public class PropertyListMergeManager implements MergeResolver {
// and continue.
}
@Override
public String[][] getPhases() {
return new String[][] { PROPERTY_LIST_PHASE };
}

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -79,6 +78,7 @@ class PropertyListMergePanel extends JPanel {
private ConflictPanel createConflictPanel() {
ChangeListener changeListener = new ChangeListener() {
@Override
public void stateChanged(ChangeEvent e) {
mergeManager.clearStatusText();
mergeManager.setApplyEnabled(true);

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -187,6 +187,7 @@ public class ModuleAlgorithmPlugin extends ProgramPlugin implements BlockModelSe
/**
* @see ghidra.app.services.BlockModelServiceListener#modelAdded(java.lang.String, int)
*/
@Override
public void modelAdded(String modeName, int modelType) {
if (modelType == BlockModelService.SUBROUTINE_MODEL) {
updateSubroutineActions();
@ -196,6 +197,7 @@ public class ModuleAlgorithmPlugin extends ProgramPlugin implements BlockModelSe
/**
* @see ghidra.app.services.BlockModelServiceListener#modelRemoved(java.lang.String, int)
*/
@Override
public void modelRemoved(String modeName, int modelType) {
if (modelType == BlockModelService.SUBROUTINE_MODEL) {
updateSubroutineActions();

View file

@ -34,6 +34,7 @@ public class AnalysisTaskList {
private static Comparator<AnalysisScheduler> priorityComparator =
new Comparator<AnalysisScheduler>() {
@Override
public int compare(AnalysisScheduler as1, AnalysisScheduler as2) {
Analyzer a1 = as1.getAnalyzer();
Analyzer a2 = as2.getAnalyzer();

View file

@ -449,6 +449,7 @@ public class ConstantPropagationAnalyzer extends AbstractAnalyzer {
* @return - set of addresses actually flowed to
* @throws CancelledException
*/
@Override
public AddressSetView analyzeLocation(final Program program, Address start, AddressSetView set,
final TaskMonitor monitor) throws CancelledException {

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -44,6 +44,7 @@ public class ObjectiveC2_MessageAnalyzer extends AbstractAnalyzer {
setPriority(AnalysisPriority.FORMAT_ANALYSIS.after());
}
@Override
public boolean added(Program program, AddressSetView set, TaskMonitor monitor, MessageLog log)
throws CancelledException {
AddressIterator iterator = set.getAddresses(true);
@ -63,6 +64,7 @@ public class ObjectiveC2_MessageAnalyzer extends AbstractAnalyzer {
return true;
}
@Override
public boolean canAnalyze(Program program) {
return ObjectiveC2_Constants.isObjectiveC2(program);
}

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -56,10 +55,12 @@ public class UpdateAlignmentAction extends ToggleDockingAction implements Addres
}
}
@Override
public void alignmentChanged() {
setSelected(model.getAlignment() == alignment);
}
@Override
public void alignmentPermissionChanged() {
setSelected(model.getAlignment() == alignment);
}

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -33,6 +32,7 @@ public abstract class PostAnalysisValidator implements ConditionTester, Extensio
return program;
}
@Override
public final ConditionResult run(TaskMonitor monitor) throws CancelledException {
if (!program.addConsumer(this)) {

View file

@ -134,6 +134,7 @@ public class CodeCompletion implements Comparable<CodeCompletion> {
return "CodeCompletion: '" + getDescription() + "' (" + getInsertion() + ")";
}
@Override
public int compareTo(CodeCompletion that) {
return this.description.compareToIgnoreCase(that.description);
}

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -356,6 +356,7 @@ public class DataSettingsDialog extends AbstractSettingsDialog {
return settingsDefinition.getSuggestedValues(sampleSelectionSettings);
}
@Override
protected void applySettings() throws CancelledException {
int txId = program.startTransaction(getTitle());
try {

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -89,6 +89,7 @@ class RenameDataFieldDialog extends DialogComponentProvider {
setFocusComponent(recentChoices);
recentChoices.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
okCallback();
}

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -115,6 +114,7 @@ public class CopyAction extends DockingAction {
Transferable contents = new GTreeNodeTransferable(dragNDropHandler, list);
clipboard.setContents(contents, new ClipboardOwner() {
@Override
public void lostOwnership(Clipboard currentClipboard, Transferable transferable) {
// we don't care
}

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -32,14 +31,17 @@ public class CenterVerticalIcon implements Icon {
verticalOffset = (height - icon.getIconHeight()) / 2;
}
@Override
public int getIconHeight() {
return height;
}
@Override
public int getIconWidth() {
return icon.getIconWidth();
}
@Override
public void paintIcon(Component c, Graphics g, int x, int y) {
icon.paintIcon(c, g, x, y + verticalOffset);
}

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -42,10 +42,12 @@ public class DataDropOnBrowserHandler implements ProgramDropProvider {
this.plugin = plugin;
}
@Override
public int getPriority() {
return 20;
}
@Override
public DataFlavor[] getDataFlavors() {
return ACCEPTABLE_FLAVORS;
}
@ -53,6 +55,7 @@ public class DataDropOnBrowserHandler implements ProgramDropProvider {
/**
* @see ghidra.app.util.ProgramDropProvider#isDropOk(java.lang.Object, java.awt.dnd.DropTargetDragEvent)
*/
@Override
public boolean isDropOk(Object contextObj, DropTargetDragEvent evt) {
curService = null;
@ -74,6 +77,7 @@ public class DataDropOnBrowserHandler implements ProgramDropProvider {
return false;
}
@Override
public void add(Object contextObj, Object data, DataFlavor flavor) {
if (curService != null) {
DataType dt = (DataType)data;

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -51,7 +51,8 @@ class DataTypeComponentPreview implements Preview {
this.parentPreview = parent;
}
public String getName() {
@Override
public String getName() {
String fieldName = dtc.getFieldName();
if (fieldName == null) {
fieldName = dtc.getDefaultFieldName();
@ -62,7 +63,8 @@ class DataTypeComponentPreview implements Preview {
return parentPreview.getName()+"."+fieldName;
}
public String getPreview(Memory memory, Address addr) {
@Override
public String getPreview(Memory memory, Address addr) {
try {
if (parentPreview != null) {
addr = addr.add(parentPreview.dtc.getOffset());
@ -77,6 +79,7 @@ class DataTypeComponentPreview implements Preview {
}
}
@Override
public DataType getDataType() {
if (parentPreview != null) {
return parentPreview.getDataType();
@ -89,7 +92,8 @@ class DataTypeComponentPreview implements Preview {
return getName();
}
public int compareTo(Preview p) {
@Override
public int compareTo(Preview p) {
if (p instanceof DataTypeComponentPreview) {
DataTypeComponentPreview that = (DataTypeComponentPreview)p;

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -256,6 +255,7 @@ class FallThroughModel implements ChangeListener {
}
}
@Override
public void stateChanged(ChangeEvent e) {
// do nothing - just a placeholder so that we don't have to check for null listener
}

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -38,6 +38,7 @@ public class ExternalEntryFunctionAnalyzer extends AbstractAnalyzer {
* Called when a function has been added.
* Looks at address for call reference
*/
@Override
public boolean added(Program program, AddressSetView set, TaskMonitor monitor, MessageLog log) {
AddressSet funcStarts = new AddressSet();

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -68,21 +67,24 @@ public class GroupTransferable implements Transferable {
/**
* Return all data flavors that this class supports.
*/
public synchronized DataFlavor []getTransferDataFlavors() {
@Override
public synchronized DataFlavor []getTransferDataFlavors() {
return flavors;
}
/**
* Return whether the specified data flavor is supported.
*/
public boolean isDataFlavorSupported(DataFlavor f) {
@Override
public boolean isDataFlavorSupported(DataFlavor f) {
return flavorList.contains(f);
}
/**
* Return the transfer data with the given data flavor.
*/
public synchronized Object getTransferData(DataFlavor f)
@Override
public synchronized Object getTransferData(DataFlavor f)
throws UnsupportedFlavorException, IOException {
if (f.equals(localGroupFlavor)) {

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -91,6 +90,7 @@ abstract class EditReferencePanel extends JPanel {
@Override
public void requestFocus() {
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager();
kfm.focusNextComponent(EditReferencePanel.this);

View file

@ -128,6 +128,7 @@ public class StackEditorManagerPlugin extends Plugin
return editorMgr.canCloseDomainObject(dObj);
}
@Override
public void optionsChanged(ToolOptions options, String optionName, Object oldValue,
Object newValue) {
setOptions(options);
@ -155,6 +156,7 @@ public class StackEditorManagerPlugin extends Plugin
options.setBoolean(HEX_NUMBERS_OPTION_NAME, showNumbersInHex);
}
@Override
public boolean showStackNumbersInHex() {
return showNumbersInHex;
}

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -70,6 +69,7 @@ class PropertyManagerTableModel extends AbstractTableModel {
/*
* @see javax.swing.table.TableModel#getColumnCount()
*/
@Override
public int getColumnCount() {
return 1;
}
@ -77,6 +77,7 @@ class PropertyManagerTableModel extends AbstractTableModel {
/*
* @see javax.swing.table.TableModel#getRowCount()
*/
@Override
public synchronized int getRowCount() {
if (propertyNames != null) {
return propertyNames.length;
@ -95,6 +96,7 @@ class PropertyManagerTableModel extends AbstractTableModel {
/*
* @see javax.swing.table.TableModel#getValueAt(int, int)
*/
@Override
public synchronized Object getValueAt(int rowIndex, int columnIndex) {
if (propertyNames != null && rowIndex < propertyNames.length) {
return propertyNames[rowIndex];

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -226,6 +226,7 @@ public class Match implements Comparable<Match>
/* (non-Javadoc)
* @see java.lang.Comparable#compareTo(java.lang.Object)
*/
@Override
public int compareTo(Match m) {
int val = getThisBeginning().compareTo( m.getThisBeginning() );
if( val != 0 )

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -29,11 +28,13 @@ public abstract class AnalyzerAdapter extends AbstractAnalyzer {
setPriority(priority);
}
@Override
public boolean added(Program program, AddressSetView set, TaskMonitor monitor, MessageLog log)
throws CancelledException {
return false;
}
@Override
public boolean getDefaultEnablement(Program program) {
return false;
}

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -66,6 +65,7 @@ public class CodeUnitInfoTransferable implements Transferable, ClipboardOwner {
/**
* Return all data flavors that this class supports.
*/
@Override
public synchronized DataFlavor[] getTransferDataFlavors() {
return flavors;
}
@ -73,6 +73,7 @@ public class CodeUnitInfoTransferable implements Transferable, ClipboardOwner {
/**
* Return whether the specified data flavor is supported.
*/
@Override
public boolean isDataFlavorSupported(DataFlavor f) {
return flavorList.contains(f);
}
@ -80,6 +81,7 @@ public class CodeUnitInfoTransferable implements Transferable, ClipboardOwner {
/**
* Return the transfer data with the given data flavor.
*/
@Override
public synchronized Object getTransferData(DataFlavor f) throws UnsupportedFlavorException,
IOException {
@ -101,6 +103,7 @@ public class CodeUnitInfoTransferable implements Transferable, ClipboardOwner {
* (non-Javadoc)
* @see java.awt.datatransfer.ClipboardOwner#lostOwnership(java.awt.datatransfer.Clipboard, java.awt.datatransfer.Transferable)
*/
@Override
public void lostOwnership(Clipboard clipboard, Transferable contents) {
}

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -77,6 +76,7 @@ public class AoutHeader implements StructConverter {
return data_start;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
return StructConverterUtil.toDataType(AoutHeader.class);
}

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -45,6 +44,7 @@ public class CoffLineNumber implements StructConverter {
return l_lnno;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
return StructConverterUtil.toDataType(CoffLineNumber.class);
}

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -89,6 +89,7 @@ public class CoffRelocation implements StructConverter {
return r_type;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
Structure struct = new StructureDataType(StructConverterUtil.parseName(CoffRelocation.class), 0);
struct.add(DWORD, "r_vaddr", null);

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -77,6 +76,7 @@ public class CoffSymbolAuxArray implements CoffSymbolAux {
return unused;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
return StructConverterUtil.toDataType(this);
}

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -58,6 +58,7 @@ public class CoffSymbolAuxBeginningOfBlock implements CoffSymbolAux {
return unused3;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
return StructConverterUtil.toDataType(this);
}

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -35,6 +34,7 @@ class CoffSymbolAuxDefault implements CoffSymbolAux {
return bytes;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
return StructConverterUtil.toDataType(this);
}

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -47,6 +46,7 @@ public class CoffSymbolAuxEndOfBlock implements CoffSymbolAux {
return unused2;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
return StructConverterUtil.toDataType(this);
}

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -53,6 +52,7 @@ public class CoffSymbolAuxEndOfStruct implements CoffSymbolAux {
return unused2;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
return StructConverterUtil.toDataType(this);
}

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -41,6 +40,7 @@ public class CoffSymbolAuxFilename implements CoffSymbolAux {
return unused;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
return StructConverterUtil.toDataType(this);
}

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -59,6 +58,7 @@ public class CoffSymbolAuxFunction implements CoffSymbolAux {
return unused;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
return StructConverterUtil.toDataType(this);
}

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -53,6 +52,7 @@ public class CoffSymbolAuxName implements CoffSymbolAux {
return unused2;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
return StructConverterUtil.toDataType(this);
}

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -53,6 +52,7 @@ public class CoffSymbolAuxSection implements CoffSymbolAux {
return unused;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
return StructConverterUtil.toDataType(this);
}

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -59,6 +58,7 @@ public class CoffSymbolAuxTagName implements CoffSymbolAux {
return unused3;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
return StructConverterUtil.toDataType(this);
}

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -112,6 +112,7 @@ public final class SecondLinkerMember implements StructConverter {
return new ArrayList<String>(stringTable);
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
String name = StructConverterUtil.parseName(SecondLinkerMember.class);
String uniqueName = name + "_" + numberOfMembers + "_" + numberOfSymbols;

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -70,6 +70,7 @@ public class DWARFExpressionException extends Exception {
return step;
}
@Override
public String getMessage() {
return super.getMessage() + (expr != null ? "\n" + expr.toString(step, false, false) : "");
}

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -58,7 +57,8 @@ public class GnuVerdaux implements StructConverter {
/**
* @see ghidra.app.util.bin.StructConverter#toDataType()
*/
public DataType toDataType() throws DuplicateNameException, IOException {
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
StructureDataType struct = new StructureDataType("Elf_Verdaux", 0);
struct.add(DWORD, "vna_name", "Version or dependency names");
struct.add(DWORD, "vna_next", "Offset in bytes to next verdaux entry");

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -93,7 +92,8 @@ public class GnuVerdef implements StructConverter {
/**
* @see ghidra.app.util.bin.StructConverter#toDataType()
*/
public DataType toDataType() throws DuplicateNameException, IOException {
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
StructureDataType struct = new StructureDataType("Elf_Verdef", 0);
struct.add( WORD, "vd_version", "Version revision");
struct.add( WORD, "vd_flags", "Version information");

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -79,7 +78,8 @@ public class GnuVernaux implements StructConverter {
/**
* @see ghidra.app.util.bin.StructConverter#toDataType()
*/
public DataType toDataType() throws DuplicateNameException, IOException {
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
StructureDataType struct = new StructureDataType("Elf_Verdef", 0);
struct.add(DWORD, "vna_hash", "Hash value of dependency name");
struct.add( WORD, "vna_flags", "Dependency specific information");

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -79,7 +78,8 @@ public class GnuVerneed implements StructConverter {
/**
* @see ghidra.app.util.bin.StructConverter#toDataType()
*/
public DataType toDataType() throws DuplicateNameException, IOException {
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
StructureDataType struct = new StructureDataType("Elf_Verneed", 0);
struct.add( WORD, "vd_version", "Version of structure");
struct.add( WORD, "vd_cnt", "Number of associated aux entries");

View file

@ -199,6 +199,7 @@ public class GoMethod implements StructureMarkup<GoMethod> {
return funcAddr.equals(method.getTfn());
}
@Override
public String toString() {
return type.getMethodPrototypeString(method.getName(), getMethodFuncType());
}

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -74,6 +73,7 @@ public class AppleSingleDouble implements StructConverter {
return entryList;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
String name = StructConverterUtil.parseName(AppleSingleDouble.class);
Structure struct = new StructureDataType(name, 0);

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -73,6 +73,7 @@ public class EntryDescriptor implements StructConverter {
return _entry;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
return StructConverterUtil.toDataType(EntryDescriptor.class);
}

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -75,6 +74,7 @@ public class CFragResource implements StructConverter {
return _members;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
return StructConverterUtil.toDataType(CFragResource.class);
}

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -131,6 +130,7 @@ public class CFragResourceMember implements StructConverter {
return name;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
String structName = StructConverterUtil.parseName(CFragResourceMember.class);
Structure struct = new StructureDataType(structName, 0);

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -40,6 +39,7 @@ public class CFragUsage1Union implements StructConverter {
return appStackSize;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
return StructConverterUtil.toDataType(getClass());
}

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -34,6 +34,7 @@ public class CFragUsage2Union implements StructConverter {
return appSubdirID;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
return StructConverterUtil.toDataType(getClass());
}

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -32,6 +32,7 @@ public class CFragWhere1Union implements StructConverter {
return spaceID;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
return StructConverterUtil.toDataType(getClass());
}

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -33,6 +33,7 @@ public class CFragWhere2Union implements StructConverter {
return reserved;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
return StructConverterUtil.toDataType(getClass());
}

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -98,6 +97,7 @@ public class ReferenceListEntry implements StructConverter {
return handle;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
String name = StructConverterUtil.parseName(ReferenceListEntry.class);
Structure struct = new StructureDataType(name, 0);

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -102,6 +101,7 @@ public class ResourceHeader extends Entry implements StructConverter {
return _map;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
return StructConverterUtil.toDataType(ResourceHeader.class);
}

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -100,6 +99,7 @@ public class ResourceType implements StructConverter {
return _referenceList;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
String name = StructConverterUtil.parseName(ResourceType.class);
Structure struct = new StructureDataType(name, 0);

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -44,6 +43,7 @@ public class ObjectiveC2_Cache implements StructConverter {
return cache;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
if (_state.is32bit) {
return new TypedefDataType("Cache", DWORD);

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -143,6 +143,7 @@ public class ObjectiveC2_Category implements StructConverter {
}
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
StringBuffer buffer = new StringBuffer();
buffer.append(NAME);

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -191,6 +191,7 @@ public class ObjectiveC2_Class implements StructConverter {
}
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
Structure struct = new StructureDataType(NAME, 0);

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -161,6 +160,7 @@ public class ObjectiveC2_ClassRW implements StructConverter {
}
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
Structure struct = new StructureDataType(NAME, 0);

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -68,6 +67,7 @@ public class ObjectiveC2_ImageInfo implements StructConverter {
return _index;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
Structure struct = new StructureDataType("objc_image_info", 0);
struct.add(DWORD, "version", null);

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -63,6 +63,7 @@ public class ObjectiveC2_Implementation implements StructConverter {
return _index;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
if (_isSmall) {
return new TypedefDataType("ImplementationOffset", DWORD);

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -80,6 +79,7 @@ public class ObjectiveC2_InstanceVariable implements StructConverter {
return size;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
Structure struct = new StructureDataType("ivar_t", 0);
if (_state.is32bit) {

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -74,6 +74,7 @@ public class ObjectiveC2_InstanceVariableList implements StructConverter {
return struct;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
Structure struct = new StructureDataType(NAME+'_'+count+'_', 0);

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -61,6 +60,7 @@ public class ObjectiveC2_MessageReference implements StructConverter {
return selector;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
Structure struct = new StructureDataType(NAME, 0);
struct.add(new PointerDataType(VOID), _state.pointerSize, "imp", null);

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -49,6 +48,7 @@ public class ObjectiveC2_Property implements StructConverter {
return attributes;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
Structure struct = new StructureDataType("objc_property", 0);

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -75,6 +75,7 @@ public class ObjectiveC2_PropertyList implements StructConverter {
return struct;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
Structure struct = new StructureDataType(NAME+'_'+count+'_', 0);

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -181,6 +181,7 @@ public class ObjectiveC2_Protocol implements StructConverter {
}
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
Structure struct = new StructureDataType(NAME, 0);

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -77,6 +77,7 @@ public class ObjectiveC2_ProtocolList implements StructConverter {
return struct;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
Structure struct = new StructureDataType(NAME+'_'+protocols.size()+'_', 0);

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -82,6 +81,7 @@ public class ObjectiveC1_Category implements StructConverter {
return unknown1;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
String name = "objc_category";
StructureDataType struct = new StructureDataType(name, 0);

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -114,6 +114,7 @@ public class ObjectiveC1_Class implements StructConverter {
return unknown1;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
StructureDataType struct = new StructureDataType(NAME, 0);
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -53,6 +52,7 @@ public class ObjectiveC1_InstanceVariable implements StructConverter {
return offset;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
StructureDataType struct = new StructureDataType("objc_ivar", 0);
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -63,6 +63,7 @@ public class ObjectiveC1_InstanceVariableList implements StructConverter {
return struct;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
StructureDataType struct = new StructureDataType("objc_ivar_list"+"_"+ivar_count+"_", 0);
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -97,6 +96,7 @@ public class ObjectiveC1_MetaClass implements StructConverter {
return unknown1;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
String name = "objc_metaclass";
StructureDataType struct = new StructureDataType(name, 0);

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -49,6 +48,7 @@ public class ObjectiveC1_Method extends ObjectiveC_Method {
return address & Conv.INT_MASK;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
StructureDataType struct = new StructureDataType("objc_method", 0);
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -60,6 +60,7 @@ public class ObjectiveC1_MethodList extends ObjectiveC_MethodList {
return struct;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
StructureDataType struct = new StructureDataType(NAME+"_"+method_count+"_", 0);
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -70,6 +69,7 @@ public class ObjectiveC1_Protocol implements StructConverter {
return classMethods;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
StructureDataType struct = new StructureDataType(NAME, 0);
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -76,6 +76,7 @@ public class ObjectiveC1_ProtocolList implements StructConverter {
return struct;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
StructureDataType struct = new StructureDataType(NAME+"_"+count+"_", 0);
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);

View file

@ -1,13 +1,12 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -54,6 +53,7 @@ public class ObjectiveC1_ProtocolMethod implements StructConverter {
return _methodType;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
StructureDataType struct = new StructureDataType(NAME, 0);
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -64,6 +64,7 @@ public class ObjectiveC1_ProtocolMethodList implements StructConverter {
return struct;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
StructureDataType struct = new StructureDataType(NAME+"_"+method_count+"_", 0);
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -182,7 +182,8 @@ public class DebugCodeViewSymbolTable implements StructConverter {
/**
* @see ghidra.app.util.bin.StructConverter#toDataType()
*/
public DataType toDataType() throws DuplicateNameException {
@Override
public DataType toDataType() throws DuplicateNameException {
return null;
}
}

View file

@ -162,6 +162,7 @@ public class DebugMisc implements StructConverter {
/**
* @see ghidra.app.util.bin.StructConverter#toDataType()
*/
@Override
public DataType toDataType() throws DuplicateNameException {
StructureDataType struct = new StructureDataType(NAME, 0);

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -80,6 +80,7 @@ public class ResourceDataEntry implements StructConverter {
return reserved;
}
@Override
public DataType toDataType() throws DuplicateNameException, IOException {
StructureDataType struct = new StructureDataType(NAME, 0);
struct.add(DWORD, "OffsetToData", null);

Some files were not shown because too many files have changed in this diff Show more