1 19 20 package org.netbeans.modules.java.guards; 21 22 26 public final class SectionDescriptor { 27 28 private GuardTag type; 29 30 31 private String name; 32 33 34 private int begin; 35 36 37 private int end; 38 39 40 public SectionDescriptor(GuardTag type) { 41 this.type = type; 42 name = null; 43 begin = 0; 44 end = 0; 45 } 46 47 public SectionDescriptor(GuardTag type, String name, int begin, int end) { 48 this.type = type; 49 this.name = name; 50 this.begin = begin; 51 this.end = end; 52 } 53 54 55 public int getBegin() { 56 return begin; 57 } 58 59 60 public String getName() { 61 return name; 62 } 63 64 65 public int getEnd() { 66 return end; 67 } 68 69 public GuardTag getType() { 70 return type; 71 } 72 73 public void setBegin(int begin) { 74 this.begin = begin; 75 } 76 77 public void setEnd(int end) { 78 this.end = end; 79 } 80 81 public void setName(String name) { 82 this.name = name; 83 } 84 85 86 } 87 | Popular Tags |