Package org.ek9lang.compiler.phase3
Record Class SymbolAccessData
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase3.SymbolAccessData
record SymbolAccessData(IToken token, IScope fromScope, IScope inScope, String symbolName, ISymbol symbol)
extends Record
Used when checking access to fields/properties and methods.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefromScope
record component.final int
hashCode()
Returns a hash code value for this object.inScope()
Returns the value of theinScope
record component.symbol()
Returns the value of thesymbol
record component.Returns the value of thesymbolName
record component.token()
Returns the value of thetoken
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SymbolAccessData
Creates an instance of aSymbolAccessData
record class.- Parameters:
token
- the value for thetoken
record componentfromScope
- the value for thefromScope
record componentinScope
- the value for theinScope
record componentsymbolName
- the value for thesymbolName
record componentsymbol
- the value for thesymbol
record 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. All components in this record class are compared withObjects::equals(Object,Object)
. -
token
Returns the value of thetoken
record component.- Returns:
- the value of the
token
record component
-
fromScope
Returns the value of thefromScope
record component.- Returns:
- the value of the
fromScope
record component
-
inScope
Returns the value of theinScope
record component.- Returns:
- the value of the
inScope
record component
-
symbolName
Returns the value of thesymbolName
record component.- Returns:
- the value of the
symbolName
record component
-
symbol
Returns the value of thesymbol
record component.- Returns:
- the value of the
symbol
record component
-