Name identifier = access.getIdentifier(); if (identifier.contentEquals("*")) {
private boolean isConstructProxyCall( JCExpression expression ) { if( expression instanceof JCTree.JCMethodInvocation ) { // don't erase cast if we generated it here e.g.., for structural call cast on constructProxy JCExpression meth = ((JCTree.JCMethodInvocation)expression).meth; return meth instanceof JCTree.JCFieldAccess && ((JCTree.JCFieldAccess)meth).getIdentifier().toString().equals( "constructProxy" ); } return expression instanceof JCTypeCast && isConstructProxyCall( ((JCTypeCast)expression).getExpression() ); }
private boolean isConstructProxyCall( JCExpression expression ) { if( expression instanceof JCTree.JCMethodInvocation ) { // don't erase cast if we generated it here e.g.., for structural call cast on constructProxy JCExpression meth = ((JCTree.JCMethodInvocation)expression).meth; return meth instanceof JCTree.JCFieldAccess && ((JCTree.JCFieldAccess)meth).getIdentifier().toString().equals( "constructProxy" ); } return expression instanceof JCTypeCast && isConstructProxyCall( ((JCTypeCast)expression).getExpression() ); }
analyzeParsedTree(context, expression); Type owner = expression.type; String name = fa.getIdentifier().toString(); int start = preferredPos - name.length();
Name identifier = fieldAccess.getIdentifier(); Range range = Range.create(src, preferredPos + 1, endPos); if (isNull(sym)) {
Name identifier = access.getIdentifier(); if (identifier.contentEquals("*")) {
sel = null; } else if (sel instanceof JCFieldAccess) { String name = ((JCFieldAccess) sel).getIdentifier().toString(); if ("super".equals(name)) { SuperConstructorInvocation sci = new SuperConstructorInvocation();
sel = null; } else if (sel instanceof JCFieldAccess) { String name = ((JCFieldAccess) sel).getIdentifier().toString(); if ("super".equals(name)) { SuperConstructorInvocation sci = new SuperConstructorInvocation();
sel = null; } else if (sel instanceof JCFieldAccess) { String name = ((JCFieldAccess) sel).getIdentifier().toString(); if ("super".equals(name)) { SuperConstructorInvocation sci = new SuperConstructorInvocation();
if (tree instanceof JCTree.JCFieldAccess) { JCTree.JCFieldAccess fieldAccess = (JCTree.JCFieldAccess) tree; com.sun.tools.javac.util.Name name = fieldAccess.getIdentifier(); JCTree.JCExpression expression = fieldAccess.getExpression(); String methodName = name.toString();
@Override public void visitSelect(JCFieldAccess node) { String name = node.getIdentifier().toString();
@Override public void visitSelect(JCFieldAccess node) { String name = node.getIdentifier().toString();
@Override public void visitSelect(JCFieldAccess node) { String name = node.getIdentifier().toString();