|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openquark.cal.compiler.QualifiedName
public final class QualifiedName
A simple wrapper class for holding onto names qualified by their module source. There are also a variety of static constants representing the names of well known Prelude type constructors, data constructors and functions. This class must remain immutable.
| Method Summary | |
|---|---|
Object |
clone()
Return a clone of this object. |
int |
compareTo(QualifiedName otherName)
Provides an ordering on QualifiedNames where the module part is compared first, as String values, followed by the unqualified part. |
boolean |
equals(Object other)
|
boolean |
equals(QualifiedName otherName)
|
ModuleName |
getModuleName()
|
String |
getQualifiedName()
|
String |
getUnqualifiedName()
|
int |
hashCode()
|
static boolean |
isValidCompoundName(String compoundName)
Return whether a string is a valid qualified name. |
boolean |
lowercaseFirstChar()
Can be used to quickly triage whether a qualified name is in the lowercase namespace (functions, class methods) or the uppercase namespace (type classes, type constructors, data constructors). |
static QualifiedName |
make(ModuleName moduleName,
String unqualifiedName)
Factory method for constructing a QualifiedName from a module name and an unqualified name. |
static QualifiedName |
make(String moduleName,
String unqualifiedName)
Factory method for constructing a QualifiedName from a module name and an unqualified name. |
static QualifiedName |
makeFromCompoundName(String compoundName)
A helper function that makes a QualifiedName from a compound name String. |
String |
toSourceText()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static QualifiedName make(ModuleName moduleName,
String unqualifiedName)
moduleName - the module name.unqualifiedName - the unqualified name.
public static QualifiedName make(String moduleName,
String unqualifiedName)
moduleName - the module name.unqualifiedName - the unqualified name.
public int compareTo(QualifiedName otherName)
compareTo in interface Comparable<QualifiedName>otherName -
public boolean equals(Object other)
equals in class Objectother -
public boolean equals(QualifiedName otherName)
otherName -
public ModuleName getModuleName()
getModuleName in interface Namepublic String getQualifiedName()
public String toSourceText()
toSourceText in interface Namepublic String getUnqualifiedName()
public int hashCode()
hashCode in class Objectpublic static QualifiedName makeFromCompoundName(String compoundName)
Creation date: (7/16/01 2:34:12 PM)
compoundName - a name of the form moduleName.unqualifiedName,
where moduleName can be a hierarchical module name containing
one or more components separated by '.'.
public static boolean isValidCompoundName(String compoundName)
compoundName - a name of the form moduleName.unqualifiedName,
where moduleName can be a hierarchical module name containing
one or more components separated by '.'.
public String toString()
toString in class Object
public Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic boolean lowercaseFirstChar()
|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||