congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
PrefixExpression$Operator
Code IndexAdd Tabnine to your IDE (free)

How to use
PrefixExpression$Operator
in
org.eclipse.jdt.core.dom

Best Java code snippets using org.eclipse.jdt.core.dom.PrefixExpression$Operator (Showing top 20 results out of 315)

origin: io.spring.javaformat/spring-javaformat-formatter-eclipse

@Override
public boolean visit(PrefixExpression node) {
  Operator operator = node.getOperator();
  if (operator.equals(Operator.INCREMENT) || operator.equals(Operator.DECREMENT)) {
    handleOperator(operator.toString(), node.getOperand(),
        this.options.insert_space_before_prefix_operator,
        this.options.insert_space_after_prefix_operator);
  } else {
    handleOperator(operator.toString(), node.getOperand(), this.options.insert_space_before_unary_operator,
        this.options.insert_space_after_unary_operator);
  }
  return true;
}
origin: org.eclipse.xtend/org.eclipse.xtend.core

this.appendToBuffer(node.getOperator().toString());
node.getOperand().accept(this);
origin: GumTreeDiff/gumtree

protected String getLabel(ASTNode n) {
  if (n instanceof Name) return ((Name) n).getFullyQualifiedName();
  if (n instanceof Type) return n.toString();
  if (n instanceof Modifier) return n.toString();
  if (n instanceof StringLiteral) return ((StringLiteral) n).getEscapedValue();
  if (n instanceof NumberLiteral) return ((NumberLiteral) n).getToken();
  if (n instanceof CharacterLiteral) return ((CharacterLiteral) n).getEscapedValue();
  if (n instanceof BooleanLiteral) return ((BooleanLiteral) n).toString();
  if (n instanceof InfixExpression) return ((InfixExpression) n).getOperator().toString();
  if (n instanceof PrefixExpression) return ((PrefixExpression) n).getOperator().toString();
  if (n instanceof PostfixExpression) return ((PostfixExpression) n).getOperator().toString();
  if (n instanceof Assignment) return ((Assignment) n).getOperator().toString();
  if (n instanceof TextElement) return n.toString();
  if (n instanceof TagElement) return ((TagElement) n).getTagName();
  if (n instanceof TypeDeclaration) return ((TypeDeclaration) n).isInterface() ? "interface" : "class";
  return "";
}
origin: com.github.gumtreediff/gen.jdt

protected String getLabel(ASTNode n) {
  if (n instanceof Name) return ((Name) n).getFullyQualifiedName();
  if (n instanceof Type) return n.toString();
  if (n instanceof Modifier) return n.toString();
  if (n instanceof StringLiteral) return ((StringLiteral) n).getEscapedValue();
  if (n instanceof NumberLiteral) return ((NumberLiteral) n).getToken();
  if (n instanceof CharacterLiteral) return ((CharacterLiteral) n).getEscapedValue();
  if (n instanceof BooleanLiteral) return ((BooleanLiteral) n).toString();
  if (n instanceof InfixExpression) return ((InfixExpression) n).getOperator().toString();
  if (n instanceof PrefixExpression) return ((PrefixExpression) n).getOperator().toString();
  if (n instanceof PostfixExpression) return ((PostfixExpression) n).getOperator().toString();
  if (n instanceof Assignment) return ((Assignment) n).getOperator().toString();
  if (n instanceof TextElement) return n.toString();
  if (n instanceof TagElement) return ((TagElement) n).getTagName();
  return "";
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
public boolean visit(PrefixExpression node) {
  Expression operand= node.getOperand();
  if (!considerBinding(resolveBinding(operand), operand))
    return true;
  PrefixExpression.Operator operator= node.getOperator();
  if (operator != PrefixExpression.Operator.INCREMENT && operator != PrefixExpression.Operator.DECREMENT)
    return true;
  checkParent(node);
  fRewriter.replace(node,
    createInvocation(node.getAST(), node.getOperand(), node.getOperator().toString()),
    createGroupDescription(PREFIX_ACCESS));
  return false;
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
public boolean visit(PrefixExpression node) {
  Expression operand= node.getOperand();
  if (!considerBinding(resolveBinding(operand), operand))
    return true;
  PrefixExpression.Operator operator= node.getOperator();
  if (operator != PrefixExpression.Operator.INCREMENT && operator != PrefixExpression.Operator.DECREMENT)
    return true;
  checkParent(node);
  fRewriter.replace(node,
    createInvocation(node.getAST(), node.getOperand(), node.getOperator().toString()),
    createGroupDescription(PREFIX_ACCESS));
  return false;
}
origin: org.eclipse/org.eclipse.jdt.ui

public boolean visit(PrefixExpression node) {
  Expression operand= node.getOperand();
  if (!considerBinding(resolveBinding(operand), operand))
    return true;
  
  PrefixExpression.Operator operator= node.getOperator();    
  if (operator != PrefixExpression.Operator.INCREMENT && operator != PrefixExpression.Operator.DECREMENT)
    return true;
    
  checkParent(node);
  
  fRewriter.replace(node, 
    createInvocation(node.getAST(), node.getOperand(), node.getOperator().toString()), 
    createGroupDescription(PREFIX_ACCESS));
  return false;
}

origin: org.eclipse.tycho/org.eclipse.jdt.core

@Override
public boolean visit(PrefixExpression node) {
  Operator operator = node.getOperator();
  if (operator.equals(Operator.INCREMENT) || operator.equals(Operator.DECREMENT)) {
    handleOperator(operator.toString(), node.getOperand(),
        this.options.insert_space_before_prefix_operator,
        this.options.insert_space_after_prefix_operator);
  } else {
    handleOperator(operator.toString(), node.getOperand(), this.options.insert_space_before_unary_operator,
        this.options.insert_space_after_unary_operator);
  }
  return true;
}
origin: org.eclipse.jdt/org.eclipse.jdt.core

@Override
public boolean visit(PrefixExpression node) {
  Operator operator = node.getOperator();
  if (operator.equals(Operator.INCREMENT) || operator.equals(Operator.DECREMENT)) {
    handleOperator(operator.toString(), node.getOperand(),
        this.options.insert_space_before_prefix_operator,
        this.options.insert_space_after_prefix_operator);
  } else {
    handleOperator(operator.toString(), node.getOperand(), this.options.insert_space_before_unary_operator,
        this.options.insert_space_after_unary_operator);
  }
  return true;
}
origin: org.eclipse.tycho/org.eclipse.jdt.core

public boolean visit(PrefixExpression node) {
  this.buffer.append(node.getOperator().toString());
  node.getOperand().accept(this);
  return false;
}
origin: eclipse/eclipse.jdt.ls

@Override
public boolean visit(PrefixExpression node) {
  Expression operand = node.getOperand();
  if (!considerBinding(resolveBinding(operand), operand)) {
    return true;
  }
  PrefixExpression.Operator operator = node.getOperator();
  if (operator != PrefixExpression.Operator.INCREMENT && operator != PrefixExpression.Operator.DECREMENT) {
    return true;
  }
  checkParent(node);
  fRewriter.replace(node, createInvocation(node.getAST(), node.getOperand(), node.getOperator().toString()), createGroupDescription(PREFIX_ACCESS));
  return false;
}
origin: org.eclipse.jdt/org.eclipse.jdt.core

@Override
public boolean visit(PrefixExpression node) {
  this.buffer.append(node.getOperator().toString());
  node.getOperand().accept(this);
  return false;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

@Override
public boolean visit(PrefixExpression node) {
  Operator operator = node.getOperator();
  if (operator.equals(Operator.INCREMENT) || operator.equals(Operator.DECREMENT)) {
    handleOperator(operator.toString(), node.getOperand(),
        this.options.insert_space_before_prefix_operator,
        this.options.insert_space_after_prefix_operator);
  } else {
    handleOperator(operator.toString(), node.getOperand(), this.options.insert_space_before_unary_operator,
        this.options.insert_space_after_unary_operator);
  }
  return true;
}
origin: trylimits/Eclipse-Postfix-Code-Completion

public boolean visit(PrefixExpression node) {
  this.buffer.append(node.getOperator().toString());
  node.getOperand().accept(this);
  return false;
}
origin: org.eclipse.jdt/org.eclipse.jdt.core.manipulation

@Override
public boolean visit(PrefixExpression node) {
  this.fBuffer.append(node.getOperator().toString());
  node.getOperand().accept(this);
  return false;
}
origin: usethesource/rascal

public boolean visit(PrefixExpression node) {
  
  IValue operand = visitChild(node.getOperand());
  IValue operator = values.string(node.getOperator().toString());

  ownValue = constructExpressionNode("prefix", operator, operand);
  
  return false;
}

origin: org.eclipse/org.eclipse.jdt.ui

public boolean visit(PrefixExpression node) {
  this.fBuffer.append(node.getOperator().toString());
  node.getOperand().accept(this);
  return false;
}
origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

public boolean visit(PrefixExpression node) {
  this.buffer.append(node.getOperator().toString());
  node.getOperand().accept(this);
  return false;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
public boolean visit(PrefixExpression node) {
  this.fBuffer.append(node.getOperator().toString());
  node.getOperand().accept(this);
  return false;
}
origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

public boolean visit(PrefixExpression node) {
  this.buffer.append(node.getOperator().toString());
  node.getOperand().accept(this);
  return false;
}
org.eclipse.jdt.core.domPrefixExpression$Operator

Javadoc

Prefix operators (typesafe enumeration).
 
PrefixOperator: 
++  INCREMENT 
--  DECREMENT 
+  PLUS 
-  MINUS 
~  COMPLEMENT 
!  NOT 

Most used methods

  • toString
    Returns the character sequence for the operator.

Popular in Java

  • Finding current android device location
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
  • getSystemService (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Collectors (java.util.stream)
  • JButton (javax.swing)
  • JFileChooser (javax.swing)
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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