Constructor and Description |
---|
Match(int size)
Constructor with size.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clones a match.
|
BioPAXElement |
get(int index)
Gets element at the index.
|
List<BioPAXElement> |
get(String[] label,
Pattern p)
Gets elements corresponding to the given labels in the pattern.
|
BioPAXElement |
get(String label,
Pattern p)
Gets element corresponding to the given label in the pattern.
|
String |
getAName(BioPAXElement ele)
Finds a name for the variable.
|
BioPAXElement |
getFirst()
Gets first element of the match
|
BioPAXElement |
getLast()
Gets last element of the match.
|
BioPAXElement[] |
getVariables()
Getter for the element array.
|
void |
set(BioPAXElement ele,
int index)
Sets the given element to the given index.
|
String |
toString()
Gets name of variables.
|
int |
varSize()
Gets the array size.
|
boolean |
varsPresent(int... ind)
Checks if all given indices are assigned.
|
public Match(int size)
size
- array sizepublic BioPAXElement[] getVariables()
public BioPAXElement get(int index)
index
- index of the element to getpublic BioPAXElement get(String label, Pattern p)
label
- label of the element in the patternp
- related patternIllegalArgumentException
- if the label not in the patternpublic List<BioPAXElement> get(String[] label, Pattern p)
label
- labels of the element in the patternp
- related patternIllegalArgumentException
- if one of the labels not in the patternpublic BioPAXElement getFirst()
public BioPAXElement getLast()
public int varSize()
public void set(BioPAXElement ele, int index)
ele
- element to setindex
- index to setpublic boolean varsPresent(int... ind)
ind
- indices to checkpublic String getAName(BioPAXElement ele)
ele
- element to checkCopyright © 2015 BioPAX. All rights reserved.