Package com.github.tadukoo.java.parsing
Record Class ParsingPojo
java.lang.Object
java.lang.Record
com.github.tadukoo.java.parsing.ParsingPojo
- Record Components:
nextTokenIndex- The index of the next token to be parsedparsedType- AJavaCodeTypethat was parsed by the method
Used as a pojo for a return type of the various parsing sub-methods
- Version:
- Beta v.0.5
- Author:
- Logan Ferree (Tadukoo)
-
Constructor Summary
ConstructorsConstructorDescriptionParsingPojo(int nextTokenIndex, JavaCodeType parsedType) Creates an instance of aParsingPojorecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thenextTokenIndexrecord component.Returns the value of theparsedTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParsingPojo
Creates an instance of aParsingPojorecord class.- Parameters:
nextTokenIndex- the value for thenextTokenIndexrecord componentparsedType- the value for theparsedTyperecord component
-
-
Method Details
-
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 '=='. -
nextTokenIndex
public int nextTokenIndex()Returns the value of thenextTokenIndexrecord component.- Returns:
- the value of the
nextTokenIndexrecord component
-
parsedType
Returns the value of theparsedTyperecord component.- Returns:
- the value of the
parsedTyperecord component
-