More execution work
This commit is contained in:
@@ -32,6 +32,15 @@ public class ObjectInstance extends ObjectInstanceBase
|
||||
}
|
||||
}
|
||||
|
||||
private ObjectInstance(ObjectInstance other, Path path, ClassInstance type)
|
||||
{
|
||||
super(path, type);
|
||||
|
||||
/* copy fields */
|
||||
for (FieldInstance field : other.fields)
|
||||
this.fields.add(new FieldInstance(this, field));
|
||||
}
|
||||
|
||||
public FieldInstance getField(NameAndType nat)
|
||||
{
|
||||
for (FieldInstance f : fields)
|
||||
@@ -39,4 +48,10 @@ public class ObjectInstance extends ObjectInstanceBase
|
||||
return f;
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ObjectInstanceBase dup(Path path, ClassInstance type)
|
||||
{
|
||||
return new ObjectInstance(this, path, type);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user