private void push(BaseState theState) { theState.setStack(myState); myState = theState; if (myComments.isEmpty() == false) { if (myState.getCurrentElement() != null) { myState.getCurrentElement().getFormatCommentsPre().addAll(myComments); myComments.clear(); } } }
public void commentPre(String theCommentText) { if (myState.getCurrentElement() != null) { IBase element = myState.getCurrentElement(); element.getFormatCommentsPre().add(theCommentText); } }
private void push(BaseState theState) { theState.setStack(myState); myState = theState; if (myComments.isEmpty() == false) { if (myState.getCurrentElement() != null) { myState.getCurrentElement().getFormatCommentsPre().addAll(myComments); myComments.clear(); } } }
@SuppressWarnings("unchecked") private void pop() { myPreviousElement = myState.getCurrentElement(); if (myState.myStack != null) { myState = myState.myStack; myState.wereBack(); } else { myObject = (T) myState.getCurrentElement(); myState = null; } }
public void commentPre(String theCommentText) { if (myState.getCurrentElement() != null) { IBase element = myState.getCurrentElement(); element.getFormatCommentsPre().add(theCommentText); } }
@SuppressWarnings("unchecked") private void pop() { myPreviousElement = myState.getCurrentElement(); if (myState.myStack != null) { myState = myState.myStack; myState.wereBack(); } else { myObject = (T) myState.getCurrentElement(); myState = null; } }