Package io.protostuff.compiler.model
Class Range
- java.lang.Object
-
- io.protostuff.compiler.model.AbstractElement
-
- io.protostuff.compiler.model.Range
-
- All Implemented Interfaces:
Element
public class Range extends AbstractElement
Reserved tag range.- Author:
- Kostiantyn Shchepanovskyi
-
-
Field Summary
-
Fields inherited from class io.protostuff.compiler.model.AbstractElement
comments, sourceCodeLocation
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(int tag)booleanequals(Object o)intgetFrom()UserTypegetParent()intgetTo()inthashCode()StringtoString()-
Methods inherited from class io.protostuff.compiler.model.AbstractElement
addComment, getCommentLines, getComments, getSourceCodeLocation, setComments, setSourceCodeLocation
-
-
-
-
Constructor Detail
-
Range
public Range(UserType parent, int from, int to)
Create new range node.- Parameters:
parent- message that contains this elementfrom- range start, inclusiveto- range end, inclusive
-
-
Method Detail
-
getParent
public UserType getParent()
-
getFrom
public int getFrom()
-
getTo
public int getTo()
-
contains
public boolean contains(int tag)
-
-