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

How to use
setPosition
method
in
lombok.ast.ExpressionStatement

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

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

set(node, stat.setPosition(toPosition(start, end)));
return;
origin: com.android.tools.external.lombok/lombok-ast

set(node, stat.setPosition(toPosition(start, end)));
return;
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;
}

lombok.astExpressionStatementsetPosition

Popular methods of ExpressionStatement

  • astExpression
  • <init>
  • rawExpression

Popular in Java

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • findViewById (Activity)
  • setContentView (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Best plugins for Eclipse
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