.. java:import:: fr.inria.tapenade.utils TapPair .. java:import:: fr.inria.tapenade.utils Tree PositionAndMessage ================== .. java:package:: fr.inria.tapenade.representation :noindex: .. java:type:: public final class PositionAndMessage Wrapper around a message that Tapenade emits and its related position in the source. Fields ------ fileName ^^^^^^^^ .. java:field:: protected String fileName :outertype: PositionAndMessage Related file name. tags ^^^^ .. java:field:: protected TapPair tags :outertype: PositionAndMessage For correspondence between "source" tree and "message" for html display tools. tree ^^^^ .. java:field:: protected Tree tree :outertype: PositionAndMessage Related tree. Constructors ------------ PositionAndMessage ^^^^^^^^^^^^^^^^^^ .. java:constructor:: protected PositionAndMessage(int i, String msg, Tree tr) :outertype: PositionAndMessage PositionAndMessage creation. :param i: integer position in the tree. :param msg: message. :param tr: associated tree. PositionAndMessage ^^^^^^^^^^^^^^^^^^ .. java:constructor:: public PositionAndMessage(PositionAndMessage orig) :outertype: PositionAndMessage PositionAndMessage creation from an orig PositionAndMessage. :param orig: PositionAndMessage Methods ------- message ^^^^^^^ .. java:method:: public String message() :outertype: PositionAndMessage String message. :return: String. position ^^^^^^^^ .. java:method:: public int position() :outertype: PositionAndMessage :return: integer position. setPosition ^^^^^^^^^^^ .. java:method:: protected void setPosition(int position) :outertype: PositionAndMessage Set position of the message. :param position: integer. setUnit ^^^^^^^ .. java:method:: protected void setUnit(Unit unit) :outertype: PositionAndMessage Set related unit of this message. :param unit: related Unit. toString ^^^^^^^^ .. java:method:: @Override public String toString() :outertype: PositionAndMessage unit ^^^^ .. java:method:: protected Unit unit() :outertype: PositionAndMessage Related unit of this message. :return: related Unit.