mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Added missing @Override annotations.
This commit is contained in:
parent
0177053e2b
commit
9fd7f04470
1 changed files with 23 additions and 13 deletions
|
@ -44,10 +44,12 @@ public class CPPASTLiteralExpression extends ASTNode implements ICPPASTLiteralEx
|
||||||
this.value = value;
|
this.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public CPPASTLiteralExpression copy() {
|
public CPPASTLiteralExpression copy() {
|
||||||
return copy(CopyStyle.withoutLocations);
|
return copy(CopyStyle.withoutLocations);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public CPPASTLiteralExpression copy(CopyStyle style) {
|
public CPPASTLiteralExpression copy(CopyStyle style) {
|
||||||
CPPASTLiteralExpression copy = new CPPASTLiteralExpression(kind, value == null ? null
|
CPPASTLiteralExpression copy = new CPPASTLiteralExpression(kind, value == null ? null
|
||||||
: value.clone());
|
: value.clone());
|
||||||
|
@ -58,19 +60,23 @@ public class CPPASTLiteralExpression extends ASTNode implements ICPPASTLiteralEx
|
||||||
return copy;
|
return copy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int getKind() {
|
public int getKind() {
|
||||||
return kind;
|
return kind;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setKind(int value) {
|
public void setKind(int value) {
|
||||||
assertNotFrozen();
|
assertNotFrozen();
|
||||||
kind = value;
|
kind = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public char[] getValue() {
|
public char[] getValue() {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setValue(char[] value) {
|
public void setValue(char[] value) {
|
||||||
assertNotFrozen();
|
assertNotFrozen();
|
||||||
this.value= value;
|
this.value= value;
|
||||||
|
@ -100,6 +106,7 @@ public class CPPASTLiteralExpression extends ASTNode implements ICPPASTLiteralEx
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public IType getExpressionType() {
|
public IType getExpressionType() {
|
||||||
switch (getKind()) {
|
switch (getKind()) {
|
||||||
case lk_this: {
|
case lk_this: {
|
||||||
|
@ -127,10 +134,12 @@ public class CPPASTLiteralExpression extends ASTNode implements ICPPASTLiteralEx
|
||||||
return new ProblemType(ISemanticProblem.TYPE_UNKNOWN_FOR_EXPRESSION);
|
return new ProblemType(ISemanticProblem.TYPE_UNKNOWN_FOR_EXPRESSION);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isLValue() {
|
public boolean isLValue() {
|
||||||
return getKind() == IASTLiteralExpression.lk_string_literal;
|
return getKind() == IASTLiteralExpression.lk_string_literal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public ValueCategory getValueCategory() {
|
public ValueCategory getValueCategory() {
|
||||||
return isLValue() ? ValueCategory.LVALUE : ValueCategory.PRVALUE;
|
return isLValue() ? ValueCategory.LVALUE : ValueCategory.PRVALUE;
|
||||||
}
|
}
|
||||||
|
@ -231,6 +240,7 @@ public class CPPASTLiteralExpression extends ASTNode implements ICPPASTLiteralEx
|
||||||
/**
|
/**
|
||||||
* @deprecated, use {@link #setValue(char[])}, instead.
|
* @deprecated, use {@link #setValue(char[])}, instead.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public void setValue(String value) {
|
public void setValue(String value) {
|
||||||
assertNotFrozen();
|
assertNotFrozen();
|
||||||
|
|
Loading…
Add table
Reference in a new issue