Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPLabel.java')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPLabel.java44
1 files changed, 2 insertions, 42 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPLabel.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPLabel.java
index 17a9411dc6c..3649315bc29 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPLabel.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPLabel.java
@@ -26,31 +26,20 @@ import org.eclipse.core.runtime.PlatformObject;
*/
public class CPPLabel extends PlatformObject implements ILabel, ICPPInternalBinding {
private IASTName statement;
- /**
- * @param gotoStatement
- */
+
public CPPLabel( IASTName statement ) {
this.statement = statement;
statement.setBinding( this );
}
- /* (non-Javadoc)
- * @see org.eclipse.cdt.internal.core.dom.parser.cpp.ICPPBinding#getDeclarations()
- */
public IASTNode[] getDeclarations() {
return null;
}
- /* (non-Javadoc)
- * @see org.eclipse.cdt.internal.core.dom.parser.cpp.ICPPBinding#getDefinition()
- */
public IASTNode getDefinition() {
return statement;
}
- /* (non-Javadoc)
- * @see org.eclipse.cdt.core.dom.ast.ILabel#getLabelStatement()
- */
public IASTLabelStatement getLabelStatement() {
if( statement instanceof IASTLabelStatement )
return (IASTLabelStatement) statement;
@@ -59,73 +48,44 @@ public class CPPLabel extends PlatformObject implements ILabel, ICPPInternalBind
return null;
}
- /* (non-Javadoc)
- * @see org.eclipse.cdt.core.dom.ast.IBinding#getName()
- */
public String getName() {
return statement.toString();
}
- /* (non-Javadoc)
- * @see org.eclipse.cdt.core.dom.ast.IBinding#getNameCharArray()
- */
public char[] getNameCharArray() {
return statement.toCharArray();
}
- /* (non-Javadoc)
- * @see org.eclipse.cdt.core.dom.ast.IBinding#getScope()
- */
public IScope getScope() {
return CPPVisitor.getContainingScope( statement );
}
- /* (non-Javadoc)
- * @see org.eclipse.cdt.core.dom.ast.IBinding#getPhysicalNode()
- */
public IASTNode getPhysicalNode() {
return statement;
}
- /**
- * @param labelStatement
- */
+
public void setLabelStatement( IASTName labelStatement ) {
statement = labelStatement;
}
- /* (non-Javadoc)
- * @see org.eclipse.cdt.core.dom.ast.IBinding#getFullyQualifiedName()
- */
public String[] getQualifiedName() {
return new String[] { getName() };
}
- /* (non-Javadoc)
- * @see org.eclipse.cdt.core.dom.ast.IBinding#getFullyQualifiedNameCharArray()
- */
public char[][] getQualifiedNameCharArray() {
return new char [] [] { getNameCharArray() };
}
- /* (non-Javadoc)
- * @see org.eclipse.cdt.core.dom.ast.cpp.ICPPBinding#isGloballyQualified()
- */
public boolean isGloballyQualified() {
return false;
}
- /* (non-Javadoc)
- * @see org.eclipse.cdt.internal.core.dom.parser.cpp.ICPPInternalBinding#addDefinition(org.eclipse.cdt.core.dom.ast.IASTNode)
- */
public void addDefinition(IASTNode node) {
// TODO Auto-generated method stub
}
- /* (non-Javadoc)
- * @see org.eclipse.cdt.internal.core.dom.parser.cpp.ICPPInternalBinding#addDeclaration(org.eclipse.cdt.core.dom.ast.IASTNode)
- */
public void addDeclaration(IASTNode node) {
// TODO Auto-generated method stub

Back to the top