Klasse PrefixExpression.Operator

java.lang.Object
org.aspectj.org.eclipse.jdt.core.dom.PrefixExpression.Operator
Umschließende Klasse:
PrefixExpression

public static class PrefixExpression.Operator extends Object
Prefix operators (typesafe enumeration).
 PrefixOperator:
    ++  INCREMENT
    --  DECREMENT
    +  PLUS
    -  MINUS
    ~  COMPLEMENT
    !  NOT
 
  • Felddetails

  • Methodendetails

    • toString

      public String toString()
      Returns the character sequence for the operator.
      Setzt außer Kraft:
      toString in Klasse Object
      Gibt zurück:
      the character sequence for the operator
    • toOperator

      public static PrefixExpression.Operator toOperator(String token)
      Returns the prefix operator corresponding to the given string, or null if none.

      toOperator is the converse of toString: that is, Operator.toOperator(op.toString()) == op for all operators op.

      Parameter:
      token - the character sequence for the operator
      Gibt zurück:
      the prefix operator, or null if none