de.upb.swt.mcie.parser.token
Class UnOp

java.lang.Object
  extended by de.upb.swt.mcie.parser.token.Token
      extended by de.upb.swt.mcie.parser.token.UnOp

public class UnOp
extends Token

Implements the token for an unary operation. The operations, their encoding as well as their binding, are defined in the class UnaryOp.

Author:
Ekkart Kindler, kindler@upb.de
See Also:
UnaryOp

Field Summary
private  int op
          The operation (resp. its encoding UnaryOp).
 
Constructor Summary
UnOp(int op)
          Constructs a token for the given operation.
 
Method Summary
 int binding()
          Returns the binding level of the operation.
 int getOp()
          Returns the operation (i.e. its encoding).
 
Methods inherited from class de.upb.swt.mcie.parser.token.Token
setReference, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

op

private int op
The operation (resp. its encoding UnaryOp).

Constructor Detail

UnOp

public UnOp(int op)
Constructs a token for the given operation.

Parameters:
op -
Method Detail

binding

public int binding()
Returns the binding level of the operation. The binding level of this operation is defined in class UnaryOp.

Returns:
the binding level of this operation

getOp

public int getOp()
Returns the operation (i.e. its encoding).

Returns:
the operation