public class VariableDefinitionArray extends AbstractVariableDefinition
| Modifier and Type | Field and Description |
|---|---|
private AbstractVariableDefinition |
variableN
Reference to the "parent"-Definition.
|
| Constructor and Description |
|---|
VariableDefinitionArray(java.lang.String name,
AbstractVariableType type,
boolean isOptional,
boolean isReallyOptional,
DefaultValue defaultValue,
VariableOptReference reference,
AbstractVariableDefinition variableN,
Position position)
Constructor, just sets the fields.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
AbstractVariableDefinition |
getVariableN()
Returns the field variableN.
|
int |
hashCode() |
java.lang.String |
print()
Returns the line to print.
|
getContext, getDefaultValue, getName, getPosition, getReference, getType, isOptional, isReallyOptional, isVariableActiveprivate final AbstractVariableDefinition variableN
public VariableDefinitionArray(java.lang.String name,
AbstractVariableType type,
boolean isOptional,
boolean isReallyOptional,
DefaultValue defaultValue,
VariableOptReference reference,
AbstractVariableDefinition variableN,
Position position)
name - The name to set.type - The type to set.isOptional - Represents if an definition is optional.isReallyOptional - A parameter showing the ++ in arraysdefaultValue - The default value to set.reference - Represents if a definition has an opt or not.variableN - Reference to the "parent"-definitionposition - the position to set.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic AbstractVariableDefinition getVariableN()
public java.lang.String print()
AbstractVariableDefinitionprint in class AbstractVariableDefinition