-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathName.java
More file actions
36 lines (25 loc) · 688 Bytes
/
Copy pathName.java
File metadata and controls
36 lines (25 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package jaskell.sql;
import jaskell.script.Directive;
import java.util.ArrayList;
import java.util.List;
public class Name extends Literal implements CouldAlias {
protected Name(){}
public Name(String name) {
_literal = name;
}
public String name(){
return _literal;
}
protected void name(String n){
_literal = n;
}
public String escaped() {
return _literal.replace("\"", "\\\"");
}
public String escaped(Character c) {
return _literal.replace(c.toString(), "\\"+c.toString());
}
public String quotedName() {
return String.format("\"%s\"", _literal.replace("\"", "\\\""));
}
}