Package daikon.chicory
Class DeclReader.DeclPpt
- Object
-
- DeclPpt
-
- Enclosing class:
- DeclReader
public static class DeclReader.DeclPpt extends Object
Information about the program point that is contained in the decl file. This consists of the ppt name and a list of the declared variables.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable DeclReader.DeclVarInfo
find_var(String var_name)
Returns the DeclVarInfo named var_name or null if it doesn't exist.String
get_name()
Returns the ppt name.String
get_short_name()
Returns the name without the :::EXIT, :::ENTER, etc.DeclReader.DeclVarInfo
read_var(EntryReader decl_file)
Read a single variable declaration from decl_file.String
toString()
-
-
-
Method Detail
-
read_var
public DeclReader.DeclVarInfo read_var(EntryReader decl_file) throws IOException
Read a single variable declaration from decl_file. The file must be positioned immediately before the variable name.- Parameters:
decl_file
- where to read data from- Returns:
- DeclVarInfo for the program point variable
- Throws:
IOException
- if there is trouble reading the file
-
find_var
public @Nullable DeclReader.DeclVarInfo find_var(String var_name)
Returns the DeclVarInfo named var_name or null if it doesn't exist.- Parameters:
var_name
- a variable name- Returns:
- DeclVarInfo for the given variable
-
get_short_name
public String get_short_name()
Returns the name without the :::EXIT, :::ENTER, etc.- Returns:
- the program point name
-
-