Java Code Examples for org.eclipse.jdt.core.dom.SuperFieldAccess#getQualifier()
The following examples show how to use
org.eclipse.jdt.core.dom.SuperFieldAccess#getQualifier() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CodeBlock.java From SimFix with GNU General Public License v2.0 | 6 votes |
private SuperFieldAcc visit(SuperFieldAccess node) { int startLine = _cunit.getLineNumber(node.getStartPosition()); int endLine = _cunit.getLineNumber(node.getStartPosition() + node.getLength()); SuperFieldAcc superFieldAcc = new SuperFieldAcc(startLine, endLine, node); SName identifier = (SName) process(node.getName()); identifier.setParent(superFieldAcc); superFieldAcc.setIdentifier(identifier); if(node.getQualifier() != null){ Label name = (Label) process(node.getQualifier()); name.setParent(superFieldAcc); superFieldAcc.setName(name); } Pair<String, String> pair = NodeUtils.getTypeDecAndMethodDec(node); Type exprType = ProjectInfo.getVariableType(pair.getFirst(), pair.getSecond(), node.getName().getFullyQualifiedName()); superFieldAcc.setType(exprType); return superFieldAcc; }
Example 2
Source File: JavaASTFlattener.java From xtext-xtend with Eclipse Public License 2.0 | 5 votes |
@Override public boolean visit(final SuperFieldAccess node) { Name _qualifier = node.getQualifier(); boolean _tripleNotEquals = (_qualifier != null); if (_tripleNotEquals) { node.getQualifier().accept(this); this.appendToBuffer("."); } this.appendToBuffer("super."); node.getName().accept(this); return false; }
Example 3
Source File: BindingSignatureVisitor.java From JDeodorant with MIT License | 5 votes |
public boolean visit(SuperFieldAccess expr) { if (expr.getQualifier() != null) { handleExpression(expr.getQualifier()); } handleExpression(expr.getName()); return false; }
Example 4
Source File: StyledStringVisitor.java From JDeodorant with MIT License | 5 votes |
public boolean visit(SuperFieldAccess expr) { /* * SuperFieldAccess: [ ClassName . ] super . Identifier */ activateDiffStyle(expr); if (expr.getQualifier() != null) { handleExpression(expr.getQualifier()); appendPeriod(); } styledString.append("super", determineDiffStyle(expr, new StyledStringStyler(keywordStyle))); appendPeriod(); handleExpression(expr.getName()); deactivateDiffStyle(expr); return false; }