예제 #1
0
  public IElementType terminatorType() {
    String promoter = getPromoter();
    Base group = getGroup();
    IElementType terminatorType;

    if (Base.isHeredocPromoter(promoter)) {
      terminatorType = group.heredocTerminatorType;
    } else {
      terminatorType = group.terminatorType;
    }

    return terminatorType;
  }
예제 #2
0
  public IElementType promoterType() {
    String promoter = getPromoter();
    Base group = getGroup();
    IElementType promoterType;

    if (Base.isHeredocPromoter(promoter)) {
      promoterType = group.heredocPromoterType;
    } else {
      promoterType = group.promoterType;
    }

    return promoterType;
  }