Codota Logo
InfixExpression$Operator.toString
Code IndexAdd Codota to your IDE (free)

How to use
toString
method
in
org.eclipse.jdt.core.dom.InfixExpression$Operator

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

  • Common ways to obtain InfixExpression$Operator
private void myMethod () {
InfixExpression$Operator i =
  • Codota IconInfixExpression infixExpression;infixExpression.getOperator()
  • Codota IconMap map;Object key;(Operator) map.get(key)
  • Codota IconAssociativeInfixExpressionFragment associativeInfixExpressionFragment;associativeInfixExpressionFragment.getOperator()
  • Smart code suggestions by Codota
}
origin: org.eclipse/org.eclipse.jdt.ui

public boolean visit(InfixExpression node) {
  node.getLeftOperand().accept(this);
  this.fBuffer.append(' '); // for cases like x= i - -1; or x= i++ + ++i;
  this.fBuffer.append(node.getOperator().toString());
  this.fBuffer.append(' ');
  node.getRightOperand().accept(this);
  final List extendedOperands = node.extendedOperands();
  if (extendedOperands.size() != 0) {
    this.fBuffer.append(' ');
    for (Iterator it = extendedOperands.iterator(); it.hasNext(); ) {
      this.fBuffer.append(node.getOperator().toString()).append(' ');
      Expression e = (Expression) it.next();
      e.accept(this);
    }
  }
  return false;
}
origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

public boolean visit(InfixExpression node) {
  node.getLeftOperand().accept(this);
  this.buffer.append(' ');  // for cases like x= i - -1; or x= i++ + ++i;
  this.buffer.append(node.getOperator().toString());
  this.buffer.append(' ');
  node.getRightOperand().accept(this);
  final List extendedOperands = node.extendedOperands();
  if (extendedOperands.size() != 0) {
    this.buffer.append(' ');
    for (Iterator it = extendedOperands.iterator(); it.hasNext(); ) {
      this.buffer.append(node.getOperator().toString()).append(' ');
      Expression e = (Expression) it.next();
      e.accept(this);
    }
  }
  return false;
}
origin: org.eclipse.jdt/org.eclipse.jdt.core

@Override
public boolean visit(InfixExpression node) {
  node.getLeftOperand().accept(this);
  this.buffer.append(' ');  // for cases like x= i - -1; or x= i++ + ++i;
  this.buffer.append(node.getOperator().toString());
  this.buffer.append(' ');
  node.getRightOperand().accept(this);
  final List extendedOperands = node.extendedOperands();
  if (extendedOperands.size() != 0) {
    this.buffer.append(' ');
    for (Iterator it = extendedOperands.iterator(); it.hasNext(); ) {
      this.buffer.append(node.getOperator().toString()).append(' ');
      Expression e = (Expression) it.next();
      e.accept(this);
    }
  }
  return false;
}
origin: io.spring.javaformat/spring-javaformat-formatter-eclipse

@Override
public boolean visit(InfixExpression node) {
  String operator = node.getOperator().toString();
  handleOperator(operator, node.getRightOperand(), this.options.insert_space_before_binary_operator,
      this.options.insert_space_after_binary_operator);
  List<Expression> extendedOperands = node.extendedOperands();
  for (Expression operand : extendedOperands) {
    handleOperator(operator, operand, this.options.insert_space_before_binary_operator,
        this.options.insert_space_after_binary_operator);
  }
  return true;
}
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: 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: tsantalis/RefactoringMiner

public boolean visit(InfixExpression node) {
  infixOperators.add(node.getOperator().toString());
  return super.visit(node);
}
origin: org.eclipse.jdt/org.eclipse.jdt.core.manipulation

@Override
public boolean visit(InfixExpression node) {
  node.getLeftOperand().accept(this);
  this.fBuffer.append(' '); // for cases like x= i - -1; or x= i++ + ++i;
  this.fBuffer.append(node.getOperator().toString());
  this.fBuffer.append(' ');
  node.getRightOperand().accept(this);
  final List<Expression>extendedOperands = node.extendedOperands();
  if (extendedOperands.size() != 0) {
    this.fBuffer.append(' ');
    for (Iterator<Expression> it = extendedOperands.iterator(); it.hasNext(); ) {
      this.fBuffer.append(node.getOperator().toString()).append(' ');
      Expression e = it.next();
      e.accept(this);
    }
  }
  return false;
}
origin: org.eclipse.tycho/org.eclipse.jdt.core

public boolean visit(InfixExpression node) {
  node.getLeftOperand().accept(this);
  this.buffer.append(' ');  // for cases like x= i - -1; or x= i++ + ++i;
  this.buffer.append(node.getOperator().toString());
  this.buffer.append(' ');
  node.getRightOperand().accept(this);
  final List extendedOperands = node.extendedOperands();
  if (extendedOperands.size() != 0) {
    this.buffer.append(' ');
    for (Iterator it = extendedOperands.iterator(); it.hasNext(); ) {
      this.buffer.append(node.getOperator().toString()).append(' ');
      Expression e = (Expression) it.next();
      e.accept(this);
    }
  }
  return false;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

public boolean visit(InfixExpression node) {
  node.getLeftOperand().accept(this);
  this.buffer.append(' ');  // for cases like x= i - -1; or x= i++ + ++i;
  this.buffer.append(node.getOperator().toString());
  this.buffer.append(' ');
  node.getRightOperand().accept(this);
  final List extendedOperands = node.extendedOperands();
  if (extendedOperands.size() != 0) {
    this.buffer.append(' ');
    for (Iterator it = extendedOperands.iterator(); it.hasNext(); ) {
      this.buffer.append(node.getOperator().toString()).append(' ');
      Expression e = (Expression) it.next();
      e.accept(this);
    }
  }
  return false;
}
origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

public boolean visit(InfixExpression node) {
  node.getLeftOperand().accept(this);
  this.buffer.append(' ');  // for cases like x= i - -1; or x= i++ + ++i;
  this.buffer.append(node.getOperator().toString());
  this.buffer.append(' ');
  node.getRightOperand().accept(this);
  final List extendedOperands = node.extendedOperands();
  if (extendedOperands.size() != 0) {
    this.buffer.append(' ');
    for (Iterator it = extendedOperands.iterator(); it.hasNext(); ) {
      this.buffer.append(node.getOperator().toString()).append(' ');
      Expression e = (Expression) it.next();
      e.accept(this);
    }
  }
  return false;
}
origin: trylimits/Eclipse-Postfix-Code-Completion

public boolean visit(InfixExpression node) {
  node.getLeftOperand().accept(this);
  this.buffer.append(' ');  // for cases like x= i - -1; or x= i++ + ++i;
  this.buffer.append(node.getOperator().toString());
  this.buffer.append(' ');
  node.getRightOperand().accept(this);
  final List extendedOperands = node.extendedOperands();
  if (extendedOperands.size() != 0) {
    this.buffer.append(' ');
    for (Iterator it = extendedOperands.iterator(); it.hasNext(); ) {
      this.buffer.append(node.getOperator().toString()).append(' ');
      Expression e = (Expression) it.next();
      e.accept(this);
    }
  }
  return false;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

@Override
public boolean visit(InfixExpression node) {
  String operator = node.getOperator().toString();
  handleOperator(operator, node.getRightOperand(), this.options.insert_space_before_binary_operator,
      this.options.insert_space_after_binary_operator);
  List<Expression> extendedOperands = node.extendedOperands();
  for (Expression operand : extendedOperands) {
    handleOperator(operator, operand, this.options.insert_space_before_binary_operator,
        this.options.insert_space_after_binary_operator);
  }
  return true;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
public boolean visit(InfixExpression node) {
  node.getLeftOperand().accept(this);
  this.fBuffer.append(' '); // for cases like x= i - -1; or x= i++ + ++i;
  this.fBuffer.append(node.getOperator().toString());
  this.fBuffer.append(' ');
  node.getRightOperand().accept(this);
  final List<Expression>extendedOperands = node.extendedOperands();
  if (extendedOperands.size() != 0) {
    this.fBuffer.append(' ');
    for (Iterator<Expression> it = extendedOperands.iterator(); it.hasNext(); ) {
      this.fBuffer.append(node.getOperator().toString()).append(' ');
      Expression e = it.next();
      e.accept(this);
    }
  }
  return false;
}
origin: org.eclipse.tycho/org.eclipse.jdt.core

@Override
public boolean visit(InfixExpression node) {
  String operator = node.getOperator().toString();
  handleOperator(operator, node.getRightOperand(), this.options.insert_space_before_binary_operator,
      this.options.insert_space_after_binary_operator);
  List<Expression> extendedOperands = node.extendedOperands();
  for (Expression operand : extendedOperands) {
    handleOperator(operator, operand, this.options.insert_space_before_binary_operator,
        this.options.insert_space_after_binary_operator);
  }
  return true;
}
origin: mono/sharpen

public boolean visit(InfixExpression node) {
  CSExpression left = mapExpression(node.getLeftOperand());
  CSExpression right = mapExpression(node.getRightOperand());
  String type = node.getLeftOperand().resolveTypeBinding().getQualifiedName();
  if (node.getOperator() == InfixExpression.Operator.RIGHT_SHIFT_UNSIGNED) {
    if (type.equals ("byte")) {
      pushExpression(new CSInfixExpression(">>", left, right));
    } else {
      CSExpression cast = new CSCastExpression (new CSTypeReference ("u" + type), left);
      cast = new CSParenthesizedExpression (cast);
      CSExpression shiftResult = new CSInfixExpression(">>", cast, right);
      shiftResult = new CSParenthesizedExpression (shiftResult);
      pushExpression(new CSCastExpression (new CSTypeReference (type), shiftResult));
    }
    return false;
  }
  if (type.equals("byte") && (node.getOperator() == InfixExpression.Operator.LESS || node.getOperator() == InfixExpression.Operator.LESS_EQUALS)) {
    left = new CSCastExpression (new CSTypeReference ("sbyte"), left);
    left = new CSParenthesizedExpression (left);
  }
  String operator = node.getOperator().toString();
  pushExpression(new CSInfixExpression(operator, left, right));
  pushExtendedOperands(operator, node);
  return false;
}
origin: org.eclipse.jdt/org.eclipse.jdt.core

@Override
public boolean visit(InfixExpression node) {
  String operator = node.getOperator().toString();
  handleOperator(operator, node.getRightOperand(), this.options.insert_space_before_binary_operator,
      this.options.insert_space_after_binary_operator);
  List<Expression> extendedOperands = node.extendedOperands();
  for (Expression operand : extendedOperands) {
    handleOperator(operator, operand, this.options.insert_space_before_binary_operator,
        this.options.insert_space_after_binary_operator);
  }
  return true;
}
origin: org.eclipse.jdt/org.eclipse.jdt.core

while (this.tm.get(indexBefore).isComment())
  indexBefore--;
assert node.getOperator().toString().equals(this.tm.toString(indexBefore));
int indexAfter = this.tm.firstIndexIn(operand, -1);
this.wrapIndexes.add(this.options.wrap_before_binary_operator ? indexBefore : indexAfter);
origin: usethesource/rascal

public boolean visit(InfixExpression node) {
  
  IValue operator = values.string(node.getOperator().toString());
  IValue leftSide = visitChild(node.getLeftOperand());
  IValue rightSide = visitChild(node.getRightOperand());
  
  IValue intermediateExpression = constructExpressionNode("infix", leftSide, operator, rightSide);
  for (Iterator it = node.extendedOperands().iterator(); it.hasNext();) {
    Expression e = (Expression) it.next();
    intermediateExpression = constructExpressionNode("infix", intermediateExpression, operator, visitChild(e));
  }
  
  ownValue = intermediateExpression;
  
  return false;
}

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

} else if (node instanceof InfixExpression) {
  InfixExpression infixExpression= (InfixExpression)node;
  label= Messages.format(CorrectionMessages.LocalCorrectionsSubProcessor_setparenteses_description, infixExpression.getOperator().toString());
} else if (node instanceof ConditionalExpression) {
  label= CorrectionMessages.AdvancedQuickAssistProcessor_putConditionalExpressionInParentheses;
org.eclipse.jdt.core.domInfixExpression$OperatortoString

Javadoc

Returns the character sequence for the operator.

Popular methods of InfixExpression$Operator

    Popular in Java

    • Making http post requests using okhttp
    • addToBackStack (FragmentTransaction)
    • notifyDataSetChanged (ArrayAdapter)
    • findViewById (Activity)
    • Component (java.awt)
      A component is an object having a graphical representation that can be displayed on the screen and t
    • OutputStream (java.io)
      A writable sink for bytes.Most clients will use output streams that write data to the file system (
    • DateFormat (java.text)
      Formats or parses dates and times.This class provides factories for obtaining instances configured f
    • MessageFormat (java.text)
      MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
    • BitSet (java.util)
      This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
    • Collections (java.util)
      This class consists exclusively of static methods that operate on or return collections. It contains
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now