org.eclipse.cdt.refactoring
Class CRefactoringMatch

java.lang.Object
  extended by org.eclipse.cdt.refactoring.CRefactoringMatch

public class CRefactoringMatch
extends java.lang.Object

A refactoring match initially is a plain text match. In the course of refactoring it will be classified with a location (comment, code, ...) and with the information whether it has been verified via AST or not.


Field Summary
static int AST_REFERENCE
           
static int AST_REFERENCE_OTHER
           
static int IN_COMMENT
           
static int POTENTIAL
           
 
Constructor Summary
CRefactoringMatch(org.eclipse.core.resources.IFile file, int offset, int length, int location)
           
 
Method Summary
 int getAstInformation()
           
 org.eclipse.core.resources.IFile getFile()
           
 java.lang.String getLabel()
           
 int getLength()
           
 int getLocation()
           
 int getOffset()
           
 boolean isInComment()
           
 void setASTInformation(int val)
           
 void setLocation(int location)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POTENTIAL

public static final int POTENTIAL
See Also:
Constant Field Values

AST_REFERENCE

public static final int AST_REFERENCE
See Also:
Constant Field Values

IN_COMMENT

public static final int IN_COMMENT
See Also:
Constant Field Values

AST_REFERENCE_OTHER

public static final int AST_REFERENCE_OTHER
See Also:
Constant Field Values
Constructor Detail

CRefactoringMatch

public CRefactoringMatch(org.eclipse.core.resources.IFile file,
                         int offset,
                         int length,
                         int location)
Method Detail

getAstInformation

public int getAstInformation()

getOffset

public int getOffset()

setLocation

public void setLocation(int location)

getLocation

public int getLocation()

getLength

public int getLength()

getFile

public org.eclipse.core.resources.IFile getFile()

setASTInformation

public void setASTInformation(int val)

getLabel

public java.lang.String getLabel()

isInComment

public boolean isInComment()