cz.cuni.amis.pogamut.sposh.dbg.lap
Class LapBreakpoint

Package class diagram package LapBreakpoint
java.lang.Object
  extended by cz.cuni.amis.pogamut.sposh.dbg.lap.LapBreakpoint

public class LapBreakpoint
extends Object

Representation of yaposh node breakpoint. There are two types of them, single and permanent. What are lap breakpoints? Basically a specification of path along with some extra info. When engine reaches the breakpoint path, it finds out the method of the action there (only leaves can be breakpoints) and a java breakpoint there. After that, depending on its type, it can remove itself from the list of breakpoints (singular) or stay there (permanent). Remember, Lap breakpoints are there to insert java breakpoints at the primitives. NOTE: equals checks only path, not single field.

Author:
Honza

Constructor Summary
LapBreakpoint(cz.cuni.amis.pogamut.sposh.elements.LapPath path, boolean single)
           
 
Method Summary
 boolean equals(Object obj)
           
 cz.cuni.amis.pogamut.sposh.elements.LapPath getPath()
          Get breakpoint path
 String getPrimitiveName(cz.cuni.amis.pogamut.sposh.elements.PoshPlan plan)
          Get name of primitive.
 cz.cuni.amis.pogamut.sposh.elements.LapType getType(cz.cuni.amis.pogamut.sposh.elements.PoshPlan plan)
          Get type of element where the breakpoint is.
 int hashCode()
           
 boolean isSingle()
          Is this a single breakpoint?
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LapBreakpoint

public LapBreakpoint(cz.cuni.amis.pogamut.sposh.elements.LapPath path,
                     boolean single)
Method Detail

getPath

public cz.cuni.amis.pogamut.sposh.elements.LapPath getPath()
Get breakpoint path

Returns:
the path

isSingle

public boolean isSingle()
Is this a single breakpoint? If not, it is permanent.

Returns:
is this a single breakpoint?

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getPrimitiveName

public String getPrimitiveName(cz.cuni.amis.pogamut.sposh.elements.PoshPlan plan)
Get name of primitive. This requires last link of breakpoint path to be LapType.ACTION or LapType.SENSE.


getType

public cz.cuni.amis.pogamut.sposh.elements.LapType getType(cz.cuni.amis.pogamut.sposh.elements.PoshPlan plan)
Get type of element where the breakpoint is.

Returns:
LapType of last link in the breakpoint path.


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.