Package codechicken.mixin.scala
Record Class ScalaSignature.MethodSymbol
java.lang.Object
java.lang.Record
codechicken.mixin.scala.ScalaSignature.MethodSymbol
- All Implemented Interfaces:
ScalaSignature.Flags,ScalaSignature.SymbolRef
- Enclosing class:
- ScalaSignature
public static record ScalaSignature.MethodSymbol(ScalaSignature sig, String name, ScalaSignature.SymbolRef owner, int flags, int infoId)
extends Record
implements ScalaSignature.SymbolRef
-
Constructor Summary
ConstructorsConstructorDescriptionMethodSymbol(ScalaSignature sig, String name, ScalaSignature.SymbolRef owner, int flags, int infoId) Creates an instance of aMethodSymbolrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intflags()Returns the value of theflagsrecord component.full()final inthashCode()Returns a hash code value for this object.info()intinfoId()Returns the value of theinfoIdrecord component.jDesc()name()Returns the value of thenamerecord component.owner()Returns the value of theownerrecord component.sig()Returns the value of thesigrecord component.toString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface codechicken.mixin.scala.ScalaSignature.Flags
isAbstract, isAccessor, isDeferred, isInterface, isMethod, isModule, isParam, isPrivate, isProtected, isStatic, isTraitMethods inherited from interface codechicken.mixin.scala.ScalaSignature.SymbolRef
hasFlag
-
Constructor Details
-
MethodSymbol
public MethodSymbol(ScalaSignature sig, String name, ScalaSignature.SymbolRef owner, int flags, int infoId) Creates an instance of aMethodSymbolrecord class.- Parameters:
sig- the value for thesigrecord componentname- the value for thenamerecord componentowner- the value for theownerrecord componentflags- the value for theflagsrecord componentinfoId- the value for theinfoIdrecord component
-
-
Method Details
-
full
- Specified by:
fullin interfaceScalaSignature.SymbolRef
-
info
-
jDesc
-
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 '=='. -
sig
Returns the value of thesigrecord component.- Returns:
- the value of the
sigrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
flags
public int flags()Returns the value of theflagsrecord component.- Specified by:
flagsin interfaceScalaSignature.SymbolRef- Returns:
- the value of the
flagsrecord component
-
infoId
public int infoId()Returns the value of theinfoIdrecord component.- Returns:
- the value of the
infoIdrecord component
-