org.eclipse.cdt.internal.refactoring
Class CRefactoringArgument

java.lang.Object
  extended by org.eclipse.cdt.internal.refactoring.CRefactoringArgument
All Implemented Interfaces:
ICRefactoringArgument

public class CRefactoringArgument
extends java.lang.Object
implements ICRefactoringArgument

Represents the input to a refactoring. Important is file and offset the rest can be calculated from the AST.


Constructor Summary
CRefactoringArgument(org.eclipse.core.resources.IFile file, int offset, java.lang.String text)
           
CRefactoringArgument(org.eclipse.ui.texteditor.ITextEditor editor, org.eclipse.jface.text.ITextSelection selection)
           
 
Method Summary
 int getArgumentKind()
           
 org.eclipse.cdt.core.dom.ast.IBinding getBinding()
           
 java.lang.String getName()
           
 int getOffset()
           
 org.eclipse.cdt.core.dom.ast.IScope getScope()
           
 org.eclipse.core.resources.IFile getSourceFile()
           
 org.eclipse.cdt.core.dom.ast.IASTTranslationUnit getTranslationUnit()
           
 void setBinding(org.eclipse.cdt.core.dom.ast.IASTTranslationUnit tu, org.eclipse.cdt.core.dom.ast.IBinding binding, org.eclipse.cdt.core.dom.ast.IScope scope)
           
 void setName(org.eclipse.cdt.core.dom.ast.IASTName name)
           
 void setOffset(int offset)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRefactoringArgument

public CRefactoringArgument(org.eclipse.ui.texteditor.ITextEditor editor,
                            org.eclipse.jface.text.ITextSelection selection)

CRefactoringArgument

public CRefactoringArgument(org.eclipse.core.resources.IFile file,
                            int offset,
                            java.lang.String text)
Method Detail

getName

public java.lang.String getName()

getSourceFile

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

getArgumentKind

public int getArgumentKind()

getOffset

public int getOffset()

setName

public void setName(org.eclipse.cdt.core.dom.ast.IASTName name)

setOffset

public void setOffset(int offset)

setBinding

public void setBinding(org.eclipse.cdt.core.dom.ast.IASTTranslationUnit tu,
                       org.eclipse.cdt.core.dom.ast.IBinding binding,
                       org.eclipse.cdt.core.dom.ast.IScope scope)

getScope

public org.eclipse.cdt.core.dom.ast.IScope getScope()

getBinding

public org.eclipse.cdt.core.dom.ast.IBinding getBinding()

getTranslationUnit

public org.eclipse.cdt.core.dom.ast.IASTTranslationUnit getTranslationUnit()