|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.ncl.cs.instantsoap.commandlineprocessor.variables.VariableExpression
public class VariableExpression
An expression that contains both variables and constants.
Constructor Summary | |
---|---|
VariableExpression()
Create a new expression with an empty list of components. |
|
VariableExpression(List<VariableOrConstant> components)
Create a new expression with the provided list of components. |
|
VariableExpression(VariableOrConstant... components)
Create a new expression with the provided components. |
Method Summary | |
---|---|
void |
addComponent(VariableOrConstant component)
Add a single component to the end of the components list. |
boolean |
equals(Object o)
|
List<VariableOrConstant> |
getComponents()
Get the components of this expression. |
int |
hashCode()
|
void |
removeComponent(VariableOrConstant component)
Remove a single component from its first occurance in the conponents list. |
void |
setComponents(List<VariableOrConstant> components)
Set the components list. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VariableExpression()
public VariableExpression(List<VariableOrConstant> components)
components
- a List
of componentspublic VariableExpression(VariableOrConstant... components)
components
- the componentsMethod Detail |
---|
public List<VariableOrConstant> getComponents()
List
public void setComponents(List<VariableOrConstant> components)
components
- the new List
of componentspublic void addComponent(VariableOrConstant component)
component
- the VariableOrConstant
to addpublic void removeComponent(VariableOrConstant component)
component
- the VariableOrConstant
to removepublic boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |