예제 #1
0
  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);
  }
예제 #2
0
 @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;
 }
예제 #3
0
 @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;
 }
예제 #4
0
 @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;
 }
예제 #5
0
 public static void main(String[] args) {
   AbstractObject obj = new ProxyObject();
   obj.operation();
 }
예제 #6
0
파일: Enemy.java 프로젝트: jack0720/Invader
 public void reset(int x, int y) {
   super.reset(x, y);
   exist = true;
 }
예제 #7
0
 protected void throwExceptionImpl(AbstractObject obj) {
   AllocNode objNode =
       pag.makeAllocNode(new Pair("AbstractObject", obj.getType()), obj.getType(), null);
   pag.addEdge(objNode, pag.nodeFactory().caseThrow());
 }