|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mockcentral.editor.search.MatchingType
public class MatchingType
A class used to record information about a found java element following a
search done by a SearchEngine. This bean-style class stores and
accesses the modifiers, package name, simple name and enclosing type names
for the element. In addition, it creates a label field used for
displaying the instance within controls. If the element is a member element,
this label will include the enclosing type names, otherwise it will
correspond to the simple type name.
| Constructor Summary | |
|---|---|
protected |
MatchingType(int modifiers,
char[] packageNameChars,
char[] simpleTypeNameChars,
char[][] enclosingTypesChars)
Creates a new instance from the parameters. |
protected |
MatchingType(int modifiers,
java.lang.String packageNameChars,
java.lang.String simpleTypeNameChars,
java.lang.String[] enclosingTypes)
Creates a new instance from the parameters. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
protected java.lang.String[] |
getEnclosingTypes()
Returns a String array containing the type's enclosing types. |
protected java.lang.String |
getLabel()
Returns a String used for labelling the type within controls. |
protected int |
getModifiers()
Returns the int designating the type's modifiers. |
protected java.lang.String |
getPackageName()
Returns the type's package name. |
protected java.lang.String |
getSimpleTypeName()
Returns the type's name. |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected MatchingType(int modifiers,
char[] packageNameChars,
char[] simpleTypeNameChars,
char[][] enclosingTypesChars)
modifiers - an int designating the type's modifiers.packageNameChars - a char array designating the type's package name.simpleTypeNameChars - a char array designating the type's name.enclosingTypesChars - a char array designating the type's enclosing type names.
protected MatchingType(int modifiers,
java.lang.String packageNameChars,
java.lang.String simpleTypeNameChars,
java.lang.String[] enclosingTypes)
modifiers - an int designating the type's modifiers.packageNameChars - a String designating the type's package name.simpleTypeNameChars - a String designating the type's name.enclosingTypes - a String array designating the type's enclosing type names.| Method Detail |
|---|
protected int getModifiers()
protected java.lang.String getPackageName()
protected java.lang.String getSimpleTypeName()
protected java.lang.String[] getEnclosingTypes()
protected java.lang.String getLabel()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||