Tabnine Logo
ExpressionStatement.astExpression
Code IndexAdd Tabnine to your IDE (free)

How to use
astExpression
method
in
lombok.ast.ExpressionStatement

Best Java code snippets using lombok.ast.ExpressionStatement.astExpression (Showing top 13 results out of 315)

origin: com.android.tools.external.lombok/lombok-ast

@Override
public boolean visitExpressionStatement(lombok.ast.ExpressionStatement node) {
  Statement statement = toStatement(node.astExpression());
  try {
    Field f = statement.getClass().getField("statementEnd");
    f.set(statement, end(node));
  } catch (Exception ignore) {
    // Not all these classes may have a statementEnd.
  }
  return set(node, statement);
}

origin: org.projectlombok/lombok.ast

@Override
public boolean visitExpressionStatement(lombok.ast.ExpressionStatement node) {
  Statement statement = toStatement(node.astExpression());
  try {
    Field f = statement.getClass().getField("statementEnd");
    f.set(statement, end(node));
  } catch (Exception ignore) {
    // Not all these classes may have a statementEnd.
  }
  return set(node, statement);
}

origin: me.tatarka.retrolambda.projectlombok/lombok.ast

@Override
public boolean visitExpressionStatement(ExpressionStatement node) {
  return posSet(node, treeMaker.Exec(toExpression(node.astExpression())));
}

origin: me.tatarka.retrolambda.projectlombok/lombok.ast

@Override
public boolean visitExpressionStatement(lombok.ast.ExpressionStatement node) {
  Statement statement = toStatement(node.astExpression());
  try {
    Field f = statement.getClass().getField("statementEnd");
    f.set(statement, end(node));
  } catch (Exception ignore) {
    // Not all these classes may have a statementEnd.
  }
  return set(node, statement);
}

origin: com.android.tools.external.lombok/lombok-ast

@Override
public boolean visitExpressionStatement(ExpressionStatement node) {
  return posSet(node, treeMaker.Exec(toExpression(node.astExpression())));
}

origin: org.projectlombok/lombok.ast

@Override
public boolean visitExpressionStatement(ExpressionStatement node) {
  return posSet(node, treeMaker.Exec(toExpression(node.astExpression())));
}

origin: me.tatarka.retrolambda.projectlombok/lombok.ast

stat.astExpression((lombok.ast.Expression)value);
int start = node.sourceStart;
int end = node.sourceEnd;
origin: com.android.tools.external.lombok/lombok-ast

stat.astExpression((lombok.ast.Expression)value);
int start = node.sourceStart;
int end = node.sourceEnd;
origin: org.projectlombok/lombok.ast

private void set(ASTNode node, Node value) {
  if (result != null) throw new IllegalStateException("result is already set");
  
  if (value instanceof lombok.ast.Expression && hasFlag(FlagKey.AS_STATEMENT)) {
    lombok.ast.ExpressionStatement stat = new lombok.ast.ExpressionStatement();
    stat.astExpression((lombok.ast.Expression)value);
    int start = node.sourceStart;
    int end = node.sourceEnd;
    try {
      end = (Integer)node.getClass().getField("statementEnd").get(node);
    } catch (Exception e) {
      // Not all these classes may have a statementEnd.
    }
    
    set(node, stat.setPosition(toPosition(start, end)));
    return;
  }
  
  if (value instanceof lombok.ast.Expression) {
    int parenCount = (node.bits & ASTNode.ParenthesizedMASK) >> ASTNode.ParenthesizedSHIFT;
    for (int i = 0; i < parenCount; i++) {
      ((lombok.ast.Expression) value).astParensPositions().add(value.getPosition());
    }
  }
  
  List<Node> result = Lists.newArrayList();
  if (value != null) result.add(value);
  this.result = result;
}

origin: com.android.tools.lint/lint-api

Expression expression = expressionStatement.astExpression();
if (expression instanceof BinaryExpression &&
    ((BinaryExpression) expression).astOperator()
origin: com.amazon.device.tools.lint/lint-checks

Expression expression = expressionStatement.astExpression();
if (expression instanceof BinaryExpression &&
    ((BinaryExpression) expression).astOperator()
origin: com.amazon.device.tools.lint/lint-checks

Expression expression = expressionStatement.astExpression();
if (expression instanceof BinaryExpression &&
    ((BinaryExpression) expression).astOperator()
origin: com.android.tools.lint/lint-api

Expression expression = expressionStatement.astExpression();
if (expression instanceof BinaryExpression &&
    ((BinaryExpression) expression).astOperator()
lombok.astExpressionStatementastExpression

Popular methods of ExpressionStatement

  • <init>
  • rawExpression
  • setPosition

Popular in Java

  • Reading from database using SQL prepared statement
  • findViewById (Activity)
  • compareTo (BigDecimal)
  • setRequestProperty (URLConnection)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • JList (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now