Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
JFXInterpolateValue |
|
| 0.0;0 |
1 | /* | |
2 | * Copyright 2003-2008 Sun Microsystems, Inc. All Rights Reserved. | |
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
4 | * | |
5 | * This code is free software; you can redistribute it and/or modify it | |
6 | * under the terms of the GNU General Public License version 2 only, as | |
7 | * published by the Free Software Foundation. Sun designates this | |
8 | * particular file as subject to the "Classpath" exception as provided | |
9 | * by Sun in the LICENSE file that accompanied this code. | |
10 | * | |
11 | * This code is distributed in the hope that it will be useful, but WITHOUT | |
12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
14 | * version 2 for more details (a copy is included in the LICENSE file that | |
15 | * accompanied this code). | |
16 | * | |
17 | * You should have received a copy of the GNU General Public License version | |
18 | * 2 along with this work; if not, write to the Free Software Foundation, | |
19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
20 | * | |
21 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, | |
22 | * CA 95054 USA or visit www.sun.com if you need additional information or | |
23 | * have any questions. | |
24 | */ | |
25 | ||
26 | package com.sun.tools.javafx.tree; | |
27 | ||
28 | import com.sun.javafx.api.tree.InterpolateValueTree; | |
29 | import com.sun.javafx.api.tree.JavaFXTree.JavaFXKind; | |
30 | import com.sun.javafx.api.tree.JavaFXTreeVisitor; | |
31 | import com.sun.tools.javac.tree.JCTree.JCExpression; | |
32 | import com.sun.tools.javac.util.Name; | |
33 | ||
34 | /** | |
35 | * | |
36 | * @author tball | |
37 | */ | |
38 | 0 | public class JFXInterpolateValue extends JFXExpression implements InterpolateValueTree { |
39 | public JCExpression attribute; | |
40 | public JCExpression value; | |
41 | public JCExpression interpolation; | |
42 | ||
43 | 5 | public JFXInterpolateValue(JCExpression attr, JCExpression v, JCExpression interp) { |
44 | 5 | attribute = attr; |
45 | 5 | value = v; |
46 | 5 | interpolation = interp; |
47 | 5 | } |
48 | ||
49 | public JCExpression getAttribute() { | |
50 | 0 | return attribute; |
51 | } | |
52 | ||
53 | public JCExpression getInterpolation() { | |
54 | 0 | return interpolation; |
55 | } | |
56 | ||
57 | public JCExpression getValue() { | |
58 | 0 | return value; |
59 | } | |
60 | ||
61 | public JavaFXKind getJavaFXKind() { | |
62 | 0 | return JavaFXKind.INTERPOLATE_VALUE; |
63 | } | |
64 | ||
65 | public <R, D> R accept(JavaFXTreeVisitor<R, D> visitor, D data) { | |
66 | 0 | return visitor.visitInterpolateValue(this, data); |
67 | } | |
68 | ||
69 | @Override | |
70 | public void accept(JavafxVisitor v) { | |
71 | 31 | v.visitInterpolateValue(this); |
72 | 31 | } |
73 | ||
74 | @Override | |
75 | public int getTag() { | |
76 | 21 | return JavafxTag.INTERPOLATION_VALUE; |
77 | } | |
78 | } |