Eclipse CDT
Pre-release 3.0

org.eclipse.cdt.core.search
Class BasicSearchMatch

java.lang.Object
  extended by org.eclipse.cdt.core.search.BasicSearchMatch
All Implemented Interfaces:
Comparable, IMatch

public class BasicSearchMatch
extends Object
implements IMatch, Comparable


Constructor Summary
BasicSearchMatch()
           
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object obj)
           
 int getElementType()
          Returns ICElement constant describing the element type
 IMatchLocatable getLocatable()
           
 IPath getLocation()
           
 String getName()
           
 String[] getParameters()
          Returns the list of parameters if this matched a function or a method.
 String getParentName()
           
 IPath getPath()
           
 String[] getQualifiedName()
           
 IPath getReferenceLocation()
           
 IPath getReferringElement()
           
 IResource getResource()
           
 String getReturnType()
          Returns the return type if this matched a function or a method.
 int getType()
           
 int getVisibility()
           
 int hashCode()
           
 boolean isConst()
           
 boolean isStatic()
           
 boolean isVolatile()
           
 void setConst(boolean b)
           
 void setLocatable(IMatchLocatable locatable)
           
 void setName(String string)
           
 void setParameters(String[] params)
           
 void setParentName(String string)
           
 void setPath(IPath path)
           
 void setQualifiedName(String[] qualifiedName)
           
 void setReferringElement(IPath referringElement)
           
 void setResource(IResource resource)
           
 void setReturnType(String string)
           
 void setStatic(boolean b)
           
 void setType(int i)
           
 void setVisibility(int i)
           
 void setVolatile(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicSearchMatch

public BasicSearchMatch()
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

getElementType

public int getElementType()
Description copied from interface: IMatch
Returns ICElement constant describing the element type

Specified by:
getElementType in interface IMatch
Returns:

getVisibility

public int getVisibility()
Specified by:
getVisibility in interface IMatch

getName

public String getName()
Specified by:
getName in interface IMatch

getParentName

public String getParentName()
Specified by:
getParentName in interface IMatch

getParameters

public String[] getParameters()
Description copied from interface: IMatch
Returns the list of parameters if this matched a function or a method.

Specified by:
getParameters in interface IMatch
Returns:
array of Strings for the parameters

getReturnType

public String getReturnType()
Description copied from interface: IMatch
Returns the return type if this matched a function or a method.

Specified by:
getReturnType in interface IMatch
Returns:
the return type

getResource

public IResource getResource()
Specified by:
getResource in interface IMatch

getLocation

public IPath getLocation()
Specified by:
getLocation in interface IMatch

getReferenceLocation

public IPath getReferenceLocation()
Specified by:
getReferenceLocation in interface IMatch

isStatic

public boolean isStatic()
Specified by:
isStatic in interface IMatch

isConst

public boolean isConst()
Specified by:
isConst in interface IMatch

isVolatile

public boolean isVolatile()
Specified by:
isVolatile in interface IMatch

getType

public int getType()
Returns:

setConst

public void setConst(boolean b)
Parameters:
b -

setStatic

public void setStatic(boolean b)
Parameters:
b -

setVolatile

public void setVolatile(boolean b)
Parameters:
b -

setName

public void setName(String string)
Parameters:
string -

setParentName

public void setParentName(String string)
Parameters:
string -

setParameters

public void setParameters(String[] params)

setReturnType

public void setReturnType(String string)
Parameters:
string -

setType

public void setType(int i)
Parameters:
i -

setVisibility

public void setVisibility(int i)
Parameters:
i -

getLocatable

public IMatchLocatable getLocatable()
Specified by:
getLocatable in interface IMatch

setLocatable

public void setLocatable(IMatchLocatable locatable)

setResource

public void setResource(IResource resource)

getPath

public IPath getPath()

setPath

public void setPath(IPath path)

getReferringElement

public IPath getReferringElement()

setReferringElement

public void setReferringElement(IPath referringElement)

getQualifiedName

public String[] getQualifiedName()

setQualifiedName

public void setQualifiedName(String[] qualifiedName)

Eclipse CDT
Pre-release 3.0

Copyright (c) IBM Corp. and others 2004. All Rights Reserved.