Package ghidra.app.util.cparser.C
Record Class CParserUtils.CParseResults
java.lang.Object
java.lang.Record
ghidra.app.util.cparser.C.CParserUtils.CParseResults
- Enclosing class:
CParserUtils
public static record CParserUtils.CParseResults(PreProcessor preProcessor, String cppParseMessages, String cParseMessages, boolean successful)
extends Record
-
Constructor Summary
ConstructorDescriptionCParseResults
(PreProcessor preProcessor, String cppParseMessages, String cParseMessages, boolean successful) Creates an instance of aCParseResults
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecParseMessages
record component.Returns the value of thecppParseMessages
record component.final boolean
Indicates whether some other object is "equal to" this one.getFormattedParseMessage
(String errMsg) final int
hashCode()
Returns a hash code value for this object.Returns the value of thepreProcessor
record component.boolean
Returns the value of thesuccessful
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CParseResults
public CParseResults(PreProcessor preProcessor, String cppParseMessages, String cParseMessages, boolean successful) Creates an instance of aCParseResults
record class.- Parameters:
preProcessor
- the value for thepreProcessor
record componentcppParseMessages
- the value for thecppParseMessages
record componentcParseMessages
- the value for thecParseMessages
record componentsuccessful
- the value for thesuccessful
record component
-
-
Method Details
-
getFormattedParseMessage
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
preProcessor
Returns the value of thepreProcessor
record component.- Returns:
- the value of the
preProcessor
record component
-
cppParseMessages
Returns the value of thecppParseMessages
record component.- Returns:
- the value of the
cppParseMessages
record component
-
cParseMessages
Returns the value of thecParseMessages
record component.- Returns:
- the value of the
cParseMessages
record component
-
successful
public boolean successful()Returns the value of thesuccessful
record component.- Returns:
- the value of the
successful
record component
-