protected void assignObjectToImpl(ReferenceVariable lhs, AbstractObject obj) { AllocNode objNode = pag.makeAllocNode(new Pair("AbstractObject", obj.getType()), obj.getType(), null); VarNode var; if (lhs instanceof FieldRefNode) { var = pag.makeGlobalVarNode(objNode, objNode.getType()); pag.addEdge((Node) lhs, var); } else { var = (VarNode) lhs; } pag.addEdge(objNode, var); }
@Override public LineStyle clone() { LineStyle copy; copy = ((LineStyle) super.clone()); copy.lineStyleSimpleExtension = new ArrayList<Object>((getLineStyleSimpleExtension().size())); for (Object iter : lineStyleSimpleExtension) { copy.lineStyleSimpleExtension.add(iter); } copy.lineStyleObjectExtension = new ArrayList<AbstractObject>((getLineStyleObjectExtension().size())); for (AbstractObject iter : lineStyleObjectExtension) { copy.lineStyleObjectExtension.add(iter.clone()); } return copy; }
@Override public PhotoOverlay clone() { PhotoOverlay copy; copy = ((PhotoOverlay) super.clone()); copy.viewVolume = ((viewVolume == null) ? null : ((ViewVolume) viewVolume.clone())); copy.imagePyramid = ((imagePyramid == null) ? null : ((ImagePyramid) imagePyramid.clone())); copy.point = ((point == null) ? null : ((Point) point.clone())); copy.photoOverlaySimpleExtension = new ArrayList<Object>((getPhotoOverlaySimpleExtension().size())); for (Object iter : photoOverlaySimpleExtension) { copy.photoOverlaySimpleExtension.add(iter); } copy.photoOverlayObjectExtension = new ArrayList<AbstractObject>((getPhotoOverlayObjectExtension().size())); for (AbstractObject iter : photoOverlayObjectExtension) { copy.photoOverlayObjectExtension.add(iter.clone()); } return copy; }
@Override public Polygon clone() { Polygon copy; copy = ((Polygon) super.clone()); copy.outerBoundaryIs = ((outerBoundaryIs == null) ? null : ((Boundary) outerBoundaryIs.clone())); copy.innerBoundaryIs = new ArrayList<Boundary>((getInnerBoundaryIs().size())); for (Boundary iter : innerBoundaryIs) { copy.innerBoundaryIs.add(iter.clone()); } copy.polygonSimpleExtension = new ArrayList<Object>((getPolygonSimpleExtension().size())); for (Object iter : polygonSimpleExtension) { copy.polygonSimpleExtension.add(iter); } copy.polygonObjectExtension = new ArrayList<AbstractObject>((getPolygonObjectExtension().size())); for (AbstractObject iter : polygonObjectExtension) { copy.polygonObjectExtension.add(iter.clone()); } return copy; }
public static void main(String[] args) { AbstractObject obj = new ProxyObject(); obj.operation(); }
public void reset(int x, int y) { super.reset(x, y); exist = true; }
protected void throwExceptionImpl(AbstractObject obj) { AllocNode objNode = pag.makeAllocNode(new Pair("AbstractObject", obj.getType()), obj.getType(), null); pag.addEdge(objNode, pag.nodeFactory().caseThrow()); }