public class PatternElement
extends java.lang.Object
History:
Constructor and Description |
---|
PatternElement()
Create a pattern element object by defualt value.
|
PatternElement(java.lang.String subterm)
Create a pattern element object by specifying the subterm.
|
PatternElement(java.lang.String subterm,
int startIndex)
Create a pattern element object by specifying the subterm and starting
position.
|
Modifier and Type | Method and Description |
---|---|
int |
GetEndIndex()
Get the ending position of the pattern element.
|
int |
GetStartIndex()
Get the starting position of the pattern element.
|
java.lang.String |
GetSubterm()
Get the term of the pattern element.
|
static void |
main(java.lang.String[] args)
Test Driver for this class.
|
void |
SetSubterm(java.lang.String subterm)
Set the term of the pattern element.
|
java.lang.String |
ToString()
Get the string representation of pattern element as
term|start index|end index
|
public PatternElement()
public PatternElement(java.lang.String subterm)
subterm
- the subterm of the pattern element.public PatternElement(java.lang.String subterm, int startIndex)
subterm
- the subterm of the pattern element.startIndex
- the starting position of the pattern element.public void SetSubterm(java.lang.String subterm)
subterm
- the subterm of the pattern element.public java.lang.String GetSubterm()
public int GetStartIndex()
public int GetEndIndex()
public java.lang.String ToString()
public static void main(java.lang.String[] args)
args
- arguments Submit a bug or feature
Copyright © 2015 National Library of Medicine