final class NameDecorator [ N ]
extends AnyVal

Constructors

NameDecorator ( name: N )

Members

val name : N
def adjustIfModuleClass ( flags: FlagSet ) : N

If flags is a ModuleClass but not a Package, add module class suffix

If flags is a ModuleClass but not a Package, add module class suffix

def compactified ( implicit ctx: Context ) : TermName

If name length exceeds allowable limit, replace part of it by hash

If name length exceeds allowable limit, replace part of it by hash

def errorName : N
def expandedName ( base: Symbol , kind: QualifiedNameKind ) ( implicit ctx: Context ) : N
def expandedName$default$2 : QualifiedNameKind
def freshened ( implicit ctx: Context ) : N
def functionArity : Int

Is a synthetic function name - N for FunctionN - N for ImplicitFunctionN - (-1) otherwise

Is a synthetic function name - N for FunctionN - N for ImplicitFunctionN - (-1) otherwise

private def functionArityFor ( prefix: String ) : Int

Parsed function arity for function with some specific prefix

Parsed function arity for function with some specific prefix

def genericArrayOp : TermName

The name of the generic runtime operation corresponding to an array operation

The name of the generic runtime operation corresponding to an array operation

def implClassName : N
def isConstructorName : Boolean
def isFunction : Boolean

Is a function name - FunctionN for N >= 0 - ImplicitFunctionN for N >= 0 - false otherwise

Is a function name - FunctionN for N >= 0 - ImplicitFunctionN for N >= 0 - false otherwise

def isImplicitFunction : Boolean

Is a implicit function name - ImplicitFunctionN for N >= 0 - false otherwise

Is a implicit function name - ImplicitFunctionN for N >= 0 - false otherwise

def isLocalDummyName : Boolean
def isOpAssignmentName : Boolean
def isReplWrapperName : Boolean
def isScala2LocalSuffix : Boolean
def isSelectorName : Boolean
def isSetterName : Boolean
def isStaticConstructorName : Boolean
def isSyntheticFunction : Boolean

Is a synthetic function name - FunctionN for N > 22 - ImplicitFunctionN for N >= 0 - false otherwise

Is a synthetic function name - FunctionN for N > 22 - ImplicitFunctionN for N >= 0 - false otherwise

def isVariableName : Boolean
def likeSpaced ( n: PreName ) : N
def moduleClassName : TypeName

Convert this module name to corresponding module class name

Convert this module name to corresponding module class name

def primitiveArrayOp : TermName

The name of the primitive runtime operation corresponding to an array operation

The name of the primitive runtime operation corresponding to an array operation

def sourceModuleName : TermName

Convert this module class name to corresponding source module name

Convert this module class name to corresponding source module name

def specializedFor ( classTargs: List [ Type ] , classTargsNames: List [ Name ] , methodTargs: List [ Type ] , methodTarsNames: List [ Name ] ) ( implicit ctx: Context ) : ThisName
def stripModuleClassSuffix : N

If name ends in module class suffix, drop it. This method needs to work on mangled as well as unmangled names because it is also called from the backend...

If name ends in module class suffix, drop it. This method needs to work on mangled as well as unmangled names because it is also called from the backend.

def testSimple ( f: SimpleTermName => Boolean ) : Boolean
def unexpandedName : N

Revert the expanded name.

Revert the expanded name.

def unmangle ( kind: NameKind ) : N
def unmangle ( kinds: List [ NameKind ] ) : N
def unmangleClassName : N
def variance : Int

The variance as implied by the variance prefix, or 0 if there is no variance prefix.

The variance as implied by the variance prefix, or 0 if there is no variance prefix.

def withVariance ( v: Int ) : N

Name with variance prefix: + for covariant, - for contravariant

Name with variance prefix: + for covariant, - for contravariant