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

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • getResourceAsStream (ClassLoader)
  • compareTo (BigDecimal)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Notification (javax.management)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • 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