Record Class RecordedSymbols.Reference
java.lang.Object
java.lang.Record
org.ek9lang.compiler.support.RecordedSymbols.Reference
- Record Components:
node- the identifier node (IdentifierContext, orPrimaryReferenceContextforthis/super) - its start token is the name's exact positionsymbol- the symbol it is bound to; for a call, the callable it resolved to, never the call itself
- Enclosing class:
RecordedSymbols
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcolumn()0-based column of the name.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanA bare name: neither qualified, nor reached through a., northis/super.booleanReached through a.(other.total,items.length()) - bound through the object.booleanWrittenmodule::name- it cannot re-bind wherever the text is moved.booleanthisorsuper.intline()1-based line of the name.name()The name as written (the bare name, without anymodule::qualifier).org.antlr.v4.runtime.ParserRuleContextnode()Returns the value of thenoderecord component.symbol()Returns the value of thesymbolrecord component.org.antlr.v4.runtime.Tokentoken()The name's token.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Reference
-
-
Method Details
-
token
public org.antlr.v4.runtime.Token token()The name's token. -
name
The name as written (the bare name, without anymodule::qualifier). -
line
public int line()1-based line of the name. -
column
public int column()0-based column of the name. -
isQualified
public boolean isQualified()Writtenmodule::name- it cannot re-bind wherever the text is moved. -
isMemberAccess
public boolean isMemberAccess()Reached through a.(other.total,items.length()) - bound through the object. -
isThisOrSuper
public boolean isThisOrSuper()thisorsuper. -
isBareName
public boolean isBareName()A bare name: neither qualified, nor reached through a., northis/super. -
toString
-
hashCode
-
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). -
node
-
symbol
-